diff --git a/pages/market/my/info.vue b/pages/market/my/info.vue
index 71b27de..9307f9a 100644
--- a/pages/market/my/info.vue
+++ b/pages/market/my/info.vue
@@ -66,7 +66,7 @@
:options="options_sex_arr"
:show="picker_show_sex"
@change="changePickerSex"
- @cancel="picker_sex_show=false"
+ @cancel="picker_show_sex=false"
>
diff --git a/pages/student/login/login.vue b/pages/student/login/login.vue
index fef06cf..144c55e 100644
--- a/pages/student/login/login.vue
+++ b/pages/student/login/login.vue
@@ -16,6 +16,7 @@
+
@@ -23,6 +24,28 @@
@click="change">
+
+
+
+
+
+
+
+
+
登录
@@ -44,11 +67,30 @@ export default {
password: true,
user: '15374889135', //账户
password1: '15374889135', //密码
+
loginType:'',//登陆类型|1=教练,2=销售,3=学员
+ loginType_str:'',//登陆类型中文名字
+ loginType_Arr:[
+ {
+ value: '1',
+ text: '教师登陆'
+ },
+ {
+ value: '2',
+ text: '销售登陆'
+ },
+ {
+ value: '3',
+ text: '学员登陆'
+ }
+ ],
+ picker_show_loginType:false,//是否显示下拉窗组件
}
},
onLoad(options) {
- this.loginType = options.loginType ?? '1'//登陆类型|1=教练,2=销售,3=学员
+ this.loginType = options.loginType ?? '2'//登陆类型|1=教练,2=销售,3=学员
+ const selectedItem = this.loginType_Arr.find(item => item.value === String(this.loginType));
+ this.loginType_str = selectedItem ? selectedItem.text : '未知类型';
// uni.hideHomeButton()
// console.log(uni.getStorageSync('um_id'))
},
@@ -66,6 +108,8 @@ export default {
},
//登陆
async login() {
+ alert(this.loginType)
+ return
let item = {};
item['username'] = this.user
item['password'] = this.password1
@@ -154,6 +198,14 @@ export default {
}
});
},
+
+ //登录类型选择相关
+ changePicker_loginType(e){
+ console.log('监听选择', e)
+ this.loginType = e.value
+ this.loginType_str = e.text
+ this.picker_show_loginType = false
+ },
}
}