From 452ae76fa951f6e201dfbd67dc67bd07060a261d Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Tue, 18 Feb 2025 22:44:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=9A=E5=95=86=E6=88=B7=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=94=AF=E6=8C=81=E5=88=86=E7=B1=BB=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/shop/index/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/plugins/shop/index/index.vue b/pages/plugins/shop/index/index.vue index da746516..d5f3375e 100644 --- a/pages/plugins/shop/index/index.vue +++ b/pages/plugins/shop/index/index.vue @@ -97,11 +97,15 @@ onLoad(params) { // 调用公共事件方法 - app.globalData.page_event_onload_handle(params); + app.globalData.page_event_onload_handle(params); + + // 参数处理 + params = app.globalData.launch_params_handle(params); // 设置参数 this.setData({ - params: params, + params: params, + nav_active_value: params.category_id || 0, }); // 数据加载 this.get_data(); From db595f4f067f5b3e2fb5bc7505665e778d18c217 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Tue, 25 Feb 2025 16:15:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/App.vue b/App.vue index 3681eff2..63d1a1a2 100644 --- a/App.vue +++ b/App.vue @@ -7,10 +7,10 @@ data: { // 基础配置 // 数据接口请求地址 - request_url:'http://shopxo.com/', + request_url:'https://new.shopxo.vip/', // 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/) - static_url:'http://shopxo.com/', + static_url:'https://new.shopxo.vip/', // 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立) system_type: 'default', @@ -938,11 +938,14 @@ * url url地址 */ get_url_main_part(url) { - if (url.indexOf('?') == -1) { - var value = url; - } else { - var temp_str = url.split('?'); - var value = temp_str[0]; + var value = ''; + if((url || null) != null) { + if (url.indexOf('?') == -1) { + value = url; + } else { + temp_str = url.split('?'); + value = temp_str[0]; + } } return value; },