11 changed files with 220 additions and 28 deletions
@ -0,0 +1,57 @@ |
|||
<template> |
|||
<view class="margin flex flex-wrap"> |
|||
<view @click="changeIntentions" class="iconfont agree-box" :class="[agree ? 'text-blue icon-check-square': 'text-gray icon-border']"></view> |
|||
<view class="text-df text-black flex-sub agree-text"> |
|||
请认真阅读 |
|||
<text class="text-blue" @tap="serviceAgreement">《用户服务协议》</text>和 |
|||
<text class="text-blue" @tap="privacyAolicy">《隐私政策》</text>, |
|||
勾选代表您已同意此协议 |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data() { |
|||
return { |
|||
agree: false, |
|||
}; |
|||
}, |
|||
onLoad(op) {}, |
|||
methods: { |
|||
changeIntentions(){ |
|||
if(!this.agree){ |
|||
this.agree = true; |
|||
}else{ |
|||
this.agree = false; |
|||
} |
|||
this.$emit('changeIntentions',this.agree) |
|||
}, |
|||
|
|||
// 服务协议 |
|||
serviceAgreement(){ |
|||
uni.navigateTo({ |
|||
url: '/pages/service-agreement/service-agreement', |
|||
}); |
|||
}, |
|||
|
|||
// 隐私政策 |
|||
privacyAolicy(){ |
|||
uni.navigateTo({ |
|||
url: '/pages/privacy-aolicy/privacy-aolicy', |
|||
}); |
|||
|
|||
} |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.agree-box { |
|||
width: 70rpx; |
|||
} |
|||
|
|||
.agree-text { |
|||
line-height: 60rpx; |
|||
} |
|||
</style> |
@ -0,0 +1,13 @@ |
|||
<template> |
|||
<web-view :webview-styles="webviewStyles" src="https://www.yuque.com/docs/share/aaa64c6d-225e-4ee3-be6c-b511565c8bd4?#"></web-view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data() { |
|||
return { |
|||
url: '' |
|||
} |
|||
}, |
|||
} |
|||
</script> |
@ -0,0 +1,13 @@ |
|||
<template> |
|||
<web-view :webview-styles="webviewStyles" :src="url"></web-view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data() { |
|||
return { |
|||
url: 'https://www.yuque.com/docs/share/00738d22-45de-46d0-8473-4275ac421fbd?#' |
|||
} |
|||
}, |
|||
} |
|||
</script> |
Loading…
Reference in new issue