This commit is contained in:
xiaozhiyong
2023-09-08 14:04:23 +08:00
parent 036b09f772
commit 28500d9d0b
5 changed files with 502 additions and 358 deletions

View File

@@ -22,11 +22,22 @@
4008-56-5355
</text>
</view>
<view class="text-center color-999" >
<checkbox @tap="onChange" class='round red chagesize' :class="checked?'checked':''" :checked="checked?true:false"
value="C"></checkbox> 我已阅读并同意
<text @tap="toAgree('xoilCloudUserAgree')" class="oil-main-color">用户协议</text><text @tap="toAgree('xoilCloudPrivacyAgreement')" class="oil-main-color">隐私政策</text>
</view>
</view>
</template>
<script>
export default {
props:{
checked:{
type:Boolean,
default:false
}
},
data() {
return {
// key: value
@@ -37,10 +48,22 @@
uni.makePhoneCall({
phoneNumber: '4008-56-5355'
})
},
toAgree(link) {
uni.navigateTo({
url: `/pages/Auth/agreeMent/agreeMent?link=${link}`
})
},
onChange() {
let checked = !this.checked
this.$emit('onCheck', checked)
}
},
}
</script>
<style>
.chagesize {
transform: scale(0.6, 0.6);
}
</style>