|
@@ -10,15 +10,15 @@
|
|
</u-navbar>
|
|
</u-navbar>
|
|
<view class="page-wrap">
|
|
<view class="page-wrap">
|
|
<u-swiper
|
|
<u-swiper
|
|
- v-if="slideImgList.length>0"
|
|
|
|
- :list="slideImgList"
|
|
|
|
|
|
+ v-if="mainImgList.length>0"
|
|
|
|
+ :list="mainImgList"
|
|
height="700rpx"
|
|
height="700rpx"
|
|
@change="e => currentNum = e.current"
|
|
@change="e => currentNum = e.current"
|
|
:autoplay="false"
|
|
:autoplay="false"
|
|
indicatorStyle="right: 20px"
|
|
indicatorStyle="right: 20px"
|
|
>
|
|
>
|
|
<view slot="indicator" class="indicator-num">
|
|
<view slot="indicator" class="indicator-num">
|
|
- <text class="indicator-num__text">{{ currentNum + 1 }}/{{ slideImgList.length }}</text>
|
|
|
|
|
|
+ <text class="indicator-num__text">{{ currentNum + 1 }}/{{ mainImgList.length }}</text>
|
|
</view>
|
|
</view>
|
|
</u-swiper>
|
|
</u-swiper>
|
|
</view>
|
|
</view>
|
|
@@ -78,7 +78,7 @@
|
|
return {
|
|
return {
|
|
id:'',
|
|
id:'',
|
|
details:{slideImgList:[]},
|
|
details:{slideImgList:[]},
|
|
- slideImgList:[],
|
|
|
|
|
|
+ mainImgList:[],
|
|
currentNum:0,
|
|
currentNum:0,
|
|
telShow:false,
|
|
telShow:false,
|
|
tempTel:'',
|
|
tempTel:'',
|
|
@@ -99,7 +99,7 @@
|
|
getPageData(){
|
|
getPageData(){
|
|
this.$u.api.shopById({id:this.id}).then(res=>{
|
|
this.$u.api.shopById({id:this.id}).then(res=>{
|
|
this.details = res.data;
|
|
this.details = res.data;
|
|
- this.slideImgList = res.data.slideImgList||[];
|
|
|
|
|
|
+ this.mainImgList = res.data.mainImgList||[];
|
|
// console.log('getPageData',this.details);
|
|
// console.log('getPageData',this.details);
|
|
}).catch(err=>{
|
|
}).catch(err=>{
|
|
console.log('getPageData',err);
|
|
console.log('getPageData',err);
|