fix(voucher): 修改赠送金额显示为洗车金额并添加支付确认提示
在voucher页面中,将赠送金额的显示从"元"改为"洗车金额"以更准确描述赠送内容 在支付流程中添加确认提示框,提醒用户购买后不可退款
This commit is contained in:
@@ -121,10 +121,15 @@ Page({
|
|||||||
title: "请选择购买洗车金额~",
|
title: "请选择购买洗车金额~",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
}), !1;
|
}), !1;
|
||||||
this.isSubmit = !0, wx.showLoading({
|
var i = this;
|
||||||
|
wx.showModal({
|
||||||
|
title: "提示",
|
||||||
|
content: "购买洗车金额后不可退,请谨慎购买",
|
||||||
|
success: function (res) {
|
||||||
|
if (!res.confirm) return !1;
|
||||||
|
i.isSubmit = !0, wx.showLoading({
|
||||||
title: ""
|
title: ""
|
||||||
});
|
});
|
||||||
var i = this;
|
|
||||||
e.request('/miniprogram/recharge/create', {
|
e.request('/miniprogram/recharge/create', {
|
||||||
id: i.data.selectItemID
|
id: i.data.selectItemID
|
||||||
}, !0).then(function (t) {
|
}, !0).then(function (t) {
|
||||||
@@ -160,6 +165,8 @@ Page({
|
|||||||
}).catch(function (t) {
|
}).catch(function (t) {
|
||||||
wx.hideLoading(), i.isSubmit = !1;
|
wx.hideLoading(), i.isSubmit = !1;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
showprovision: function () {
|
showprovision: function () {
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
<view class="edition1-list">
|
<view class="edition1-list">
|
||||||
<view bindtap="selectItem" class="{{selectItemID==item.id?item.special?'edition1-item edition1-select active':'edition1-item active':item.special?'edition1-item edition1-select':'edition1-item'}}" data-id="{{item.id}}" wx:for="{{list}}" wx:key="index">
|
<view bindtap="selectItem" class="{{selectItemID==item.id?item.special?'edition1-item edition1-select active':'edition1-item active':item.special?'edition1-item edition1-select':'edition1-item'}}" data-id="{{item.id}}" wx:for="{{list}}" wx:key="index">
|
||||||
<view class="now">{{item.paymentamount}}元</view>
|
<view class="now">{{item.paymentamount}}元</view>
|
||||||
<view class="origin">赠送{{item.bonusamount*1}}元</view>
|
<view class="origin">赠送{{item.bonusamount*1}}洗车金额</view>
|
||||||
</view>
|
</view>
|
||||||
<view></view>
|
<view></view>
|
||||||
<view></view>
|
<view></view>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<view class="service-tel">
|
<view class="service-tel">
|
||||||
<!-- <view>=客服电话=</view>
|
<!-- <view>=客服电话=</view>
|
||||||
<view bindtap="callUs">{{tel}}</view> -->
|
<view bindtap="callUs">{{tel}}</view> -->
|
||||||
|
<!-- <button class="service-tel" open-type="contact" show-message-card="true">联系客服</button> -->
|
||||||
<button class="service-tel" open-type="contact" show-message-card="true">联系客服</button>
|
|
||||||
</view>
|
</view>
|
||||||
Reference in New Issue
Block a user