fix: 修改接口

This commit is contained in:
chenglong 2025-04-14 18:32:26 +08:00
parent 3ecc4c7120
commit 7dd983eaa4
5 changed files with 6 additions and 5 deletions

View File

@ -33,5 +33,5 @@ VITE_APP_DOMAIN_ADDRESS = 'https://h5.mall4j.com/cloud'
# 腾讯地图key (WebServiceAPI) 用于IP定位 & 地址位置解析 # 腾讯地图key (WebServiceAPI) 用于IP定位 & 地址位置解析
# 同时需要配置到 manifest配置文件 h5 -> sdkConfigs -> maps -> qqmap -> key # 同时需要配置到 manifest配置文件 h5 -> sdkConfigs -> maps -> qqmap -> key
VITE_APP_MAP_KEY = '' VITE_APP_MAP_KEY = 'KHMBZ-NGH6T-IOPXR-L3HD4-4YUNZ-6BFPJ'

View File

@ -28,4 +28,4 @@ VITE_APP_DOMAIN_ADDRESS = 'https://h5.mall4j.com/cloud'
# 腾讯地图key (WebServiceAPI) 用于IP定位 & 地址位置解析 # 腾讯地图key (WebServiceAPI) 用于IP定位 & 地址位置解析
# 同时需要配置到 manifest配置文件 h5 -> sdkConfigs -> maps -> qqmap -> key # 同时需要配置到 manifest配置文件 h5 -> sdkConfigs -> maps -> qqmap -> key
VITE_APP_MAP_KEY = '' VITE_APP_MAP_KEY = 'KHMBZ-NGH6T-IOPXR-L3HD4-4YUNZ-6BFPJ'

View File

@ -125,7 +125,7 @@
"maps" : { "maps" : {
"qqmap" : { "qqmap" : {
// h5ip // h5ip
"key" : "" "key" : "KHMBZ-NGH6T-IOPXR-L3HD4-4YUNZ-6BFPJ"
} }
} }
} }

View File

@ -506,7 +506,7 @@ const isBgImg = ref(false)
*/ */
const onGetFeatureIndex = () => { const onGetFeatureIndex = () => {
http.request({ http.request({
url: '/tmerclub_admin/mua/app/shopRenovation/get_home', url: '/tmerclub_admin/ua/shop_renovation/get_home',
data: { data: {
renovationType: 2, // 1.pc 2. renovationType: 2, // 1.pc 2.
shopId: 0 shopId: 0
@ -574,7 +574,7 @@ const indexImgs = ref([]) // 轮播图
*/ */
const onGetIndexImgs = () => { const onGetIndexImgs = () => {
const params = { const params = {
url: '/tmerclub_admin/mua/app/indexPic/list', url: '/tmerclub_admin/ua/index_img/list',
method: 'GET', method: 'GET',
data: { data: {
shopId: pageQuery.shopId, shopId: pageQuery.shopId,

View File

@ -41,6 +41,7 @@ const http = {
Authorization: uni.getStorageSync('cloudToken'), Authorization: uni.getStorageSync('cloudToken'),
locale: uni.getStorageSync('cloudLang') || 'zh_CN' locale: uni.getStorageSync('cloudLang') || 'zh_CN'
} }
console.log(head, 'head', params)
if (params.header) { if (params.header) {
head['Content-Type'] = params.header.ContentType head['Content-Type'] = params.header.ContentType
} }