jiazhipeng 3 months ago
parent
commit
271548ea54
  1. 8
      subPackages/rim/rimList.vue
  2. 4
      subPackages/search/search.vue

8
subPackages/rim/rimList.vue

@ -26,9 +26,9 @@
return { return {
topImg: '', topImg: '',
typeList: [ typeList: [
{title: '景点', id: '616'}, {title: '景点', id: '105'},
{title: '线路', id: '617'}, {title: '线路', id: '106'},
{title: '特产', id: '618'}, {title: '特产', id: '107'},
], ],
typeIndex: 0, typeIndex: 0,
list: [], list: [],
@ -60,7 +60,7 @@
tag_id: this.typeList[this.typeIndex].id, tag_id: this.typeList[this.typeIndex].id,
offset: this.list.length, offset: this.list.length,
limit: this.limit, limit: this.limit,
}, '/api/product/get_product_by_tag').then(res => { }, '/api/product/get_product_by_tag_partners').then(res => {
if(res) { if(res) {
if(res.data.list.length < this.limit) this.isLoading = true if(res.data.list.length < this.limit) this.isLoading = true
this.list = this.list.concat(res.data.list) this.list = this.list.concat(res.data.list)

4
subPackages/search/search.vue

@ -14,12 +14,12 @@
<div v-for="his,hisIndex in history.slice(0,10)" @click="gotoHot(his)" :key="hisIndex" <div v-for="his,hisIndex in history.slice(0,10)" @click="gotoHot(his)" :key="hisIndex"
class="search-item textOver">{{his}}</div> class="search-item textOver">{{his}}</div>
</div> </div>
<div class="search-title">大家在搜</div> <!-- <div class="search-title">大家在搜</div>
<div class="search-list"> <div class="search-list">
<div @click="gotoHot(hot.name)" class="search-item textOver" v-for="hot,hotIndex in hot" :key="hotIndex"> <div @click="gotoHot(hot.name)" class="search-item textOver" v-for="hot,hotIndex in hot" :key="hotIndex">
{{hot.name}} {{hot.name}}
</div> </div>
</div> </div> -->
</div> </div>
</template> </template>

Loading…
Cancel
Save