1.优化话费充值问题

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

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

@ -166,7 +166,7 @@
<view class="width20 fotrt">
<view>
<radio color="#0083f5"
v-if="items.discountCondition && orderPrice > items.discountCondition"
v-if="items.discountCondition && orderPrice >= items.discountCondition"
:checked="items.id == memDiscountId" />
<radio color="#0083f5"
v-if="items.discountCondition && orderPrice < items.discountCondition" disabled="true"
@ -245,7 +245,7 @@
};
},
onLoad(options) {
this.orderPrice = options.orderPrice;
this.orderPrice = options.orderPrice;
this.payPrice = options.payPrice;
this.saveprice = options.payPrice;
this.rechargeContent = options.rechargeContent;
@ -378,8 +378,8 @@
} else { //
this.memDiscountId = item.id;
if (item.discountType == 1) {
//
if (this.orderPrice > item.discountCondition) {
//
if (this.orderPrice >= item.discountCondition) {
this.memDiscountId = item.id;
//
this.deductionPrice = item.discountPrice;

Loading…
Cancel
Save