https://jiaochao.vip/shop/
wx.ready(function () {
wx.hideMenuItems({
menuList: [
"menuItem:share:weiboApp:",
"menuItem:favorite",
"menuItem:share:facebook",
"menuItem:copyUrl",
"menuItem:originPage",
"menuItem:readMode",
"menuItem:openWithSafari",
"menuItem:share:email",
"menuItem:share:brand"
]
});
if(isIphone() == false){
function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
}
if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
} else {
onBridgeReady();
}
}
wx.updateAppMessageShareData({
title: data['title'],
desc: data['desc'],
link: data['link'],
imgUrl: data['imgUrl'],
success: function (res) {
console.log("设置成功");
console.log(res);
}
})
wx.updateTimelineShareData({
title: data['title'],
link: data['link'],
imgUrl: data['imgUrl'],
success: function (res) {
console.log("设置成功");
console.log(res);
}
})
});