Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5_activity
Project
Overview
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谭新宇
h5_activity
Commits
faac043c
Commit
faac043c
authored
Jul 18, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'关注弹出框'
parent
0240b31f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
35 deletions
+44
-35
common.js
showPhotos/js/page/common.js
+41
-9
signup.js
showPhotos/js/page/signup.js
+3
-26
No files found.
showPhotos/js/page/common.js
View file @
faac043c
...
@@ -104,20 +104,46 @@ function loadHtmlJson() {
...
@@ -104,20 +104,46 @@ function loadHtmlJson() {
}
}
}
}
// 获取机构名称
function
getOrgNameFn
(
callback
)
{
var
signupId
=
getQueryString
(
'bindId'
)
var
orgId
=
orgIdFn
(
signupId
).
orgId
$
.
ajax
({
type
:
'GET'
,
url
:
baseUrl
+
'/ORG/hospital/community/hospitalInfo/'
+
orgId
,
headers
:
{
'x-token'
:
getToken
()
},
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
callback
&&
callback
(
data
)
}
},
error
:
function
()
{
$
.
dialog
({
type
:
'tips'
,
autoClose
:
3000
,
infoText
:
'找不到此机构'
});
}
})
}
// 关注弹出框
// 关注弹出框
function
appendAttentionDialog
()
{
function
appendAttentionDialog
()
{
var
bindId
=
getQueryString
(
"bindId"
);
var
bindId
=
getQueryString
(
"bindId"
);
var
orgQrCode
=
''
;
var
orgQrCode
=
''
;
// var orgInfo = orgIdFn(orgId)
;
var
orgId
=
''
;
// var orgName = orgInfo !== null ? orgInfo.orgName : '';
for
(
var
k
=
0
;
k
<
rules
.
acActivityOrgs
.
length
;
k
++
){
for
(
var
k
=
0
;
k
<
rules
.
acActivityOrgs
.
length
;
k
++
){
if
(
rules
.
acActivityOrgs
[
k
].
id
==
bindId
){
if
(
rules
.
acActivityOrgs
[
k
].
id
==
bindId
){
orgQrCode
=
rules
.
acActivityOrgs
[
k
].
qrCodeUrl
orgId
=
rules
.
acActivityOrgs
[
k
].
orgId
;
orgQrCode
=
rules
.
acActivityOrgs
[
k
].
qrCodeUrl
;
break
;
break
;
}
}
}
}
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">'
+
'<div class="mshe-mask"></div> '
+
'<div class="mshe-mask"></div> '
+
...
@@ -128,7 +154,7 @@ var str = '<section id="html-container-attention" style="display: none;">'+
...
@@ -128,7 +154,7 @@ var str = '<section id="html-container-attention" style="display: none;">'+
'<img src="'
+
orgQrCode
+
'" class="header-pic">'
+
'<img src="'
+
orgQrCode
+
'" class="header-pic">'
+
'</div>'
+
'</div>'
+
'<div class="modal-body">'
+
'<div class="modal-body">'
+
'<p class="struct">长按关注'
+
orgName
+
'
后继续活动</p>'
+
'<p class="struct">长按关注
后继续活动</p>'
+
'<div>'
+
'<div>'
+
'<img src="http://qnfile.icareyou.net/55c7553ba1a44465be91c57d19a69d3e1562894997132.jpg" alt="" style="width: 100%;">'
+
'<img src="http://qnfile.icareyou.net/55c7553ba1a44465be91c57d19a69d3e1562894997132.jpg" alt="" style="width: 100%;">'
+
'</div>'
+
'</div>'
+
...
@@ -149,6 +175,12 @@ var str = '<section id="html-container-attention" style="display: none;">'+
...
@@ -149,6 +175,12 @@ var str = '<section id="html-container-attention" style="display: none;">'+
$
(
"#html-container-attention"
).
fadeOut
();
$
(
"#html-container-attention"
).
fadeOut
();
});
});
// 获取机构名称
getOrgNameFn
(
function
(
data
){
var
orgName
=
'长按关注'
+
data
.
records
.
orgName
+
'后继续活动'
;
$
(
'#html-container-attention .modal-body .struct'
).
text
(
orgName
);
});
// 未关注过默认显示弹出框
// 未关注过默认显示弹出框
if
(
!
user
.
attention
){
if
(
!
user
.
attention
){
$
(
"#html-container-attention"
).
fadeIn
();
$
(
"#html-container-attention"
).
fadeIn
();
...
...
showPhotos/js/page/signup.js
View file @
faac043c
...
@@ -9,7 +9,9 @@ $(function () {
...
@@ -9,7 +9,9 @@ $(function () {
removeAttr
();
removeAttr
();
btnBindClick
();
// 绑定点击事件
btnBindClick
();
// 绑定点击事件
$
(
'#act11739232574395'
).
attr
({
'readonly'
:
'readonly'
});
$
(
'#act11739232574395'
).
attr
({
'readonly'
:
'readonly'
});
getOrgNameFn
();
getOrgNameFn
(
function
(
data
){
$
(
'#act11739232574395'
).
val
(
data
.
records
.
orgName
)
});
voteDialogBindFn
();
voteDialogBindFn
();
})
})
...
@@ -159,31 +161,6 @@ function btnBindClick() {
...
@@ -159,31 +161,6 @@ function btnBindClick() {
});
});
}
}
// 获取机构名称
function
getOrgNameFn
()
{
var
signupId
=
getQueryString
(
'bindId'
)
var
orgId
=
orgIdFn
(
signupId
).
orgId
$
.
ajax
({
type
:
'GET'
,
url
:
baseUrl
+
'/ORG/hospital/community/hospitalInfo/'
+
orgId
,
headers
:
{
'x-token'
:
getToken
()
},
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
$
(
'#act11739232574395'
).
val
(
data
.
records
.
orgName
)
}
},
error
:
function
()
{
$
.
dialog
({
type
:
'tips'
,
autoClose
:
3000
,
infoText
:
'找不到此机构'
});
}
})
}
function
selectFileImage
(
fileObj
)
{
function
selectFileImage
(
fileObj
)
{
var
file
=
fileObj
.
files
[
'0'
];
var
file
=
fileObj
.
files
[
'0'
];
//图片方向角 added by lzk
//图片方向角 added by lzk
...
...
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