1.修改话费充值 图片

2.修改工会卡充值 跳转成功页面
yj-dev
杨杰 3 years ago
parent fdf8ea2188
commit 8bfdb6d1c2
  1. 12
      pages.json
  2. 2
      pages/user/cardDes/cardDes.vue
  3. BIN
      subPages/static/union5.jpg
  4. BIN
      subPages/static/upay3.jpg
  5. 13
      subPages/trade-union-recharge/trade-union-recharge.vue
  6. 34
      subPages/union-card-success/union-card-success.vue
  7. 37
      subPages/unionComfirmation/unionComfirmation.vue

@ -18,7 +18,7 @@
}] }]
} }
} }
},{ }, {
"path": "pages/qianZhuPay/union-pay/union-pay", "path": "pages/qianZhuPay/union-pay/union-pay",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
@ -639,6 +639,16 @@
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, {
"path": "union-card-success/union-card-success",
"style": {
"navigationBarTitleText": "充值成功",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white"
}
} }
] ]
}], }],

@ -104,7 +104,7 @@
unionCardPay() { unionCardPay() {
uni.navigateTo({ uni.navigateTo({
url: '../../../subPages/trade-union-recharge/trade-union-recharge?cardId=' + this.user url: '../../../subPages/trade-union-recharge/trade-union-recharge?cardId=' + this.user
.hltCardNo.cardNo .hltCardNo.cardNo + '&RechargeType=1'
}) })
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 140 KiB

@ -83,11 +83,13 @@
imagewxUrl: app.globalData.imageWxImg, imagewxUrl: app.globalData.imageWxImg,
imgadres: 'wxpay.png', imgadres: 'wxpay.png',
tongCardPrice: 0, tongCardPrice: 0,
cardId: '' // cardId: '', //
typevas: ''
}; };
}, },
onLoad(options) { onLoad(options) {
this.cardId = options.cardId; this.cardId = options.cardId;
this.typevas = options.RechargeType;
}, },
onShow() { onShow() {
this.user = app.globalData.userInfo; this.user = app.globalData.userInfo;
@ -150,6 +152,7 @@
"goodsPrice": this.inputAmount "goodsPrice": this.inputAmount
}] }]
} }
let that = this;
addOrder(datas).then(res => { addOrder(datas).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
@ -180,7 +183,15 @@
duration: 2000, duration: 2000,
success() { success() {
setTimeout(() => { setTimeout(() => {
if (that.typevas == 'Hlt') {
uni.navigateTo({
url: '../union-card-success/union-card-success?price=' +
that
.inputAmount
})
} else {
uni.navigateBack({}) uni.navigateBack({})
}
}, 1000) }, 1000)
} }
}); });

@ -0,0 +1,34 @@
<template>
<view>
<image src="../static/coupsucces.png" mode="widthFix" class="sucimg mart40"></image>
<view class="width90 clor4cd964 mart30 font18 fotct">支付成功</view>
<view class="width90 fcor333 mart30 font48 fotct">¥ {{sucprice}}</view>
</view>
</template>
<script>
export default {
data() {
return {
sucprice:''
}
},
onLoad(options) {
this.sucprice = options.price;
},
methods: {
}
}
</script>
<style lang="less">
.sucimg {
width: 20%;
margin-left: 40%;
}
.clor4cd964 {
color: #76b554;
}
</style>

@ -81,6 +81,7 @@
</view> </view>
</view> </view>
</view> </view>
<image src="../static/union5.jpg" class="width100 mart20 marb30" mode="widthFix"></image>
<view class="width100 height60"></view> <view class="width100 height60"></view>
<view class="footer"> <view class="footer">
<view class="settlement"> <view class="settlement">
@ -430,6 +431,21 @@
} }
}) })
} else if (that.paytype == 'jinbi') { } else if (that.paytype == 'jinbi') {
if (that.user.gold < that.payPrice * 100) {
uni.showToast({
icon: 'none',
title: '积分不足',
duration: 2000,
success() {
setTimeout(() => {
uni.navigateTo({
url: '../../pages/user/deposit/deposit'
})
}, 1000)
}
});
return;
}
if (!that.user.isSetPayPwd) { if (!that.user.isSetPayPwd) {
uni.navigateTo({ uni.navigateTo({
url: '../../pages/login/updatePas/updatePas' url: '../../pages/login/updatePas/updatePas'
@ -438,6 +454,14 @@
} }
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
} else if (that.paytype == 'gonghuika') { } else if (that.paytype == 'gonghuika') {
if (that.tongCardPrice < that.payPrice) {
uni.showToast({
icon: 'none',
title: '工会卡余额不足',
duration: 2000,
});
return;
}
if (!that.user.isSetPayPwd) { if (!that.user.isSetPayPwd) {
uni.navigateTo({ uni.navigateTo({
url: '../../pages/login/updatePas/updatePas' url: '../../pages/login/updatePas/updatePas'
@ -520,11 +544,17 @@
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.showToast({ uni.showToast({
title: '支付成功' icon: 'none',
}) title: '支付成功',
duration: 2000,
success() {
setTimeout(() => {
uni.switchTab({ uni.switchTab({
url: '../../pages/tabBar/user/user' url: '../../pages/tabBar/user/user'
}) })
}, 1000)
}
});
return; return;
} }
if (res.return_code == '102130') { if (res.return_code == '102130') {
@ -535,7 +565,8 @@
} }
uni.showToast({ uni.showToast({
title: res.return_msg, title: res.return_msg,
icon: 'none' icon: 'none',
duration:2000
}) })
}) })

Loading…
Cancel
Save