123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- !
- function() {
- var e = {
- title:"新年新享受,头条系10GB流量豪礼不断",
- desc: "抖音放肆刷!次月还有话费相赠哦!",
- link: window.location.href,
- imgUrl: "http://800.wo.cn/orderchannel/hd/Dy/images/dyfx.png"
- };
- $.ajax({
- url: getRootPath() + "-s1api" + '/jssdk/init',
- data: "url=" + encodeURIComponent(window.location.href),
- type: "get",
- dataType: "json",
- success: function(n) {
- wx.config({
- debug: !1,
- appId: n.appId,
- timestamp: n.timestamp,
- nonceStr: n.nonceStr,
- signature: n.signature,
- jsApiList: ["checkJsApi", "onMenuShareTimeline", "onMenuShareAppMessage"]
- }),
- wx.ready(function() {
- wx.checkJsApi({
- jsApiList: ["onMenuShareTimeline", "onMenuShareAppMessage"],
- success: function(e) {}
- }),
- wx.onMenuShareTimeline({
- title: e.title,
- link: e.link,
- imgUrl: e.imgUrl,
- success: function() {},
- cancel: function() {}
- }),
- wx.onMenuShareAppMessage({
- title: e.title,
- desc: e.desc,
- link: e.link,
- imgUrl: e.imgUrl,
- type: "link",
- dataUrl: "",
- success: function() {},
- cancel: function() {}
- }),
- wx.hideMenuItems({
- menuList: ["menuItem:copyUrl"]
- })
- })
- }
- })
- } ();
|