diff --git a/api/request.js b/api/request.js index 5ebd706..a9bc839 100644 --- a/api/request.js +++ b/api/request.js @@ -11,14 +11,16 @@ */ // 基础路径:修改此处即可切换后端地址 -const BASE_URL = 'http://192.168.124.137:3001'; +const BASE_URL = 'https://official.inkreach.cc/api/'; +export { BASE_URL }; // 默认配置 const TIMEOUT = 30000; const DEFAULT_HEADER = { 'Content-Type': 'application/json' }; // 统一拼装 URL:完整地址直接返回,否则 BASE_URL + path -function buildUrl(url) { +// 图片/静态资源路径也可直接调用,得到完整可访问地址 +export function buildUrl(url) { if (!url) return ''; if (/^https?:\/\//i.test(url)) return url; const base = BASE_URL.replace(/\/+$/, ''); diff --git a/pages.json b/pages.json index 868336c..5311891 100644 --- a/pages.json +++ b/pages.json @@ -32,14 +32,14 @@ { "pagePath": "pages/index/index", "text": "首页", - "iconPath": "static/icons/tabbar/tab_home_gray.svg", - "selectedIconPath": "static/icons/tabbar/tab_home_orange.svg" + "iconPath": "static/icons/tabbar/tab_home_gray.png", + "selectedIconPath": "static/icons/tabbar/tab_home_orange.png" }, { "pagePath": "pages/products/products", "text": "产品", - "iconPath": "static/icons/tabbar/tab_product_gray.svg", - "selectedIconPath": "static/icons/tabbar/tab_product_orange.svg" + "iconPath": "static/icons/tabbar/tab_product_gray.png", + "selectedIconPath": "static/icons/tabbar/tab_product_orange.png" } ] }, diff --git a/pages/product-detail/components/ColorSelector.vue b/pages/product-detail/components/ColorSelector.vue index 0d3f8fb..761f4f0 100644 --- a/pages/product-detail/components/ColorSelector.vue +++ b/pages/product-detail/components/ColorSelector.vue @@ -1,5 +1,5 @@