Commit 41cb72c2 by doszhang

dos

parent 49b8deef
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
language: (navigator.browserLanguage || navigator.language).toLowerCase() language: (navigator.browserLanguage || navigator.language).toLowerCase()
} }
</script> </script>
<title>{:block name='title'}{:/block}</title> <title>{:block name='title'}中信保诚2019年度MDRT百万圆桌精英荣誉海报{:/block}</title>
{:if $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false} {:if $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false}
<link rel="stylesheet" type="text/css" href="http://projectx.dev.izhida.cn/api/css/rem/{:$rem}/id/{:$projectId}?version={:$version}" <link rel="stylesheet" type="text/css" href="http://projectx.dev.izhida.cn/api/css/rem/{:$rem}/id/{:$projectId}?version={:$version}"
media="all"/> media="all"/>
...@@ -101,9 +101,9 @@ ...@@ -101,9 +101,9 @@
window.num = '{:$num}'; window.num = '{:$num}';
var link = location.origin; var link = location.origin;
var friend_title = ''; var friend_title = '中信保诚2019年度MDRT百万圆桌精英荣誉海报';
var friend_desc = ''; var friend_desc = '恭喜您荣获寿险业的至高荣誉,成为行业公认的顶级精英!';
var timeline_desc = ''; var timeline_desc = '恭喜您荣获寿险业的至高荣誉,成为行业公认的顶级精英!';
window.wxFriendData = { window.wxFriendData = {
'link': link, 'link': link,
'imgUrl': link + '/Public/static/image2/share.jpg', 'imgUrl': link + '/Public/static/image2/share.jpg',
......
...@@ -164,6 +164,9 @@ function checkInfo() { ...@@ -164,6 +164,9 @@ function checkInfo() {
username = name; username = name;
company = resp.branch; company = resp.branch;
toUploadPage(); toUploadPage();
setShare();
} else { } else {
$('#notification_area').remove(); $('#notification_area').remove();
my_notify(resp.msg); my_notify(resp.msg);
...@@ -173,6 +176,36 @@ function checkInfo() { ...@@ -173,6 +176,36 @@ function checkInfo() {
}) })
} }
function setShare() {
var link = location.origin;
var friend_title = '中信保诚2019年度MDRT百万圆桌精英荣誉海报';
if (level == 1) {
var friend_desc = '恭喜您获得寿险业的至高荣誉,加冕TOT顶尖会员称号';
var timeline_desc = '恭喜您获得寿险业的至高荣誉,加冕TOT顶尖会员称号';
} else if (level == 2) {
var friend_desc = '恭喜您获得寿险业的至高荣誉,荣获COT超级会员称号';
var timeline_desc = '恭喜您获得寿险业的至高荣誉,荣获COT超级会员称号';
} else {
var friend_desc = '恭喜您获得寿险业的至高荣誉,获得MDRT会员称号';
var timeline_desc = '恭喜您获得寿险业的至高荣誉,获得MDRT会员称号';
}
window.wxFriendData = {
'link': link,
'imgUrl': link + '/Public/static/image2/share.jpg',
'title': friend_title,
'desc': friend_desc,
success: function () {}
};
window.wxTimelineData = {
'link': link,
'imgUrl': link + '/Public/static/image2/share.jpg',
'title': timeline_desc,
success: function () {}
};
wx.onMenuShareAppMessage(wxFriendData);
wx.onMenuShareTimeline(wxTimelineData);
}
function initPage() { function initPage() {
const displacement = parseFloat(getTranslateDistance()); const displacement = parseFloat(getTranslateDistance());
if (-displacement + 179 > 243) { if (-displacement + 179 > 243) {
......
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 sign in to comment