增加安装查询
							parent
							
								
									6397287238
								
							
						
					
					
						commit
						f1c8338981
					
				
							
								
								
									
										21
									
								
								api/user.js
								
								
								
								
							
							
						
						
									
										21
									
								
								api/user.js
								
								
								
								
							|  | @ -1,5 +1,5 @@ | |||
| import request from "@/utils/request.js"; | ||||
| 
 | ||||
| import Cache from "@/utils/cache.js" | ||||
| /** | ||||
|  * 获取用户信息 | ||||
|  *  | ||||
|  | @ -437,4 +437,23 @@ export function extractUser() { | |||
|  * */ | ||||
| export function spreadPeoCount() { | ||||
|   return request.get("spread/people/count"); | ||||
| } | ||||
| 
 | ||||
| /* | ||||
| 统计 | ||||
| * | ||||
| */ | ||||
| export function computeUser(){ | ||||
| 	uni.request({ | ||||
| 	    url: document.location.protocol + '//shop.crmeb.net/index.php/admin/server.upgrade_api/updatewebinfo', | ||||
| 		method:'POST', | ||||
| 		data: { | ||||
| 	        host:window.location.host, | ||||
| 			https:document.location.protocol, | ||||
| 			version:'CRMEB-JAVA-KY-V2.0', | ||||
| 			ip:Cache.has('Ip') ? Cache.get('Ip') : '' | ||||
| 	    }, | ||||
| 		dataType:'json', | ||||
| 	    success: (res) => {} | ||||
| 	}); | ||||
| } | ||||
|  | @ -279,6 +279,7 @@ | |||
| 	import { | ||||
| 		toLogin | ||||
| 	} from '@/libs/login.js'; | ||||
| 	import {computeUser} from "@/api/user.js"; | ||||
| 	import { | ||||
| 		mapGetters | ||||
| 	} from "vuex"; | ||||
|  | @ -427,6 +428,9 @@ | |||
| 				that.retunTop = false | ||||
| 			} | ||||
| 			that.navH = app.globalData.navHeight; | ||||
| 			// #ifdef H5 | ||||
| 			computeUser(); | ||||
| 			// #endif | ||||
| 			// #ifdef MP || APP-PLUS | ||||
| 			// 小程序链接进入获取绑定关系id | ||||
| 			setTimeout(()=>{ | ||||
|  |  | |||
|  | @ -50,5 +50,10 @@ | |||
|        <!-- <iframe src="https://java.crmeb.net/"></iframe> --> | ||||
|        <!--若你的项目未设置根目录(默认为 / 时),则使用下方代码--> | ||||
| 		<iframe src="/" id="iframe"></iframe> | ||||
| 		<script src="https://pv.sohu.com/cityjson?ie=utf-8"></script> | ||||
| 		<script type="text/javascript"> | ||||
| 		      var Ip=returnCitySN['cip'] | ||||
| 		      localStorage.setItem('Ip', Ip) | ||||
| 		</script> | ||||
|     </body> | ||||
| </html> | ||||
		Loading…
	
		Reference in New Issue
	
	 hejinfu1026
						hejinfu1026