Commit c54545cc by txy

'添加关注弹出框'

parent 51a3ac0c
...@@ -82,6 +82,10 @@ function loadHtmlJson() { ...@@ -82,6 +82,10 @@ function loadHtmlJson() {
// 关注弹出框 // 关注弹出框
function appendAttentionDialog() { function appendAttentionDialog() {
// var orgId = getQueryString("orgId");
// var orgInfo = orgIdFn(orgId);
// var orgName = orgInfo !== null ? orgInfo.orgName : '';
var str = '<section id="html-container-attention" style="display: none;">'+ var str = '<section id="html-container-attention" style="display: none;">'+
'<div>'+ '<div>'+
'<div class="c-modal-wrap">'+ '<div class="c-modal-wrap">'+
...@@ -93,8 +97,7 @@ var str = '<section id="html-container-attention" style="display: none;">'+ ...@@ -93,8 +97,7 @@ var str = '<section id="html-container-attention" style="display: none;">'+
'<img src="http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg" class="header-pic">'+ '<img src="http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg" class="header-pic">'+
'</div>'+ '</div>'+
'<div class="modal-body">'+ '<div class="modal-body">'+
'<p class="struct">长按关注</p>'+ '<p class="struct">长按关注后继续活动</p>'+
'<p class="struct">ABC社区卫生服务中心ABC社区卫生服务中心</p>'+
'<div>'+ '<div>'+
'<img src="./images/qr-code-prod.jpg" alt="" style="width: 100%;">'+ '<img src="./images/qr-code-prod.jpg" alt="" style="width: 100%;">'+
'</div>'+ '</div>'+
...@@ -110,4 +113,15 @@ var str = '<section id="html-container-attention" style="display: none;">'+ ...@@ -110,4 +113,15 @@ var str = '<section id="html-container-attention" style="display: none;">'+
'</section>'; '</section>';
$('body').prepend(str); $('body').prepend(str);
} // 事件绑定
\ No newline at end of file $("#html-container-attention .modal-close").off("click").on("click", function(){
$("#html-container-attention").hide();
});
// 未关注过默认显示弹出框
if (user.attention){
$("#html-container-attention").show();
}
}
appendAttentionDialog();
\ No newline at end of file
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