访客二维码分享添加vistorIdd
diff --git a/src/main/resources/templates/apph5/applyforvisitorcode.html b/src/main/resources/templates/apph5/applyforvisitorcode.html
index 24669bf..76e9b42 100644
--- a/src/main/resources/templates/apph5/applyforvisitorcode.html
+++ b/src/main/resources/templates/apph5/applyforvisitorcode.html
@@ -60,18 +60,6 @@
 		body {
         background-color: #ffffff;
     }
-	.share-ul{
-		list-style: none;
-		padding-left:0 ;
-		display: flex;
-		justify-content: space-between;
-	}
-	.share-li{
-		width: 45%;
-		line-height: 50px;
-		background-color: #3599FB;
-		color: #FFFFFF;
-	}
 
 </style>
 </html>
@@ -84,39 +72,12 @@
 	<div style="text-align: center;padding: 30px;">
 		<input type="hidden" id="myText" th:value="${qrcode}" />
 		<input type="hidden" id="inoutflag" th:value="${inoutflag}" />
-		<input type="hidden" id="visitorid" th:value="${visitorid}" />
 	</div>
 	<div id="qrcode" class="qrcode-cc"></div>
 	<p style="text-align: center;margin-top:40px;color:#999;font-size: 14px">请将二维码对准扫描设备完成登记(如您使用扫一扫功能,请重新扫码)</p>
 	<a href="javascript:window.location.reload();" class="weui-btn weui-btn_primary btn-bg" style="align-content: center;margin: 20px">手动刷新二维码</a>
-	<ul class="share-ul">
-		<li class="share-li" id="shareQQ">分享至qq好友</li>
-		<li class="share-li" id="shareWX">分享至微信好友</li>
-	</ul>
+	
 
 </body>
-<script type="text/javascript">
-	var shareQQ = document.getElementById("shareQQ");
-	var shareWX = document.getElementById("shareWX");
-	
-	shareQQ.onclick = function(){
-		console.log("shareQQ")
-		var args = {};
-		args.client = QQSDK.ClientType.QQ;//QQSDK.ClientType.QQ,QQSDK.ClientType.TIM;
-		args.scene = QQSDK.Scene.QQ;//QQSDK.Scene.QQZone,QQSDK.Scene.Favorite
-		args.url = 'https://yy.dlsmk.cn/wisdompolice/app/getapplyqrcode?visitorid='+ ${visitorid};
-		args.title = '大理APP';
-		args.description = '门禁卡二维码';
-		// args.image = 'https://cordova.apache.org/static/img/cordova_bot.png';
-		QQSDK.shareNews(function () {
-		  alert('shareNews success');
-		}, function (failReason) {
-		  alert(failReason);
-		}, args);
-	}
-	shareWX.onclick = function(){
-		console.log("shareWX")
-	}
-	
-</script>
+
 </style>
diff --git a/src/main/resources/templates/apph5/visitorcode.html b/src/main/resources/templates/apph5/visitorcode.html
index 7b45773..904d741 100644
--- a/src/main/resources/templates/apph5/visitorcode.html
+++ b/src/main/resources/templates/apph5/visitorcode.html
@@ -71,6 +71,18 @@
     body {
         background-color: #ffffff;
     }
+	.share-ul{
+		list-style: none;
+		padding-left:0 ;
+		display: flex;
+		justify-content: space-between;
+	}
+	.share-li{
+		width: 45%;
+		line-height: 50px;
+		background-color: #3599FB;
+		color: #FFFFFF;
+	}
 
 </style>
 </html>
@@ -84,11 +96,40 @@
     <input type="hidden" id="myText" th:value="${qrcode}"/>
     <input type="hidden" id="inoutflag" th:value="${inoutflag}"/>
     <input type="hidden" id="isapply" th:value="${isapply}"/>
+	<input type="hidden" id="visitorid" th:value="${visitorid}" />
 </div>
 <div id="qrcode" class="qrcode-cc" ></div>
 <p style="text-align: center;margin-top:40px;color:#999;font-size: 14px">请将二维码对准扫描设备完成登记(如您使用扫一扫功能,请重新扫码)</p>
 <a href="javascript:window.location.reload();" class="weui-btn weui-btn_primary btn-bg"
    style="align-content: center;margin: 20px">手动刷新二维码</a>
+<ul class="share-ul">
+		<li class="share-li" id="shareQQ">分享至qq好友</li>
+		<li class="share-li" id="shareWX">分享至微信好友</li>
+	</ul>
 
 </body>
+<script type="text/javascript">
+	var shareQQ = document.getElementById("shareQQ");
+	var shareWX = document.getElementById("shareWX");
+	var vistorId = $("#visitorid").val()
+	shareQQ.onclick = function(){
+		console.log("shareQQ")
+		var args = {};
+		args.client = QQSDK.ClientType.QQ;//QQSDK.ClientType.QQ,QQSDK.ClientType.TIM;
+		args.scene = QQSDK.Scene.QQ;//QQSDK.Scene.QQZone,QQSDK.Scene.Favorite
+		args.url = 'https://yy.dlsmk.cn/wisdompolice/app/getapplyqrcode?visitorid='+ vistorId;
+		args.title = '大理APP';
+		args.description = '访客二维码';
+		// args.image = 'https://cordova.apache.org/static/img/cordova_bot.png';
+		QQSDK.shareNews(function () {
+		  alert('分享成功');
+		}, function (failReason) {
+		  alert(failReason);
+		}, args);
+	}
+	shareWX.onclick = function(){
+		console.log("shareWX")
+	}
+	
+</script>
 </style>
\ No newline at end of file