|
|
|
@ -40,7 +40,7 @@ |
|
|
|
</view> |
|
|
|
<swiper class="swiper" :circular="false" :current="current" :indicator-dots="false" :autoplay="false" |
|
|
|
@change="changeItem" :duration="500"> |
|
|
|
<swiper-item v-for="(item,index) in creatorInfo.typeImgList" :key="item.typeId" |
|
|
|
<swiper-item v-for="(item,index) in creatorInfo.typeList" :key="item.typeId" |
|
|
|
:current-item-id="item.typeId" > |
|
|
|
<view class="swiper-item bottom"> |
|
|
|
<image :src="val.imgUrl" mode="" v-for="(val,i) in item.imgList" :key="i" |
|
|
|
@ -55,8 +55,8 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
creatorImgsDetails |
|
|
|
} from '@/api/index.js' |
|
|
|
getTypeImgsPage |
|
|
|
} from '@/api/creator.js' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -65,6 +65,8 @@ |
|
|
|
arrList: [], |
|
|
|
imgWidth: 0, // 图片宽 |
|
|
|
imgHeight: 0, // 图片高 |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -80,7 +82,7 @@ |
|
|
|
success: res => { |
|
|
|
this.creatorInfo = res.data |
|
|
|
console.log('getStorage', this.creatorInfo) |
|
|
|
this.creatorInfo.typeImgList.forEach(item => { |
|
|
|
this.creatorInfo.typeList.forEach(item => { |
|
|
|
this.arrList.push(item.typeName) |
|
|
|
}) |
|
|
|
console.log('arrList', this.arrList) |
|
|
|
@ -105,6 +107,19 @@ |
|
|
|
onClickItem(e) { |
|
|
|
console.log('点击', e) |
|
|
|
this.current = e.currentIndex |
|
|
|
const params = { |
|
|
|
scanCode: this.creatorInfo.scanCode, |
|
|
|
typeId: this.current, |
|
|
|
pageNum: this.pageNum, |
|
|
|
pageSize: this.pageSize, |
|
|
|
} |
|
|
|
console.log('params',params) |
|
|
|
getTypeImgsPage(params).then(response => { |
|
|
|
if(response.data.code === 200){ |
|
|
|
console.log('response',response) |
|
|
|
//TODO 待取出圖片列表 |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 内容滑动 |
|
|
|
changeItem(e) { |
|
|
|
|