暂存code
This commit is contained in:
@@ -95,9 +95,11 @@
|
||||
>
|
||||
<template #label>
|
||||
<text>已阅读并同意</text>
|
||||
<text class="policy_a_warp">《哈希优品服务协议》</text>
|
||||
<text>及</text>
|
||||
<text class="policy_a_warp">《隐私政策》</text>
|
||||
<text class="policy_a_warp" @click="jumpUserAgreement">《服务协议》</text>
|
||||
<text>、</text>
|
||||
<text class="policy_a_warp" @click="jumpPrivacyAgreement">《隐私政策》</text>
|
||||
<text>、</text>
|
||||
<text class="policy_a_warp" @click="jumpProductAgreement">《售后保障协议》</text>
|
||||
</template>
|
||||
</up-checkbox>
|
||||
</view>
|
||||
@@ -110,6 +112,7 @@
|
||||
import { getUserList } from '@/api/common.js';
|
||||
import { register } from '@/api/auth.js';
|
||||
import { setStorageFun,TOKEN_NAME,USER_KEY,USER_DATA,USER_LOGIN_TIME } from '@/utils/auth.js';
|
||||
import CryptoJS from 'crypto-js';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -193,7 +196,7 @@
|
||||
const params = {
|
||||
mobile:form.mobile,
|
||||
smsCode:form.smsCode,
|
||||
password:form.loginPassword,
|
||||
password:CryptoJS.MD5(form.loginPassword).toString(),
|
||||
inviteCode:form.referralCode,
|
||||
}
|
||||
const resp = await register(params);
|
||||
@@ -254,6 +257,24 @@
|
||||
this.countdown = false;
|
||||
}
|
||||
},
|
||||
// 用户协议
|
||||
jumpUserAgreement(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/mine_user_agreement/mine_user_agreement?backPath=register'
|
||||
})
|
||||
},
|
||||
// 隐私协议
|
||||
jumpPrivacyAgreement(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/mine_privacy_agreement/mine_privacy_agreement?backPath=register'
|
||||
})
|
||||
},
|
||||
// 售后保障协议
|
||||
jumpProductAgreement(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/mine_product_agreement/mine_product_agreement?backPath=login'
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user