|
|
@ -79,7 +79,7 @@ |
|
|
|
<view class="height50 width100 backcorfff" v-if="couponList.payType == 2 || couponList.payType==3 " |
|
|
|
<view class="height50 width100 backcorfff" v-if="couponList.payType == 2 || couponList.payType==3 " |
|
|
|
@tap="paytype='jinbi'"> |
|
|
|
@tap="paytype='jinbi'"> |
|
|
|
<view class="width60 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> |
|
|
|
<view class="width60 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> |
|
|
|
积分支付<text class="font14 fcor666 margle">可用金币: {{user.gold}}</text> |
|
|
|
积分支付<text class="font14 fcor666 margle">可用积分: {{user.gold}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width30 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
<view class="width30 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
style="align-items: center;"> |
|
|
|
style="align-items: center;"> |
|
|
@ -170,7 +170,8 @@ |
|
|
|
getUserNormalDiscountList, |
|
|
|
getUserNormalDiscountList, |
|
|
|
bindUserPhone, |
|
|
|
bindUserPhone, |
|
|
|
orderToPay, |
|
|
|
orderToPay, |
|
|
|
orderToGoldPay |
|
|
|
orderToGoldPay, |
|
|
|
|
|
|
|
findUser |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
import wybPopup from '../../components/wyb-popup/wyb-popup.vue'; |
|
|
|
import wybPopup from '../../components/wyb-popup/wyb-popup.vue'; |
|
|
|
import ssPaymentPassword from '../../components/sanshui-payment-password' |
|
|
|
import ssPaymentPassword from '../../components/sanshui-payment-password' |
|
|
@ -211,12 +212,12 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.couponId = option.id; |
|
|
|
this.couponId = option.id; |
|
|
|
this.user = app.globalData.userInfo; |
|
|
|
|
|
|
|
this.getCouponById(); |
|
|
|
this.getCouponById(); |
|
|
|
this.getUserNormalDiscountList(); |
|
|
|
this.getUserNormalDiscountList(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
this.user = app.globalData.userInfo; |
|
|
|
this.user = app.globalData.userInfo; |
|
|
|
|
|
|
|
this.findUser(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onHide() { |
|
|
|
onHide() { |
|
|
|
|
|
|
|
|
|
|
@ -246,6 +247,20 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
//查询积分 |
|
|
|
|
|
|
|
findUser() { |
|
|
|
|
|
|
|
let params; |
|
|
|
|
|
|
|
findUser(params).then(res => { |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
app.globalData.userInfo = res.return_data; |
|
|
|
|
|
|
|
this.user = res.return_data; |
|
|
|
|
|
|
|
uni.setStorage({ |
|
|
|
|
|
|
|
key: "user", |
|
|
|
|
|
|
|
data: res.return_data |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
//查询卡券详情 |
|
|
|
//查询卡券详情 |
|
|
|
getCouponById() { |
|
|
|
getCouponById() { |
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|