1.优化2.0话费问题

yj-dev
杨杰 2 years ago
parent f294dcc67f
commit 416f0a02c2
  1. 2
      pages/pay/success/success.vue
  2. 2
      subPages/recharge-centre/recharge-centre.vue
  3. 94
      subPages/trade-union-recharge/trade-union-recharge.vue

@ -73,7 +73,7 @@
<view class="mart20 fotct fcorred font15 marb20"
v-if="!couponDesInfo.couponInfo.reserveStatus && coupstus != 0 && couponDesInfo.couponInfo.couponSource != 3 && couponDesInfo.couponInfo.couponSource != 5">
请告知加油员用码商支付</view>
<view class="width90 mart20 fotct" v-if="couponDesInfo.couponInfo.reserveStatus">
<view class="width90 mart20 fotct" v-if="couponDesInfo.highUserCoupon.qrCodeImg">
<image class="coupon-qr" :src="imageUrl+'couponCode/'+couponDesInfo.highUserCoupon.qrCodeImg">
</image>
</view>

@ -170,7 +170,7 @@
// #endif
let params = {
operatorType: item,
regionId: app.globalData.cityId,
"companyId": app.globalData.companyId,
platformId: showType,
// rechargeType: this.swiperCurrent
}

@ -68,7 +68,7 @@
import {
create,
wechatPay,
getHuiLianTongCardBalance,
getHuiLianTongCardBalance,
getThirdPartyByDetail
} from "../../Utils/Api.js";
// #ifdef H5
@ -85,41 +85,41 @@
imgadres: 'wxpay.png',
tongCardPrice: 0,
cardId: '', //
typevas: '',
typevas: '',
paytypeList: [] //
};
},
onLoad(options) {
this.cardId = options.cardId;
this.typevas = options.RechargeType;
this.typevas = options.RechargeType;
},
onShow() {
this.user = app.globalData.userInfo;
this.user = app.globalData.userInfo;
this.getThirdPartyByDetail();
},
methods: {
select(amount) {
this.inputAmount = amount;
},
//
getThirdPartyByDetail() {
// #ifdef H5
this.showType = 2;
// #endif
// #ifdef MP
this.showType = 1;
// #endif
let datas = {
platformId: this.showType,
"companyId": app.globalData.companyId,
productType: 8
}
getThirdPartyByDetail(datas).then(res => {
if (res.return_code == '000000') {
this.paytypeList = res.return_data.productPayType.split(',');
this.paytypeList = this.paytypeList.slice(0, this.paytypeList.length - 1);
}
});
},
//
getThirdPartyByDetail() {
// #ifdef H5
this.showType = 2;
// #endif
// #ifdef MP
this.showType = 1;
// #endif
let datas = {
platformId: this.showType,
"companyId": app.globalData.companyId,
productType: 8
}
getThirdPartyByDetail(datas).then(res => {
if (res.return_code == '000000') {
this.paytypeList = res.return_data.productPayType.split(',');
this.paytypeList = this.paytypeList.slice(0, this.paytypeList.length - 1);
}
});
},
doDeposit() {
if (!this.cardId) {
@ -165,34 +165,34 @@
uni.showLoading({
title: '正在提交订单...'
})
let datas = {
"childOrderList": [{
"goodsId": app.globalData.userInfo.id,
"goodsPrice": this.inputAmount,
"goodsType": 8,
"saleCount": 1,
goodsSpecName:this.cardId
}]
}
let datas = {
"childOrderList": [{
"goodsId": app.globalData.userInfo.id,
"goodsPrice": this.inputAmount,
"goodsType": 8,
"saleCount": 1,
goodsSpecName: this.cardId
}]
}
let that = this;
create(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
///
// #ifdef H5
let params = {
"orderNo": res.return_data.orderNo,
"openId": app.globalData.openId,
"openIdType": 2
}
// #endif
///
// #ifdef H5
let params = {
"orderNo": res.return_data.orderNo,
"openId": app.globalData.openId,
"openIdType": 2
}
// #endif
// #ifdef MP
let params = {
"orderNo": res.return_data.orderNo,
"openId": app.globalData.openId,
"openId": app.globalData.openId,
"openIdType": 1
}
}
// #endif
wechatPay(params).then(res => {
if (res.return_code == '000000') {
@ -215,11 +215,11 @@
duration: 2000,
success() {
setTimeout(() => {
if (that.typevas == 'Hlt') {
if (that.typevas ==
'Hlt') {
uni.navigateTo({
url: '../union-card-success/union-card-success?price=' +
that
.inputAmount
that.inputAmount
})
} else {
uni.navigateBack({})

Loading…
Cancel
Save