国际版独立
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 验证码输入 -->
|
||||
<!-- #ifndef H5 -->
|
||||
<view class="form-group">
|
||||
<view class="code-input-wrapper">
|
||||
<input
|
||||
@@ -38,6 +39,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<!-- 区域提示 -->
|
||||
<view class="region-notice">
|
||||
@@ -50,6 +52,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 协议勾选 -->
|
||||
<!-- #ifndef H5 -->
|
||||
<view class="agreement-box">
|
||||
<checkbox-group @change="onAgreementChange">
|
||||
<label class="agreement-label">
|
||||
@@ -63,6 +66,7 @@
|
||||
</label>
|
||||
</checkbox-group>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -170,24 +174,29 @@
|
||||
// 登录
|
||||
const handleLogin = async () => {
|
||||
if (!validatePhone()) return
|
||||
|
||||
|
||||
// #ifndef H5
|
||||
if (!verifyCode.value) {
|
||||
uni.showToast({ title: t('auth.codeRequired'), icon: 'none' })
|
||||
return
|
||||
}
|
||||
|
||||
// #endif
|
||||
|
||||
// #ifndef H5
|
||||
if (!isAgreed.value) {
|
||||
uni.showToast({ title: t('auth.pleaseAgreeToTerms'), icon: 'none' })
|
||||
return
|
||||
}
|
||||
|
||||
// #endif
|
||||
|
||||
try {
|
||||
uni.showLoading({ title: t('common.loggingIn') })
|
||||
const res = await quickLogin({
|
||||
loginType: 'SMS',
|
||||
appid,
|
||||
phonenumber: getSubmitPhoneNumber(),
|
||||
smsCode: verifyCode.value
|
||||
// H5 按产品要求不做验证码发送与校验,小程序端保持原流程
|
||||
smsCode: verifyCode.value || ''
|
||||
})
|
||||
|
||||
if (res && res.code !== 200) {
|
||||
|
||||
Reference in New Issue
Block a user