Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_wechat
Commits
c3bbe92f
Commit
c3bbe92f
authored
Jan 15, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
c8997b96
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
20 deletions
+27
-20
toolBox.vue
components/toolBox/toolBox.vue
+0
-1
index.vue
pages/index/index.vue
+1
-1
order.vue
pages/order/order.vue
+26
-18
No files found.
components/toolBox/toolBox.vue
View file @
c3bbe92f
...
...
@@ -12,7 +12,6 @@
<
script
>
import
config
from
"@/config/index.config"
import
{
getOrderByAvailable
,
openDoor
}
from
"@/api/order.js"
export
default
{
name
:
"toolBox"
,
props
:{
...
...
pages/index/index.vue
View file @
c3bbe92f
...
...
@@ -2,7 +2,7 @@
<view
class=
"home"
@
touchstart=
"onTouchStart"
@
touchend=
"onTouchEnd"
>
<f-navbar
title=
"凑角"
:isShowTransparentTitle=
"false"
:isShowLeft=
"false"
fontColor=
"#ffffff"
:fontSize=
"46"
bgColor=
"#e40583"
:scrollTop=
"scrollTop"
navbarType=
'5'
></f-navbar>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
@
scroll=
"onScroll"
>
<scroll-view
:enable-flex=
"true"
class=
"scroll-view"
scroll-y=
"true"
@
scroll=
"onScroll"
>
<view
class=
"content-box"
>
<view
class=
"header-content"
:style=
"
{paddingTop:statusBarHeight+'px' }">
...
...
pages/order/order.vue
View file @
c3bbe92f
...
...
@@ -58,11 +58,11 @@
<view
v-for=
"(item,index) in packageMode"
:key=
"index"
class=
"flex-col item"
:class=
"
{active: modeIndex===index}"
@tap="onChangeMode(index)">
<text
class=
"text-title
text-sm
"
>
{{
item
.
duration
}}
小时套餐
</text>
<text
class=
"text-title"
>
{{
item
.
duration
}}
小时套餐
</text>
<view
class=
"flex-row"
style=
"margin-top: 8upx;"
>
<!--
<text>
{{
item
.
duration
}}
小时/
</text>
-->
<text
>
¥
</text>
<text
class=
"text-
title text-
bold text-xl"
>
{{
item
.
price
}}
</text>
<text
style=
"margin-bottom: 2upx;"
>
¥
</text>
<text
class=
"text-bold text-xl"
>
{{
item
.
price
}}
</text>
</view>
</view>
</view>
...
...
@@ -80,7 +80,7 @@
<view
class=
"flex-1 distance-box"
>
<view
v-for=
"(item,index) in distanceMode"
:key=
"index"
class=
"flex-col"
style=
"margin: 0 12upx;"
@
tap=
"onDurationChange(index)"
>
<view
class=
"cu-tag radius"
:class=
"index===distanceIndex? 'line-
blac
k':'line-gray'"
>
<view
class=
"cu-tag radius"
:class=
"index===distanceIndex? 'line-
pin
k':'line-gray'"
>
<text>
{{
index
>=
distanceMode
.
length
-
1
&&
!
editDuration
.
length
?
item
.
duration
:
item
.
duration
+
'小时'
}}
</text>
<text
v-if=
"index >= distanceMode.length-1"
class=
"cuIcon-edit text-lg"
></text>
</view>
...
...
@@ -1195,21 +1195,24 @@
this
.
$refs
.
confirmPop
.
open
();
},
onOrder
(){
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'oTc000e4NHkoc7v9OLBZiwM6Q6SFzguemrx6d0iuVS8'
,
'K8fbcKVq46w9o7Ekpesn74RThj_Yw6hFNwA-A5L3XA0'
,
'HB2_moQRQrXC2cKw6zE08NU3AQO9Ggj3aAOg0lIgecg'
],
success
:
(
res
)
=>
{
// uni.setStorageSync("orderUseMessage", true);
// this.$refs.confirmPop.open();
this
.
onOrderCreate
()
},
complete
:
(
res
)
=>
{
}
})
// wx.requestSubscribeMessage({
// tmplIds: [
// 'oTc000e4NHkoc7v9OLBZiwM6Q6SFzguemrx6d0iuVS8',
// 'K8fbcKVq46w9o7Ekpesn74RThj_Yw6hFNwA-A5L3XA0',
// 'HB2_moQRQrXC2cKw6zE08NU3AQO9Ggj3aAOg0lIgecg'
// ],
// success: (res) => {
// // uni.setStorageSync("orderUseMessage", true);
// // this.$refs.confirmPop.open();
// // this.onOrderCreate()
// },
// complete: (res) => {
// }
// })
},
onOrderCreate
()
{
this
.
onCancle
();
...
...
@@ -1728,6 +1731,11 @@
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
.cu-tag{
padding
:
4
upx
16
upx
;
border-radius
:
20
upx
;
}
}
}
...
...
@@ -2072,7 +2080,7 @@
flex
:
1
;
height
:
100%
;
.text-title{
//
font-size
:
25
upx
;
font-size
:
28
upx
;
}
.flex-row
{
//
font-size
:
23
upx
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment