|
|
@@ -20,6 +20,16 @@ |
|
|
|
</view> |
|
|
|
<view class="bottomBox"> |
|
|
|
<button |
|
|
|
v-if="!checkboxValue[0]" |
|
|
|
class="bottomBtn" |
|
|
|
type="default" |
|
|
|
id="getPhoneNumber" |
|
|
|
@click="toCreate" |
|
|
|
> |
|
|
|
开始制作我的数字分身 |
|
|
|
</button> |
|
|
|
<button |
|
|
|
v-if="checkboxValue[0]" |
|
|
|
class="bottomBtn" |
|
|
|
open-type="getPhoneNumber" |
|
|
|
type="default" |
|
|
@@ -32,7 +42,7 @@ |
|
|
|
<u-checkbox-group |
|
|
|
v-model="checkboxValue" |
|
|
|
placement="row" |
|
|
|
@change="changed" |
|
|
|
@change="changedCheckbox" |
|
|
|
> |
|
|
|
<u-checkbox |
|
|
|
labelColor="white" |
|
|
@@ -75,6 +85,9 @@ const checkboxList = ref([ |
|
|
|
name: "同意智像相机用户使用协议", |
|
|
|
}, |
|
|
|
]); |
|
|
|
function changedCheckbox(e) { |
|
|
|
console.log(e); |
|
|
|
} |
|
|
|
|
|
|
|
async function getphonenumber(e) { |
|
|
|
console.log(e); |
|
|
@@ -112,6 +125,7 @@ async function getphonenumber(e) { |
|
|
|
} |
|
|
|
|
|
|
|
async function toCreate(e) { |
|
|
|
console.log(); |
|
|
|
if (checkboxValue.value[0]) { |
|
|
|
// await handleLogin(); |
|
|
|
await getphonenumber(e); |
|
|
@@ -121,7 +135,7 @@ async function toCreate(e) { |
|
|
|
content: "同意慧图相机用户使用协议?", |
|
|
|
success: function (res) { |
|
|
|
if (res.confirm) { |
|
|
|
checkboxValue.value[0] = true; |
|
|
|
checkboxValue.value = ["同意智像相机用户使用协议"]; |
|
|
|
// handleLogin(); |
|
|
|
getphonenumber(e); |
|
|
|
} else if (res.cancel) { |
|
|
|