Browse Source

样式优化

tanxue 1 month ago
parent
commit
069da9aa07
2 changed files with 5 additions and 3 deletions
  1. 2 2
      pages/index/index.vue
  2. 3 1
      pages/xzzxXiazaizhongxin/xzzxXiazaizhongxin.vue

+ 2 - 2
pages/index/index.vue

@@ -18,7 +18,7 @@
 				<icon @click="handleXinwenGengDuo"></icon>
 			</view>
 		</view>
-		<view class="index-background-box">
+		<view class="index-background-box" v-if="data.gonggao.length>0">
 			<view class="index-content-box">
 				<view class="tab-item"><icon class="tzgg-icon"></icon><text>通知公告</text></view>
 				<view class="index-list-item" v-for="item in data.gonggao" :key="item.id" @click="handleClickGonggao(item)">
@@ -31,7 +31,7 @@
 				</view>
 			</view>
 		</view>
-		<view class="index-background-box">
+		<view class="index-background-box" v-if="data.xiaowu.length>0">
 			<view class="index-content-box">
 			<view class="tab-item"><icon class="xwgk-icon"></icon><text>校务公开</text></view>
 			<view class="index-list-item" v-for="item in data.xiaowu" :key="item.id" @click="handleClickXiaowu(item)">

+ 3 - 1
pages/xzzxXiazaizhongxin/xzzxXiazaizhongxin.vue

@@ -29,7 +29,9 @@
 									<view style="width: 15%">{{index+1}}</view>
 									<view style="width: 20%">{{item.classifyName}}</view>
 									<view style="width: 40%">{{item.title}}</view>
-									<view style="width: 25%" @click="handleDownFile(item)">下载</view>
+									<view style="width: 25%" @click="handleDownFile(item)">
+										<a class="table-btn">下载</a>
+									</view>
 								</view>
 							</template>
 						</MtaScrollViewVue>