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
dc1de781
Commit
dc1de781
authored
Nov 13, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
5730b1e7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
37 deletions
+127
-37
index.vue
pages/couponList/index.vue
+17
-6
order.vue
pages/order/order.vue
+101
-23
index.vue
pages/useCoupon/index.vue
+9
-8
No files found.
pages/couponList/index.vue
View file @
dc1de781
...
@@ -25,17 +25,18 @@
...
@@ -25,17 +25,18 @@
:class=
"item.useStatus==0?'text-pink':'text-gray'"
>
{{
statusEnum
[
item
.
useStatus
]
}}
</text>
:class=
"item.useStatus==0?'text-pink':'text-gray'"
>
{{
statusEnum
[
item
.
useStatus
]
}}
</text>
</view>
</view>
<view
class=
"flex-1 flex-row text-gray"
>
<view
class=
"flex-1 flex-row-center"
>
<text
class=
""
>
来源:
</text>
<text
class=
"text-gray"
>
来源:
</text>
<text>
{{
couponSourceEnum
[
item
.
sourceType
]
}}
{{
item
.
platformType
!==
1
?
'('
+
platformEnum
[
item
.
platformType
]
+
')'
:
''
}}
</text>
<text
class=
"text-gray"
>
{{
couponSourceEnum
[
item
.
sourceType
]
}}
{{
item
.
platformType
!==
1
?
'('
+
platformEnum
[
item
.
platformType
]
+
')'
:
''
}}
</text>
<text
class=
"text-title margin-left-sm text-sm"
>
(原价:¥
{{
item
.
originalPrice
}}
)
</text>
</view>
</view>
<view
v-if=
"
[4,5].includes(item.couponType)
"
class=
"flex-1 flex-row text-gray "
>
<view
v-if=
"
item.couponType == 3
"
class=
"flex-1 flex-row text-gray "
>
<text
class=
""
>
使用说明:
</text>
<text
class=
""
>
使用说明:
</text>
<text
>
{{
item
.
remark
||
''
}}
</text>
<text
class=
""
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
</view>
</view>
<view
v-else
class=
"flex-1 flex-row text-gray "
>
<view
v-else
class=
"flex-1 flex-row text-gray "
>
<text
class=
""
>
使用说明:
</text>
<text
class=
""
>
使用说明:
</text>
<text
class=
""
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
<text
>
{{
item
.
remark
||
''
}}
</text>
</view>
</view>
<view
v-if=
"item.couponTimeStart && item.couponTimeEnd"
class=
"flex-1 des text-gray "
>
<view
v-if=
"item.couponTimeStart && item.couponTimeEnd"
class=
"flex-1 des text-gray "
>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
...
@@ -63,6 +64,7 @@
...
@@ -63,6 +64,7 @@
<text>
适用门店:全门店通用
</text>
<text>
适用门店:全门店通用
</text>
</view>
</view>
<view
class=
""
>
<view
class=
""
>
<button
class=
"cu-btn bg-pink sm"
@
tap=
"onNavToHome(1)"
>
去使用
</button>
</view>
</view>
</view>
</view>
<view
v-else-if=
"item.useStatus===1&&item.storeName"
class=
"flex-between part-bottom-store"
>
<view
v-else-if=
"item.useStatus===1&&item.storeName"
class=
"flex-between part-bottom-store"
>
...
@@ -70,6 +72,7 @@
...
@@ -70,6 +72,7 @@
<text>
使用门店:
{{
item
.
storeName
}}
</text>
<text>
使用门店:
{{
item
.
storeName
}}
</text>
</view>
</view>
<view
class=
""
>
<view
class=
""
>
<button
class=
"cu-btn bg-pink sm"
@
tap=
"onNavToHome(2)"
>
去使用
</button>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -277,6 +280,14 @@
...
@@ -277,6 +280,14 @@
this
.
list
=
[]
this
.
list
=
[]
this
.
onLoading
()
this
.
onLoading
()
},
},
onNavToHome
(
val
)
{
if
(
val
===
2
){
uni
.
setStorageSync
(
"storeId"
,
this
.
list
[
0
].
storeId
)
}
uni
.
switchTab
({
url
:
`/pages/index/index`
})
},
}
}
}
}
</
script
>
</
script
>
...
...
pages/order/order.vue
View file @
dc1de781
...
@@ -215,48 +215,84 @@
...
@@ -215,48 +215,84 @@
</view>
</view>
<view
v-if=
"userInfo && (secondaryCardList.length || monthlyCardList.length)"
class=
"flex-col card-use"
>
<view
v-if=
"userInfo && (secondaryCardList.length || monthlyCardList.length)"
class=
"flex-col card-use"
>
<text
class=
"text-black text-left"
>
专属权益
</text>
<view
class=
"flex-between"
@
tap=
"onShowMorePayWay"
>
<view
class=
"radio-group-box"
>
<text
class=
"text-black text-left"
>
钱包支付
</text>
<view
class=
"flex-row-center"
>
<text
class=
"cuIcon-right"
:class=
"showMorePayWay? 'show-more-pay-way':''"
></text>
</view>
</view>
<view
class=
"radio-group-box"
:class=
"showMorePayWay? 'radio-group-box-height':''"
>
<radio-group
class=
"radio-group"
>
<radio-group
class=
"radio-group"
>
<label
v-if=
"secondaryCardList.length"
class=
"flex-between"
@
tap=
"onRadioChange('secondaryCard')"
>
<label
v-if=
"Number(computePriceInfo.availableBalance)"
class=
"flex-between"
@
tap=
"onRadioChange('availableBalance')"
>
<view
class=
"flex-1 flex-between"
>
<view
class=
"flex-row-center"
>
<view
class=
"flex-row-center"
>
<text>
{{
secondaryCard
.
name
}}
(剩余
{{
secondaryCard
.
number
}}
次)
</text>
<text>
余额:
<text
class=
"text-pink text-bold"
>
¥
{{
computePriceInfo
.
availableBalance
}}
</text>
可用
</text>
</view>
<view
class=
"flex-row-center margin-right-sm"
>
<text>
{{
userInfo
.
memberConfig
.
levelName
}}
:
<text
class=
"text-pink text-bold"
>
{{
userInfo
.
memberConfig
.
discountRatio
}}
</text>
折
</text>
</view>
</view>
</view>
<view
class=
"flex-row-center"
>
<view
class=
"flex-row-center"
>
<
text>
请选择
</text
>
<
!--
<text>
请选择
</text>
--
>
<radio
class=
'pink radio'
:class=
"radioChecked=='
secondaryCard'?'checked':''"
value=
"secondaryCard"
:checked=
"radioChecked=='secondaryCard
'?true:false"
style=
"transform:scale(0.7)"
/>
<radio
class=
'pink radio'
:class=
"radioChecked=='
availableBalance'?'checked':''"
value=
"availableBalance"
:checked=
"radioChecked == 'availableBalance
'?true:false"
style=
"transform:scale(0.7)"
/>
</view>
</view>
</label
>
</label
>
<label
v-if=
"monthlyCardList.length"
class=
"flex-between"
@
tap=
"onRadioChange('monthlyCard')"
>
<label
v-if=
"monthlyCardList.length"
class=
"flex-between"
@
tap=
"onRadioChange('monthlyCard')"
>
<view
class=
"flex-row-center"
>
<view
class=
"flex-row-center"
>
<text>
{{
monthlyCardList
[
0
].
confName
}}
</text>
<text>
{{
monthlyCardList
[
0
].
confName
}}
:
</text>
<text
class=
"text-pink text-bold"
>
{{
monthlyCardList
[
0
].
freeDuration
}}
</text>
<text>
小时可用
</text>
</view>
</view>
<view
class=
"flex-row-center"
>
<view
class=
"flex-row-center"
>
<
text>
请选择
</text
>
<
!--
<text>
请选择
</text>
--
>
<radio
class=
'pink radio'
:class=
"radioChecked=='monthlyCard'?'checked':''"
value=
"monthlyCard"
:checked=
"radioChecked == 'monthlyCard'?true:false"
style=
"transform:scale(0.7)"
/>
<radio
class=
'pink radio'
:class=
"radioChecked=='monthlyCard'?'checked':''"
value=
"monthlyCard"
:checked=
"radioChecked == 'monthlyCard'?true:false"
style=
"transform:scale(0.7)"
/>
</view>
</view>
</label
>
</label
>
<label
v-if=
"secondaryCardList.length"
class=
"flex-between"
@
tap=
"onRadioChange('secondaryCard')"
>
<view
class=
"flex-row-center"
>
<text>
{{
secondaryCard
.
name
}}
:剩
<text
class=
"text-pink text-bold"
>
{{
secondaryCard
.
number
}}
</text>
次可用
</text>
</view>
<view
class=
"flex-row-center"
>
<!--
<text>
请选择
</text>
-->
<radio
class=
'pink radio'
:class=
"radioChecked=='secondaryCard'?'checked':''"
value=
"secondaryCard"
:checked=
"radioChecked=='secondaryCard'?true:false"
style=
"transform:scale(0.7)"
/>
</view>
</label
>
<label
v-if=
"computePriceInfo && computePriceInfo.availableDuration"
class=
"flex-between"
@
tap=
"onRadioChange('availableDuration')"
>
<view
class=
"flex-1 flex-between"
>
<view
class=
"flex-row-center"
>
<text>
时长:
<text
class=
"text-pink text-bold"
>
{{
Number
(
computePriceInfo
.
availableDuration
).
toFixed
(
1
)
}}
</text>
小时可用
</text>
</view>
</view>
<view
class=
"flex-row-center"
>
<!--
<text>
请选择
</text>
-->
<radio
class=
'pink radio'
:class=
"radioChecked=='availableDuration'?'checked':''"
value=
"availableDuration"
:checked=
"radioChecked == 'availableDuration'?true:false"
style=
"transform:scale(0.7)"
/>
</view>
</label
>
</radio-group>
</radio-group>
</view>
</view>
</view>
</view>
<view
v-if=
"userInfo && !secondaryCardList.length && !monthlyCardList.length"
class=
"flex-between price use-coupon-box"
>
<view
class=
"flex-between price use-coupon-box"
>
<text
<text
class=
"text-black text-left"
>
{{
useCouponList
[
selectCouponIndex
].
couponType
==
2
?
'团购券'
:
'优惠券'
}}
</text>
class=
"text-black text-left"
>
{{
useCouponList
[
selectCouponIndex
].
couponType
==
2
?
'团购券'
:
'优惠券'
}}
</text>
<view
class=
"flex-1 flex-row"
@
tap=
"onNavToSelectCoupon"
>
<view
class=
"flex-1 flex-row"
@
tap=
"onNavToSelectCoupon"
>
<text
class=
""
:class=
"useCouponList.length?'text-pink':'text-gray'"
>
<text
class=
""
:class=
"useCouponList.length?'text-pink':'text-gray'"
>
{{
useCouponList
.
length
&&
selectCouponIndex
>=
0
?
useCouponList
[
selectCouponIndex
].
name
:
c
ouponList
.
length
?
'请选择'
:
'暂无可用'
}}
</text>
{{
useCouponList
.
length
&&
selectCouponIndex
>=
0
?
useCouponList
[
selectCouponIndex
].
name
:
useC
ouponList
.
length
?
'请选择'
:
'暂无可用'
}}
</text>
<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=
"userInfo && !secondaryCardList.length && !monthlyCardList.length
"
class=
"flex-between price"
>
<!--
<view
v-if=
"userInfo && !radioChecked
"
class=
"flex-between price"
>
<text
class=
"text-black text-left"
>
可用时长
</text>
<text
class=
"text-black text-left"
>
可用时长
</text>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
<text
class=
"text-pink text-lg text-bold"
>
{{
computePriceInfo
&&
computePriceInfo
.
availableDuration
?
Number
(
computePriceInfo
.
availableDuration
).
toFixed
(
1
)
:
0
}}
</text>
<text
class=
"text-pink text-lg text-bold"
>
{{
computePriceInfo
&&
computePriceInfo
.
availableDuration
?
Number
(
computePriceInfo
.
availableDuration
).
toFixed
(
1
)
:
0
}}
</text>
<text
class=
"text-pink"
>
小时
</text>
<text
class=
"text-pink"
>
小时
</text>
</view>
</view>
</view>
</view>
-->
<view
v-if=
"computePriceInfo.duration"
class=
"flex-between price"
>
<view
v-if=
"computePriceInfo.duration"
class=
"flex-between price"
>
<text
class=
"text-black text-left"
>
时长抵扣
</text>
<text
class=
"text-black text-left"
>
时长抵扣
</text>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
...
@@ -270,13 +306,13 @@
...
@@ -270,13 +306,13 @@
<text
class=
"text-pink"
>
优先使用钱包余额
</text>
<text
class=
"text-pink"
>
优先使用钱包余额
</text>
</view>
</view>
</view>
</view>
<view
v-if=
"computePriceInfo.availableBalance"
class=
"flex-between price"
>
<!--
<view
v-if=
"computePriceInfo.availableBalance"
class=
"flex-between price"
>
<text
class=
"text-black text-left"
>
可用余额
</text>
<text
class=
"text-black text-left"
>
可用余额
</text>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
<text
class=
"text-pink"
>
¥
</text>
<text
class=
"text-pink"
>
¥
</text>
<text
class=
"text-pink text-lg text-bold"
>
{{
computePriceInfo
.
availableBalance
}}
</text>
<text
class=
"text-pink text-lg text-bold"
>
{{
computePriceInfo
.
availableBalance
}}
</text>
</view>
</view>
</view>
</view>
-->
<view
v-if=
"computePriceInfo.balance"
class=
"flex-between price"
>
<view
v-if=
"computePriceInfo.balance"
class=
"flex-between price"
>
<text
class=
"text-black text-left"
>
余额抵扣
</text>
<text
class=
"text-black text-left"
>
余额抵扣
</text>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
...
@@ -615,7 +651,7 @@
...
@@ -615,7 +651,7 @@
warnTip
:
''
,
warnTip
:
''
,
activityDate
:{},
activityDate
:{},
storeCleanDuration
:
getSysConfigValue
(
'StoreCleanDuration'
)?
Number
(
getSysConfigValue
(
'StoreCleanDuration'
)):
30
,
storeCleanDuration
:
getSysConfigValue
(
'StoreCleanDuration'
)?
Number
(
getSysConfigValue
(
'StoreCleanDuration'
)):
30
,
radioChecked
:
''
,
radioChecked
:
'
availableBalanceAndavailableDuration
'
,
monthlyCardList
:[],
monthlyCardList
:[],
secondaryCardList
:[],
secondaryCardList
:[],
secondaryCard
:{
secondaryCard
:{
...
@@ -623,7 +659,8 @@
...
@@ -623,7 +659,8 @@
number
:
0
,
number
:
0
,
name
:
'次卡'
name
:
'次卡'
},
},
submitBtnStatus
:
false
submitBtnStatus
:
false
,
showMorePayWay
:
true
};
};
},
},
filters
:
{
filters
:
{
...
@@ -673,6 +710,9 @@
...
@@ -673,6 +710,9 @@
}
}
},
},
methods
:
{
methods
:
{
onShowMorePayWay
(){
this
.
showMorePayWay
=
!
this
.
showMorePayWay
},
onActiviteClose
(){
onActiviteClose
(){
this
.
$refs
.
popupActivite
.
close
();
this
.
$refs
.
popupActivite
.
close
();
uni
.
setStorageSync
(
'activite'
,
true
)
uni
.
setStorageSync
(
'activite'
,
true
)
...
@@ -683,6 +723,7 @@
...
@@ -683,6 +723,7 @@
}
else
{
}
else
{
this
.
radioChecked
=
e
this
.
radioChecked
=
e
}
}
this
.
selectCouponIndex
=
-
1
;
this
.
onComputePrice
();
this
.
onComputePrice
();
},
},
// 日期切换
// 日期切换
...
@@ -1316,12 +1357,12 @@
...
@@ -1316,12 +1357,12 @@
events
:
{
events
:
{
getSelectData
(
data
)
{
getSelectData
(
data
)
{
if
(
data
.
couponId
&&
that
.
useCouponList
.
length
)
{
if
(
data
.
couponId
&&
that
.
useCouponList
.
length
)
{
that
.
selectCouponIndex
=
that
.
useCouponList
.
findIndex
(
item
=>
item
.
id
===
data
that
.
selectCouponIndex
=
that
.
useCouponList
.
findIndex
(
item
=>
item
.
id
===
data
.
couponId
);
.
couponId
)
that
.
radioChecked
=
''
}
else
{
}
else
{
that
.
selectCouponIndex
=
-
1
that
.
selectCouponIndex
=
-
1
}
}
that
.
on
QueryCardUs
e
();
that
.
on
ComputePric
e
();
}
}
},
},
success
(
res
)
{
success
(
res
)
{
...
@@ -1360,8 +1401,10 @@
...
@@ -1360,8 +1401,10 @@
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
consumerMonthlyCard
&&
res
.
data
.
data
.
consumerMonthlyCard
.
length
){
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
consumerMonthlyCard
&&
res
.
data
.
data
.
consumerMonthlyCard
.
length
){
this
.
radioChecked
=
"monthlyCard"
;
this
.
radioChecked
=
"monthlyCard"
;
this
.
selectCouponIndex
=
-
1
;
}
else
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
consumerSecondaryCard
&&
res
.
data
.
data
.
consumerSecondaryCard
.
length
){
}
else
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
consumerSecondaryCard
&&
res
.
data
.
data
.
consumerSecondaryCard
.
length
){
this
.
radioChecked
=
"secondaryCard"
;
this
.
radioChecked
=
"secondaryCard"
;
this
.
selectCouponIndex
=
-
1
;
}
else
{
}
else
{
this
.
radioChecked
=
""
this
.
radioChecked
=
""
}
}
...
@@ -1403,13 +1446,29 @@
...
@@ -1403,13 +1446,29 @@
storeId
:
this
.
roomInfo
.
storeId
,
storeId
:
this
.
roomInfo
.
storeId
,
roomId
:
this
.
roomInfo
.
id
,
roomId
:
this
.
roomInfo
.
id
,
buyType
:
this
.
orderTypeList
[
this
.
index
].
type
,
buyType
:
this
.
orderTypeList
[
this
.
index
].
type
,
couponId
:
this
.
useCouponList
.
length
&&
this
.
selectCouponIndex
>=
0
?
this
.
useCouponList
[
this
.
selectCouponIndex
].
id
:
''
,
couponId
:
this
.
useCouponList
.
length
&&
this
.
selectCouponIndex
>=
0
&&
!
this
.
radioChecked
?
this
.
useCouponList
[
this
.
selectCouponIndex
].
id
:
''
,
orderType
:
this
.
orderType
,
orderType
:
this
.
orderType
,
preStartDate
:
this
.
formatAllData
.
startDateTime
,
preStartDate
:
this
.
formatAllData
.
startDateTime
,
preEndDate
:
this
.
formatAllData
.
endDateTime
,
preEndDate
:
this
.
formatAllData
.
endDateTime
,
orderMode
:
this
.
modeIndex2
>=
0
||
(
this
.
modeIndex
>=
0
&&
this
.
roomLabelList
.
length
&&
this
.
roomLabelList
[
this
.
modeIndex
].
openPack
==
1
)?
1
:
0
,
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
:
''
,
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
:
''
,
roomLabelId
:
this
.
modeIndex
>=
0
?
this
.
roomLabelList
[
this
.
modeIndex
].
id
:
''
,
isBalance
:
0
,
isDuration
:
0
}
if
(
this
.
radioChecked
===
'availableBalanceAndavailableDuration'
){
params
.
isBalance
=
1
params
.
isDuration
=
1
}
else
if
(
this
.
radioChecked
&&
[
'availableBalance'
,
'availableDuration'
].
includes
(
this
.
radioChecked
)){
if
(
this
.
radioChecked
==
"availableBalance"
){
params
.
isBalance
=
1
}
else
if
(
this
.
radioChecked
==
"availableDuration"
&&
this
.
monthlyCardList
.
length
){
params
.
isDuration
=
1
}
}
else
{
params
.
isBalance
=
0
params
.
isDuration
=
0
}
}
if
(
this
.
radioChecked
==
"secondaryCard"
&&
this
.
secondaryCardList
.
length
){
if
(
this
.
radioChecked
==
"secondaryCard"
&&
this
.
secondaryCardList
.
length
){
...
@@ -2903,13 +2962,27 @@
...
@@ -2903,13 +2962,27 @@
padding
:
15
upx
30
upx
;
padding
:
15
upx
30
upx
;
.radio-group-box{
.radio-group-box{
width
:
100%
;
width
:
100%
;
height
:
0
;
margin-top
:
15
upx
;
margin-top
:
15
upx
;
border-radius
:
12
upx
;
border-radius
:
4
upx
;
padding
:
15
upx
24
upx
;
padding
:
0
24
upx
;
box-shadow
:
0
0
12
upx
rgba
(
255
,
170
,
255
,
0.8
);
border
:
1
upx
solid
transparent
;
box-shadow
:
0
0
12
upx
transparent
inset
;
transition
:
all
0.5s
;
overflow
:
hidden
;
.radio-group{
.radio-group{
width
:
100%
;
width
:
100%
;
margin
:
20
upx
0
;
}
}
}
.radio-group-box-height
{
height
:
auto
;
border-color
:
rgba
(
255
,
170
,
255
,
0.8
)
;
box-shadow
:
0
0
12
upx
rgba
(
255
,
170
,
255
,
0.8
)
inset
;
}
.cuIcon-right
{
transition
:
all
0.5s
;
}
}
}
}
.activite-box
{
.activite-box
{
...
@@ -2930,4 +3003,8 @@
...
@@ -2930,4 +3003,8 @@
font-size
:
80
upx
;
font-size
:
80
upx
;
}
}
}
}
.show-more-pay-way
{
transform-origin
:
center
center
;
transform
:
rotate
(
90deg
);
}
</
style
>
</
style
>
\ No newline at end of file
pages/useCoupon/index.vue
View file @
dc1de781
...
@@ -8,18 +8,19 @@
...
@@ -8,18 +8,19 @@
<view
class=
"coupon-name"
>
<view
class=
"coupon-name"
>
<text
class=
"text-title text-lg text-bold"
>
{{
item
.
name
}}
</text>
<text
class=
"text-title text-lg text-bold"
>
{{
item
.
name
}}
</text>
</view>
</view>
<view
v-if=
"item.couponType ==
4
"
class=
"flex-row margin-top"
>
<view
v-if=
"item.couponType ==
2
"
class=
"flex-row margin-top"
>
<text
class=
"part-tip"
>
使用说明:
</text>
<text
class=
"part-tip"
>
使用说明:
</text>
<text>
{{
item
.
remark
||
''
}}
</text>
<text>
原价:
{{
item
.
originalPrice
}}
元,
{{
item
.
storeName
}}
门店核验
</text>
</view>
</view>
<view
v-else
class=
"flex-row margin-top"
>
<view
v-else
-if=
"item.couponType == 3"
class=
"flex-row margin-top"
>
<text
class=
"part-tip"
>
使用说明:
</text>
<text
class=
"part-tip"
>
使用说明:
</text>
<text
class=
""
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
<text
class=
""
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
</view>
</view>
<!--
<view
class=
"flex-row margin-top"
>
<view
v-else
class=
"flex-row margin-top"
>
<text
class=
"text-black"
>
使用说明:
</text>
<text
class=
"part-tip"
>
使用说明:
</text>
<text
class=
"text-black"
>
满
{{
item
.
minPrice
}}
元,优惠
{{
item
.
subPrice
}}
元
</text>
<text
v-if=
"item.remark"
>
{{
item
.
remark
}}
</text>
</view>
-->
<text
v-else
>
原价¥
{{
item
.
originalPrice
}}
,可进行抵扣
</text>
</view>
<view
v-if=
"item.couponTimeStart && item.couponTimeEnd"
class=
"des margin-top"
>
<view
v-if=
"item.couponTimeStart && item.couponTimeEnd"
class=
"des margin-top"
>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
<text
class=
"text-black"
>
可用时段:
</text>
<text
class=
"text-black"
>
可用时段:
</text>
...
@@ -206,7 +207,7 @@
...
@@ -206,7 +207,7 @@
padding
:
20
upx
30
upx
;
padding
:
20
upx
30
upx
;
z-index
:
44
;
z-index
:
44
;
.part-tip{
.part-tip{
width
:
160
upx
;
}
}
}
}
.part-bottom
{
.part-bottom
{
...
...
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