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