From b105715ccc199f6ea16ec092398c2ab42c462190 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Mon, 21 Mar 2022 16:36:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E7=94=A8=E9=A3=9E=E7=8C=B4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9C=8D=E5=8A=A1=E5=8D=8F=E8=AE=AE=E3=80=81=E9=A3=9E?= =?UTF-8?q?=E7=8C=B4=E9=9A=90=E7=A7=81=E6=94=BF=E7=AD=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/agreement.vue | 26 ++++++++++++++++++++++---- pages/register/register.vue | 4 +++- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/pages/login/agreement.vue b/pages/login/agreement.vue index a43d586..3b99326 100644 --- a/pages/login/agreement.vue +++ b/pages/login/agreement.vue @@ -1,6 +1,11 @@ @@ -8,11 +13,24 @@ export default { data(){ return { - + title:'',//标题 + richText:''//富文本详情 } }, - onLoad() { - + onLoad(options) { + options.type*1 ? this.title = '飞猴隐私政策' : this.title = '飞猴用户服务协议'; + this.checkAgreement(options.type); + }, + methods:{ + checkAgreement(type){ + console.log(type,26); + let url = type*1 ? '/universal/api.login/register_user_agreement' : '/universal/api.login/register_privacy_agreement'; + this.$requst.post(url).then(res=>{ + if(res.code==1) { + // this.richText = + } else this.$toolAll.tools.showToast(res.msg); + }) + } } } diff --git a/pages/register/register.vue b/pages/register/register.vue index e5453bf..02c3d46 100644 --- a/pages/register/register.vue +++ b/pages/register/register.vue @@ -266,7 +266,9 @@ }, // 前往协议或政策 goXY(index){ - console.log(index); + uni.navigateTo({ + url:`/pages/login/agreement?type=${index}` + }) } } }