Merge pull request '添加用户隐私协议' (#114) from zhy into master

Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/114
This commit is contained in:
hansu 2020-11-27 14:09:36 +08:00
commit a50daa3326
5 changed files with 51 additions and 30 deletions

View File

@ -16,7 +16,7 @@
{ {
"path": "pages/login/agreements", "path": "pages/login/agreements",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "用户协议与隐私政策",
"app-plus": { "app-plus": {
"titleNView": { "titleNView": {
"backgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF",

File diff suppressed because one or more lines are too long

View File

@ -52,14 +52,14 @@
</view> </view>
</view> </view>
<!-- 服务协议 --> <!-- 服务协议 -->
<!-- <view class="pact"> <view class="pact">
<view class="pact-container"> <view class="pact-container">
<u-checkbox v-model="consentPact" shape="circle" size="30" label-size="26" icon-size="12" active-color="#ff780f"> <u-checkbox v-model="consentPact" shape="circle" size="30" label-size="26" icon-size="12" active-color="#ff780f">
<text>我已详细阅读并同意</text> <text>我已详细阅读并同意</text>
</u-checkbox> </u-checkbox>
<text class="pact-items" v-for="(item,index) in pactList" :key="index" @click="viewAgreement(index)"> {{ item.text }}</text> <text class="pact-items" v-for="(item,index) in pactList" :key="index" @click="viewAgreement(index)"> {{ item.text }}</text>
</view> </view>
</view> --> </view>
<!-- denglu QQ weixin --> <!-- denglu QQ weixin -->
<button @click="logins">{{ login }}</button> <button @click="logins">{{ login }}</button>
<!-- <u-button :custom-style="customStyle" ></u-button> --> <!-- <u-button :custom-style="customStyle" ></u-button> -->
@ -93,13 +93,9 @@ export default {
timer: null, timer: null,
is_sendcode: false, // 60s is_sendcode: false, // 60s
time_count: 60, time_count: 60,
consentPact: false, consentPact: true,
pactList: [{ pactList: [{
"id": '3', "text": "《用户协议与隐私政策》"
"text": "《隐私协议》"
},{
"id": '4',
"text": "《使用协议》"
}] }]
}; };
}, },
@ -160,7 +156,9 @@ export default {
}, },
}); });
// if(!this.consentPact) return false; //
if(!this.consentPact) return false;
// //
// console.log(this.zhanghao); // console.log(this.zhanghao);
// if(this.clickstate==false){ // if(this.clickstate==false){
@ -276,7 +274,7 @@ export default {
this.$u.route({ this.$u.route({
url: '/pages/login/agreements', url: '/pages/login/agreements',
params: { params: {
title: "隐私协议" title: "用户协议与隐私政策"
} }
}); });
} }

View File

@ -17,19 +17,16 @@ export default {
return { return {
phone: '', phone: '',
text: '', text: '',
debounce: true,
} }
}, },
onShow() {
this.debounce = true;
},
methods: { methods: {
submit() { submit() {
if(!this.debounce) return;
if(!this.verifyContent()) return false; if(!this.verifyContent()) return false;
this.debounce = false; // console.log(this.phone);
console.log(this.phone); // console.log(this.text);
console.log(this.text); this.$u.toast('提交成功');
this.phone = "";
this.text = "";
}, },
verifyContent() { verifyContent() {
if(this.$u.test.isEmpty(this.text)) { if(this.$u.test.isEmpty(this.text)) {
@ -62,7 +59,6 @@ export default {
} }
}) })
} else { } else {
this.debounce = true;
this.$u.toast(res.message); this.$u.toast(res.message);
} }
}) })

View File

@ -27,6 +27,10 @@
<text>用户反馈</text> <text>用户反馈</text>
<image src="/static/image/user/1.png"></image> <image src="/static/image/user/1.png"></image>
</view> </view>
<view class="nav" @click="viewAgreement()">
<text>用户协议与隐私政策</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="clearCache"> <view class="nav" @click="clearCache">
<text>清除缓存</text> <text>清除缓存</text>
<text>{{ fileSizeString }}</text> <text>{{ fileSizeString }}</text>
@ -142,7 +146,15 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: '/pages/user/' + url url: '/pages/user/' + url
}); });
} },
viewAgreement() {
this.$u.route({
url: '/pages/login/agreements',
params: {
title: "用户协议与隐私政策"
}
});
}
}, },
} }
</script> </script>