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