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
58039a72
Commit
58039a72
authored
Aug 28, 2019
by
胡畅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
ae487d0b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
index.html
showPhotos/index.html
+2
-1
common.js
showPhotos/js/page/common.js
+36
-2
No files found.
showPhotos/index.html
View file @
58039a72
...
...
@@ -30,7 +30,8 @@
<!-- th:text="${page}" -->
<body>
</body>
<script
type=
"text/javascript"
src=
"https://raw.githack.com/tinytxy/h5_activity_github/master/showPhotos/js/page/common.js"
></script>
<!-- <script type="text/javascript" src="https://raw.githack.com/tinytxy/h5_activity_github/master/showPhotos/js/page/common.js"></script> -->
<script
type=
"text/javascript"
src=
"js/page/common.js"
></script>
<script
type=
"text/javascript"
src=
"https://raw.githack.com/tinytxy/h5_activity_github/master/showPhotos/js/page/share.js"
></script>
<script
type=
"text/javascript"
src=
"https://raw.githack.com/tinytxy/h5_activity_github/master/showPhotos/js/page/index.js"
></script>
<!-- <script type="text/javascript" src="js/page/index.js"></script> -->
...
...
showPhotos/js/page/common.js
View file @
58039a72
...
...
@@ -180,9 +180,9 @@ function getOrgNameFn(callback) {
})
}
// 关注弹出框
function
appendAttentionDialog
()
{
function
showQrcode
(
callback
)
{
var
orgId
=
getQueryString
(
"orgId"
);
var
activityCode
=
getQueryString
(
"activityCode"
);
var
orgQrCode
=
''
;
for
(
var
k
=
0
;
k
<
rules
.
acActivityOrgs
.
length
;
k
++
){
...
...
@@ -193,6 +193,36 @@ function appendAttentionDialog() {
}
}
if
(
orgQrCode
==
''
)
{
var
baseurlCode
=
orgId
?
(
baseUrl
+
'/ACTIVITY/'
+
activityCode
+
'/qr-code-url?orgId='
+
orgId
)
:
(
baseUrl
+
'/ACTIVITY/'
+
activityCode
+
'/qr-code-url'
)
$
.
ajax
({
type
:
'GET'
,
url
:
baseurlCode
,
headers
:
{
'x-token'
:
getToken
()
},
success
:
function
(
data
)
{
if
(
data
.
status
==
200
)
{
orgQrCode
=
data
.
result
.
qrCodeUrl
callback
&&
callback
(
orgQrCode
)
}
},
error
:
function
(
data
)
{
$
.
dialog
({
type
:
'tips'
,
autoClose
:
3000
,
infoText
:
data
.
responseJSON
.
message
});
}
})
}
else
{
callback
&&
callback
(
orgQrCode
)
}
}
// 关注弹出框
function
appendAttentionDialog
()
{
showQrcode
(
function
(
orgQrCode
){
var
str
=
'<section id="html-container-attention" style="display: none;">'
+
'<div>'
+
'<div class="c-modal-wrap">'
+
...
...
@@ -220,6 +250,7 @@ function appendAttentionDialog() {
'</section>'
;
$
(
'body'
).
prepend
(
str
);
// 事件绑定
$
(
"#html-container-attention .modal-close"
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
"#html-container-attention"
).
fadeOut
();
...
...
@@ -237,6 +268,9 @@ function appendAttentionDialog() {
// $(document).scrollTop(0);
});
}
})
}
// 显示强关弹出框
...
...
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