Explorar el Código

添加h5分享

ymm hace 4 años
padre
commit
baf8f4a831

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1 - 0
microserviceUserH5/static/css/vant.css


+ 8 - 0
microserviceUserH5/static/js/vender/vue/api.js

@@ -0,0 +1,8 @@
+//获取h5资讯详情接口
+ function getEvantDetails(params) {
+    return service({
+      url: `/v1/evant/information/get/evantDetails/${params}`,
+      method: 'get',
+    
+    })
+  }

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 2 - 0
microserviceUserH5/static/js/vender/vue/axios.min.js


+ 1 - 1
microserviceUserH5/static/js/vender/vue/config.js

@@ -2,7 +2,7 @@
 // var base_url = 'http://jakehou92.ticp.io'; //测试服务器
 // var base_url = 'http://192.168.100.137:3001'; //测试服务器
 // var base_url = 'http://192.168.100.98:3001'; //测试服务器
-var base_url = 'https://nntest.cdwatertek.com/app'; //测试服务器
+var base_url = 'http://192.168.80.81:8044/'; //测试服务器
 //https://www.nn-jtjt.com/app
 // var base_url = 'http://kmpark.cdwatertek.com/appwechatpay'; //测试服务器
 // var base_url = 'http://192.168.100.83:3001'; //测试服务器

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 7 - 0
microserviceUserH5/static/js/vender/vue/vant.min.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 6 - 0
microserviceUserH5/static/js/vender/vue/vue.min.js


+ 90 - 17
microserviceUserH5/vcloud/share.html

@@ -7,20 +7,20 @@
 	<title></title>
 	<link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
 	<link rel="stylesheet" href="../static/css/index.css">
-	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.12/lib/index.css" />
-	<script src="https://cdn.jsdelivr.net/npm/vue@2.6/dist/vue.min.js"></script>
-	<script src="https://cdn.jsdelivr.net/npm/vant@2.12/lib/vant.min.js"></script>
+	<link rel="stylesheet" href="../static/css/vant.css" />
+	<script src="../static/js/vender/vue/vue.min.js"></script>
+	<script src="../static/js/vender/vue/vant.min.js"></script>
 	<style>
 		.container {
 			display: flex;
 			height: 100vh;
-			align-items: center;
-			justify-content: center;
+			/* align-items: center;
+			justify-content: center; */
 		}
 
 		.footer {
-			position: absolute;
-			bottom: 0.34rem;
+			position: fixed;
+			bottom: 0rem;
 			height: 1.36rem;
 			padding: 0 1.14rem;
 			width: 100%;
@@ -34,6 +34,9 @@
 
 		.hideContainer {
 			width: 100%;
+			display: flex;
+			justify-content: center;
+			align-items: center;
 			text-align: center;
 
 		}
@@ -49,40 +52,84 @@
 			font-family: PingFangSC-Regular, PingFang SC;
 			color: #999999;
 		}
+
+		.top-content {
+			width: 100%;
+			padding: 0.2rem 0.3rem;
+
+		}
+
+		.top-content .title {
+			font-size: 0.44rem;
+			font-family: PingFangSC-Medium, PingFang SC;
+			color: #000000;
+			letter-spacing: 0.01rem;
+			margin-bottom: 0.2rem;
+		}
+
+		.topic-info {
+			padding-bottom: 1.6rem;
+
+		}
+
+		.line {
+			width: 100%;
+			height: 0.02rem;
+			background: #D8D8D8;
+			margin-bottom: 0.2rem;
+		}
+
+		.createTime {
+			font-size: 0.28rem;
+			font-family: PingFangSC-Regular, PingFang SC;
+			font-weight: 400;
+			color: #999999;
+			margin-bottom: 0.2rem;
+		}
 	</style>
 </head>
 
 <body>
 	<div id="app" v-cloak class="container">
+
+		<div class="top-content" v-if='!isshow&&topic.content'>
+			<p class="title">{{topic.title}}</p>
+			<p class="createTime"> 发布日期:{{topic.createTime}}</p>
+			<p class="line"></p>
+			<div v-html="topic.content" class="topic-info"></div>
+
+		</div>
 		<div class="footer">
 			<img src="../static/offImg/downLoad.png" alt="" @click="download" />
 		</div>
 		<div v-if='isshow' class="hideContainer">
-			<img src="../static//offImg/404.png" alt="" />
-			<p>该资讯已被删除</p>
+			<div>
+				<img src="../static//offImg/404.png" alt="" />
+				<p>该资讯已被删除</p>
+			</div>
 		</div>
 	</div>
 	<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
-	<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
+	<script src="../static/js/vender/vue/axios.min.js"></script>
 	<script src="../static/js/vender/vue/config.js"></script>
 	<script src="../static/js/vender/vue/api.js"></script>
+	<script src="../static/js/vender/config.js"></script>
 	<script type="text/javascript">
 		new Vue({
 			el: '#app',
 			data: {
 				isshow: false,
+				id: GetRequest().id?GetRequest().id:323,
+				topic: {}
 
 			},
 			created() {
 				// window.location.href = 'investigate.html'
 			},
 			mounted() {
-				//this.getProcess()
-				this.$toast.loading({
-					message: '加载中...',
-					forbidClick: true,
-					loadingType: 'spinner',
-				});
+				console.log(1111);
+				this.getList()
+
 
 			},
 			methods: {
@@ -95,11 +142,37 @@
 						window.location.href =
 							'http://www.androidscloud.com/admin/attachment/download/2117e9b7f3734b16b81b9d7bb1c5a601';
 					} else if (isIOS) {
-						window.location.href = 'https://apps.apple.com/cn/app/id1541800909';
+						window.location.href = 'https://www.pgyer.com/gemini6';
 					} else {
 
 					}
 				},
+				getList() {
+					this.$toast.loading({
+						duration: 0,
+						message: '加载中...',
+						forbidClick: true,
+						loadingType: 'spinner',
+					});
+					getEvantDetails(this.id).then(res => {
+						this.$toast.clear();
+						console.log(res);
+						if (res.status == 0) {
+							if (res.data) {
+								this.isshow = false;
+								this.topic = res.data;
+							} else {
+								this.isshow = true;
+
+
+							}
+
+
+						} else {
+
+						}
+					})
+				}
 
 
 			}