1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- !function() {
- var e = {
- title : "新年头条系10GB流量优惠来袭!",
- desc : "免流看视频刷图文 还有9元话费相赠哟!",
- link : window.location.href,
- imgUrl : "http://800.wo.cn/orderchannel/tt/images/ttxc.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" ]
- })
- })
- }
- })
- }();
|