From e0f2672b1296e71fd3f322b812df44c93514ee9a Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Fri, 29 Aug 2025 16:31:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E4=BA=A7=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++-- static/js/request.js | 8 ++++---- subPackages/techan/index.vue | 9 +++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/App.vue b/App.vue index 622310b..98337fa 100644 --- a/App.vue +++ b/App.vue @@ -8,8 +8,8 @@ uni.setStorageSync('SHFlag', true) this.Post({id:2388},'/api/multimedia/detail').then(res => { if (res && res.data) { - // let SHFlag = res.data.company_name == 1 ? true : false - let SHFlag = res.data.ext_link == 1 ? true : false + let SHFlag = res.data.company_name == 1 ? true : false + // let SHFlag = res.data.ext_link == 1 ? true : false uni.setStorageSync('SHFlag', SHFlag) return } else { diff --git a/static/js/request.js b/static/js/request.js index 95c629b..f81f834 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -3,10 +3,10 @@ import store from '@/store'; // 定义 API URL // const DEV_API_URL = 'https://api.cloud.sz-trip.com'; -// const DEV_API_URL = 'https://api.sutenong.com' -// const PROD_API_URL = 'https://api.sutenong.com'; -const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; -const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; +const DEV_API_URL = 'https://api.sutenong.com' +const PROD_API_URL = 'https://api.sutenong.com'; +// const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; +// const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL; // 获取token diff --git a/subPackages/techan/index.vue b/subPackages/techan/index.vue index b33d5d6..9f240c9 100644 --- a/subPackages/techan/index.vue +++ b/subPackages/techan/index.vue @@ -33,7 +33,7 @@ - + {{item.name}} @@ -370,8 +370,9 @@ // 根据产品分类获取产品列表 getList(){ - if (!this.typeChild[this.typeChildIndex] || !this.typeChild[this.typeChildIndex].id) { - return + let tag_id = this.typeParam[this.typeIndex].id; + if (this.typeChild[this.typeChildIndex]&&this.typeChild[this.typeChildIndex].id) { + tag_id = this.typeChild[this.typeChildIndex].id } let param = {} @@ -380,7 +381,7 @@ if (this.search_type == 3) { param = {order: 'asc',sort:'price'} } if (this.search_type == 4) { param = {order: 'desc',sort:'price'} } this.Post({ - tag_id: this.typeChild[this.typeChildIndex].id, + tag_id: tag_id, offset: this.list.length, limit: 10, ...param