Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
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
hooloo
mp
user
Commits
937143d1
Commit
937143d1
authored
Aug 03, 2022
by
宋冰琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复结算页面优惠卷调用实际
parent
30757af6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
components/Ticket/index.vue
+2
-2
orderSubPackage/pages/settlement/index.vue
+5
-3
store/modules/order.js
+2
-2
No files found.
components/Ticket/index.vue
View file @
937143d1
...
...
@@ -30,7 +30,7 @@
</view>
<view
class=
"right_bottom"
>
<view
class=
"more_info"
@
click=
"openDetail"
>
<view
:style=
"[descColor]"
class=
"desc"
v-if=
"info.couponType===
0||info.couponType===1
"
>
抵扣订单金额
</view>
<view
:style=
"[descColor]"
class=
"desc"
v-if=
"info.couponType===
1||info.couponType===2
"
>
抵扣订单金额
</view>
<view
:style=
"[descColor]"
class=
"desc"
v-else
>
下单可抵扣商品,指定分类商品可用
</view>
<image
:class=
"['arrow-right-select',arrowFlag?'arrow-right-select-down':'arrow-right-select-up']"
:src=
"info.status!==0?'../../static/imgs/jiantouqian.png':'../../static/imgs/jiantouhei.png'"
/>
</view>
...
...
@@ -76,7 +76,7 @@ export default {
default
(){
return
{
status
:
0
,
// 0可使用 1不可使用 2已使用 3已失效
couponType
:
2
,
//
0满减 1折扣 2
抵扣
couponType
:
2
,
//
1满减 2折扣 3
抵扣
typeDesc
:
'最大字数最大字'
,
// 左上角文案描述
mjPrice
:
'30'
,
// 满减金额
zkPrice
:
'7'
,
// 折扣金额
...
...
orderSubPackage/pages/settlement/index.vue
View file @
937143d1
...
...
@@ -106,6 +106,9 @@ export default {
this
.
TermsStatus
=
uni
.
getStorageSync
(
'TermsStatus'
)
||
false
},
onLoad
(
option
)
{
// 清除优惠卷信息
this
.
$store
.
commit
(
"cleanInfo"
)
if
(
!
this
.
userms
){
User
.
wxLoginAndGetOpenid
(
true
).
then
(
loginInfo
=>
{
this
.
loginInfo
=
loginInfo
...
...
@@ -119,6 +122,7 @@ export default {
console
.
log
(
uni
.
getStorageSync
(
'goodsList'
));
this
.
goods
=
uni
.
getStorageSync
(
'goodsList'
)
||
[];
this
.
payType
=
'2'
this
.
saveGetTicket
()
return
}
...
...
@@ -159,10 +163,8 @@ export default {
}).
then
(({
data
})
=>
{
this
.
duration
=
data
.
data
})
// 获取优惠卷信息
this
.
$store
.
commit
(
"cleanInfo"
)
this
.
saveGetTicket
()
},
data
()
{
return
{
...
...
store/modules/order.js
View file @
937143d1
...
...
@@ -28,7 +28,7 @@ const order = {
goodList
:
[
item
.
goodLimitDesc
],
useScence
:
[
'小程序下单可用'
],
useDesc
:
[
'*不可与其他优惠券同时使用'
,
'*不可与门店优惠共享'
,
'*订单完成后选择退款,只退回实际支付金额,优惠券不予退回'
],
zkRule
:
'整单最高抵扣50元
'
,
zkRule
:
item
.
type
===
1
?
'抵扣后实付金额无法小于0'
:
item
.
type
===
2
?
'整单最高抵扣50元'
:
'可享受规定范围内饮品免单
'
,
reson
:
item
.
notFitableDesc
,
couponAmount
:
item
.
couponAmount
,
fitItem
:
item
...
...
@@ -52,7 +52,7 @@ const order = {
goodList
:
[
item
.
goodLimitDesc
],
useScence
:
[
'小程序下单可用'
],
useDesc
:
[
'*不可与其他优惠券同时使用'
,
'*不可与门店优惠共享'
,
'*订单完成后选择退款,只退回实际支付金额,优惠券不予退回'
],
zkRule
:
'整单最高抵扣50元
'
,
zkRule
:
item
.
type
===
1
?
'抵扣后实付金额无法小于0'
:
item
.
type
===
2
?
'整单最高抵扣50元'
:
'可享受规定范围内饮品免单
'
,
reson
:
item
.
notFitableDesc
,
couponAmount
:
item
.
couponAmount
,
fitItem
:
item
...
...
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