Browse Source

fix 年份

he2802 3 years ago
parent
commit
dc4f2316f2
3 changed files with 3 additions and 3 deletions
  1. 1 1
      pages2/bank/detail.vue
  2. 1 1
      pages2/class/detail.vue
  3. 1 1
      pages2/course/detail.vue

+ 1 - 1
pages2/bank/detail.vue

@@ -5,7 +5,7 @@
 				<image :src="$method.splitImgHost(goodsData.coverUrl, true)" style="width: 100%;"></image>
 				<view style="padding:20rpx">
 					<view style="display: flex;margin-top: 13rpx;">
-						<view class="yearTag">{{goodsData.year}}</view>
+						<view class="yearTag" v-if="goodsData.year">{{goodsData.year}}</view>
 						<view class="titleTag">{{goodsData.goodsName}}</view>
 					</view>
 					<view style="display: flex;justify-content: space-between;margin-top: 13rpx;" v-if="false">

+ 1 - 1
pages2/class/detail.vue

@@ -35,7 +35,7 @@
 			</view>
 			<u-line color="#D6D6DB" />
 			<view style="display: flex;justify-content: center;">
-				<view :style="list.length==3?'width: 220px;':'width: 280px;'"><u-tabs :list="list" font-size="24" bar-width="80" :current="current" @change="change" active-color="#007AFF"></u-tabs></view>
+				<view :style="list.length==3?'width: 180px;':'width: 280px;'"><u-tabs :list="list" font-size="24" bar-width="80" :current="current" @change="change" active-color="#007AFF"></u-tabs></view>
 			</view>
 			<u-line color="#D6D6DB" />
 		</view>

+ 1 - 1
pages2/course/detail.vue

@@ -23,7 +23,7 @@
 				</view>
 				<view style="padding:20rpx;height: 120rpx;">
 					<view style="display: flex;">
-						<view class="yearTag">{{detail.year}}</view>
+						<view class="yearTag" v-if="detail.year">{{detail.year}}</view>
 						<view class="titleTag">{{detail.goodsName}}</view>
 					</view>
 					<view style="display: flex;justify-content: space-between;margin-top: 13rpx;">