分享页面
diff --git a/src/main/resources/templates/apph5/visitorcode.html b/src/main/resources/templates/apph5/visitorcode.html
index d1d977c..8dca106 100644
--- a/src/main/resources/templates/apph5/visitorcode.html
+++ b/src/main/resources/templates/apph5/visitorcode.html
@@ -69,7 +69,7 @@
body {
background-color: #ffffff;
}
- .share-ul{
+ /* .share-ul{
list-style: none;
padding-left:0 ;
display: flex;
@@ -81,6 +81,12 @@
line-height: 50px;
background-color: #3599FB;
color: #FFFFFF;
+ } */
+ .toShare{
+ background-color: #3599FB;
+ color: #FFFFFF;
+ padding: 15px;
+ margin-top: 30px;
}
</style>
@@ -101,53 +107,59 @@
<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">
+<!-- <ul class="share-ul">
<li class="share-li" id="shareQQ">分享至qq好友</li>
<li class="share-li" id="shareWX">分享至微信好友</li>
-</ul>
-
+</ul> -->
+<div class="toShare" id="toShare">去分享</div>
</body>
<script type="text/javascript">
- var shareQQ = document.getElementById("shareQQ");
- var shareWX = document.getElementById("shareWX");
- // var vistorId = $("#visitorid").val()
- var vistorId = document.getElementById("visitorid").value
- shareQQ.onclick = function(){
- console.log("shareQQ")
- // alert("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);
+
+ var toShare = document.getElementById("toShare")
+ toShare.onclick = function(){
+ window.location.href = "file:///android_asset/www/share.html"
}
- shareWX.onclick = function(){
- console.log("shareWX")
- // alert("shareWX")
- Wechat.share({
- message: {
- title: "大理App分享",
- description: "访客二维码",
- thumb: "www/img/thumbnail.png",
- media: {
- type: Wechat.Type.WEBPAGE,
- webpageUrl: 'https://yy.dlsmk.cn/wisdompolice/app/getapplyqrcode?visitorid='+ vistorId
- }
- },
- scene: Wechat.Scene.SESSION // share to Timeline
- }, function () {
- alert("分享成功");
- }, function (reason) {
- alert("Failed: " + reason);
- });
- }
+
+ // var shareQQ = document.getElementById("shareQQ");
+ // var shareWX = document.getElementById("shareWX");
+ // // var vistorId = $("#visitorid").val()
+ // var vistorId = document.getElementById("visitorid").value
+ // shareQQ.onclick = function(){
+ // console.log("shareQQ")
+ // // alert("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")
+ // // alert("shareWX")
+ // Wechat.share({
+ // message: {
+ // title: "大理App分享",
+ // description: "访客二维码",
+ // thumb: "www/img/thumbnail.png",
+ // media: {
+ // type: Wechat.Type.WEBPAGE,
+ // webpageUrl: 'https://yy.dlsmk.cn/wisdompolice/app/getapplyqrcode?visitorid='+ vistorId
+ // }
+ // },
+ // scene: Wechat.Scene.SESSION // share to Timeline
+ // }, function () {
+ // alert("分享成功");
+ // }, function (reason) {
+ // alert("Failed: " + reason);
+ // });
+ // }
</script>
</style>
\ No newline at end of file