增加安装查询
parent
6397287238
commit
f1c8338981
21
api/user.js
21
api/user.js
|
|
@ -1,5 +1,5 @@
|
||||||
import request from "@/utils/request.js";
|
import request from "@/utils/request.js";
|
||||||
|
import Cache from "@/utils/cache.js"
|
||||||
/**
|
/**
|
||||||
* 获取用户信息
|
* 获取用户信息
|
||||||
*
|
*
|
||||||
|
|
@ -438,3 +438,22 @@ export function extractUser() {
|
||||||
export function spreadPeoCount() {
|
export function spreadPeoCount() {
|
||||||
return request.get("spread/people/count");
|
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 {
|
import {
|
||||||
toLogin
|
toLogin
|
||||||
} from '@/libs/login.js';
|
} from '@/libs/login.js';
|
||||||
|
import {computeUser} from "@/api/user.js";
|
||||||
import {
|
import {
|
||||||
mapGetters
|
mapGetters
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
|
|
@ -427,6 +428,9 @@
|
||||||
that.retunTop = false
|
that.retunTop = false
|
||||||
}
|
}
|
||||||
that.navH = app.globalData.navHeight;
|
that.navH = app.globalData.navHeight;
|
||||||
|
// #ifdef H5
|
||||||
|
computeUser();
|
||||||
|
// #endif
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
// 小程序链接进入获取绑定关系id
|
// 小程序链接进入获取绑定关系id
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
|
|
|
||||||
|
|
@ -50,5 +50,10 @@
|
||||||
<!-- <iframe src="https://java.crmeb.net/"></iframe> -->
|
<!-- <iframe src="https://java.crmeb.net/"></iframe> -->
|
||||||
<!--若你的项目未设置根目录(默认为 / 时),则使用下方代码-->
|
<!--若你的项目未设置根目录(默认为 / 时),则使用下方代码-->
|
||||||
<iframe src="/" id="iframe"></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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue