From 9923858e50fe00fad88f616d56a4a00d797ca0c5 Mon Sep 17 00:00:00 2001 From: LLL <15374889135@163.com> Date: Thu, 13 Mar 2025 17:05:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AQ/AQTabber.vue | 2 +- pages.json | 9 +++ pages/common/privacy_agreement.vue | 43 ++++++++++-- pages/student/my/set_up.vue | 17 +++-- pages/student/my/update_pass.vue | 101 +++++++++++++++++++++++++++++ 5 files changed, 161 insertions(+), 11 deletions(-) create mode 100644 pages/student/my/update_pass.vue diff --git a/components/AQ/AQTabber.vue b/components/AQ/AQTabber.vue index 1f725ff..b2aa29a 100644 --- a/components/AQ/AQTabber.vue +++ b/components/AQ/AQTabber.vue @@ -27,7 +27,7 @@ methods: { async init(){ - uni.setStorageSync('userType','1') + uni.setStorageSync('userType','3') let userType = uni.getStorageSync('userType') this.userType = userType diff --git a/pages.json b/pages.json index 239c706..3cdfcd1 100644 --- a/pages.json +++ b/pages.json @@ -99,6 +99,15 @@ "navigationBarTextStyle": "black" } }, + { + "path" : "pages/student/my/update_pass", + "style": { + "navigationBarTitleText": "修改密码", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "black" + } + }, diff --git a/pages/common/privacy_agreement.vue b/pages/common/privacy_agreement.vue index 8183fd0..cef72a8 100644 --- a/pages/common/privacy_agreement.vue +++ b/pages/common/privacy_agreement.vue @@ -1,6 +1,6 @@ @@ -8,15 +8,46 @@ export default { data() { return { - + type: 1, //类型 1为用户协议,2为隐私策略 + text: '', } }, + onLoad(item) { + console.log(item.type, '类型') + this.init(item.type) + }, methods: { - + //初始化拿数据的接口 + init(type) { + if (type == 1) { + //用户协议 + this.text = '用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议' + uni.setNavigationBarTitle({ + title: '用户协议' + }); + } else if (type == 2) { + //隐私策略 + this.text = '隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略隐私策略' + uni.setNavigationBarTitle({ + title: '隐私策略' + }); + } + } } } - + .html-style { + padding: 10rpx 20rpx; + line-height: 1.8; + font-size: 30rpx; + } + \ No newline at end of file diff --git a/pages/student/my/set_up.vue b/pages/student/my/set_up.vue index e38d8dd..b98a620 100644 --- a/pages/student/my/set_up.vue +++ b/pages/student/my/set_up.vue @@ -1,9 +1,9 @@ diff --git a/pages/student/my/my_members.vue b/pages/student/my/my_members.vue new file mode 100644 index 0000000..3fb54b8 --- /dev/null +++ b/pages/student/my/my_members.vue @@ -0,0 +1,158 @@ + + + + + \ No newline at end of file diff --git a/pages/student/my/personal_data.vue b/pages/student/my/personal_data.vue new file mode 100644 index 0000000..8183fd0 --- /dev/null +++ b/pages/student/my/personal_data.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/pages/student/my/update_pass.vue b/pages/student/my/update_pass.vue index 45e4190..eca2dbd 100644 --- a/pages/student/my/update_pass.vue +++ b/pages/student/my/update_pass.vue @@ -61,7 +61,12 @@ }, nextStep(){ this.tset_style = 2 - } + }, + forgot() { + uni.navigateTo({ + url: '/pages/student/login/forgot' + }) + }, } }