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
2c75d509
Commit
2c75d509
authored
Oct 16, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能完善
parent
98e45b11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
9 deletions
+69
-9
order.vue
pages/order/order.vue
+63
-3
index.vue
setting/dataStatistics/index.vue
+6
-6
No files found.
pages/order/order.vue
View file @
2c75d509
...
...
@@ -213,6 +213,30 @@
<text>
/小时
</text>
</view>
</view>
<view
v-if=
"userInfo && (userInfo.secondaryCardList || userInfo.monthlyCardList) && radioChecked"
class=
"flex-col card-use"
>
<text
class=
"text-black text-left"
>
专属权益
</text>
<view
class=
"radio-group-box"
>
<radio-group
class=
"radio-group"
@
change=
"onRadioChange"
>
<label
v-if=
"userInfo.secondaryCardList"
class=
"flex-between"
>
<view>
次卡(剩余
{{
userInfo
.
secondaryCardList
[
0
].
number
}}
次)
</view>
<view
class=
"flex-row-center"
>
<text>
请选择
</text>
<radio
class=
'pink radio'
value=
"secondaryCard"
:checked=
"radioChecked=='secondaryCard'?true:false"
style=
"transform:scale(0.7)"
/>
</view>
</label
>
<label
v-if=
"userInfo.monthlyCardList"
class=
"flex-between"
>
<view>
月卡
</view>
<view
class=
"flex-row-center"
>
<text>
请选择
</text>
<radio
class=
'pink radio'
value=
"monthlyCard"
:checked=
"radioChecked=='monthlyCard'?true:false"
style=
"transform:scale(0.7)"
/>
</view>
</label
>
</radio-group>
</view>
</view>
<view
class=
"flex-between price use-coupon-box"
>
<text
class=
"text-black text-left"
>
{{
useCouponList
[
selectCouponIndex
].
couponType
==
2
?
'团购券'
:
'优惠券'
}}
</text>
...
...
@@ -441,6 +465,7 @@
images
:
[],
status
:
0
},
userInfo
:
''
,
startTime
:
moment
().
format
(
"HH:mm"
),
endTime
:
''
,
dateIndex
:
0
,
...
...
@@ -561,7 +586,8 @@
tipErrMsg
:
''
,
warnTip
:
''
,
activityDate
:{},
storeCleanDuration
:
getSysConfigValue
(
'StoreCleanDuration'
)?
Number
(
getSysConfigValue
(
'StoreCleanDuration'
)):
30
storeCleanDuration
:
getSysConfigValue
(
'StoreCleanDuration'
)?
Number
(
getSysConfigValue
(
'StoreCleanDuration'
)):
30
,
radioChecked
:
''
};
},
filters
:
{
...
...
@@ -608,6 +634,11 @@
}
},
methods
:
{
onRadioChange
(
e
){
console
.
log
(
e
,
9999
)
this
.
radioChecked
=
e
.
target
.
value
;
this
.
onComputePrice
();
},
// 日期切换
onDateChange
(
k
)
{
if
(
this
.
dateIndex
===
k
||
this
.
orderType
==
2
)
return
;
...
...
@@ -1222,6 +1253,9 @@
// uni.showLoading({
// title: "加载中..."
// })
this
.
userInfo
=
uni
.
getStorageSync
(
"userInfo"
)
||
''
let
params
=
{
storeId
:
this
.
roomInfo
.
storeId
,
roomId
:
this
.
roomInfo
.
id
,
...
...
@@ -1233,6 +1267,8 @@
orderMode
:
this
.
modeIndex2
>=
0
||
(
this
.
modeIndex
>=
0
&&
this
.
roomLabelList
.
length
&&
this
.
roomLabelList
[
this
.
modeIndex
].
openPack
==
1
)?
1
:
0
,
packId
:
this
.
modeIndex2
>=
0
?
this
.
packageMode
[
this
.
modeIndex2
].
id
:
this
.
modeIndex
>=
0
&&
this
.
roomLabelList
.
length
&&
this
.
roomLabelList
[
this
.
modeIndex
].
openPack
==
1
?
this
.
roomLabelList
[
this
.
modeIndex
].
packId
:
''
,
roomLabelId
:
this
.
modeIndex
>=
0
?
this
.
roomLabelList
[
this
.
modeIndex
].
id
:
''
,
secondaryCardId
:
this
.
userInfo
&&
this
.
userInfo
.
secondaryCardList
&&
this
.
userInfo
.
secondaryCardList
.
length
&&
(
!
this
.
radioChecked
||
this
.
radioChecked
===
'secondaryCard'
)
?
this
.
userInfo
.
secondaryCardList
[
0
].
id
:
''
,
monthlyCardId
:
this
.
userInfo
&&
this
.
userInfo
.
monthlyCardList
&&
this
.
userInfo
.
monthlyCardList
.
length
&&
(
!
this
.
radioChecked
||
this
.
radioChecked
===
'monthlyCard'
)?
this
.
userInfo
.
monthlyCardList
[
0
].
id
:
''
}
computePrice
(
params
).
then
(
res
=>
{
...
...
@@ -1250,7 +1286,12 @@
this
.
computePriceInfo
=
{
...
obj
,
discountText
}
;
};
if
(
!
this
.
radioChecked
&&
this
.
computePriceInfo
.
secondaryCardId
){
this
.
radioChecked
=
"secondaryCard"
}
else
if
(
!
this
.
radioChecked
&&
this
.
computePriceInfo
.
monthlyCardId
){
this
.
radioChecked
=
"monthlyCard"
}
}
else
{
uni
.
showToast
({
icon
:
"none"
,
...
...
@@ -1456,7 +1497,9 @@
roomLabelId
:
this
.
modeIndex
>=
0
?
this
.
roomLabelList
[
this
.
modeIndex
].
id
:
''
,
discountRatio
:
this
.
computePriceInfo
.
discountRatio
,
balance
:
this
.
computePriceInfo
.
balance
,
duration
:
this
.
computePriceInfo
.
duration
duration
:
this
.
computePriceInfo
.
duration
,
secondaryCardId
:
this
.
userInfo
&&
this
.
userInfo
.
secondaryCardList
&&
this
.
userInfo
.
secondaryCardList
.
length
&&
this
.
radioChecked
===
'secondaryCard'
?
this
.
userInfo
.
secondaryCardList
[
0
].
id
:
''
,
monthlyCardId
:
this
.
userInfo
&&
this
.
userInfo
.
monthlyCardList
&&
this
.
userInfo
.
monthlyCardList
.
length
&&
this
.
radioChecked
===
'monthlyCard'
?
this
.
userInfo
.
monthlyCardList
[
0
].
id
:
''
}
if
(
this
.
orderType
===
2
&&
this
.
preOrderNo
)
{
params
.
preOrderNo
=
this
.
preOrderNo
...
...
@@ -2699,4 +2742,20 @@
}
}
}
.card-use
{
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
padding
:
15
upx
30
upx
;
.radio-group-box{
width
:
100%
;
margin-top
:
15
upx
;
border-radius
:
12
upx
;
padding
:
15
upx
24
upx
;
box-shadow
:
0
0
12
upx
rgba
(
255
,
170
,
255
,
0.8
);
.radio-group{
width
:
100%
;
}
}
}
</
style
>
\ No newline at end of file
setting/dataStatistics/index.vue
View file @
2c75d509
...
...
@@ -79,19 +79,19 @@
</view>
</view>
<view
class=
"flex-col"
>
<text
class=
"text-black text-bold"
>
用户充值
</text>
<text
class=
"text-black text-xl text-bold"
>
{{
statisticsData
.
recharge
Fe
e
||
0
}}
</text>
<text
class=
"text-black text-bold"
>
充值余额消费
</text>
<text
class=
"text-black text-xl text-bold"
>
{{
statisticsData
.
recharge
Balanc
e
||
0
}}
</text>
<view
class=
"flex-row-center"
>
<text
class=
"text-black"
>
退款
</text>
<text
class=
"text-pink text-lg"
>
{{
statisticsData
.
rechargeRefundFee
||
0
}}
</text>
<text
class=
"text-pink text-lg"
>
{{
statisticsData
.
recharge
Balance
RefundFee
||
0
}}
</text>
</view>
</view>
<view
class=
"flex-col"
>
<text
class=
"text-
black text-bold"
>
充值余额支付
</text>
<text
class=
"text-black text-xl text-bold"
>
{{
statisticsData
.
recharge
Balanc
e
||
0
}}
</text>
<text
class=
"text-
gray text-bold"
>
赠送余额消费
</text>
<text
class=
"text-black text-xl text-bold"
>
{{
statisticsData
.
recharge
Fe
e
||
0
}}
</text>
<view
class=
"flex-row-center"
>
<text
class=
"text-black"
>
退款
</text>
<text
class=
"text-
pink text-lg"
>
{{
statisticsData
.
rechargeBalanc
eRefundFee
||
0
}}
</text>
<text
class=
"text-
blue text-lg"
>
{{
statisticsData
.
recharg
eRefundFee
||
0
}}
</text>
</view>
</view>
<view
class=
"flex-col"
>
...
...
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