1.删除无用的方法

2.新增快充入口
yj-dev
杨杰 3 years ago
parent b31f21855c
commit 8f606ffd1c
  1. 6
      subPages/Phone-recharge-details/Phone-recharge-details.vue
  2. 171
      subPages/recharge-centre/recharge-centre.vue
  3. BIN
      subPages/static/upay3.jpg
  4. 23
      subPages/unionComfirmation/unionComfirmation.vue
  5. 2
      subPages/unionPay-orderList/unionPay-orderList.vue

@ -32,15 +32,15 @@
</view> </view>
<view class="width90 mart15 height22"> <view class="width90 mart15 height22">
<view class="flleft fcor333 width50 font15">订单总额</view> <view class="flleft fcor333 width50 font15">订单总额</view>
<view class="flright fcor666 width50 fotrt font13">{{phoneorderdes.orderPrice}}</view> <view class="flright fcor666 width50 fotrt font13">{{phoneorderdes.orderPrice == null ? '0': phoneorderdes.orderPrice}}</view>
</view> </view>
<view class="width90 mart15 height22"> <view class="width90 mart15 height22">
<view class="flleft fcor333 width50 font15">优惠</view> <view class="flleft fcor333 width50 font15">优惠</view>
<view class="flright fcor666 width50 fotrt font13">{{phoneorderdes.deductionPrice}}</view> <view class="flright fcor666 width50 fotrt font13">{{phoneorderdes.deductionPrice == null ? '0': phoneorderdes.deductionPrice}}</view>
</view> </view>
<view class="width90 mart15 height22"> <view class="width90 mart15 height22">
<view class="flleft fcor333 width50 font15">实际支付金额</view> <view class="flleft fcor333 width50 font15">实际支付金额</view>
<view class="flright fcor666 width50 fotrt font13">{{phoneorderdes.payRealPrice}}</view> <view class="flright fcor666 width50 fotrt font13">{{phoneorderdes.payRealPrice == null ? '0': phoneorderdes.payRealPrice}}</view>
</view> </view>
<view class="width100 height90"></view> <view class="width100 height90"></view>
<button class="coupne-btn width100" @click="toUser">个人中心</button> <button class="coupne-btn width100" @click="toUser">个人中心</button>

@ -3,13 +3,18 @@
<view class="width100 height100p backcorf06"> <view class="width100 height100p backcorf06">
<view class="block"> <view class="block">
<view class="content height60"> <view class="content height60">
<input type="number" class="my flleft font18 fcorfff" placeholder-style="color:#ffffff;" <input type="number" class="my flleft font18 fcorfff" maxlength="11" placeholder-style="color:#ffffff;"
placeholder="请输入充值号码" v-model="inputPhone" /> placeholder="请输入充值号码" v-model="inputPhone" />
</view> </view>
<view class="line1 width100 backcorfff"></view> <view class="line1 width100 backcorfff"></view>
</view> </view>
</view> </view>
<view class="width90 font16 fcor333 fontwig6 mart40"> <view class="mart5">
<QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change"
activeColor="#089bf5" lineColor="#089bf5" minWidth="374">
</QSTabs>
</view>
<view class="width90 font16 fcor333 fontwig6 mart20">
选择金额 选择金额
</view> </view>
<view class="list"> <view class="list">
@ -20,42 +25,82 @@
</view> </view>
</view> </view>
<view class="mart5 width90 font18 fcor333 fontwig6"> <view class="mart5 width90 font18 fcor333 fontwig6">
话费充值温馨提示 充值说明
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">1:</view>
<view style="margin-left: 5%;">慢充话费与营业厅充值一样只是到账时间稍长充值过程中可能出现分批到账的情况但是总金额不会少请耐心等待</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">2:</view>
<view style="margin-left: 5%;">此业务为话费慢充日常72小时内到账如遇月初月末高峰期或系统更新到账时间会有一定延迟敬请谅解急单勿拍</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">3:</view>
<view style="margin-left: 5%;">目前仅支持(移动联通电信三网号段)
运营商黑名单号码(长期欠费或非实名制认证)携号转网空号虚拟卡如165.167.170.171.162等等虚拟号段副卡号码或做过某些特殊套餐绑定的卡暂不支持充值请勿下单</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">4:</view>
<view style="margin-left: 5%;">停机号码需要额外补缴欠费后慢充话费才能到账<text
class="fcoreb5">此服务为虚拟充值类服务无特殊情况不支持退款下单前请确认充值的号码无误</text></view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">5:</view>
<view style="margin-left: 5%;">空号错号充值后不支持退款请您务必核对确认号码无误后再进行充值非空号欠费可充欠费1个月导致空号的不能充值损失自负无法退款</view>
</view> </view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;"> <view v-if="current == 0">
<view style="width: 5%;" class="flleft">6:</view> <view class="mart5 width80 font14 fcoreb5 fontwig6" style="list-style-type: decimal;">
<view style="margin-left: 5%;"><text <view style="width: 5%;" class="flleft">1:</view>
class="fcoreb5">本充值业务不提供发票</text>如需发票请在运营商手机客户端储开取电子发票也可以凭身份证到运营商实体营业厅打印发票</view> <view style="margin-left: 5%;">此业务为话费慢充日常72小时内到账如遇月初月末运营商高峰期或系统更新到账时间会有一定延迟敬请谅解充值失败后系统会自动为您退款至原账户急单请选择6小时到账充值端口感谢您的支持
</view> </view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;"> </view>
<view style="width: 5%;" class="flleft">7:</view> <view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="margin-left: 5%;">如遇系统维护充值失败将72小时后原路退款到付款账户 </view> <view style="width: 5%;" class="flleft">2:</view>
<view style="margin-left: 5%;">慢充话费与营业厅充值一样只是到账时间稍长充值过程中可能出现分批到账的情况但是总金额不会少请耐心等待</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">3:</view>
<view style="margin-left: 5%;">
目前仅支持(移动联通电信三网号段)运营商黑名单号码(长期欠费或非实名制认证)携号转网空号虚拟卡(如165167170171162等等虚拟号段)副卡号码或做过某些特殊套餐绑定的卡暂不支持充值请勿下单
</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">4:</view>
<view style="margin-left: 5%;">停机号码需要额外补缴欠费后慢充话费才能到账<text
class="fcoreb5">此服务为虚拟充值类服务无特殊情况不支持退款下单前请确认充值的号码无误</text></view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">5:</view>
<view style="margin-left: 5%;">空号错号充值后不支持退款请您务必核对确认号码无误后再进行充值非空号欠费可充欠费1个月导致空号的不能充值损失自负无法退款
</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">6:</view>
<view style="margin-left: 5%;"><text
class="fcoreb5">本充值业务不提供发票</text>如需发票请在运营商手机客户端储开取电子发票也可以凭身份证到运营商实体营业厅打印发票</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">7:</view>
<view style="margin-left: 5%;">如遇系统维护充值失败将72小时后原路退款到付款账户 </view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6 marb40" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">8:</view>
<view style="margin-left: 5%;">请登录所属运营商app手机营业厅查看充值号码的到账情况如金额有出入或未到账请截图充值记录明细反馈给客服录明细反馈给客服</view>
</view>
</view> </view>
<view class="mart5 width80 font14 fcor999 fontwig6 marb40" style="list-style-type: decimal;"> <view v-if="current == 1">
<view style="width: 5%;" class="flleft">8:</view> <view class="mart5 width80 font14 fcoreb5 fontwig6" style="list-style-type: decimal;">
<view style="margin-left: 5%;">请登录所属运营商app手机营业厅查看充值号码的到账情况如金额有出入或未到账请截图充值记录明细反馈给客服</view> <view style="width: 5%;" class="flleft">1:</view>
<view style="margin-left: 5%;">充值后6小时内到账请耐心等待如遇月初月末运营商充值压力大充值失败后系统会为您自动再提交一次如二次充值仍然失败系统将会自动为您退款至原账户请悉知
</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">2:</view>
<view style="margin-left: 5%;">
目前仅支持(移动联通电信三网号段)运营商黑名单号码(长期欠费或非实名制认证)携号转网空号虚拟卡(如165167170171162等等虚拟号段)副卡号码或做过某些特殊套餐绑定的卡暂不支持充值请勿下单
</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">3:</view>
<view style="margin-left: 5%;">停机号码需要额外补缴欠费后慢充话费才能到账此服务为虚拟充值类服务无特殊情况不支持退款下单前请确认充值的号码无误</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">4:</view>
<view style="margin-left: 5%;">空号错号充值后不支持退款请您务必核对确认号码无误后再进行充值非空号欠费可充欠费1个月导致空号的不能充值损失自负无法退款</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">5:</view>
<view style="margin-left: 5%;"><text
class="fcoreb5">本充值业务不提供发票</text>如需发票请在运营商手机客户端储开取电子发票也可以凭身份证到运营商实体营业厅打印发票</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">6:</view>
<view style="margin-left: 5%;">如遇系统维护充值失败将72小时后原路退款到付款账户
</view>
</view>
<view class="mart5 width80 font14 fcor999 fontwig6" style="list-style-type: decimal;">
<view style="width: 5%;" class="flleft">7:</view>
<view style="margin-left: 5%;">请登录所属运营商app(手机营业厅)查看充值号码的到账情况如金额有出入或未到账请截图充值记录明细反馈给客服录明细反馈给客服</view>
</view>
</view> </view>
<view class="height100p"></view> <view class="height100p"></view>
<view class="bombtn width94 font16"> <view class="bombtn width94 font16">
@ -70,12 +115,16 @@
var jweixin = require('jweixin-module'); var jweixin = require('jweixin-module');
// #endif // #endif
let app = getApp(); let app = getApp();
import QSTabs from '../../components/QS-tabs/QS-tabs.vue';
import { import {
getListOutRechargePrice, getListOutRechargePrice,
addOrderPay, addOrderPay,
orderToUNionPay orderToUNionPay
} from '../../Utils/Api.js'; } from '../../Utils/Api.js';
export default { export default {
components: {
QSTabs
},
data() { data() {
return { return {
typeId: '', typeId: '',
@ -86,7 +135,10 @@
codesVlues: '', codesVlues: '',
amountList: [], amountList: [],
price: '', price: '',
amoutstatus:'' amoutstatus: '',
tabs: ["72小时到账", "6小时到账"], //
current: 0, //
swiperCurrent: 2
} }
}, },
onLoad(options) { onLoad(options) {
@ -115,8 +167,6 @@
this.getListOutRechargePrice(3); this.getListOutRechargePrice(3);
return; return;
} }
}, },
methods: { methods: {
select(amoutinfos) { select(amoutinfos) {
@ -125,7 +175,21 @@
this.inputAmountId = amoutinfos.id; this.inputAmountId = amoutinfos.id;
this.amoutstatus = amoutinfos.status; this.amoutstatus = amoutinfos.status;
}, },
//
change(index) {
this.$refs.tabs.setFinishCurrent(index);
this.current = index;
this.inputAmount = '';
this.inputAmountId = '';
this.amoutstatus = '';
if (index == 0) {
this.swiperCurrent = 2;
this.getListOutRechargePrice(this.amoutType);
} else {
this.swiperCurrent = 1;
this.getListOutRechargePrice(this.amoutType);
}
},
/** /**
* 查询价格 * 查询价格
*/ */
@ -133,7 +197,7 @@
uni.showLoading({ uni.showLoading({
title: '加载中...' title: '加载中...'
}) })
let showType; let showType;
// #ifdef H5 // #ifdef H5
showType = 2; showType = 2;
// #endif // #endif
@ -143,12 +207,15 @@
let params = { let params = {
type: item, type: item,
regionId: app.globalData.cityId, regionId: app.globalData.cityId,
showType: showType showType: showType,
rechargeType: this.swiperCurrent
} }
getListOutRechargePrice(params).then(res => { getListOutRechargePrice(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.return_code == '000000') { if (res.return_code == '000000' && res.return_data) {
this.amountList = res.return_data; this.amountList = res.return_data;
} else {
this.amountList = [];
} }
}) })
}, },
@ -158,10 +225,10 @@
*/ */
addOrderPay() { addOrderPay() {
let that = this; let that = this;
if(that.amoutstatus == 2){ if (that.amoutstatus == 2) {
uni.showToast({ uni.showToast({
title: '当前面值已售空', title: '当前面值已售空',
duration:2000, duration: 2000,
icon: "none" icon: "none"
}); });
return; return;
@ -169,7 +236,15 @@
if (that.inputPhone == '') { if (that.inputPhone == '') {
uni.showToast({ uni.showToast({
title: '请输入充值号码', title: '请输入充值号码',
duration:2000, duration: 2000,
icon: "none"
});
return;
}
if (that.inputPhone.length != 11) {
uni.showToast({
title: '请输入正确充值号码',
duration: 2000,
icon: "none" icon: "none"
}); });
return; return;
@ -177,7 +252,7 @@
if (that.inputAmount == '') { if (that.inputAmount == '') {
uni.showToast({ uni.showToast({
title: '请选择价格', title: '请选择价格',
duration:2000, duration: 2000,
icon: "none" icon: "none"
}); });
return false; return false;
@ -199,7 +274,7 @@
url: '../unionComfirmation/unionComfirmation?orderPrice=' + that.price + url: '../unionComfirmation/unionComfirmation?orderPrice=' + that.price +
'&payPrice=' + that.inputAmount + '&rechargeContent=' + that.inputPhone + '&payPrice=' + that.inputAmount + '&rechargeContent=' + that.inputPhone +
'&rechargeModel=' + that.amoutType + '&agentKey=' + that.codesVlues + '&rechargeModel=' + that.amoutType + '&agentKey=' + that.codesVlues +
'&objectId=' + that.inputAmountId '&objectId=' + that.inputAmountId+'&rechargeType='+that.swiperCurrent
}) })
} }
}) })

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 153 KiB

@ -27,7 +27,7 @@
</view> </view>
<!-- #ifdef MP --> <!-- #ifdef MP -->
<view class="width94 line1 mart5 marb5"></view> <view class="width94 line1 mart5 marb5"></view>
<view class="height50 width100 backcorfff" @click="showPopup()"> <view class="height50 width100 backcorfff" v-if="reType == 2" @click="showPopup()">
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> <view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
优惠抵扣<text class="yhqky">{{OrderPreList.length}}张可用</text> 优惠抵扣<text class="yhqky">{{OrderPreList.length}}张可用</text>
</view> </view>
@ -181,7 +181,8 @@
rechargeModel: '', rechargeModel: '',
agentKey: '', agentKey: '',
objectId: '', objectId: '',
OrderPreList: [] OrderPreList: [],
reType:'' //
}; };
}, },
@ -193,6 +194,7 @@
this.rechargeModel = options.rechargeModel; this.rechargeModel = options.rechargeModel;
this.agentKey = options.agentKey; this.agentKey = options.agentKey;
this.objectId = options.objectId; this.objectId = options.objectId;
this.reType = options.rechargeType;
}, },
onShow() { onShow() {
let that = this; let that = this;
@ -544,17 +546,12 @@
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.showToast({ uni.showToast({
icon: 'none', title: '支付成功'
title: '支付成功', })
duration: 2000, uni.reLaunch({
success() { url: '../Phone-recharge-details/Phone-recharge-details?id=' +
setTimeout(() => { this.orderId
uni.switchTab({ })
url: '../../pages/tabBar/user/user'
})
}, 1000)
}
});
return; return;
} }
if (res.return_code == '102130') { if (res.return_code == '102130') {

@ -24,7 +24,7 @@
</view> </view>
<view class="width96 line1 mart10"></view> <view class="width96 line1 mart10"></view>
<view class="width96 height60 mart10" @click="jumpDetails(row.id)"> <view class="width96 height60 mart10">
<view class="width70 flleft fotlt "> <view class="width70 flleft fotlt ">
<view class="font16 fontwig6 text1 fcor333"> <view class="font16 fontwig6 text1 fcor333">
{{row.remarks}} {{row.remarks}}

Loading…
Cancel
Save