添加用户协议

This commit is contained in:
zhangmanman
2021-09-28 10:51:58 +08:00
parent cda72679d4
commit d2b2352244
6 changed files with 20 additions and 17 deletions

View File

@@ -15,7 +15,11 @@
}
},
created() {
userAgree().then(res => {
let newUrl = ''
if(this.$Route.query.type == 'vipAgree') newUrl = 'articles/agreement/openvip'
if(this.$Route.query.type == 'loginPrivacy') newUrl = 'articles/agreement/secret'
if(this.$Route.query.type == 'loginService') newUrl = 'articles/agreement/service'
userAgree(newUrl).then(res => {
this.content = res.content
}).catch(err =>{
uni.showToast({

View File

@@ -82,7 +82,7 @@
</view>
<!-- 用户协议 -->
<view class="agree">
<view class="agree">
<view class="agree-tips" @click="$Router.push({name: 'vipAgree', params: {type : 'vipAgree'}})">
请仔细阅读并确认服务协议
</view>