diff --git a/.env.development b/.env.development index 5b84a8f..6f58f5a 100644 --- a/.env.development +++ b/.env.development @@ -33,5 +33,5 @@ VITE_APP_DOMAIN_ADDRESS = 'https://h5.mall4j.com/cloud' # 腾讯地图key (WebServiceAPI) 用于IP定位 & 地址位置解析 # 同时需要配置到 manifest配置文件 h5 -> sdkConfigs -> maps -> qqmap -> key -VITE_APP_MAP_KEY = '' +VITE_APP_MAP_KEY = 'KHMBZ-NGH6T-IOPXR-L3HD4-4YUNZ-6BFPJ' diff --git a/.env.production b/.env.production index 00cc61f..58b7611 100644 --- a/.env.production +++ b/.env.production @@ -28,4 +28,4 @@ VITE_APP_DOMAIN_ADDRESS = 'https://h5.mall4j.com/cloud' # 腾讯地图key (WebServiceAPI) 用于IP定位 & 地址位置解析 # 同时需要配置到 manifest配置文件 h5 -> sdkConfigs -> maps -> qqmap -> key -VITE_APP_MAP_KEY = '' +VITE_APP_MAP_KEY = 'KHMBZ-NGH6T-IOPXR-L3HD4-4YUNZ-6BFPJ' diff --git a/src/manifest.json b/src/manifest.json index 13bb244..cd4dbd7 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -125,7 +125,7 @@ "maps" : { "qqmap" : { // 用于h5端ip定位 - "key" : "" + "key" : "KHMBZ-NGH6T-IOPXR-L3HD4-4YUNZ-6BFPJ" } } } diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 64e5a82..b0c5031 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -506,7 +506,7 @@ const isBgImg = ref(false) */ const onGetFeatureIndex = () => { http.request({ - url: '/tmerclub_admin/mua/app/shopRenovation/get_home', + url: '/tmerclub_admin/ua/shop_renovation/get_home', data: { renovationType: 2, // 装修类型 1.pc 2.移动端 shopId: 0 @@ -574,7 +574,7 @@ const indexImgs = ref([]) // 轮播图 */ const onGetIndexImgs = () => { const params = { - url: '/tmerclub_admin/mua/app/indexPic/list', + url: '/tmerclub_admin/ua/index_img/list', method: 'GET', data: { shopId: pageQuery.shopId, diff --git a/src/utils/http.js b/src/utils/http.js index f19abf6..acf1e2b 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -41,6 +41,7 @@ const http = { Authorization: uni.getStorageSync('cloudToken'), locale: uni.getStorageSync('cloudLang') || 'zh_CN' } + console.log(head, 'head', params) if (params.header) { head['Content-Type'] = params.header.ContentType }