소스 검색

字段调整

gcz 2 년 전
부모
커밋
dea1330c7b
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      center/store.vue

+ 5 - 5
center/store.vue

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