|
@ -1,11 +1,11 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="bg"> |
|
|
<view class="bg"> |
|
|
<headerVue /> |
|
|
<!-- <headerVue /> --> |
|
|
<image :src="showImg(detail.head_img)" mode="widthFix" class="topImg"></image> |
|
|
<image :src="showImg(detail.head_img)" mode="widthFix" class="topImg"></image> |
|
|
|
|
|
|
|
|
<view class="box"> |
|
|
<view class="box"> |
|
|
<view v-for="(item,index) in list" :key="index" class="item" @click="gotoDetailByType(item)"> |
|
|
<view v-for="(item,index) in list" :key="index" class="item" @click="goDetailByType(item)"> |
|
|
<image :src="showImg(item.img)" mode="aspectFill" class="headimg"></image> |
|
|
<image :src="showImg(item.image)" mode="aspectFill" class="headimg"></image> |
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
<view class="title text-overflow">{{item.title}}</view> |
|
|
<view class="title text-overflow">{{item.title}}</view> |
|
|
<view class="flex-between"> |
|
|
<view class="flex-between"> |
|
@ -29,44 +29,7 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
detail: {}, |
|
|
detail: {}, |
|
|
list: [ |
|
|
list: [] |
|
|
{ |
|
|
|
|
|
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png', |
|
|
|
|
|
title: '湖石初醒湖石初醒湖石初醒湖石初醒湖石初醒', |
|
|
|
|
|
price: '13800' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png', |
|
|
|
|
|
title: '湖石初醒', |
|
|
|
|
|
price: '13800' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png', |
|
|
|
|
|
title: '湖石初醒', |
|
|
|
|
|
price: '13800' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png', |
|
|
|
|
|
title: '湖石初醒', |
|
|
|
|
|
price: '13800' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png', |
|
|
|
|
|
title: '湖石初醒', |
|
|
|
|
|
price: '13800' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png', |
|
|
|
|
|
title: '湖石初醒', |
|
|
|
|
|
price: '13800' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png', |
|
|
|
|
|
title: '湖石初醒', |
|
|
|
|
|
price: '13800' |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
@ -80,9 +43,9 @@ |
|
|
|
|
|
|
|
|
this.Post({ |
|
|
this.Post({ |
|
|
type_id: option.id, |
|
|
type_id: option.id, |
|
|
offset: this.list.length, |
|
|
offset: 0, |
|
|
limit: 100, |
|
|
limit: 100, |
|
|
},'/api/tag/getGoodsByTypeId').then(res => { |
|
|
},'/api/goods/getGoodsByType').then(res => { |
|
|
this.list = res.data; |
|
|
this.list = res.data; |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|