document.write('');(function () {wxJSAPI = function () { }; var wxJSData = { appid: 'wx09ce777d3df246d5', timestamp: '1731600743', noncestr: 'MsXaNLicVERN5oew', signature: '1a23a11c5a7a4cd6c4738aacc169bd213fb085cc', url:'http://kaola.guangyuan.iccoo.cn/m/goods/goodsinfo/id/9930.html' };var configoptions = { fx_success:function () { }, fxgr_success: function () { }, fx_fail: function () { }, fx_cancel: function () { }, fx_url: "", fx_title: "", fx_memo: "", fx_pic: "http://res.pccoo.cn/wap/webapp/images/share.jpg", fx_app_title: "", fx_app_memo: "", fx_app_pic: "", wxready: false };wxJSAPI.IsChooseImageOK=1;wxJSAPI.Config = function (config) { config = config || {}; if (typeof (config.fx_success) == 'function') { configoptions.fx_success = config.fx_success; }; if (typeof (config.fxgr_success)=='function') { configoptions.fxgr_success = config.fxgr_success; }else { configoptions.fxgr_success = configoptions.fx_success; }; if (typeof (config.fx_fail)=='function') { configoptions.fx_fail = config.fx_fail; }; if (typeof (config.fx_cancel) == 'function') { configoptions.fx_cancel = config.fx_cancel; };if (config.fx_url) {configoptions.fx_url = config.fx_url;}if (config.fx_title) { configoptions.fx_title = config.fx_title; } if (config.fx_memo) { configoptions.fx_memo = config.fx_memo; } if (config.fx_pic&&config.fx_pic!="") { configoptions.fx_pic = config.fx_pic; } if (config.fx_app_title) {configoptions.fx_app_title = config.fx_app_title; } else {configoptions.fx_app_title = configoptions.fx_title; } if (config.fx_app_memo) {configoptions.fx_app_memo = config.fx_app_memo; } else {configoptions.fx_app_memo = configoptions.fx_memo; } if (config.fx_app_pic) {configoptions.fx_app_pic = config.fx_app_pic; } else {configoptions.fx_app_pic = configoptions.fx_pic; } if(!configoptions.wxready) { configoptions.wxready = true; setWxJSConfig(); } };function setWxJSConfig() {wx.config({ debug:false , appId: wxJSData.appid, timestamp: wxJSData.timestamp, nonceStr: wxJSData.noncestr, signature: wxJSData.signature, jsApiList: [ 'checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'hideMenuItems', 'showMenuItems', 'hideAllNonBaseMenuItem', 'showAllNonBaseMenuItem', 'translateVoice', 'startRecord', 'stopRecord', 'onVoiceRecordEnd', 'playVoice', 'onVoicePlayEnd', 'pauseVoice', 'stopVoice', 'uploadVoice', 'downloadVoice', 'chooseImage', 'previewImage', 'uploadImage', 'downloadImage', 'getLocalImgData', 'getNetworkType', 'openLocation', 'getLocation', 'hideOptionMenu', 'showOptionMenu', 'closeWindow', 'scanQRCode', 'chooseWXPay', 'openProductSpecificView', 'addCard', 'chooseCard', 'openCard' ], openTagList: [ 'wx-open-launch-weapp', 'wx-open-launch-app', 'wx-open-subscribe', 'wx-open-audio', ] }); wx.ready(function () { configoptions.wxready = true; wx.onMenuShareTimeline({ title: configoptions.fx_title, link: configoptions.fx_url, imgUrl: configoptions.fx_pic.split(',')[0], success: configoptions.fx_success, cancel: configoptions.fx_cancel, fail: configoptions.fx_fail }); wx.onMenuShareAppMessage({ title: configoptions.fx_app_title, desc: configoptions.fx_app_memo, link: configoptions.fx_url, imgUrl: configoptions.fx_app_pic.split(',')[0], success: configoptions.fxgr_success, cancel: configoptions.fx_cancel, fail: configoptions.fx_fail }); wx.onMenuShareQQ({ title: configoptions.fx_title, desc: configoptions.fx_memo, link: configoptions.fx_url, imgUrl: configoptions.fx_pic.split(',')[0], success: configoptions.fx_success, cancel: configoptions.fx_cancel, fail: configoptions.fx_fail }); wx.onMenuShareWeibo({ title: configoptions.fx_title, desc: configoptions.fx_memo, link: configoptions.fx_url, imgUrl: configoptions.fx_pic.split(',')[0], success: configoptions.fx_success, cancel: configoptions.fx_cancel, fail: configoptions.fx_fail });if(wxJSAPI.IsChooseImageOK==1){ try{readyImg();}catch(e){} try{readyCoverImg();}catch(e){} try{readyRecord();}catch(e){} try{readyVoice();}catch(e){} } });wx.error(function (res) {wxJSAPI.IsChooseImageOK=0;if (res.errMsg == "config:invalid url domain") { console.log("域名与使用的appid没有绑定") } else if (res.errMsg == "config:permission denied") { console.log("公众号未认证、或者认证失效,接口请求失败") } else if (res.errMsg == "config:function not exist") { console.log("错误提示:当前微信客户端版本不支持该接口,请升级到新版体验") } else if (res.errMsg == "config:invalid signature") { console.log("错误提示:签名错误,请联系管理员") } else { console.log("错误提示:" + res.errMsg) } });} window.onload = function () { /* alert('fx_url:' + configoptions.fx_url + '\r\n' + 'url:http://kaola.guangyuan.iccoo.cn/m/goods/goodsinfo/id/9930.html \r\n' + 'fx_title:' + configoptions.fx_title + '\r\n' + 'fx_memo:' + configoptions.fx_memo + '\r\n' + 'fx_pic:' + configoptions.fx_pic + '\r\n' + 'fx_success_callback:' + configoptions.fx_success + '\r\n' + 'fx_fail_callback:' + configoptions.fx_fail + '\r\n'); */ }; })();