1.修改话费充值 图片

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

@ -1,33 +1,33 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/tabBar/home/home", "path": "pages/tabBar/home/home",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationBarBackgroundColor": "#0083f5", "navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5", "backgroundColorTop": "#0083f5",
"onReachBottomDistance": 50, "onReachBottomDistance": 50,
"app-plus": { "app-plus": {
"titleNView": false, // "titleNView": false, //
"softinputNavBar": "none", "softinputNavBar": "none",
"subNVues": [{ "subNVues": [{
"id": "homeTitleNvue", // "id": "homeTitleNvue", //
"path": "pages/tabBar/home/subNvue/homeTitleNvue", // "path": "pages/tabBar/home/subNvue/homeTitleNvue", //
"type": "navigationBar" "type": "navigationBar"
}] }]
} }
} }
},{ }, {
"path": "pages/qianZhuPay/union-pay/union-pay", "path": "pages/qianZhuPay/union-pay/union-pay",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "选择方式", "navigationBarTitleText": "选择方式",
"navigationBarBackgroundColor": "#0083f5", "navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5", "backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { }, {
"path": "pages/user/bindingCardList/bindingCardList", "path": "pages/user/bindingCardList/bindingCardList",
"style": { "style": {
@ -632,10 +632,20 @@
}, { }, {
"path": "trade-union-recharge/trade-union-recharge", "path": "trade-union-recharge/trade-union-recharge",
"style": { "style": {
"navigationBarTitleText": "工会卡充值", "navigationBarTitleText": "工会卡充值",
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0083f5", "navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5", "backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white"
}
}, {
"path": "union-card-success/union-card-success",
"style": {
"navigationBarTitleText": "充值成功",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white" "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;
@ -136,7 +138,7 @@
// duration: 2000 // duration: 2000
// }); // });
// return; // return;
// } // }
uni.showLoading({ uni.showLoading({
title: '正在提交订单...' title: '正在提交订单...'
}) })
@ -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(() => {
uni.navigateBack({}) if (that.typevas == 'Hlt') {
uni.navigateTo({
url: '../union-card-success/union-card-success?price=' +
that
.inputAmount
})
} else {
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>

@ -80,7 +80,8 @@
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> <radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" />
</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">
@ -429,7 +430,22 @@
}) })
} }
}) })
} 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'
@ -437,7 +453,15 @@
return; return;
} }
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'
@ -518,13 +542,19 @@
} }
hltUnionCardPayUnion(params).then(res => { hltUnionCardPayUnion(params).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.showToast({ uni.showToast({
title: '支付成功' icon: 'none',
}) title: '支付成功',
uni.switchTab({ duration: 2000,
url: '../../pages/tabBar/user/user' success() {
}) setTimeout(() => {
uni.switchTab({
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