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 @@
...
@@ -12,7 +12,6 @@
<
script
>
<
script
>
import
config
from
"@/config/index.config"
import
config
from
"@/config/index.config"
import
{
getOrderByAvailable
,
openDoor
}
from
"@/api/order.js"
import
{
getOrderByAvailable
,
openDoor
}
from
"@/api/order.js"
export
default
{
export
default
{
name
:
"toolBox"
,
name
:
"toolBox"
,
props
:{
props
:{
...
...
pages/index/index.vue
View file @
c3bbe92f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view
class=
"home"
@
touchstart=
"onTouchStart"
@
touchend=
"onTouchEnd"
>
<view
class=
"home"
@
touchstart=
"onTouchStart"
@
touchend=
"onTouchEnd"
>
<f-navbar
title=
"凑角"
:isShowTransparentTitle=
"false"
:isShowLeft=
"false"
fontColor=
"#ffffff"
:fontSize=
"46"
<f-navbar
title=
"凑角"
:isShowTransparentTitle=
"false"
:isShowLeft=
"false"
fontColor=
"#ffffff"
:fontSize=
"46"
bgColor=
"#e40583"
:scrollTop=
"scrollTop"
navbarType=
'5'
></f-navbar>
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=
"content-box"
>
<view
class=
"header-content"
<view
class=
"header-content"
:style=
"
{paddingTop:statusBarHeight+'px' }">
:style=
"
{paddingTop:statusBarHeight+'px' }">
...
...
pages/order/order.vue
View file @
c3bbe92f
...
@@ -58,11 +58,11 @@
...
@@ -58,11 +58,11 @@
<view
v-for=
"(item,index) in packageMode"
:key=
"index"
class=
"flex-col item"
<view
v-for=
"(item,index) in packageMode"
:key=
"index"
class=
"flex-col item"
:class=
"
{active: modeIndex===index}"
:class=
"
{active: modeIndex===index}"
@tap="onChangeMode(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;"
>
<view
class=
"flex-row"
style=
"margin-top: 8upx;"
>
<!--
<text>
{{
item
.
duration
}}
小时/
</text>
-->
<!--
<text>
{{
item
.
duration
}}
小时/
</text>
-->
<text
>
¥
</text>
<text
style=
"margin-bottom: 2upx;"
>
¥
</text>
<text
class=
"text-
title text-
bold text-xl"
>
{{
item
.
price
}}
</text>
<text
class=
"text-bold text-xl"
>
{{
item
.
price
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<view
class=
"flex-1 distance-box"
>
<view
class=
"flex-1 distance-box"
>
<view
v-for=
"(item,index) in distanceMode"
:key=
"index"
class=
"flex-col"
<view
v-for=
"(item,index) in distanceMode"
:key=
"index"
class=
"flex-col"
style=
"margin: 0 12upx;"
@
tap=
"onDurationChange(index)"
>
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>
{{
index
>=
distanceMode
.
length
-
1
&&
!
editDuration
.
length
?
item
.
duration
:
item
.
duration
+
'小时'
}}
</text>
<text
v-if=
"index >= distanceMode.length-1"
class=
"cuIcon-edit text-lg"
></text>
<text
v-if=
"index >= distanceMode.length-1"
class=
"cuIcon-edit text-lg"
></text>
</view>
</view>
...
@@ -1195,21 +1195,24 @@
...
@@ -1195,21 +1195,24 @@
this
.
$refs
.
confirmPop
.
open
();
this
.
$refs
.
confirmPop
.
open
();
},
},
onOrder
(){
onOrder
(){
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'oTc000e4NHkoc7v9OLBZiwM6Q6SFzguemrx6d0iuVS8'
,
'K8fbcKVq46w9o7Ekpesn74RThj_Yw6hFNwA-A5L3XA0'
,
'HB2_moQRQrXC2cKw6zE08NU3AQO9Ggj3aAOg0lIgecg'
],
success
:
(
res
)
=>
{
// uni.setStorageSync("orderUseMessage", true);
// this.$refs.confirmPop.open();
this
.
onOrderCreate
()
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
()
{
onOrderCreate
()
{
this
.
onCancle
();
this
.
onCancle
();
...
@@ -1728,6 +1731,11 @@
...
@@ -1728,6 +1731,11 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
.cu-tag{
padding
:
4
upx
16
upx
;
border-radius
:
20
upx
;
}
}
}
}
}
...
@@ -2072,7 +2080,7 @@
...
@@ -2072,7 +2080,7 @@
flex
:
1
;
flex
:
1
;
height
:
100%
;
height
:
100%
;
.text-title{
.text-title{
//
font-size
:
25
upx
;
font-size
:
28
upx
;
}
}
.flex-row
{
.flex-row
{
//
font-size
:
23
upx
;
//
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