|
@@ -147,7 +147,7 @@
|
|
|
<script src="./js/wechat.js"></script>
|
|
|
<script src="./assets.js?v=2"></script>
|
|
|
<script src="./js/music.js?v=1"></script>
|
|
|
- <script src="./js/main.js?v=7"></script>
|
|
|
+ <script src="./js/main.js?v=8"></script>
|
|
|
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
|
|
|
<!-- 必须加在微信api资源 -->
|
|
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
|
@@ -161,10 +161,14 @@
|
|
|
music.volume = 0.1;
|
|
|
}, false);
|
|
|
|
|
|
- function shareWeixin(msg) {
|
|
|
- var url = window.location.href.split('#')[0];
|
|
|
- var plainUrl = url;
|
|
|
- url = escape(url);
|
|
|
+ function shareWeixin(shareUrl, originUrl, msg) {
|
|
|
+ alert('shareUrl='+shareUrl);
|
|
|
+ alert('originUrl='+originUrl);
|
|
|
+// var url = window.location.href.split('#')[0];
|
|
|
+// var plainUrl = url;
|
|
|
+// var href="https://wx.ttkuaiban.com/minigame/index.html";
|
|
|
+ url = escape(originUrl);
|
|
|
+// alert(url)
|
|
|
$.post("./user/getWxConfigParam?url="+url, {}, function(resp) {
|
|
|
if (resp.code == 'error') {
|
|
|
console.log(resp.code);
|
|
@@ -183,7 +187,7 @@
|
|
|
title: "我为你精心准备的美味,快享用吧!",
|
|
|
desc: msg,
|
|
|
imgUrl: "https://wx.ttkuaiban.com/minigame/images/share_picture.png",
|
|
|
- link: plainUrl,
|
|
|
+ link: shareUrl,
|
|
|
success: function() {
|
|
|
alert("分享成功")
|
|
|
window.location.href = "https://wx.ttkuaiban.com/minigame/lottery.html";
|