wkw 6 сар өмнө
parent
commit
1b8e5e0819

+ 9 - 0
src/views/login/login.vue

@@ -395,6 +395,14 @@
 			// this.getWxLoginQr()
 		},
 		methods: {
+			// 更新用户类型
+			getUserType(){
+				this.$Request.post('/app/user/updateUser',{userType:1},{type: 'json'}).then(res => {
+					if (res.code == 0) {
+						console.log(res)
+					}
+				})
+			},
 			//关闭绑定手机号的回调
 			closeFrom() {
 				this.form = {
@@ -571,6 +579,7 @@
 				}
 				this.$Request.post('/app/Login/registApp', data).then(res => {
 					if (res.code == 0) {
+						this.getUserType();
 						//存储用户登录凭证token
 						localStorage.setItem('token', res.token)
 						localStorage.setItem('userId', res.user.userId)

+ 16 - 16
src/views/setting/index.vue

@@ -152,14 +152,14 @@
 						src1: '/images/setting/account.png',
 						src2: '/images/setting/account_.png'
 					},
-					{
-						name: '注销账号',
-						path: 'logoff',
-						isse: false,
-						type: 3,
-						src1: '/images/setting/zhuxiao.png',
-						src2: '/images/setting/zhuxiao_.png'
-					},
+					// {
+					// 	name: '注销账号',
+					// 	path: 'logoff',
+					// 	isse: false,
+					// 	type: 3,
+					// 	src1: '/images/setting/zhuxiao.png',
+					// 	src2: '/images/setting/zhuxiao_.png'
+					// },
 					{
 						name: '退出登录',
 						path: 'noLogin',
@@ -217,14 +217,14 @@
 						src1: '/images/setting/account.png',
 						src2: '/images/setting/account_.png'
 					}, 
-					{
-						name: '注销账号',
-						path: 'logoff',
-						isse: false,
-						type: 3,
-						src1: '/images/setting/zhuxiao.png',
-						src2: '/images/setting/zhuxiao_.png'
-					},
+					// {
+					// 	name: '注销账号',
+					// 	path: 'logoff',
+					// 	isse: false,
+					// 	type: 3,
+					// 	src1: '/images/setting/zhuxiao.png',
+					// 	src2: '/images/setting/zhuxiao_.png'
+					// },
 					{
 						name: '退出登录',
 						path: 'noLogin',