diff --git a/App.vue b/App.vue
index 47f6613..c57dedd 100644
--- a/App.vue
+++ b/App.vue
@@ -15,6 +15,24 @@
...mapActions(['memberLogin','getLoginCode']),
...mapMutations(['setVisitChannels']),
+ handleGetUserInfo(){
+ wx.request({
+ url: 'https://qifu-api.baidubce.com/ip/local/geo/v1/district',
+ success(response) {
+ const data = response.data;
+ // 处理数据
+ let obj = {
+ ...data.data,
+ ip: data.ip
+ }
+ console.log('obj',obj)
+ uni.setStorageSync('userInfo',obj)
+ },
+ fail(error) {
+ // 处理错误
+ }
+ });
+ }
},
onLaunch: function(options) {
uni.getSystemInfo({
@@ -63,13 +81,7 @@
});
-
-
-
-
-
-
-
+ this.handleGetUserInfo()
this.$util.addUserBehavior( {intoRoute: '/'+options.path, outtoRoute: ''}) // 记录用户行为
},
diff --git a/common/utils.js b/common/utils.js
index 7c3a9fa..78db376 100644
--- a/common/utils.js
+++ b/common/utils.js
@@ -180,6 +180,9 @@ function addUserBehavior(obj) {
}
obj.visitChannels = store.state.visitChannels
let userDate = store.state.userData
+
+ let baseInfo = uni.getStorageSync('userInfo')
+
let req = {
userName:userDate.UserName,
phoneNumber:userDate.Membership_Phone,
@@ -188,7 +191,10 @@ function addUserBehavior(obj) {
intoRoute:obj.intoRoute,
outtoRoute:obj.outtoRoute,
visitChannels:obj.visitChannels,
- behaviorRecordDesc:''
+ behaviorRecordDesc:'',
+ LoginIP: baseInfo.ip || '',
+ LoginPlace: (baseInfo.prov ? baseInfo.prov : '' ) + (baseInfo.prov && baseInfo.city ? '-' : '') + (baseInfo.city ? baseInfo.city : ''),
+ SOURCE_PLATFORM: '数智化看板'
}
request.$webGet('CommercialApi/UserBehavior/AddUserBehavior',req).then(() => {
diff --git a/manifest.json b/manifest.json
index 3b4fc4e..2f4706f 100644
--- a/manifest.json
+++ b/manifest.json
@@ -74,6 +74,7 @@
},
"usingComponents" : true,
"__usePrivacyCheck__": true,
+ "lazyCodeLoading": "requiredComponents",
"permission" : {
"scope.userLocation" : {
"desc" : "获取位置信息用于展示"
diff --git a/pages.json b/pages.json
index 39970c7..78da682 100644
--- a/pages.json
+++ b/pages.json
@@ -9,15 +9,6 @@
"enablePullDownRefresh": true
}
},
- {
- "path": "pages/index/old/index",
- "style":
- {
- "navigationBarTitleText": "驿达数智化看板",
- "navigationStyle": "custom",
- "enablePullDownRefresh": true
- }
- },
{
"path": "pages/userCenter/userCenter",
"style":
@@ -42,6 +33,19 @@
}
],
"subPackages": [ //分包加载配置
+ {
+ "root": "pages/index/old",
+ "pages": [
+ {
+ "path": "index",
+ "style":{
+ "navigationBarTitleText": "驿达数智化看板",
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": true
+ }
+ }
+ ]
+ },
{
"root": "pages/authorityApproval",
"pages": [
@@ -897,12 +901,7 @@
"selectedIconPath": "static/images/tab/homeActive.png",
"text": ""
},
- {
- "pagePath": "pages/index/old/index",
- "iconPath": "static/images/tab/home.png",
- "selectedIconPath": "static/images/tab/homeActive.png",
- "text": ""
- },
+
{
"pagePath": "pages/userCenter/userCenter",
"iconPath": "static/images/tab/user.png",
diff --git a/pages/commercialBI/businessPortrait.vue b/pages/commercialBI/businessPortrait.vue
index 21ef550..82e2290 100644
--- a/pages/commercialBI/businessPortrait.vue
+++ b/pages/commercialBI/businessPortrait.vue
@@ -89,7 +89,6 @@ import ConsumptionCompare from "./components/bussiness/consumptionCompare.vue";
import BestsellerShop from "./components/bussiness/bestsellerShop.vue";
import NoData from "./components/noData.vue";
import BandLevel from "./components/format/bandLevel.vue";
-import commercialType from "./commercialType.vue";
import {getFieldEnum} from "../../util/dateTime";
import SliderPage from "./components/sliderPage.vue";
@@ -101,7 +100,7 @@ export default {
NoData,
BestsellerShop,
ConsumptionCompare,
- BusinessFormat, LevelTop, analyse, TimePeriodAnalysis, headerTop,transactionAnalysis,commercialType},
+ BusinessFormat, LevelTop, analyse, TimePeriodAnalysis, headerTop,transactionAnalysis},
data() {
return {
topBg:'linear-gradient(180deg, #EDD1AF 0%, #EED7BB 100%);',//顶部组件的悬浮背景色
diff --git a/pages/commercialBI/formatPortrait.vue b/pages/commercialBI/formatPortrait.vue
index fc6254b..270691c 100644
--- a/pages/commercialBI/formatPortrait.vue
+++ b/pages/commercialBI/formatPortrait.vue
@@ -109,12 +109,11 @@ import BandLevel from "./components/format/bandLevel.vue";
import ConsumptionLevel from "./components/format/consumLevel.vue";
import BandNumber from "./components/format/bandNumber.vue";
import NoData from "./components/noData.vue";
-import commercialType from "./commercialType.vue";
import { tableList, wrapTreeNode } from '@/util/dateTime/index'
export default {
name: "businessPortrait",
- components: {NoData, BandNumber, ConsumptionLevel, BandLevel, FillingDegree, analyse, headerTop,commercialType},
+ components: {NoData, BandNumber, ConsumptionLevel, BandLevel, FillingDegree, analyse, headerTop},
data() {
return {
topBg:'linear-gradient(180deg, #C6C1F0 0%, #CECBF3 100%);',//顶部组件的悬浮背景色
diff --git a/pages/commercialBI/formatPortraitBI.vue b/pages/commercialBI/formatPortraitBI.vue
index d990bb5..89b7b52 100644
--- a/pages/commercialBI/formatPortraitBI.vue
+++ b/pages/commercialBI/formatPortraitBI.vue
@@ -71,7 +71,6 @@ import BandLevel from "./components/format/bandLevel.vue";
import ConsumptionLevel from "./components/format/consumLevel.vue";
import BandNumber from "./components/format/bandNumber.vue";
import NoData from "./components/noData.vue";
-import commercialType from "./commercialType.vue";
import {getFieldEnum} from "../../util/dateTime";
import SliderPage from "./components/sliderPage.vue";
@@ -79,7 +78,7 @@ export default {
name: "businessPortrait",
components: {
SliderPage,
- NoData, BandNumber, ConsumptionLevel, BandLevel, FillingDegree, analyse, headerTop,commercialType},
+ NoData, BandNumber, ConsumptionLevel, BandLevel, FillingDegree, analyse, headerTop},
data() {
return {
topBg:'linear-gradient(180deg, #C6C1F0 0%, #CECBF3 100%);',//顶部组件的悬浮背景色
diff --git a/pages/commercialBI/guestPortrait.vue b/pages/commercialBI/guestPortrait.vue
index cd08654..4acfb13 100644
--- a/pages/commercialBI/guestPortrait.vue
+++ b/pages/commercialBI/guestPortrait.vue
@@ -77,14 +77,13 @@ import ConsumPrefer from "./components/guest/consumPrefer.vue";
import ConsumptionLevel from "./components/guest/consumptionLevel.vue";
import BusinessType from "./components/guest/businessType.vue";
import NoData from "./components/noData.vue";
-import commercialType from "./commercialType.vue";
import {getFieldEnum} from "../../util/dateTime";
import SliderPage from "./components/sliderPage.vue";
export default {
name: "guestPortrait",
components:{
SliderPage,
- NoData, BusinessType, ConsumptionLevel, ConsumPrefer, analyse, headerTop,customerFirst,customerSecond,commercialType},
+ NoData, BusinessType, ConsumptionLevel, ConsumPrefer, analyse, headerTop,customerFirst,customerSecond},
data() {
return {
topBg:'linear-gradient(180deg, #A1D0C1 0%, #B1D9CD 100%);',//顶部组件的悬浮背景色
diff --git a/pages/commercialBI/managePortrait.vue b/pages/commercialBI/managePortrait.vue
index c669680..2d84198 100644
--- a/pages/commercialBI/managePortrait.vue
+++ b/pages/commercialBI/managePortrait.vue
@@ -195,7 +195,6 @@ import analyse from "./components/analyse.vue";
import RevenueTrends from "./components/manager/revenueTrends.vue";
import request from '@/util/index.js'
import NoData from "./components/noData.vue";
-import commercialType from "./commercialType.vue";
import {getFieldEnum} from "../../util/dateTime";
import SliderPage from "./components/sliderPage.vue";
@@ -203,7 +202,7 @@ export default {
name: "businessPortrait",
components: {
SliderPage,
- NoData, RevenueTrends, MoneyCompare, ContractGuarantee, RevenueAnalysis, headerTop,analyse,commercialType},
+ NoData, RevenueTrends, MoneyCompare, ContractGuarantee, RevenueAnalysis, headerTop,analyse},
data() {
return {
topBg:'linear-gradient(180deg, #D9CCEF 0%, #DED3F2 100%);',
diff --git a/pages/index/components/menus.js b/pages/index/components/menus.js
index 4a3b2f7..4d72053 100644
--- a/pages/index/components/menus.js
+++ b/pages/index/components/menus.js
@@ -2,8 +2,8 @@ const yewu = [{
"name": "财务审批",
"id": "1a2907bd-c2f5-4ef9-9ead-70496650ace6",
"modelName": "FinancialApproval",
- "imagePath": "/static/images/index/cwsp.png",
- "noImagePath": "/static/images/index/cwsp-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/cwsp.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/cwsp-no.png",
"homeUrl": "/pages/expenseApproval/expenseApproval"
}, {
"name": "招标投标",
@@ -16,23 +16,23 @@ const yewu = [{
"name": "服务区报销",
"id": "8fea5036-d67e-476e-9e56-5f379ba6ae18",
"modelName": "ServerPartFinancialApproval",
- "imagePath": "/static/images/index/fwqbx.png",
- "noImagePath": "/static/images/index/fwqbx-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/fwqbx.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/fwqbx-no.png",
"homeUrl": "/pages/serviceAreaReimbursement/serviceAreaReimbursement"
}, {
"name": "合同审批",
"id": "ac661db4-1af1-4732-88db-76bc05eec335",
"modelName": "ServerPartCompactApproval",
- "imagePath": "/static/images/index/htsp.png",
- "noImagePath": "/static/images/index/htsp-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/htsp.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/htsp-no.png",
"homeUrl": "/pages/contract/contract"
}];
const work = [{
"name": "公文阅办",
"id": "2580cb9f-ad2c-4d0b-b478-0be52eaf6ef6",
"modelName": "Publicity",
- "imagePath": "/static/images/index/gwyb.png",
- "noImagePath": "/static/images/index/gwyb-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/gwyb.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/gwyb-no.png",
"homeUrl": "/pages/officialDocManagement/officialDocManagement"
},
{
@@ -40,14 +40,14 @@ const work = [{
"id": "c870b1bc-95c8-473d-81c8-8596eb793bd4",
"modelName": "Publicity",
"imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/publicity.png",
- "noImagePath": "/static/images/index/publicity-no.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/publicity-no.png",
"homeUrl": "/pages/publicity/publicity"
}, {
"name": "请假加班",
"id": "1ceeaa5c-d11e-4dcd-8d33-0c3df4cd4937",
"modelName": "Publicity",
"imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/qjjb.png",
- "noImagePath": "/static/images/index/qjjb-no.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/qjjb-no.png",
"homeUrl": "/pages/askForLeave/askForLeave"
},
{
@@ -78,46 +78,46 @@ const scene = [{
"name": "走动式管理",
"id": "c26c1620-2149-4b3d-ac2e-07e0c0494042",
"modelName": "Mbwa",
- "imagePath": "/static/images/index/zdsgl.png",
- "noImagePath": "/static/images/index/zdsgl-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/zdsgl.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/zdsgl-no.png",
"homeUrl": "/pages/mbwa/mbwa"
}, {
"name": "投诉建议",
"id": "d405ae13-3388-41c0-a5f6-d11194d0a943",
"modelName": "Suggestion",
"imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/tsjy.png",
- "noImagePath": "/static/images/index/tsjy-no.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/tsjy-no.png",
"homeUrl": "/pages/suggestion/suggestion"
},
{
"name": "收银稽核",
"id": "ebd8cae4-d36d-4ea0-a7e9-61e566bf9e24",
"modelName": "cashAudit",
- "imagePath": "/static/images/index/syjh.png",
- "noImagePath": "/static/images/index/syjh-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/syjh.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/syjh-no.png",
"homeUrl": "/pages/cashAudit/list"
},
{
"name": "稽核异常",
"id": "b548740f-a942-4de3-8d55-c0a2370171ba",
"modelName": "abnormalaudit",
- "imagePath": "/static/images/index/syjh.png",
- "noImagePath": "/static/images/index/syjh-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/syjh.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/syjh-no.png",
"homeUrl": "/pages/abnormalaudit/index"
}, {
"name": "设备巡检",
"id": "",
"modelName": "",
- "imagePath": "/static/images/index/sbxj.png",
- "noImagePath": "/static/images/index/sbxj-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/sbxj.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/sbxj-no.png",
"homeUrl": ""
},
{
"name": "物业管理",
"id": "",
"modelName": "",
- "imagePath": "/static/images/index/wygl.png",
- "noImagePath": "/static/images/index/wygl-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/wygl.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/wygl-no.png",
"homeUrl": ""
},
]
@@ -126,7 +126,7 @@ const management = [{
"id": "74934d31-385a-4eed-80bb-9c9ed7da29b5",
"modelName": "EverdayRenven",
"imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/mrys.png",
- "noImagePath": "/static/images/index/mrys-no.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/mrys-no.png",
"homeUrl": "/pages/everdayRenven/index"
},
{
@@ -164,22 +164,22 @@ const management = [{
"name": "商业BI",
"id": "9125e837-1961-4d92-bdc1-2200260d9643",
"modelName": "AnnualData",
- "imagePath": "/static/images/index/ndsj.png",
- "noImagePath": "/static/images/index/ndsj-no.png",
+ "imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/ndsj.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/ndsj-no.png",
"homeUrl": "/pages/webview/webview?src=https://eshangtech.com/questionnarie/business"
}, {
"name": "权限审批",
"id": "c802a38f-3bbd-4db0-89b6-34e404c8d8cc",
"modelName": "authorityApproval",
"imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/qxsp.png",
- "noImagePath": "/static/images/index/qxsp-no.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/qxsp-no.png",
"homeUrl": "/pages/authorityApproval/index"
}, {
"name": "资质审批",
"id": "d0bc5a4d-c509-4b22-ba2b-01ae675852d6",
"modelName": "commodity_temp",
"imagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/qxsp.png",
- "noImagePath": "/static/images/index/qxsp-no.png",
+ "noImagePath": "https://eshangtech.com/ShopICO/ahyd-BID/index/qxsp-no.png",
"homeUrl": "/pages/commodity_temp/index"
}
]
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 00d3f23..77ed396 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -123,7 +123,7 @@