Commit cc2efe3f by wangzhihui

修复一轮bug

1 parent b557d85c
<view class="popup " hidden="{{!showPopup}}" catchtouchmove="noScroll">
<view class="popup " hidden="{{!showPopup}}">
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content {{close?'close':''}}" style="height:{{height}};background:{{bodyColor}}">
<block wx:if="{{title}}">
......
......@@ -336,11 +336,12 @@ Page({
} = this.data, {
item
} = this.options,
validateKeys = ['bankPhone', 'idCardNo']
validateKeys = ['bankPhone', 'idCardNo','bankNumber']
try {
validateKeys.map(e => {
if (e == 'bankPhone' && !methods.tel(formData[e])) throw '手机号'
if (e == 'idCardNo' && !methods.idcard(formData[e])) throw '身份证'
if (e == 'bankNumber' && !methods.digits(formData[e])) throw '银行账户'
})
} catch (error) {
return wx.p.wxApi.showToast(`请输入正确的${error}`)
......
......@@ -5,7 +5,7 @@ page {
.list {
padding: 24rpx 32rpx;
height:calc(100vh - 262rpx);
min-height:calc(100vh - 262rpx);
overflow-y: auto;
.item {
padding: 0 32rpx;
......@@ -61,7 +61,7 @@ page {
}
}
.btn-color {
position:fixed;
// position:fixed;
width: calc(100% - 308rpx);
height: 88rpx;
background: #FB8A32;
......@@ -71,6 +71,8 @@ page {
color: #FFFFFF;
letter-spacing: 0;
text-align: center;
bottom:164rpx;
// bottom:164rpx;
left:154rpx;
margin-left:154rpx;
}
\ No newline at end of file
......@@ -138,7 +138,7 @@ Page({
});
})
},
getScoreProfitListData() {
getScoreProfitListData(isFlag) {
let {
pageNum,
total,
......@@ -150,6 +150,7 @@ Page({
merchantId
}
} = this.data;
if(isFlag) pageNum=1
wx.p.api.withdrawalApi.getScoreProfitList({
staffPhone: phone,
merchantId,
......@@ -160,8 +161,9 @@ Page({
let data, tempList;
if (res.code == 0) {
data = res.data?.list ? res.data?.list : []
tempList = [...scoreList, ...data];
tempList =[...scoreList, ...data];
this.setData({
pageNum,
scoreList: pageNum == 1 ? data : tempList,
total: res.data.total,
triggered: false,
......@@ -257,7 +259,7 @@ Page({
onShow() {
if (this.refresh) {
this.searchScoreSummaryData()
this.getScoreProfitListData()
this.getScoreProfitListData(true)
}
},
......
......@@ -115,6 +115,11 @@ Page({
this.setData({
showBank: true
})
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
},
bindPickerChange(e) {
let bankInfo = e.detail
......@@ -122,6 +127,11 @@ Page({
bankInfo,
showBank: false
}, () => {
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
this.checkbankConfig()
this.getAgreementUrl()
})
......
......@@ -21,7 +21,7 @@
<block wx:if="{{i.status == 4&&i.failReason}}">
<view class="type flex">
<view class="failReason">{{i.failReason}} </view>
<glsx-image mode="widthFix" class="error-icon" bind:tap="toastError" data-reason="{{i.failReason}}" src="/bankAccount/error-icon.png" />
<glsx-image mode="widthFix" class="error-icon" bind:tap="toastError" data-reason="{{i.failReason}}" src="bankAccount/error-icon.png" />
</view>
</block>
<block wx:else>
......
......@@ -31,6 +31,11 @@ Component({
this.setData({
isShowExpressSelector: true,
});
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
},
onSubmitLogistics() {
......@@ -86,6 +91,11 @@ Component({
this.setData({
isShowExpressSelector: false,
});
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
// const { expressList } = this.data;
// const expressListUpdated = expressList.map((item) => {
// if (item.value == e.detail.value) {
......
......@@ -34,12 +34,22 @@ Component({
this.setData({
showPopup: true,
});
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
},
onConfirmPopup() {
this.setData({
showPopup: false,
});
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
this.triggerEvent("confirmpopup");
},
......
......@@ -84,5 +84,6 @@ Page({
this.setData({
isShowExpressPop: true,
});
},
});
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!