|
@@ -8,6 +8,10 @@
|
|
<view class="phone-form-label"><text class="form-label-require"></text>密码</view>
|
|
<view class="phone-form-label"><text class="form-label-require"></text>密码</view>
|
|
<input v-model="password" placeholder="请输入密码" />
|
|
<input v-model="password" placeholder="请输入密码" />
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="form-label-input">
|
|
|
|
+ <view class="phone-form-label"><text class="form-label-require"></text>确认密码</view>
|
|
|
|
+ <input v-model="password2" placeholder="请输入二次确认密码" />
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="common-btn-box">
|
|
<view class="common-btn-box">
|
|
<view class="not-confirm-btn" @click="handleClose">{{notBtn}}</view>
|
|
<view class="not-confirm-btn" @click="handleClose">{{notBtn}}</view>
|
|
@@ -49,6 +53,7 @@
|
|
});
|
|
});
|
|
|
|
|
|
const password = ref('');
|
|
const password = ref('');
|
|
|
|
+ const password2 = ref('');
|
|
const userId = ref(null)
|
|
const userId = ref(null)
|
|
|
|
|
|
const commonPopup = ref(null); // 索引
|
|
const commonPopup = ref(null); // 索引
|
|
@@ -73,6 +78,20 @@
|
|
})
|
|
})
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (!password2.value) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ title: '请输入二次确认密码'
|
|
|
|
+ })
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (password.value !== password2.value) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ title: '两次输入密码不同'
|
|
|
|
+ })
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
getUserGuanliReset({
|
|
getUserGuanliReset({
|
|
userId: userId.value,
|
|
userId: userId.value,
|
|
password: password.value
|
|
password: password.value
|