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
fb494d72
Commit
fb494d72
authored
Nov 21, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
5d8b91a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
32 deletions
+53
-32
index.vue
pages/index/index.vue
+1
-1
order.vue
pages/order/order.vue
+52
-31
No files found.
pages/index/index.vue
View file @
fb494d72
<
template
>
<
template
>
<view
class=
"home"
@
touchstart=
"onTouchStart"
@
touchend=
"onTouchEnd"
>
<view
class=
"home"
@
touchstart=
"onTouchStart"
@
touchend=
"onTouchEnd"
>
<f-navbar
:title=
"'凑角-'+storeInfo.name"
:isShowTransparentTitle=
"false"
:isShowLeft=
"false"
fontColor=
"#ffffff"
<f-navbar
:title=
"'凑角-'+storeInfo.name"
:isShowTransparentTitle=
"false"
:isShowLeft=
"false"
fontColor=
"#ffffff"
:fontSize=
"38"
bgColor=
"#
E4058
3"
:scrollTop=
"scrollTop"
navbarType=
'5'
></f-navbar>
:fontSize=
"38"
bgColor=
"#
f7357
3"
:scrollTop=
"scrollTop"
navbarType=
'5'
></f-navbar>
<view
class=
"header-content"
:style=
"
{paddingTop:statusBarHeight+'px' }">
<view
class=
"header-content"
:style=
"
{paddingTop:statusBarHeight+'px' }">
<image
class=
"logo-bg"
:src=
"assetsPath +'/logo_v1.png'"
mode=
"widthFix"
></image>
<image
class=
"logo-bg"
:src=
"assetsPath +'/logo_v1.png'"
mode=
"widthFix"
></image>
...
...
pages/order/order.vue
View file @
fb494d72
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
<text
class=
"text-pink text-bold"
>
¥
{{
computePriceInfo
.
availableBalance
}}
</text>
<text
class=
"text-pink text-bold"
>
¥
{{
computePriceInfo
.
availableBalance
}}
</text>
</view>
</view>
<view
class=
"flex-row-center margin-right-sm"
>
<view
class=
"flex-row-center margin-right-sm"
>
<!--
<text>
{{
userInfo
.
memberConfig
.
levelName
}}
:
<textclass
="
text-pink
text-bold
"
>
{{
userInfo
.
memberConfig
.
discountRatio
}}
</text>
折
</text>
-->
<!--
<text>
{{
userInfo
.
memberConfig
.
levelName
}}
:
<text
class=
"text-pink text-bold"
>
{{
userInfo
.
memberConfig
.
discountRatio
}}
</text>
折
</text>
-->
</view>
</view>
</view>
</view>
<view
class=
"flex-row-center"
>
<view
class=
"flex-row-center"
>
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
</view>
</view>
<view
class=
"flex-row-center"
>
<view
class=
"flex-row-center"
>
<text
<text
class=
"text-pink text-bold margin-right-sm"
>
{{
Number
(
computePriceInfo
.
duration
)?
'-'
+
Number
(
computePriceInfo
.
duration
).
toFixed
(
1
)
:
0
}}
</text>
class=
"text-pink text-bold margin-right-sm"
>
{{
Number
(
computePriceInfo
.
duration
)?
'-'
+
Number
(
computePriceInfo
.
duration
).
toFixed
(
1
)
+
'小时'
:
0
}}
</text>
</view>
</view>
</label>
</label>
...
@@ -308,15 +308,7 @@
...
@@ -308,15 +308,7 @@
<text
class=
"cuIcon-right "
:class=
"useCouponList.length?'text-pink':'text-gray'"
></text>
<text
class=
"cuIcon-right "
:class=
"useCouponList.length?'text-pink':'text-gray'"
></text>
</view>
</view>
</view>
</view>
<!--
<view
v-if=
"computePriceInfo.discount > 0 && computePriceInfo.discount
<
100
"
class=
"flex-between price"
>
<view
v-if=
"computePriceInfo.totalFeeNow"
class=
"flex-between price"
>
<text
class=
"text-black text-left"
>
应付金额
</text>
<view
class=
"flex-row"
>
<text
class=
"text-pink"
>
¥
</text>
<text
class=
"text-pink text-lg text-bold"
>
{{
computePriceInfo
.
totalFeeNow
||
0
}}
</text>
</view>
</view>
<view
v-if=
"computePriceInfo.discount > 0 && computePriceInfo.discount
<
100
"
class=
"flex-between price"
>
<view
class=
"flex-row-center"
>
<view
class=
"flex-row-center"
>
<text
class=
"text-black text-left"
>
会员折扣
</text>
<text
class=
"text-black text-left"
>
会员折扣
</text>
<view
class=
"vip-tag-box"
>
<view
class=
"vip-tag-box"
>
...
@@ -329,6 +321,27 @@
...
@@ -329,6 +321,27 @@
<text
class=
"text-pink text-bold"
>
¥
</text>
<text
class=
"text-pink text-bold"
>
¥
</text>
<text
class=
"text-pink text-lg text-bold"
>
{{
Number
(
computePriceInfo
.
memberDiscount
).
toFixed
(
2
)
}}
</text>
<text
class=
"text-pink text-lg text-bold"
>
{{
Number
(
computePriceInfo
.
memberDiscount
).
toFixed
(
2
)
}}
</text>
</view>
</view>
</view>
-->
<view
class=
"flex-between price"
>
<view
class=
"flex-row-center"
>
<text
class=
"text-black text-left"
>
实付金额:
</text>
<text
class=
"text-pink"
>
¥
</text>
<text
class=
"text-pink text-lg text-bold"
>
{{
computePriceInfo
.
payFee
||
0
}}
</text>
</view>
<view
class=
"flex-row-center"
>
<view
v-if=
"computePriceInfo.discount > 0 && computePriceInfo.discount
<
100
"
class=
"flex-row-center"
>
<view
class=
"vip-tag-box"
>
<image
:src=
"assetsPath+'/huiyuan.png'"
mode=
"widthFix"
></image>
<text>
{{
userInfo
.
memberConfig
.
levelName
}}{{
computePriceInfo
.
discountText
||
computePriceInfo
.
discount
}}
折
</text>
</view>
</view>
<view
v-else
class=
""
>
<text>
无会员折扣
</text>
</view>
</view>
</view>
</view>
<!--
<view
v-if=
"userInfo && computePriceInfo.availableDuration"
class=
"flex-between price"
>
<!--
<view
v-if=
"userInfo && computePriceInfo.availableDuration"
class=
"flex-between price"
>
...
@@ -364,15 +377,20 @@
...
@@ -364,15 +377,20 @@
</view>
</view>
<view
class=
"pay-content-box"
>
<view
class=
"pay-content-box"
>
<view
class=
"flex-row"
>
<view
class=
"flex-col"
>
<text
class=
"text-title"
>
实付
</text>
<view
v-if=
"computePriceInfo.discount > 0 && computePriceInfo.discount
<
100
"
class=
"flex-row-center"
>
<view
class=
"flex-row margin-left"
>
<text
class=
"text-sm text-title"
>
优惠金额:
</text>
<text
class=
"text-pink"
>
¥
</text>
<text
class=
"text-pink text-sm margin-left-sm"
>
¥
</text>
<text
class=
"text-xxl text-bold amount"
>
{{
computePriceInfo
.
payFee
}}
</text>
<text
class=
"text-pink text-bold"
>
{{
Number
(
computePriceInfo
.
memberDiscount
).
toFixed
(
2
)
}}
</text>
</view>
<view
class=
"flex-row-center"
>
<text
class=
"text-title"
>
待支付:
</text>
<text
class=
"text-pink margin-left-sm"
>
¥
</text>
<text
class=
"text-xxl text-pink text-bold amount"
>
{{
computePriceInfo
.
payFee
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"btn-box"
>
<view
class=
"btn-box"
>
<button
class=
"cu-btn cu-btn-1 margin-right"
@
tap=
"onNavToCheckedCoupon"
>
团购验券
</button>
<button
class=
"cu-btn cu-btn-1 margin-right
-sm
"
@
tap=
"onNavToCheckedCoupon"
>
团购验券
</button>
<button
class=
"cu-btn cu-btn-2 "
@
tap=
"onOrderConfirmBefore"
>
{{
orderType
===
1
?
'预约'
:
'续单'
}}
</button>
<button
class=
"cu-btn cu-btn-2 "
@
tap=
"onOrderConfirmBefore"
>
{{
orderType
===
1
?
'预约'
:
'续单'
}}
</button>
</view>
</view>
</view>
</view>
...
@@ -455,7 +473,7 @@
...
@@ -455,7 +473,7 @@
<text
class=
"text-des"
>
充值会员后,每一次消费的积分可自动 累计,用于升级订房折扣,最高打88折
</text>
<text
class=
"text-des"
>
充值会员后,每一次消费的积分可自动 累计,用于升级订房折扣,最高打88折
</text>
</view>
</view>
<button
class=
"cu-btn"
@
tap=
"onNavToRecharge"
>
<button
class=
"cu-btn"
@
tap=
"onNavToRecharge
(1)
"
>
立即充值
立即充值
</button>
</button>
</view>
</view>
...
@@ -803,7 +821,10 @@
...
@@ -803,7 +821,10 @@
}
}
})
})
},
},
onNavToRecharge
()
{
onNavToRecharge
(
val
)
{
if
(
val
==
1
){
uni
.
setStorageSync
(
'rechargeTip'
,
true
)
}
uni
.
switchTab
({
uni
.
switchTab
({
url
:
'/pages/vipCreate/vipCreate'
url
:
'/pages/vipCreate/vipCreate'
})
})
...
@@ -819,7 +840,7 @@
...
@@ -819,7 +840,7 @@
if
(
this
.
radioChecked
===
e
)
{
if
(
this
.
radioChecked
===
e
)
{
this
.
radioChecked
=
''
this
.
radioChecked
=
''
if
(
this
.
useCouponList
&&
this
.
useCouponList
.
length
)
{
if
(
this
.
useCouponList
&&
this
.
useCouponList
.
length
)
{
this
.
selectCouponIndex
=
0
;
this
.
selectCouponIndex
=
this
.
useCouponList
.
findIndex
(
item
=>
item
.
isAvailable
===
0
)
}
}
}
else
{
}
else
{
this
.
radioChecked
=
e
this
.
radioChecked
=
e
...
@@ -2802,7 +2823,7 @@
...
@@ -2802,7 +2823,7 @@
}
}
.text-left
{
.text-left
{
width
:
120
upx
;
//
width
:
120
upx
;
text-align-last
:
justify
;
text-align-last
:
justify
;
font-weight
:
600
;
font-weight
:
600
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -2834,16 +2855,16 @@
...
@@ -2834,16 +2855,16 @@
align-items
:
center
;
align-items
:
center
;
background
:
linear-gradient
(
to
right
,
rgba
(
255
,
255
,
255
,
0.2
),
rgba
(
157
,
18
,
196
,
0.3
));
background
:
linear-gradient
(
to
right
,
rgba
(
255
,
255
,
255
,
0.2
),
rgba
(
157
,
18
,
196
,
0.3
));
color
:
#9D1260
;
color
:
#9D1260
;
font-size
:
16
upx
;
font-size
:
24
upx
;
height
:
34
upx
;
height
:
48
upx
;
border-radius
:
18
upx
;
border-radius
:
24
upx
;
padding
:
0
12
upx
;
padding
:
0
12
upx
;
margin-left
:
6
upx
;
margin-left
:
6
upx
;
image
{
image
{
width
:
2
2
upx
;
width
:
2
8
upx
;
max-height
:
2
2
upx
;
max-height
:
2
8
upx
;
margin-right
:
4
upx
;
margin-right
:
8
upx
;
}
}
}
}
}
}
...
@@ -2876,7 +2897,7 @@
...
@@ -2876,7 +2897,7 @@
height
:
120
rpx
;
height
:
120
rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
rpx
5
rpx
25
rpx
0
rpx
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
rpx
5
rpx
25
rpx
0
rpx
rgba
(
0
,
0
,
0
,
0.1
);
padding
:
0
3
0
upx
;
padding
:
0
2
0
upx
;
z-index
:
66
;
z-index
:
66
;
>.flex-row
{
>.flex-row
{
...
@@ -2898,12 +2919,12 @@
...
@@ -2898,12 +2919,12 @@
.btn-box
{
.btn-box
{
.cu-btn-1
{
.cu-btn-1
{
width
:
15
9
rpx
;
width
:
15
4
rpx
;
line-height
:
58
rpx
;
line-height
:
58
rpx
;
background
:
linear-gradient
(
97deg
,
#FADB4A
,
#FFA751
);
background
:
linear-gradient
(
97deg
,
#FADB4A
,
#FFA751
);
box-shadow
:
0
rpx
5
rpx
9
rpx
0
rpx
rgba
(
54
,
4
,
9
,
0.42
);
box-shadow
:
0
rpx
5
rpx
9
rpx
0
rpx
rgba
(
54
,
4
,
9
,
0.42
);
opacity
:
0.95
;
opacity
:
0.95
;
border-radius
:
29
rpx
;
border-radius
:
33
rpx
;
font-size
:
30
upx
;
font-size
:
30
upx
;
text-align
:
center
;
text-align
:
center
;
color
:
#ffffff
;
color
:
#ffffff
;
...
@@ -2911,7 +2932,7 @@
...
@@ -2911,7 +2932,7 @@
}
}
.cu-btn-2
{
.cu-btn-2
{
width
:
15
9
rpx
;
width
:
15
4
rpx
;
line-height
:
58
rpx
;
line-height
:
58
rpx
;
background
:
linear-gradient
(
97deg
,
#E5268B
,
#FD5661
);
background
:
linear-gradient
(
97deg
,
#E5268B
,
#FD5661
);
box-shadow
:
0
rpx
5
rpx
9
rpx
0
rpx
rgba
(
54
,
4
,
9
,
0.42
);
box-shadow
:
0
rpx
5
rpx
9
rpx
0
rpx
rgba
(
54
,
4
,
9
,
0.42
);
...
...
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