|
@@ -28,46 +28,46 @@
|
|
window.location.href = "https://wx.ttkuaiban.com/minigame";
|
|
window.location.href = "https://wx.ttkuaiban.com/minigame";
|
|
}
|
|
}
|
|
|
|
|
|
- $.post("./user/getWeiboConfigParam?url=https://wx.ttkuaiban.com/minigame/lottery.html", {}, function(resp) {
|
|
|
|
- if (resp.code == 'error') {
|
|
|
|
- console.log(resp.code);
|
|
|
|
- }else{
|
|
|
|
- window.WeiboJS.init({
|
|
|
|
- 'appkey' : resp.data.appkey,
|
|
|
|
- 'debug': true,
|
|
|
|
- 'timestamp': resp.data.timestamp,
|
|
|
|
- 'noncestr': resp.data.noncestr,
|
|
|
|
- 'signature': resp.data.sign,
|
|
|
|
- 'scope': [
|
|
|
|
- 'getNetworkType',
|
|
|
|
- 'networkTypeChanged',
|
|
|
|
- 'getBrowserInfo',
|
|
|
|
- 'checkAvailability',
|
|
|
|
- 'setBrowserTitle',
|
|
|
|
- 'openMenu',
|
|
|
|
- 'setMenuItems',
|
|
|
|
- 'menuItemSelected',
|
|
|
|
- 'setSharingContent',
|
|
|
|
- 'openImage',
|
|
|
|
- 'scanQRCode',
|
|
|
|
- 'pickImage',
|
|
|
|
- 'getLocation',
|
|
|
|
- 'pickContact',
|
|
|
|
- 'apiFromTheFuture'
|
|
|
|
- ]
|
|
|
|
- }, function(ret){
|
|
|
|
- alert('init done\n' + JSON.stringify(ret));/*DEBUG*/
|
|
|
|
- });
|
|
|
|
|
|
+// $.post("./user/getWeiboConfigParam?url=https://wx.ttkuaiban.com/minigame/lottery.html", {}, function(resp) {
|
|
|
|
+// if (resp.code == 'error') {
|
|
|
|
+// console.log(resp.code);
|
|
|
|
+// }else{
|
|
|
|
+// window.WeiboJS.init({
|
|
|
|
+// 'appkey' : resp.data.appkey,
|
|
|
|
+// 'debug': true,
|
|
|
|
+// 'timestamp': resp.data.timestamp,
|
|
|
|
+// 'noncestr': resp.data.noncestr,
|
|
|
|
+// 'signature': resp.data.sign,
|
|
|
|
+// 'scope': [
|
|
|
|
+// 'getNetworkType',
|
|
|
|
+// 'networkTypeChanged',
|
|
|
|
+// 'getBrowserInfo',
|
|
|
|
+// 'checkAvailability',
|
|
|
|
+// 'setBrowserTitle',
|
|
|
|
+// 'openMenu',
|
|
|
|
+// 'setMenuItems',
|
|
|
|
+// 'menuItemSelected',
|
|
|
|
+// 'setSharingContent',
|
|
|
|
+// 'openImage',
|
|
|
|
+// 'scanQRCode',
|
|
|
|
+// 'pickImage',
|
|
|
|
+// 'getLocation',
|
|
|
|
+// 'pickContact',
|
|
|
|
+// 'apiFromTheFuture'
|
|
|
|
+// ]
|
|
|
|
+// }, function(ret){
|
|
|
|
+// alert('init done\n' + JSON.stringify(ret));/*DEBUG*/
|
|
|
|
+// });
|
|
|
|
|
|
- WeiboJS.invoke("setSharingContent", {
|
|
|
|
- title: "抽奖页面测试标题",
|
|
|
|
- desc: "抽奖页面测试描述",
|
|
|
|
- icon: "https://wx.ttkuaiban.com/minigame/images/share_picture.png"
|
|
|
|
- }, function(e) {
|
|
|
|
- alert("设置分享内容成功:" + JSON.stringify(e));
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+// WeiboJS.invoke("setSharingContent", {
|
|
|
|
+// title: "抽奖页面测试标题",
|
|
|
|
+// desc: "抽奖页面测试描述",
|
|
|
|
+// icon: "https://wx.ttkuaiban.com/minigame/images/share_picture.png"
|
|
|
|
+// }, function(e) {
|
|
|
|
+// alert("设置分享内容成功:" + JSON.stringify(e));
|
|
|
|
+// });
|
|
|
|
+// }
|
|
|
|
+// });
|
|
|
|
|
|
$.post("./user/getWxConfigParam?url=https://wx.ttkuaiban.com/minigame/lottery.html", {}, function(resp) {
|
|
$.post("./user/getWxConfigParam?url=https://wx.ttkuaiban.com/minigame/lottery.html", {}, function(resp) {
|
|
if (resp.code == 'error') {
|
|
if (resp.code == 'error') {
|