Commit 937143d1 by 宋冰琦

修复结算页面优惠卷调用实际

parent 30757af6
......@@ -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', // 折扣金额
......
......@@ -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 {
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment