|  | @@ -54,9 +54,9 @@
 | 
	
		
			
				|  |  |  	</div>	
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<van-grid :border="false" >
 | 
	
		
			
				|  |  | -		<van-grid-item icon="photo-o" text="场所活动" />
 | 
	
		
			
				|  |  | -		<van-grid-item icon="photo-o" text="私设聚会点" />
 | 
	
		
			
				|  |  | -		<van-grid-item icon="photo-o" text="信教群众异常" />
 | 
	
		
			
				|  |  | +		<van-grid-item icon="photo-o" text="场所活动" @click="getUser1"/>
 | 
	
		
			
				|  |  | +		<van-grid-item icon="photo-o" text="私设聚会点" @click="getUser2"/>
 | 
	
		
			
				|  |  | +		<van-grid-item icon="photo-o" text="信教群众异常" @click="getUser3"/>
 | 
	
		
			
				|  |  |  		<van-grid-item icon="photo-o" text="场所检查" />
 | 
	
		
			
				|  |  |  		<van-grid-item icon="photo-o" text="安防设施异常" />
 | 
	
		
			
				|  |  |  		<van-grid-item icon="photo-o" text="负责人会议" />
 | 
	
	
		
			
				|  | @@ -81,6 +81,9 @@ import tool from "@/tool";
 | 
	
		
			
				|  |  |  		created(){
 | 
	
		
			
				|  |  |  			let id=this.$route.query.id;
 | 
	
		
			
				|  |  |  			this.getSome();
 | 
	
		
			
				|  |  | +			this.TokenLogin();
 | 
	
		
			
				|  |  | +			
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		methods:{
 | 
	
	
		
			
				|  | @@ -88,26 +91,76 @@ import tool from "@/tool";
 | 
	
		
			
				|  |  |  				history.back();
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -			getSome(){
 | 
	
		
			
				|  |  | -	
 | 
	
		
			
				|  |  | +			
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +			async TokenLogin(){
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				let that=this;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				//SDK中 getToken() 方法获取免登token
 | 
	
		
			
				|  |  | +				// window.xm.getToken().then(async function(token){
 | 
	
		
			
				|  |  | +				// 	console.log(token);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				// 	const inputForm ={
 | 
	
		
			
				|  |  | +				// 	'token': token
 | 
	
		
			
				|  |  | +				// 	}
 | 
	
		
			
				|  |  | +				// 	var res = await this.$API.yin.TokenLogin.get(inputForm);
 | 
	
		
			
				|  |  | +					
 | 
	
		
			
				|  |  | +				// })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  | +				const inputForm ={
 | 
	
		
			
				|  |  | +					'token': "ssssssss"
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +				var res = await this.$API.yin.TokenLogin.get(inputForm);
 | 
	
		
			
				|  |  | +				console.log(res);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +				//this.$store.commit('setUser',data);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -				//http://124.70.137.152:8095/api/accountApi/gettIsDealCount?username=admin
 | 
	
		
			
				|  |  | +				// if (res.type == 1) {
 | 
	
		
			
				|  |  | +				// 	this.$router.replace({
 | 
	
		
			
				|  |  | +				// 		path: "/main",
 | 
	
		
			
				|  |  | +				// 	});
 | 
	
		
			
				|  |  | +				// } else {
 | 
	
		
			
				|  |  | +				// 	Toast.fail(res.message);
 | 
	
		
			
				|  |  | +				// }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +			getSome(){
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			async getsome2(){
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				let that=this;			
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  | +				//SDK中 getToken() 方法获取免登token
 | 
	
		
			
				|  |  | +				window.xm.getToken().then(function(token){
 | 
	
		
			
				|  |  | +					console.log(token);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +					that.con1="哈哈"+token;
 | 
	
		
			
				|  |  | +					window.xm.showToast({
 | 
	
		
			
				|  |  | +						message:that.con1
 | 
	
		
			
				|  |  | +					})
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				})
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  				const inputForm ={
 | 
	
		
			
				|  |  | -					'username': '管理员',
 | 
	
		
			
				|  |  | -					'password': 'admin@2022',
 | 
	
		
			
				|  |  | -					'code': '',
 | 
	
		
			
				|  |  | -					'uuid': ''
 | 
	
		
			
				|  |  | +					'iamRequestId': '120010',
 | 
	
		
			
				|  |  | +					'iamRemoteUser': 'admin12022',
 | 
	
		
			
				|  |  | +					'iamRemotePwd': ''
 | 
	
		
			
				|  |  |  				  }
 | 
	
		
			
				|  |  |  				// login(inputForm).then(({data}) => {
 | 
	
		
			
				|  |  |  				// 	this.$store.commit('setUser',data);
 | 
	
		
			
				|  |  |  			   	// })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -				var res = await this.$API.order.SaveOrder.post(inputForm);
 | 
	
		
			
				|  |  | +				//var res = await this.$API.yin.TokenLogin.post(inputForm);
 | 
	
		
			
				|  |  | +				var res = await this.$API.yin.SchemaService.post(inputForm);
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  |                  if (res.type == 1) {
 | 
	
		
			
				|  |  |                      this.$router.replace({
 | 
	
		
			
				|  |  |                          path: "/main",
 | 
	
	
		
			
				|  | @@ -115,6 +168,7 @@ import tool from "@/tool";
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  |                      Toast.fail(res.message);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			async getsome3(){
 | 
	
	
		
			
				|  | @@ -128,6 +182,63 @@ import tool from "@/tool";
 | 
	
		
			
				|  |  |                  console.log(res);
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +			//用户数据同步测试用(用户保存)
 | 
	
		
			
				|  |  | +			async getUser1(){
 | 
	
		
			
				|  |  | +				const inputForm ={
 | 
	
		
			
				|  |  | +					'iamRequestId': '120010',
 | 
	
		
			
				|  |  | +					'iamRemoteUser': 'admin',
 | 
	
		
			
				|  |  | +					'iamRemotePwd': '11',
 | 
	
		
			
				|  |  | +					'loginName': 'yzt2',
 | 
	
		
			
				|  |  | +					'name': '同步用户2',
 | 
	
		
			
				|  |  | +					'password': '111',
 | 
	
		
			
				|  |  | +					'idcard': '320911199010000002',
 | 
	
		
			
				|  |  | +					'email': '818166662@qq.com',
 | 
	
		
			
				|  |  | +					'phone': '88868882',
 | 
	
		
			
				|  |  | +					'mobile': '1829999992',
 | 
	
		
			
				|  |  | +					'loginFlag': '1',
 | 
	
		
			
				|  |  | +					'photo': '',
 | 
	
		
			
				|  |  | +					'sign': '个性签名2',
 | 
	
		
			
				|  |  | +				  }
 | 
	
		
			
				|  |  | +				var res = await this.$API.yin.UserCreateService.post(inputForm);
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  | +                console.log(res);
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			//(用户更新)
 | 
	
		
			
				|  |  | +			async getUser2(){
 | 
	
		
			
				|  |  | +				const inputForm ={
 | 
	
		
			
				|  |  | +					'iamRequestId': '120010',
 | 
	
		
			
				|  |  | +					'iamRemoteUser': 'admin',
 | 
	
		
			
				|  |  | +					'iamRemotePwd': '11',
 | 
	
		
			
				|  |  | +					'uid': '1639158103696228354',
 | 
	
		
			
				|  |  | +					'loginName': 'yzt222',
 | 
	
		
			
				|  |  | +					'name': '11',
 | 
	
		
			
				|  |  | +					// 'password': '',
 | 
	
		
			
				|  |  | +					// 'idcard': '',
 | 
	
		
			
				|  |  | +					// 'email': '',
 | 
	
		
			
				|  |  | +					// 'phone': '',
 | 
	
		
			
				|  |  | +					// 'mobile': '',
 | 
	
		
			
				|  |  | +					// 'loginFlag': '',
 | 
	
		
			
				|  |  | +					// 'photo': '',
 | 
	
		
			
				|  |  | +					// 'sign': '',
 | 
	
		
			
				|  |  | +				  }
 | 
	
		
			
				|  |  | +				var res = await this.$API.yin.UserUpdateService.post(inputForm);
 | 
	
		
			
				|  |  | +				console.log(res);
 | 
	
		
			
				|  |  | +                
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			//(用户删除)
 | 
	
		
			
				|  |  | +			async getUser3(){
 | 
	
		
			
				|  |  | +				const inputForm ={
 | 
	
		
			
				|  |  | +					'iamRequestId': '120010',
 | 
	
		
			
				|  |  | +					'iamRemoteUser': 'admin',
 | 
	
		
			
				|  |  | +					'iamRemotePwd': '111',
 | 
	
		
			
				|  |  | +					'uid': '1639158103696228354',
 | 
	
		
			
				|  |  | +				  }
 | 
	
		
			
				|  |  | +				var res = await this.$API.yin.UserDeleteService.post(inputForm);				
 | 
	
		
			
				|  |  | +                console.log(res);
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  	 
 | 
	
		
			
				|  |  |  	};
 |