Explorar o código

修改tab展现方式

tanxue hai 2 meses
pai
achega
d3d292ec30
Modificáronse 2 ficheiros con 11 adicións e 11 borrados
  1. 1 4
      common/styles/global/pages.scss
  2. 10 7
      pages/wordList/wordList.vue

+ 1 - 4
common/styles/global/pages.scss

@@ -1930,12 +1930,9 @@
 		.word-list-swiper-item{display: flex;flex-direction: column;}
 	}
 	.word-title-box{
-		flex-shrink: 0;margin: 0 2%;width: 96%;
+		display: flex;flex-shrink: 0;margin: 0 2%;width: 96%;overflow:hidden ;
 		line-height: 1.4;box-sizing: border-box;border-bottom: 1rpx dashed #068aea;
-		.uni-scroll-view-content{display: flex;}
 		.title-item{margin: 0 18rpx;color: #068aea;font-size: 28rpx;position: relative;padding: 12rpx 24rpx;}
-		.title-item:first-child{margin: 0;padding: 0;}
-		.title-item:last-child{margint: 0;padding: 0;}
 		.title-item.active{font-weight: bold;}
 		.title-item.active::after{content: '';width: 70%;height: 8rpx;display: block;
 		background-color:#068aea;bottom: 0rpx;left:15%;position: absolute;border-radius: 8rpx;}

+ 10 - 7
pages/wordList/wordList.vue

@@ -7,11 +7,12 @@
 		</view>
 		<view class="ezy-tab-border">
 			<view class="ezy-border-body">
-          <view  class="word-title-box" style="display: flex;overflow-x: auto;" v-if="listData.jieNumberList && listData.jieNumberList.length >0">
-					<view :id="'item-' + item.jieId" class="title-item" v-for="(item,index) in listData.jieNumberList" @click="handleTitleClick(item)"
-						:key="item.jieId" :class="{active: listData.activeIndex == index}" 
-						v-show="isTargetInSameGroup(listData.jieNumberList, listData.jieNumberList[listData.activeIndex],item.jieId)">  
-						Unit{{item.number}}</view>
+          <view  class="word-title-box"  v-if="listData.jieNumberList && listData.jieNumberList.length >0">
+		  <!-- @click="handleTitleClick(item)"-->
+				<view :id="'item-' + item.jieId" class="title-item" v-for="(item,index) in listData.jieNumberList" 
+					:key="item.jieId" :class="{active: listData.activeIndex == index}" 
+					v-show="isTargetInSameGroup(listData.jieNumberList, listData.jieNumberList[listData.activeIndex],item.jieId)">  
+					Unit{{item.number}}</view>
           </view>
 
 				<swiper class="word-list-swiper-box" :indicator-dots="false" :autoplay="false" :circular="false" :current="listData.activeIndex"
@@ -176,9 +177,11 @@
 
 	//tab click
 	function handleTitleClick(item) {
-		if (!cacheManager.get('auth')) {
+		if (userCode == 'Visitor') {
 			youkeDialogRef.value.handleShow();
-		} else {
+		} else if (userCode == 'Not-Vip') {
+			goPayDialogRef.value.handleShow();
+		}else {
 			updataShuju(item)
 		}
 	}