twt 9 months ago
parent
commit
2a2efdc802
1 changed files with 11 additions and 1 deletions
  1. 11 1
      pages/user/user.vue

+ 11 - 1
pages/user/user.vue

@@ -61,7 +61,7 @@
 		<view v-if="showSetting.isShowCardSystem&&f2csystemlist">
 				<view >
 				<swiper class="swiper2"  :autoplay="false" :interval="interval"
-								:duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
+						:current="f2cIndex"		:duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
 				
 					<swiper-item v-for="(item,index) in f2csystemlist">
 						<view class="cardBox">
@@ -427,6 +427,7 @@
 				showSetting:'',
 				f2csystemlist:'',
 				exitNum:'',
+				f2cIndex:'',
 			}
 		},
 		onLoad(opt) {
@@ -763,6 +764,15 @@
 					if(this.numList.customerInfo.rebateState==1&&this.numList.shopSettings.introductionDisabled){
 						this.kkshow=true
 					}
+					if(this.f2csystemlist.length>0){
+						this.f2csystemlist.forEach((item,index)=>{
+							if(item.growthState==1){
+								this.f2cIndex=index
+							}
+						})
+						
+					}
+					
 				})
 			},
 			gonavigateTo(url) {