From a08d19af8f5bd6d5b26989bba4b4f750410d2e01 Mon Sep 17 00:00:00 2001
From: hejinfu1026 <18537720348@163.com>
Date: Wed, 26 Jan 2022 10:42:05 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=89=E8=A3=85=E6=9F=A5?=
=?UTF-8?q?=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/api/user.js | 21 ++++++++++++++++++++-
app/pages/goods_details/index.vue | 4 ++++
app/static/html/pc.html | 5 +++++
3 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/app/api/user.js b/app/api/user.js
index f929d166..fb270a34 100644
--- a/app/api/user.js
+++ b/app/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) => {}
+ });
}
\ No newline at end of file
diff --git a/app/pages/goods_details/index.vue b/app/pages/goods_details/index.vue
index 71dc31a7..f4a88e32 100644
--- a/app/pages/goods_details/index.vue
+++ b/app/pages/goods_details/index.vue
@@ -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(()=>{
diff --git a/app/static/html/pc.html b/app/static/html/pc.html
index 7148bd20..c272993f 100644
--- a/app/static/html/pc.html
+++ b/app/static/html/pc.html
@@ -50,5 +50,10 @@
+
+