mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-11-13 04:18:53 +08:00
fix(security): 换绑手机移除冗余用户名传参并强制携带登录token
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
|
||||
<up-form-item label="手机号" label-width="180rpx" :border-bottom="false">
|
||||
<view v-if="form.mobile" class="form-value">{{ form.mobile }}</view>
|
||||
<view v-else class="bind-mobile" @click="navigateToBindMobile(form.username)">绑定手机号码</view>
|
||||
<view v-else class="bind-mobile" @click="navigateToBindMobile">绑定手机号码</view>
|
||||
</up-form-item>
|
||||
</up-form>
|
||||
|
||||
@@ -263,9 +263,9 @@ function closeBirthdayPicker() {
|
||||
showBirthday.value = false
|
||||
}
|
||||
|
||||
function navigateToBindMobile(username: string) {
|
||||
function navigateToBindMobile() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/mine/set/securityCenter/bindMobile?username=${username}`,
|
||||
url: '/pages/mine/set/securityCenter/bindMobile',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ const verificationPassed = ref(false)
|
||||
const codeForm = reactive({
|
||||
mobile: '',
|
||||
code: '',
|
||||
username: '',
|
||||
})
|
||||
const codeTips = ref('')
|
||||
const seconds = 69
|
||||
@@ -90,9 +89,7 @@ const codeRules = {
|
||||
],
|
||||
}
|
||||
|
||||
onLoad((options) => {
|
||||
codeForm.username = options?.username || ''
|
||||
})
|
||||
onLoad(() => {})
|
||||
|
||||
onReady(() => {
|
||||
validateCodeForm.value?.setRules(codeRules)
|
||||
|
||||
Reference in New Issue
Block a user