From 85ffec1293c5c4fe7bb96bb196c32d678698d3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Mon, 3 Apr 2023 13:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=B3=A8=E5=86=8C=E6=97=B6?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=B3=A8=E5=86=8C=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/apis.js | 4 ---- src/core/models/user.js | 23 ---------------------- src/pages/auth/auth.vue | 42 +---------------------------------------- 3 files changed, 1 insertion(+), 68 deletions(-) diff --git a/src/core/apis.js b/src/core/apis.js index be8c955..d66ef70 100644 --- a/src/core/apis.js +++ b/src/core/apis.js @@ -89,10 +89,6 @@ const apis = { showLoading: true, auth: true, } - }, - registerType: { - url: "/wxapp/index/registertype", - showLoading: true, } }, service: { diff --git a/src/core/models/user.js b/src/core/models/user.js index e00582f..c6808c9 100644 --- a/src/core/models/user.js +++ b/src/core/models/user.js @@ -128,28 +128,6 @@ export default { }).catch(e => { }); }); }, - /** - * 获取注册类型 - */ - getRegisterType() { - return new Promise((resolve, reject) => { - prototype.$request({ - api: "user.registerType", - }).then(response => { - if (response.code == 1) { - let list = []; - response.data.forEach(item => { - list.push({ - id: item.id, - name: item.name, - }); - }); - return resolve(list); - } - return reject(response.msg); - }).catch(e => { }); - }); - }, /** * 用户注册 */ @@ -171,7 +149,6 @@ export default { password: user.password, openid: user.openId, verification_code: verificationCode, - register_type: user.registerType, types: 2, } }).then((response) => { diff --git a/src/pages/auth/auth.vue b/src/pages/auth/auth.vue index 0efad6f..bb7c40e 100644 --- a/src/pages/auth/auth.vue +++ b/src/pages/auth/auth.vue @@ -81,15 +81,6 @@ placeholder-class="placeholder-style-3" /> - - - - - {{ currentRegisterType.name ? currentRegisterType.name : "请选择注册类型" }} - - - - @@ -126,11 +117,6 @@ export default { mobile: "", password: "", verificationCode: "", - registerType: [], - currentRegisterType: { - id: 0, - name: "", - }, isAgree: false, }; }, @@ -143,11 +129,7 @@ export default { openId: (state) => state.user.openId, }), }, - onLoad() { - this.$models.user.getRegisterType().then((list) => { - this.registerType = list; - }); - }, + onLoad() {}, onShow() {}, onReady() {}, onReachBottom() {}, @@ -155,13 +137,6 @@ export default { onShareTimeline() {}, onShareAppMessage() {}, methods: { - /** - * 修改注册类型 - */ - changeRegisterType(e) { - let currentRegisterType = this.registerType[e.detail.value]; - this.currentRegisterType = currentRegisterType; - }, /** * 忘记密码 */ @@ -256,17 +231,12 @@ export default { this.$utils.toast("请先阅读并同意《服务协议》《隐私政策》"); return; } - if (!this.currentRegisterType.id) { - this.$utils.toast("请选择注册类型"); - return; - } this.$models.user .register( { mobile: this.mobile, password: this.password, openId: this.openId, - registerType: this.currentRegisterType.id, }, this.verificationCode ) @@ -381,14 +351,4 @@ export default { margin: 160rpx auto 160rpx auto; } } -.picker-view.register-type { - font-size: 32rpx; - padding: 30rpx 0; - .name { - color: #c9c9c9; - } - .name.active { - color: #666666; - } -} \ No newline at end of file