1.优化话费充值问题

master
杨杰 2 years ago
parent 5c9bf2a986
commit 0554e4591e
  1. 20
      subPages/recharge-centre/recharge-centre.vue
  2. 4
      subPages/unionComfirmation/unionComfirmation.vue

@ -266,6 +266,10 @@
this.explainReceiptTime = this.tabs[this.swiperTabIdx].explain_receipt_time; this.explainReceiptTime = this.tabs[this.swiperTabIdx].explain_receipt_time;
this.amountList = this.tabs[this.swiperTabIdx].priceList; this.amountList = this.tabs[this.swiperTabIdx].priceList;
this.amoutType = this.tabs[this.swiperTabIdx].id; this.amoutType = this.tabs[this.swiperTabIdx].id;
this.inputAmount = '';
this.price = '';
this.inputAmountId = '';
this.amoutstatus = '';
}, },
// //
SwiperChange: function(e) { SwiperChange: function(e) {
@ -274,6 +278,10 @@
this.explainReceiptTime = this.tabs[this.swiperTabIdx].explain_receipt_time; this.explainReceiptTime = this.tabs[this.swiperTabIdx].explain_receipt_time;
this.amountList = this.tabs[this.swiperTabIdx].priceList; this.amountList = this.tabs[this.swiperTabIdx].priceList;
this.amoutType = this.tabs[this.swiperTabIdx].id; this.amoutType = this.tabs[this.swiperTabIdx].id;
this.inputAmount = '';
this.price = '';
this.inputAmountId = '';
this.amoutstatus = '';
}, },
/** /**
* 提交订单 * 提交订单
@ -312,9 +320,19 @@
}); });
return false; return false;
} }
let cztype = '';
if (that.swiperTabIdx == 0) {
cztype = '中国电信'
}
if (that.swiperTabIdx == 1) {
cztype = '中国移动'
}
if (that.swiperTabIdx == 2) {
cztype = '中国联通'
}
uni.showModal({ uni.showModal({
title: '请确认充值号码', title: '请确认充值号码',
content: '充值号码 : ' + that.inputPhone + ',充值成功后无法退款', content: cztype + ' : ' + that.inputPhone + ',充值金额 : ' + that.inputAmount + '元,充值成功后无法退款',
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
uni.navigateTo({ uni.navigateTo({

@ -166,7 +166,7 @@
<view class="width20 fotrt"> <view class="width20 fotrt">
<view> <view>
<radio color="#0083f5" <radio color="#0083f5"
v-if="items.discountCondition && orderPrice > items.discountCondition" v-if="items.discountCondition && orderPrice >= items.discountCondition"
:checked="items.id == memDiscountId" /> :checked="items.id == memDiscountId" />
<radio color="#0083f5" <radio color="#0083f5"
v-if="items.discountCondition && orderPrice < items.discountCondition" disabled="true" v-if="items.discountCondition && orderPrice < items.discountCondition" disabled="true"
@ -379,7 +379,7 @@
this.memDiscountId = item.id; this.memDiscountId = item.id;
if (item.discountType == 1) { if (item.discountType == 1) {
// //
if (this.orderPrice > item.discountCondition) { if (this.orderPrice >= item.discountCondition) {
this.memDiscountId = item.id; this.memDiscountId = item.id;
// //
this.deductionPrice = item.discountPrice; this.deductionPrice = item.discountPrice;

Loading…
Cancel
Save