增加安装查询

pull/1/MERGE
hejinfu1026 2022-01-26 10:42:05 +08:00
parent 6397287238
commit f1c8338981
3 changed files with 29 additions and 1 deletions

View File

@ -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) => {}
});
}

View File

@ -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(()=>{

View File

@ -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>