订单取消的状态和退款的状态不显示倒计时

This commit is contained in:
wangxiaowei
2026-02-02 02:37:27 +08:00
parent 7061dc967a
commit 63e8b64f74
12 changed files with 49 additions and 55 deletions

View File

@ -48,7 +48,7 @@
</wd-form>
</view>
<view class="h-90rpx leading-90rpx mx-60rpx rounded-8rpx text-center mt-112rpx bg-[#4C9F44] text-[#fff]" :class="disabled ? 'opacity-40' : ''" @click="Mobile.handleToLogin">确定</view>
<view class="h-90rpx leading-90rpx mx-60rpx rounded-8rpx text-center mt-112rpx bg-[#4C9F44] text-[#fff]" @click="SetPassword.handleToConfirm">确定</view>
<!-- 手机号修改成功 -->
<wd-popup v-model="showEditSuccessPopup" lock-scroll custom-style="border-radius: 32rpx 32rpx 0rpx 0rpx;" position="bottom">
@ -87,27 +87,31 @@
password_confirm: ''
})
// 手机和验证码
const mobile = ref<string>('')
const code = ref<string>('')
onLoad((args) => {
mobile.value = args.mobile || ''
code.value = args.code || ''
})
const Mobile = {
const SetPassword = {
// 重置密码
handleToLogin: async () => {
if (!mobile(model.value.mobile)) {
handleToConfirm: async () => {
if (!mobile) {
toast.show({
iconClass: 'info-circle',
msg: '手机号码错误请重新输入',
msg: '手机号异常,请重新操作',
direction: 'vertical'
})
return
}
if (!model.value.code) {
if (!code) {
toast.show({
iconClass: 'info-circle',
msg: '验证码不存在',
msg: '验证码异常,请重新操作',
direction: 'vertical'
})
return
@ -132,8 +136,8 @@
}
const res = await resetPassword({
mobile: model.value.mobile,
code: model.value.code,
mobile: mobile.value,
code: code.value,
password: model.value.password,
password_confirm: model.value.password_confirm
})