Compare commits
No commits in common. "601439f3e67d1541704d77875187281ee48893c7" and "9e3da7951b91f98816031b984ed2a3caf9ea53ff" have entirely different histories.
601439f3e6
...
9e3da7951b
|
|
@ -78,20 +78,6 @@ module.exports = vm => {
|
|||
})
|
||||
}, 1500)
|
||||
} else if (data.code == 500) {
|
||||
if (['/member/api/member/get-info'].includes(response?.config?.url)) {
|
||||
uni.showToast({
|
||||
title: '登录失败',
|
||||
icon: 'none',
|
||||
duration: 800,
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/index',
|
||||
})
|
||||
}, 800)
|
||||
removeToken()
|
||||
return data
|
||||
}
|
||||
uni.$u.toast(data.msg)
|
||||
return data
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -131,13 +131,15 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
setDefaultDateRange() {
|
||||
const end = dayjs().subtract(1, 'day')
|
||||
const start = dayjs().subtract(15, 'day')
|
||||
this.startDate = start.format('YYYY-MM-DD')
|
||||
this.endDate = end.format('YYYY-MM-DD')
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
end.setDate(end.getDate() - 1)
|
||||
start.setDate(start.getDate() - 15) // 默认查询最近15天
|
||||
|
||||
this.startDateValue = Number(start.toDate())
|
||||
this.endDateValue = Number(end.toDate())
|
||||
this.startDate = this.formatDate(start)
|
||||
this.endDate = this.formatDate(end)
|
||||
this.startDateValue = Number(start)
|
||||
this.endDateValue = Number(end)
|
||||
},
|
||||
formatDate(date) {
|
||||
return dayjs(date).format('YYYY-MM-DD')
|
||||
|
|
|
|||
|
|
@ -136,10 +136,10 @@
|
|||
<u-toast ref="uToast"></u-toast>
|
||||
|
||||
<!-- 提现引导弹窗 -->
|
||||
<!-- <WithdrawalGuide
|
||||
<WithdrawalGuide
|
||||
:show="showWithdrawalGuide"
|
||||
@confirm="onWithdrawalGuideConfirm"
|
||||
/> -->
|
||||
/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -252,11 +252,12 @@ export default {
|
|||
bal.addWithdraw(this.dataForm).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
message: res.msg || '提现成功',
|
||||
message: res.msg,
|
||||
type: 'success',
|
||||
})
|
||||
// 显示提现引导弹窗
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
this.showWithdrawalGuide = true
|
||||
}, 300)
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue