zhengjinyi vor 3 Jahren
Ursprung
Commit
5dbef53253
2 geänderte Dateien mit 17 neuen und 17 gelöschten Zeilen
  1. 14 14
      pages/login/bindOperator.vue
  2. 3 3
      pages/seller/club/addoperator.vue

+ 14 - 14
pages/login/bindOperator.vue

@@ -79,7 +79,7 @@
 <script>
 	import { mapState,mapMutations } from 'vuex'
 	import authorize from '@/common/config/authorize.js' 
-	import wxLogin from "@/common/config/wxLogin.js"
+	import wxLogin from '@/common/config/wxLogin.js'
 	export default{
 		data() {
 			return{
@@ -102,22 +102,22 @@
 		},
 		onLoad(option) {
 			console.log(option)
-			uni.setStorageSync('bind_id', option.userID);
+			uni.setStorageSync('bind_id', option.userId)
 			this.getVerificationCode()
 			this.getWxAuthorize()
 		},
 		methods:{
 			...mapMutations(['login','logout','wxLogin']),
 			async getWxAuthorize(){
-				const wechatCode = await authorize.getCode('weixin');// 根据微信的code获取用户登录状态:1已登录过 -1未登录过
-				const getUserInfo = await authorize.getUserInfo('weixin');
+				const wechatCode = await authorize.getCode('weixin')// 根据微信的code获取用户登录状态:1已登录过 -1未登录过
+				const getUserInfo = await authorize.getUserInfo('weixin')
 				this.UserService.UserLoginAuthApplets({ 
 					code:wechatCode,
 					encryptedData:getUserInfo.encryptedData,
 					iv:getUserInfo.iv ,
 				})
 				.then(response =>{
-					this.login(response.data);
+					this.login(response.data)
 					this.$store.commit('updateStatus',response.data)
 					uni.setStorageSync('token',response.data.token)
 					uni.setStorageSync('unionId',response.data.unionId)
@@ -171,15 +171,15 @@
 			},
 			getMobileCodeFn(){//获取手机验证码
 				if( this.bindMobile == ''){
-					this.$util.msg('请输入手机号',2000);
+					this.$util.msg('请输入手机号',2000)
 					return
 				}
 				if(!this.$reg.isMobile(this.bindMobile)){
-					this.$util.msg('请输入正确的手机号',2000);
+					this.$util.msg('请输入正确的手机号',2000)
 					return
 				}
 				if( this.imageCode == ''){
-					this.$util.msg('请输入图形验证码',2000);
+					this.$util.msg('请输入图形验证码',2000)
 					return
 				}		
 				let params = {
@@ -190,20 +190,20 @@
 						imgCode:this.imageCode,
 						token:this.imageCodetoken,
 				}
-				this.isMobileDisabled = true;
+				this.isMobileDisabled = true
 				this.PublicService.GetBindMobileCode(params)
 					.then(res =>{
-						const TIME_COUNT = 60;
+						const TIME_COUNT = 60
 						this.$util.msg('验证短信已发送',2000)
 				     	if (!this.codeTime) {
-				       		this.count = TIME_COUNT;
-							this.isMobileDisabled = true;
+				       		this.count = TIME_COUNT
+							this.isMobileDisabled = true
 				       		this.codeTime = setInterval(() => {
 				       			if (this.count > 1 && this.count <= TIME_COUNT) {
 				         			this.count--
 				         			this.mobileCodeText = this.count +'s重新发送'
 				        		} else {
-					         		this.isMobileDisabled = false;
+					         		this.isMobileDisabled = false
 					         		clearInterval(this.codeTime)
 					         		this.codeTime = null
 									this.mobileCodeText = '获取验证码'
@@ -213,7 +213,7 @@
 					})
 					.catch( error =>{
 						this.$util.msg(error.msg,2000)
-						this.isMobileDisabled = false;
+						this.isMobileDisabled = false
 					})
 			},
 			GetUserProfile(){//获取用户微信个人信息

+ 3 - 3
pages/seller/club/addoperator.vue

@@ -76,7 +76,7 @@
 	export default{
 		data() {
 			return{
-				userID:'',
+				userId:'',
 				imageCodeUrl:'',
 				mobileCodeText:'获取验证码'
 			}
@@ -96,13 +96,13 @@
 		    }
 			return {
 			  title: '快来成为机构运营人员吧~',
-			  path: `pages/login/bindOperator?userID=${this.userID}`,
+			  path: `pages/login/bindOperator?userId=${this.userId}`,
 			  imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
 			}
 		},
 		onShow() {
 			this.$api.getComStorage('orderUserInfo').then((resolve) =>{
-				this.userID = resolve.userId
+				this.userId = resolve.userId
 			})
 		}
 	}