Commit 21a95a0a authored by 余成's avatar 余成

只能上海的才行

parent b42f8f20
......@@ -525,7 +525,7 @@
</div>
<!-- 分享按钮 -->
<img id="sharebtn" class="sharebtn" onclick="goShare()" src="share.png" alt="" />
<!-- <img id="sharebtn" class="sharebtn" onclick="goShare()" src="share.png" alt="" /> -->
</div>
<!-- 二级页面-周四专享页 -->
......@@ -770,11 +770,11 @@
// 端内展示分享按钮 端外不展示
if (!isInClient() || !window.CCBBridge) {
document.getElementById("sharebtn").style.display = "none";
} else {
document.getElementById("sharebtn").style.display = "";
}
// if (!isInClient() || !window.CCBBridge) {
// document.getElementById("sharebtn").style.display = "none";
// } else {
// document.getElementById("sharebtn").style.display = "";
// }
/**
* 判断是否是端内
......@@ -793,22 +793,22 @@
/**
* 分享
*/
function goShare() {
var requestObj = {
action: "share",
params: {
// share_id:'',
text: "晋享信用生活,多重信用卡好礼优惠等你参与",
title: "信用卡专享优惠-惠满三晋",
url: window.location.href,
image: "https://yun.duiba.com.cn/cdqd/0123ed88-6f63-4361-bee8-d4968a0fc407.png",
type: "",
},
};
console.log("分享信息", requestObj);
window.CCBBridge &&
window.CCBBridge.requestNative(JSON.stringify(requestObj), "cbShare");
}
// function goShare() {
// var requestObj = {
// action: "share",
// params: {
// // share_id:'',
// text: "晋享信用生活,多重信用卡好礼优惠等你参与",
// title: "信用卡专享优惠-惠满三晋",
// url: window.location.href,
// image: "https://yun.duiba.com.cn/cdqd/0123ed88-6f63-4361-bee8-d4968a0fc407.png",
// type: "",
// },
// };
// console.log("分享信息", requestObj);
// window.CCBBridge &&
// window.CCBBridge.requestNative(JSON.stringify(requestObj), "cbShare");
// }
/**
* 点击卡券 区分端内外进行跳转
......@@ -854,11 +854,12 @@
var addComp = rs.addressComponents;
console.log(addComp.city);
//条件满足
if (addComp.city === "上海市") {
if (["太原市","大同市","阳泉市","长治市","晋城市","朔州市","晋中市","运城市","忻州市","临汾市","吕梁市"].include(addComp.city)) {
// 端内
toLink(targetUrl);
} else {
Toast("仅限上海市参与");
Toast("仅限山西省参与");
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment