From 04197b12ebeaf0c503c6bd405e9d5e67ab507a96 Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Tue, 28 Sep 2021 10:33:54 +0800 Subject: [PATCH 1/3] =?UTF-8?q?[/=E7=99=BB=E5=BD=95l=E5=BC=95=E5=AF=BC?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2/]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 7 ++- pages.json | 6 +++ pages/login/guide.vue | 120 ++++++++++++++++++++++++++++++++++++++++++ pages/login/login.vue | 4 +- 4 files changed, 134 insertions(+), 3 deletions(-) create mode 100644 pages/login/guide.vue diff --git a/manifest.json b/manifest.json index 3bd459f..30b1c92 100644 --- a/manifest.json +++ b/manifest.json @@ -68,5 +68,10 @@ "uniStatistics" : { "enable" : false }, - "vueVersion" : "2" + "vueVersion" : "2", + "h5" : { + "router" : { + "mode" : "history" + } + } } diff --git a/pages.json b/pages.json index f0e7595..2429d50 100644 --- a/pages.json +++ b/pages.json @@ -134,6 +134,12 @@ "style": { "navigationBarTitleText": "登录" } + }, { + "path": "pages/login/guide", + "name": "loginGuide", + "style": { + "navigationBarTitleText": "引导页" + } }, { "path": "pages/certification/personal", "name": "Personal", diff --git a/pages/login/guide.vue b/pages/login/guide.vue new file mode 100644 index 0000000..3617dd4 --- /dev/null +++ b/pages/login/guide.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/pages/login/login.vue b/pages/login/login.vue index eedf1c9..e0072be 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -210,7 +210,7 @@ } .btn { - background: $mian-color; + background-image: linear-gradient(to bottom,#bf52eb,#8f32dd); color: white; border-radius: 0; margin-top: $margin; @@ -224,7 +224,7 @@ } &[disabled] { - background: rgba($color: $mian-color, $alpha: .6); + background: rgba($color: #8f32dd, $alpha: .6); } } From 1e1409f14e485939bb0a6d80e65119d65d4e6a1c Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Tue, 28 Sep 2021 10:47:51 +0800 Subject: [PATCH 2/3] =?UTF-8?q?[=E7=94=A8=E6=88=B7=E9=9A=90=E7=A7=81?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=92=8C=E6=9C=8D=E5=8A=A1=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=8A=E6=8E=A5=E5=8F=A3]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/auth.js | 12 +++++++- pages.json | 6 ++++ pages/login/agreement.vue | 59 +++++++++++++++++++++++++++++++++++++++ pages/login/login.vue | 2 +- 4 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 pages/login/agreement.vue diff --git a/apis/interfaces/auth.js b/apis/interfaces/auth.js index 48ee742..87e2023 100644 --- a/apis/interfaces/auth.js +++ b/apis/interfaces/auth.js @@ -26,7 +26,17 @@ const getSms = (data) =>{ }) } +// 用户隐私协议 articles/agreement/secret 用户服务协议 articles/agreement/service + +const secretService = (name) =>{ + return request({ + url: "articles/agreement/"+name + }) +} + + export { smsAuth, - getSms + getSms, + secretService } diff --git a/pages.json b/pages.json index 2429d50..a70a75b 100644 --- a/pages.json +++ b/pages.json @@ -140,6 +140,12 @@ "style": { "navigationBarTitleText": "引导页" } + }, { + "path": "pages/login/agreement", + "name": "agreement", + "style": { + "navigationBarTitleText": "用户隐藏协议" + } }, { "path": "pages/certification/personal", "name": "Personal", diff --git a/pages/login/agreement.vue b/pages/login/agreement.vue new file mode 100644 index 0000000..8d493c2 --- /dev/null +++ b/pages/login/agreement.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/pages/login/login.vue b/pages/login/login.vue index e0072be..22376df 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -26,7 +26,7 @@ - 未注册的手机号验证后将自动创建账号,登录即表示同意接收用户隐私规格用户服务协议 + 未注册的手机号验证后将自动创建账号,登录即表示同意接收用户隐私协议用户服务协议 From d2b2352244c9a32d9d9b24225a3e6aac27e898f6 Mon Sep 17 00:00:00 2001 From: zhangmanman <994797151@qq.com> Date: Tue, 28 Sep 2021 10:51:58 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/vip.js | 18 +++++++++--------- pages.json | 2 +- pages/login/login.vue | 7 +++---- pages/user/index.vue | 2 +- pages/vip/agree.vue | 6 +++++- pages/vip/vip.vue | 2 +- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/apis/interfaces/vip.js b/apis/interfaces/vip.js index f2524f8..0784a70 100644 --- a/apis/interfaces/vip.js +++ b/apis/interfaces/vip.js @@ -39,13 +39,6 @@ const vipCont = (id, data) =>{ }) } -// 会员开通协议 -const userAgree = () =>{ - return request({ - url : 'articles/agreement/openvip' - }) -} - // 上传打款凭证 const vipVoucher = (data) =>{ return request({ @@ -55,11 +48,18 @@ const vipVoucher = (data) =>{ }) } +// 用户协议 +const userAgree = (apiUrl) => { + return request({ + url: apiUrl + }) +} + export { identities, vipOrder, vipWechatPay, vipCont, - userAgree, - vipVoucher + vipVoucher, + userAgree } diff --git a/pages.json b/pages.json index f0e7595..722320c 100644 --- a/pages.json +++ b/pages.json @@ -65,7 +65,7 @@ "path": "pages/vip/agree", "name": "vipAgree", "style": { - "navigationBarTitleText": "服务条款" + "navigationBarTitleText": "用户协议" } }, { "path": "pages/vip/examine", diff --git a/pages/login/login.vue b/pages/login/login.vue index eedf1c9..4e0f0a3 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -26,8 +26,8 @@ - 未注册的手机号验证后将自动创建账号,登录即表示同意接收用户隐私规格用户服务协议 - + 未注册的手机号验证后将自动创建账号,登录即表示同意接收用户隐私协议用户服务协议 + @@ -253,8 +253,7 @@ padding-top: $padding * 2; font-size: $title-size-sm; color: $text-gray; - - navigator { + view { color: $text-price; display: inline-block; padding: 0 10rpx; diff --git a/pages/user/index.vue b/pages/user/index.vue index 7d80a05..1f4a539 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -967,7 +967,7 @@ width: 100%; z-index: 99; left: 0; - top: 196px; + top: 200px; // padding-top: var(--status-bar-height); background-color: #F8F8F8; transition: .5s; diff --git a/pages/vip/agree.vue b/pages/vip/agree.vue index e583b13..b94ffa8 100644 --- a/pages/vip/agree.vue +++ b/pages/vip/agree.vue @@ -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({ diff --git a/pages/vip/vip.vue b/pages/vip/vip.vue index 6e22330..9e511f5 100644 --- a/pages/vip/vip.vue +++ b/pages/vip/vip.vue @@ -82,7 +82,7 @@ - + 请仔细阅读并确认服务协议