添加用户隐私协议
This commit is contained in:
@@ -17,19 +17,16 @@ export default {
|
||||
return {
|
||||
phone: '',
|
||||
text: '',
|
||||
debounce: true,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.debounce = true;
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
if(!this.debounce) return;
|
||||
if(!this.verifyContent()) return false;
|
||||
this.debounce = false;
|
||||
console.log(this.phone);
|
||||
console.log(this.text);
|
||||
// console.log(this.phone);
|
||||
// console.log(this.text);
|
||||
this.$u.toast('提交成功');
|
||||
this.phone = "";
|
||||
this.text = "";
|
||||
},
|
||||
verifyContent() {
|
||||
if(this.$u.test.isEmpty(this.text)) {
|
||||
@@ -62,7 +59,6 @@ export default {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.debounce = true;
|
||||
this.$u.toast(res.message);
|
||||
}
|
||||
})
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
<text>用户反馈</text>
|
||||
<image src="/static/image/user/1.png"></image>
|
||||
</view>
|
||||
<view class="nav" @click="viewAgreement()">
|
||||
<text>用户协议与隐私政策</text>
|
||||
<image src="/static/image/user/1.png"></image>
|
||||
</view>
|
||||
<view class="nav" @click="clearCache">
|
||||
<text>清除缓存</text>
|
||||
<text>{{ fileSizeString }}</text>
|
||||
@@ -142,7 +146,15 @@ export default {
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/' + url
|
||||
});
|
||||
}
|
||||
},
|
||||
viewAgreement() {
|
||||
this.$u.route({
|
||||
url: '/pages/login/agreements',
|
||||
params: {
|
||||
title: "用户协议与隐私政策"
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user