lhl 4 years ago
parent
commit
e270253356

+ 18 - 0
src/App.vue

@@ -22,6 +22,24 @@ export default {
     NavBar,
     TopLogo,
 	PageBottom
+  },
+  created() {
+  	if(this.isMobile()) {
+		window.location.href = 'http://jz.red.igxys.com/index/#/'
+	}
+  },
+  methods: {
+	  isMobile() {
+	  	if(/android/i.test(navigator.userAgent)) {
+	  		//document.write("This is Android'browser.");//这是Android平台下浏览器
+	  		return true;
+	  	}
+	  	if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
+	  		//document.write("This is iOS'browser.");//这是iOS平台下浏览器
+	  		return true;
+	  	}
+	  	return false;
+	  }
   }
 }
 </script>

+ 6 - 0
src/components/leftNav/LeftNav.vue

@@ -137,6 +137,12 @@
 					case '/knowledge/bloodDonation/detail':
 						title = '无偿献血'
 						break
+					case '/knowledge/development/detail':
+						title = '红十字发展'
+						break
+					case '/knowledge/development/list':
+						title = '红十字发展'
+						break
 					case '/newContent/jlx/detail':
 						title = '江陵县红会'
 						break

+ 1 - 1
src/views/donation/Hpc.vue

@@ -1,5 +1,5 @@
 <template>
-	<div class="hpc">
+	<div class="content">
 		<div v-html="content"></div>
 	</div>
 </template>

+ 1 - 1
src/views/knowledge/bloodDonation/List.vue

@@ -49,7 +49,7 @@
 				getList({
 					page: obj.page,
 					limit: obj.limit
-				},63).then(res => {
+				},50).then(res => {
 					obj.newList = res.data.list.sort(this.compare('id'))
 					obj.total = res.data.count
 				})

+ 2 - 2
src/views/knowledge/development/List.vue

@@ -1,6 +1,6 @@
 <template>
 	<div class="new-list">
-		<div class="new-item  hand" v-for="item in newList" :key="item.id" @click="navTo('/knowledge/bloodDonation/detail?id='+ item.id)">
+		<div class="new-item  hand" v-for="item in newList" :key="item.id" @click="navTo('/knowledge/development/detail?id='+ item.id)">
 			<div class="title clamp">
 				<span class="title-icon"></span>
 				{{ item.title }}
@@ -49,7 +49,7 @@
 				getList({
 					page: obj.page,
 					limit: obj.limit
-				},50).then(res => {
+				},63).then(res => {
 					obj.newList = res.data.list.sort(this.compare('id'))
 					obj.total = res.data.count
 				})