Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Shanxi_CCB_Card
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
余成
Shanxi_CCB_Card
Commits
21a95a0a
Commit
21a95a0a
authored
Aug 26, 2022
by
余成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只能上海的才行
parent
b42f8f20
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
24 deletions
+25
-24
index.html
index.html
+25
-24
去掉分享版本.zip
去掉分享版本.zip
+0
-0
No files found.
index.html
View file @
21a95a0a
...
...
@@ -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
(
"仅限
山西省
参与"
);
}
});
}
...
...
code0826v1
.zip
→
去掉分享版本
.zip
View file @
21a95a0a
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment