wangxy 5 dienas atpakaļ
vecāks
revīzija
f561a18c37

+ 35 - 0
pages/xydtTongzhigonggaoInfo/xydtTongzhigonggaoInfo.vue

@@ -24,6 +24,21 @@
 					<MtaMpHtml class="dljt-editor-box" :content="data.info.content"></MtaMpHtml>
 
 				</view>
+				<!-- table -->
+				<view class="dljt-table-box" v-if="isHasLink(data.info.ziliao)">
+					<view class="table-th-row">
+						<view style="width: 15%">序号</view>
+						<view style="width: 60%">资料名称</view>
+						<view style="width: 25%">下载</view>
+					</view>
+					<view class="table-td-row" v-for="(ccIte,index) in data.info.ziliao">
+						<view style="width: 15%" class="item-center"><view>{{index+1}}</view></view>
+						<view style="width: 60%"><view>{{ccIte.name}}</view></view>
+						<view style="width: 25%">
+							<a class="table-btn" @click="handleDownFile(ccIte)" >文件下载</a>
+						</view>
+					</view>
+				</view>
 			</view>
 		</view>
 		<!-- 底部导航 -->
@@ -67,6 +82,26 @@
 		pageInit();
 	})
 
+	function handleDownFile(ccite) {
+		window.location.href = ccite.url;
+	}
+  
+  function isHasLink(list) {
+    if (!list) {
+      return false;
+    }
+    if (list.length>1) {
+      return true
+    }
+    if (list.length == 0 ) {
+      return false
+    }
+    if (list.length == 1 && list[0].name && list[0].url) {
+      return true
+    }
+  
+    return false
+  }
 
 	function handleGo(code) {
 		if (code == 'shouye') {

+ 1 - 1
pages/xydtXueyuanxinwenInfo/xydtXueyuanxinwenInfo.vue

@@ -24,7 +24,7 @@
 					<MtaMpHtml class="dljt-editor-box" :content="data.info.content" ></MtaMpHtml>
 					
 				</view>
-				
+
 				<!-- table -->
 				<view class="dljt-table-box" v-if="isHasLink(data.info.ziliao)">
 					<view class="table-th-row">

+ 1 - 36
pages/zypxTongzhigonggaoInfo/zypxTongzhigonggaoInfo.vue

@@ -24,22 +24,6 @@
 					<MtaMpHtml class="dljt-editor-box" :content="data.info.content"></MtaMpHtml>
 
 				</view>
-				
-				<!-- table -->
-				<view class="dljt-table-box" v-if="isHasLink(data.info.ziliao)">
-					<view class="table-th-row">
-						<view style="width: 15%">序号</view>
-						<view style="width: 60%">资料名称</view>
-						<view style="width: 25%">下载</view>
-					</view>
-					<view class="table-td-row" v-for="(ccIte,index) in data.info.ziliao">
-						<view style="width: 15%" class="item-center"><view>{{index+1}}</view></view>
-						<view style="width: 60%"><view>{{ccIte.name}}</view></view>
-						<view style="width: 25%">
-							<a class="table-btn" @click="handleDownFile(ccIte)" >文件下载</a>
-						</view>
-					</view>
-				</view>
 			</view>
 		</view>
 		<!-- 底部导航 -->
@@ -85,26 +69,7 @@
 		data.id = id;
 		pageInit();
 	})
-	
-	function handleDownFile(ccite) {
-		window.location.href = ccite.url;
-	}
-  function isHasLink(list) {
-    if (!list) {
-      return false;
-    }
-    if (list.length>1) {
-      return true
-    }
-    if (list.length == 0 ) {
-      return false
-    }
-    if (list.length == 1 && list[0].name && list[0].url) {
-      return true
-    }
-  
-    return false
-  }
+
 
 	function handleGo(code) {
 		if (code == 'shouye') {