|
@@ -76,7 +76,8 @@
|
|
<img src="./img/poster/hsr.png" class="poster-img" id="poster">
|
|
<img src="./img/poster/hsr.png" class="poster-img" id="poster">
|
|
<div class="leads-box">
|
|
<div class="leads-box">
|
|
<img src="./img/poster/headOil.png" class="pro">
|
|
<img src="./img/poster/headOil.png" class="pro">
|
|
- <div class="form-group">
|
|
|
|
|
|
+ <div class="form-group" style="position:relative;">
|
|
|
|
+ <img id='edit' src="./img/edit.gif" style='height: 0.35rem;position: absolute;left: -13px;top: 8px;display: none;'>
|
|
<input id="nameInput" type="text" placeholder="我想把这道菜送给TA">
|
|
<input id="nameInput" type="text" placeholder="我想把这道菜送给TA">
|
|
<div id="nameText" class='msg' style='display:none;'></div>
|
|
<div id="nameText" class='msg' style='display:none;'></div>
|
|
</div>
|
|
</div>
|
|
@@ -150,11 +151,15 @@
|
|
<script src="./js/wechat.js"></script>
|
|
<script src="./js/wechat.js"></script>
|
|
<script src="./assets.js?v=2"></script>
|
|
<script src="./assets.js?v=2"></script>
|
|
<script src="./js/music.js?v=1"></script>
|
|
<script src="./js/music.js?v=1"></script>
|
|
-<script src="./js/main.js?v=7"></script>
|
|
|
|
|
|
+<script src="./js/main.js?v=9"></script>
|
|
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
|
|
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
|
|
<!-- 必须加在微信api资源 -->
|
|
<!-- 必须加在微信api资源 -->
|
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
|
<script>
|
|
<script>
|
|
|
|
+ //解决IOS下分享签名失败问题
|
|
|
|
+ if (navigator.userAgent.indexOf('iPhone') !== -1) {
|
|
|
|
+ window.wechaturl = window.location + '';
|
|
|
|
+ }
|
|
//一般情况下,这样就可以自动播放了,但是一些奇葩iPhone机不可以
|
|
//一般情况下,这样就可以自动播放了,但是一些奇葩iPhone机不可以
|
|
var music = document.getElementById('music').play();
|
|
var music = document.getElementById('music').play();
|
|
music.volume = 0.1;
|
|
music.volume = 0.1;
|
|
@@ -165,12 +170,13 @@
|
|
}, false);
|
|
}, false);
|
|
|
|
|
|
function shareWeixin(msg) {
|
|
function shareWeixin(msg) {
|
|
- var url = window.location.href.split('#')[0];
|
|
|
|
- var plainUrl = url;
|
|
|
|
- var href="https://wx.ttkuaiban.com/minigame/index.html";
|
|
|
|
-// url = escape(url);
|
|
|
|
-// alert(url)
|
|
|
|
- $.post("./user/getWxConfigParam?url="+href, {}, function(resp) {
|
|
|
|
|
|
+ let wechaturl = window.location.href.split('#')[0];
|
|
|
|
+ var shareUrl = wechaturl;
|
|
|
|
+ if (window.wechaturl !== undefined) {
|
|
|
|
+ wechaturl = window.wechaturl;
|
|
|
|
+ }
|
|
|
|
+ var url = escape(wechaturl);
|
|
|
|
+ $.post("./user/getWxConfigParam?url="+url, {}, function(resp) {
|
|
if (resp.code == 'error') {
|
|
if (resp.code == 'error') {
|
|
console.log(resp.code);
|
|
console.log(resp.code);
|
|
}else{
|
|
}else{
|
|
@@ -188,13 +194,13 @@
|
|
title: "我为你精心准备的美味,快享用吧!",
|
|
title: "我为你精心准备的美味,快享用吧!",
|
|
desc: msg,
|
|
desc: msg,
|
|
imgUrl: "https://wx.ttkuaiban.com/minigame/images/share_picture.png",
|
|
imgUrl: "https://wx.ttkuaiban.com/minigame/images/share_picture.png",
|
|
- link: plainUrl,
|
|
|
|
|
|
+ link: shareUrl,
|
|
success: function() {
|
|
success: function() {
|
|
- alert("分享成功")
|
|
|
|
|
|
+// alert("分享成功")
|
|
window.location.href = "https://wx.ttkuaiban.com/minigame/lottery.html";
|
|
window.location.href = "https://wx.ttkuaiban.com/minigame/lottery.html";
|
|
},
|
|
},
|
|
cancel: function() {
|
|
cancel: function() {
|
|
- alert("分享失败")
|
|
|
|
|
|
+// alert("分享失败")
|
|
}
|
|
}
|
|
};
|
|
};
|
|
wx.onMenuShareAppMessage(share);
|
|
wx.onMenuShareAppMessage(share);
|