Compare commits

..

3 Commits

3 changed files with 24 additions and 13 deletions

View File

@ -78,6 +78,20 @@ 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 {

View File

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

View File

@ -136,10 +136,10 @@
<u-toast ref="uToast"></u-toast>
<!-- 提现引导弹窗 -->
<WithdrawalGuide
<!-- <WithdrawalGuide
:show="showWithdrawalGuide"
@confirm="onWithdrawalGuideConfirm"
/>
/> -->
</view>
</template>
@ -252,12 +252,11 @@ 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(() => {
this.showWithdrawalGuide = true
uni.navigateBack()
}, 300)
}
})