1.修改支付提示

yj-dev
杨杰 3 years ago
parent 2bf301f464
commit d87aedc99e
  1. 4
      components/sanshui-modal/index.vue
  2. 8
      components/sanshui-payment-password/index.vue
  3. 2
      pages.json
  4. 22
      pages/order/confirmation.vue
  5. 8
      pages/pay/payment/payment.vue
  6. 45
      pages/tabBar/user/user.vue
  7. 14
      pages/user/bindingCard/bindingCard.vue
  8. 2
      pages/user/unionCard/unionCard.vue

@ -94,8 +94,8 @@
box-sizing: border-box; box-sizing: border-box;
opacity: 0; opacity: 0;
position: fixed; position: fixed;
top: 44px; top: 0px;
bottom: 50px; bottom: 0px;
left: 0; left: 0;
width: 100%; width: 100%;
pointer-events: none; pointer-events: none;

@ -331,11 +331,11 @@
} }
}, },
checkSafePwd(type) { checkSafePwd(type) {
uni.showLoading({ // uni.showLoading({
title: '校验安全密码中' // title: ''
}); // });
setTimeout(() => {//ajaxemit setTimeout(() => {//ajaxemit
uni.hideLoading(); // uni.hideLoading();
let response = {// let response = {//
code: 1, code: 1,
msg: '密码正确' msg: '密码正确'

@ -497,7 +497,7 @@
"path" : "pages/user/bindingCard/bindingCard", "path" : "pages/user/bindingCard/bindingCard",
"style" : "style" :
{ {
"navigationBarTitleText": "定卡号", "navigationBarTitleText": "绑定定卡号",
"navigationBarBackgroundColor": "#0083f5", "navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5", "backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",

@ -118,7 +118,7 @@
</view> </view>
<view class="width100 height60"></view> <view class="width100 height60"></view>
<view class="footer" v-if="isture"> <view class="footer">
<view class="settlement"> <view class="settlement">
<view class="sum">实付:<view class="money" v-if="couponList.payType == 1">{{paytheprice}}</view> <view class="sum">实付:<view class="money" v-if="couponList.payType == 1">{{paytheprice}}</view>
<view class="money aliitem" v-else> <view class="money aliitem" v-else>
@ -154,7 +154,7 @@
</view> </view>
</view> </view>
</wybPopup> </wybPopup>
<ssPaymentPassword ref="paymentPassword" :mode="1" @submit="submitHandle" /> <ssPaymentPassword ref="paymentPassword" :mode="1" @submit="submitHandle"/>
</view> </view>
</template> </template>
@ -202,7 +202,6 @@
user: '', user: '',
paytype: '', paytype: '',
PaymentPassword: '', PaymentPassword: '',
isture: true,
orderId: '', orderId: '',
jumpType: '', jumpType: '',
tongCardPrice: 0, tongCardPrice: 0,
@ -498,9 +497,14 @@
}) })
return; return;
} }
that.isture = false;
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
} else if (that.paytype == 'gonghuika') { } else if (that.paytype == 'gonghuika') {
if (!that.user.isSetPayPwd) {
uni.navigateTo({
url: '../login/updatePas/updatePas'
})
return;
}
if (!that.user.isSetHltCard) { if (!that.user.isSetHltCard) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
@ -516,7 +520,6 @@
}); });
return; return;
} }
that.isture = false;
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
} else { } else {
uni.showToast({ uni.showToast({
@ -528,7 +531,14 @@
}, },
submitHandle(e) { submitHandle(e) {
this.PaymentPassword = e.value; this.PaymentPassword = e.value;
this.isture = true; if(this.PaymentPassword == ''){
uni.showToast({
title: '请勿手动关闭弹窗',
icon: 'none',
duration: 2000
})
return;
}
uni.showLoading({ uni.showLoading({
title: '支付中...' title: '支付中...'
}) })

@ -103,7 +103,6 @@
this.pryType = e.paytype; this.pryType = e.paytype;
this.orderNo = e.orderId; this.orderNo = e.orderId;
this.couponId = e.couponId; this.couponId = e.couponId;
this.user = app.globalData.userInfo;
this.jumpType = e.typeaout; this.jumpType = e.typeaout;
if (this.pryType == 1) { if (this.pryType == 1) {
this.paytype = 'wxpay'; this.paytype = 'wxpay';
@ -116,6 +115,7 @@
}, },
onShow() { onShow() {
let that = this; let that = this;
that.user = app.globalData.userInfo;
uni.getStorage({ uni.getStorage({
key: 'balanceCardNo', key: 'balanceCardNo',
success(e) { success(e) {
@ -222,6 +222,12 @@
} }
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
} else if (that.paytype == 'gonghuika') { } else if (that.paytype == 'gonghuika') {
if (!that.user.isSetPayPwd) {
uni.navigateTo({
url: '../../login/updatePas/updatePas'
})
return;
}
if (!that.user.isSetHltCard) { if (!that.user.isSetHltCard) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',

@ -209,24 +209,7 @@
// } // }
], ],
// //
czList: [ czList: '',
// {
// url: '../../user/bindingCardList/bindingCardList',
// text: '',
// img: '../../../static/img/pas.png'
// },
{
url: '../../user/unionCard/unionCard',
text: '工会卡',
img: '../../../static/img/ghk.png'
},
{
url: '../../login/updatePas/resetPas',
text: '修改密码',
img: '../../../static/img/pas.png'
},
],
} }
}, },
//page.json "enablePullDownRefresh": true //page.json "enablePullDownRefresh": true
@ -261,6 +244,32 @@
if (app.globalData.userInfo) { if (app.globalData.userInfo) {
this.findUser(); this.findUser();
} }
if (!app.globalData.userInfo.isSetPayPwd) {
this.czList = [{
url: '../../user/unionCard/unionCard',
text: '工会卡',
img: '../../../static/img/ghk.png'
},
{
url: '../../login/updatePas/updatePas',
text: '设置密码',
img: '../../../static/img/pas.png'
},
]
return;
}
this.czList = [{
url: '../../user/unionCard/unionCard',
text: '工会卡',
img: '../../../static/img/ghk.png'
},
{
url: '../../login/updatePas/resetPas',
text: '修改密码',
img: '../../../static/img/pas.png'
},
]
}, },
methods: { methods: {
findUser() { findUser() {

@ -109,8 +109,8 @@
getHuiLianTongCardByCardNo(params).then(res => { getHuiLianTongCardByCardNo(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.phoneNumber = res.return_data.userMobile; // this.phoneNumber = res.return_data.userMobile;
// this.phoneNumber = 15583658692; this.phoneNumber = 15583658692;
this.disStute = true this.disStute = true
} else { } else {
uni.showToast({ uni.showToast({
@ -153,6 +153,16 @@
key: "balanceCardNo", key: "balanceCardNo",
data: this.cardNoNumber data: this.cardNoNumber
}) })
app.globalData.userInfo = res.return_data
.object
.highUser;
app.globalData.token = res.return_data.uniqueCode;
uni.setStorage({
key: "user",
data: res.return_data
.object
.highUser
})
uni.showToast({ uni.showToast({
title: '绑定成功', title: '绑定成功',
icon: "success", icon: "success",

@ -234,7 +234,7 @@
this.cardConsumeList = []; this.cardConsumeList = [];
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
title:'请求超时稍后重试!', title:res.return_msg,
icon:'none', icon:'none',
duration: 2000 duration: 2000
}) })

Loading…
Cancel
Save