Browse Source

特产改版

master
jiazhipeng 2 months ago
parent
commit
e0f2672b12
  1. 4
      App.vue
  2. 8
      static/js/request.js
  3. 9
      subPackages/techan/index.vue

4
App.vue

@ -8,8 +8,8 @@
uni.setStorageSync('SHFlag', true) uni.setStorageSync('SHFlag', true)
this.Post({id:2388},'/api/multimedia/detail').then(res => { this.Post({id:2388},'/api/multimedia/detail').then(res => {
if (res && res.data) { if (res && res.data) {
// let SHFlag = res.data.company_name == 1 ? true : false let SHFlag = res.data.company_name == 1 ? true : false
let SHFlag = res.data.ext_link == 1 ? true : false // let SHFlag = res.data.ext_link == 1 ? true : false
uni.setStorageSync('SHFlag', SHFlag) uni.setStorageSync('SHFlag', SHFlag)
return return
} else { } else {

8
static/js/request.js

@ -3,10 +3,10 @@ import store from '@/store';
// 定义 API URL // 定义 API URL
// const DEV_API_URL = 'https://api.cloud.sz-trip.com'; // const DEV_API_URL = 'https://api.cloud.sz-trip.com';
// const DEV_API_URL = 'https://api.sutenong.com' const DEV_API_URL = 'https://api.sutenong.com'
// const PROD_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 DEV_API_URL = 'https://swsz.api.js-dyyj.com';
const PROD_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; const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL;
// 获取token // 获取token

9
subPackages/techan/index.vue

@ -33,7 +33,7 @@
<view class="goods-container"> <view class="goods-container">
<view class="left-box no-scrollbar"> <view class="left-box no-scrollbar" v-if="typeChild.length>0">
<view :class="['left-type-item',i==typeChildIndex?'active':'']" <view :class="['left-type-item',i==typeChildIndex?'active':'']"
v-for="(item,i) in typeChild" :key="i" @click="changeChildType(item,i)"> v-for="(item,i) in typeChild" :key="i" @click="changeChildType(item,i)">
<view class="name-item">{{item.name}}</view> <view class="name-item">{{item.name}}</view>
@ -370,8 +370,9 @@
// //
getList(){ getList(){
if (!this.typeChild[this.typeChildIndex] || !this.typeChild[this.typeChildIndex].id) { let tag_id = this.typeParam[this.typeIndex].id;
return if (this.typeChild[this.typeChildIndex]&&this.typeChild[this.typeChildIndex].id) {
tag_id = this.typeChild[this.typeChildIndex].id
} }
let param = {} let param = {}
@ -380,7 +381,7 @@
if (this.search_type == 3) { param = {order: 'asc',sort:'price'} } if (this.search_type == 3) { param = {order: 'asc',sort:'price'} }
if (this.search_type == 4) { param = {order: 'desc',sort:'price'} } if (this.search_type == 4) { param = {order: 'desc',sort:'price'} }
this.Post({ this.Post({
tag_id: this.typeChild[this.typeChildIndex].id, tag_id: tag_id,
offset: this.list.length, offset: this.list.length,
limit: 10, limit: 10,
...param ...param

Loading…
Cancel
Save