Compare commits

..

No commits in common. "601439f3e67d1541704d77875187281ee48893c7" and "9e3da7951b91f98816031b984ed2a3caf9ea53ff" have entirely different histories.

3 changed files with 13 additions and 24 deletions

View File

@ -78,20 +78,6 @@ module.exports = vm => {
}) })
}, 1500) }, 1500)
} else if (data.code == 500) { } 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) uni.$u.toast(data.msg)
return data return data
} else { } else {

View File

@ -131,13 +131,15 @@ export default {
}, },
methods: { methods: {
setDefaultDateRange() { setDefaultDateRange() {
const end = dayjs().subtract(1, 'day') const end = new Date()
const start = dayjs().subtract(15, 'day') const start = new Date()
this.startDate = start.format('YYYY-MM-DD') end.setDate(end.getDate() - 1)
this.endDate = end.format('YYYY-MM-DD') start.setDate(start.getDate() - 15) // 15
this.startDateValue = Number(start.toDate()) this.startDate = this.formatDate(start)
this.endDateValue = Number(end.toDate()) this.endDate = this.formatDate(end)
this.startDateValue = Number(start)
this.endDateValue = Number(end)
}, },
formatDate(date) { formatDate(date) {
return dayjs(date).format('YYYY-MM-DD') return dayjs(date).format('YYYY-MM-DD')

View File

@ -136,10 +136,10 @@
<u-toast ref="uToast"></u-toast> <u-toast ref="uToast"></u-toast>
<!-- 提现引导弹窗 --> <!-- 提现引导弹窗 -->
<!-- <WithdrawalGuide <WithdrawalGuide
:show="showWithdrawalGuide" :show="showWithdrawalGuide"
@confirm="onWithdrawalGuideConfirm" @confirm="onWithdrawalGuideConfirm"
/> --> />
</view> </view>
</template> </template>
@ -252,11 +252,12 @@ export default {
bal.addWithdraw(this.dataForm).then(res => { bal.addWithdraw(this.dataForm).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$refs.uToast.show({ this.$refs.uToast.show({
message: res.msg || '提现成功', message: res.msg,
type: 'success', type: 'success',
}) })
//
setTimeout(() => { setTimeout(() => {
uni.navigateBack() this.showWithdrawalGuide = true
}, 300) }, 300)
} }
}) })