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
{
"path": "pages/tabBar/home/home",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "首页",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none",
"subNVues": [{
"id": "homeTitleNvue", //
"path": "pages/tabBar/home/subNvue/homeTitleNvue", //
"type": "navigationBar"
}]
}
}
},{
"path": "pages/qianZhuPay/union-pay/union-pay",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "选择方式",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false
}
{
"path": "pages/tabBar/home/home",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "首页",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none",
"subNVues": [{
"id": "homeTitleNvue", //
"path": "pages/tabBar/home/subNvue/homeTitleNvue", //
"type": "navigationBar"
}]
}
}
}, {
"path": "pages/qianZhuPay/union-pay/union-pay",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "选择方式",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false
}
}, {
"path": "pages/user/bindingCardList/bindingCardList",
"style": {
@ -632,10 +632,20 @@
}, {
"path": "trade-union-recharge/trade-union-recharge",
"style": {
"navigationBarTitleText": "工会卡充值",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"navigationBarTitleText": "工会卡充值",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white"
}
}, {
"path": "union-card-success/union-card-success",
"style": {
"navigationBarTitleText": "充值成功",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white"
}

@ -104,7 +104,7 @@
unionCardPay() {
uni.navigateTo({
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,
imgadres: 'wxpay.png',
tongCardPrice: 0,
cardId: '' //
cardId: '', //
typevas: ''
};
},
onLoad(options) {
this.cardId = options.cardId;
this.typevas = options.RechargeType;
},
onShow() {
this.user = app.globalData.userInfo;
@ -136,7 +138,7 @@
// duration: 2000
// });
// return;
// }
// }
uni.showLoading({
title: '正在提交订单...'
})
@ -150,6 +152,7 @@
"goodsPrice": this.inputAmount
}]
}
let that = this;
addOrder(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
@ -180,7 +183,15 @@
duration: 2000,
success() {
setTimeout(() => {
uni.navigateBack({})
if (that.typevas == 'Hlt') {
uni.navigateTo({
url: '../union-card-success/union-card-success?price=' +
that
.inputAmount
})
} else {
uni.navigateBack({})
}
}, 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" />
</view>
</view>
</view>
</view>
<image src="../static/union5.jpg" class="width100 mart20 marb30" mode="widthFix"></image>
<view class="width100 height60"></view>
<view class="footer">
<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) {
uni.navigateTo({
url: '../../pages/login/updatePas/updatePas'
@ -437,7 +453,15 @@
return;
}
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) {
uni.navigateTo({
url: '../../pages/login/updatePas/updatePas'
@ -518,13 +542,19 @@
}
hltUnionCardPayUnion(params).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
uni.showToast({
title: '支付成功'
})
uni.switchTab({
url: '../../pages/tabBar/user/user'
})
if (res.return_code == '000000') {
uni.showToast({
icon: 'none',
title: '支付成功',
duration: 2000,
success() {
setTimeout(() => {
uni.switchTab({
url: '../../pages/tabBar/user/user'
})
}, 1000)
}
});
return;
}
if (res.return_code == '102130') {
@ -535,7 +565,8 @@
}
uni.showToast({
title: res.return_msg,
icon: 'none'
icon: 'none',
duration:2000
})
})

Loading…
Cancel
Save