Commit f9763f68 by liuquan

3.1.4

U:修改认证提示
U:修改支付按钮置灰问题
parent 54956fa4
......@@ -332,7 +332,7 @@ Page({
if (that.data.idType == 1) {
that.servicePay();
} else {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, (res) => {
switch (res) {
case 0:
if (that.data.phoneYes) {
......@@ -375,16 +375,10 @@ Page({
})
return;
case 6004:
wx.showModal({
title: '提示',
content: '每人当天最多认证三次',
showCancel: false,
})
return;
case 6005:
wx.showModal({
title: '提示',
content: '身份证和姓名不一致',
content: '每人当天最多认证三次',
showCancel: false,
})
return;
......
......@@ -27,7 +27,8 @@ Page({
value: '1'
},
],
isInvoice:0
isInvoice:0,//是否开具发票
isBtnAsh:true,//支付按钮置灰
},
/**
* 生命周期函数--监听页面加载
......@@ -318,7 +319,7 @@ Page({
applyPay: Util.debouce(function () {
let that = this;
that.setData({
agree: false
isBtnAsh: false
})
if (that.data.receiveAddress.id == undefined) {
wx.showToast({
......@@ -326,7 +327,7 @@ Page({
icon: 'none'
})
that.setData({
agree: true
isBtnAsh: true
})
return
}
......@@ -337,7 +338,7 @@ Page({
icon: 'none'
})
that.setData({
agree: true
isBtnAsh: true
})
return
}
......@@ -349,7 +350,7 @@ Page({
success(res) {
if (res.confirm) {
that.setData({
agree: true
isBtnAsh: true
})
wx.navigateTo({
url: "/packageA/editPatientInfo/editPatientInfo?item=" + JSON.stringify(that.data.item) + "&btid=1",
......@@ -358,7 +359,7 @@ Page({
}
})
that.setData({
agree: true
isBtnAsh: true
})
return;
}
......@@ -412,7 +413,7 @@ Page({
signType: 'MD5',
paySign: res.data.parameter.paySign,
success(res) {
console.log('res')
console.log("success",res);
if (res.errMsg && res.errMsg == "requestPayment:ok") {
console.log("requestPayment:ok")
wx.reLaunch({
......@@ -429,12 +430,13 @@ Page({
}
},
fail(res) {
console.log("fail",res);
wx.showToast({
title: '支付失败',
icon: 'none'
})
that.setData({
agree: true
isBtnAsh: true
})
that.data.main = true;
that.onShow();
......@@ -464,7 +466,7 @@ Page({
content: res.msg,
})
that.setData({
agree: true
isBtnAsh: true
})
return;
case 5:
......@@ -476,7 +478,7 @@ Page({
errList: res.data
})
that.setData({
agree: true
isBtnAsh: true
})
return;
}
......
......@@ -143,8 +143,8 @@
<text class="text">¥ </text>
<text>{{list.money}}</text>
</view>
<view wx:if='{{!agree}}' class="qzf1">立即支付</view>
<view wx:if='{{agree}}' class="qzf" bindtap="applyPay">立即支付</view>
<view wx:if='{{!agree||!isBtnAsh}}' class="qzf1">立即支付</view>
<view wx:if='{{agree&&isBtnAsh}}' class="qzf" bindtap="applyPay">立即支付</view>
</view>
</view>
<!-- <view class="btn" bindtap="applyPay">微信支付</view> -->
......
......@@ -271,7 +271,7 @@ Page({
this.data.weight = e.detail.value;
},
//保存
sava: Util.debouce(function() {
sava: Util.debouce(function () {
var that = this;
if (that.data.name == "") {
wx.showModal({
......@@ -481,29 +481,11 @@ Page({
case 6001:
case 6002:
case 6003:
wx.showModal({
title: '提示',
content: '服务器异常',
showCancel: false,
})
that.setData({
sava: true
})
return;
case 6004:
wx.showModal({
title: '提示',
content: '每人当天最多认证三次',
showCancel: false,
})
that.setData({
sava: true
})
return;
case 6005:
wx.showModal({
title: '提示',
content: '身份证和姓名不一致',
content: res.msg,
showCancel: false,
})
that.setData({
......
......@@ -7,7 +7,7 @@ Page({
reportRedD: false, //报告红点展示
reportRedNum: 0, //未作报告数量
disabled:true,//防止重复点击
version:'3.1.2',
version:'3.1.4',
isShow:false,
showClose:true,
},
......
......@@ -18,16 +18,15 @@ Page({
ishow: true,
paySuccess: false,
errshow: false,
items: [
{
name: '不需要',
value: '0'
},{
name: '需要',
value: '1'
},
],
isInvoice:0
items: [{
name: '不需要',
value: '0'
}, {
name: '需要',
value: '1'
}, ],
isInvoice: 0, //是否开具发票
isBtnAsh: true, //支付按钮置灰
},
/**
* 生命周期函数--监听页面加载
......@@ -229,10 +228,10 @@ Page({
* 是否需要开具纸质发票
* @param {*} e
*/
radioChange: function (e) {
this.setData({
isInvoice: e.detail.value,
})
radioChange: function (e) {
this.setData({
isInvoice: e.detail.value,
})
},
/**
* 拨打电话
......@@ -286,7 +285,7 @@ Page({
applyPay: Util.debouce(function () {
let that = this;
that.setData({
agree: false
isBtnAsh: false
})
if (that.data.receiveAddress.id == undefined) {
wx.showToast({
......@@ -294,7 +293,7 @@ Page({
icon: 'none'
})
that.setData({
agree: true
isBtnAsh: true
})
return
}
......@@ -305,7 +304,7 @@ Page({
icon: 'none'
})
that.setData({
agree: true
isBtnAsh: true
})
return
}
......@@ -317,7 +316,7 @@ Page({
success(res) {
if (res.confirm) {
that.setData({
agree: true
isBtnAsh: true
})
wx.navigateTo({
url: "/packageA/editPatientInfo/editPatientInfo?item=" + JSON.stringify(that.data.item) + "&btid=1",
......@@ -326,7 +325,7 @@ Page({
}
})
that.setData({
agree: true
isBtnAsh: true
})
return;
}
......@@ -402,7 +401,7 @@ Page({
icon: 'none'
})
that.setData({
agree: true
isBtnAsh: true
})
that.data.main = true;
that.onShow();
......@@ -432,7 +431,7 @@ Page({
content: res.msg,
})
that.setData({
agree: true
isBtnAsh: true
})
return;
case 5:
......@@ -444,7 +443,7 @@ Page({
errList: res.data
})
that.setData({
agree: true
isBtnAsh: true
})
return;
}
......
......@@ -139,8 +139,8 @@
<text class="text">¥ </text>
<text>{{list.money}}</text>
</view>
<view wx:if='{{!agree}}' class="qzf1">立即支付</view>
<view wx:if='{{agree}}' class="qzf" bindtap="applyPay">立即支付</view>
<view wx:if='{{!agree||!isBtnAsh}}' class="qzf1">立即支付</view>
<view wx:if='{{agree&&isBtnAsh}}' class="qzf" bindtap="applyPay">立即支付</view>
</view>
</view>
<!-- <view class="btn" bindtap="applyPay">微信支付</view> -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment