Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SURPRISED
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
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
华国豪
SURPRISED
Commits
e7b99c09
Commit
e7b99c09
authored
Nov 19, 2019
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口的调取失败的情况
parent
2d10fdfe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
32 deletions
+53
-32
GT_activities.html
html/GT_activities.html
+19
-4
Rushbuy.html
html/Rushbuy.html
+32
-26
jquery.dataStatistics.js
js/jquery.dataStatistics.js
+2
-2
No files found.
html/GT_activities.html
View file @
e7b99c09
...
...
@@ -169,7 +169,7 @@
<!--<script type="text/javascript" src="js/countdown.js"></script>-->
<script
type=
"text/javascript"
src=
"../js/md5.js"
></script>
<script
type=
"text/javascript"
src=
"../js/mian.js"
></script>
<script
src=
"../js/jquery.dataStatistics.js?r=542342342"
></script>
<script
src=
"../js/jquery.dataStatistics.js?r=
efa
542342342"
></script>
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.3.2.js"
></script>
<script
type=
"text/javascript"
src=
"../js/layer/layer.js"
></script>
<script
type=
"text/javascript"
src=
"../js/yql.js"
></script>
...
...
@@ -503,18 +503,33 @@
add
:
true
});
//刚进入页面不执行动画
if
(
platform
==
'app'
)
{
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'showToast'
,
'message'
:
'请求人数过多,请返回再次进入!'
}));
}
else
{
layer
.
msg
(
'请求人数过多,请返回再次进入!'
);
}
}
// clearInterval(xhtime)
},
error
:
function
(
res
)
{
layer
.
msg
(
res
.
message
)
$
(
'.dataStatistics'
).
dataStatistics
({
max
:
0
,
min
:
0
,
len
:
4
,
add
:
true
});
//刚进入页面不执行动画
if
(
platform
==
'app'
)
{
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'showToast'
,
'message'
:
'请求人数过多,请返回再次进入!'
}));
}
else
{
layer
.
msg
(
'请求人数过多,请返回再次进入!'
);
}
}
});
...
...
@@ -704,4 +719,4 @@
</script>
</body>
</html>
\ No newline at end of file
</html>
html/Rushbuy.html
View file @
e7b99c09
...
...
@@ -14,7 +14,7 @@
margin
:
0
;
padding
:
0
;
}
.main
{
width
:
100%
;
height
:
100%
;
...
...
@@ -24,7 +24,7 @@
position
:
relative
;
overflow
:
hidden
;
}
.main
.box
{
position
:
relative
;
top
:
40%
;
...
...
@@ -36,7 +36,7 @@
top: 40%;
opacity: 1;
}
.main .box.move {
top: 40%;
opacity: 1;
...
...
@@ -45,11 +45,11 @@
-webkit-transition: all linear .5s;
-o-transition: all linear .5s;
} */
.main
.box
.hongbao
{
width
:
80%
;
}
.main
.box
.anniu
{
width
:
64%
;
position
:
absolute
;
...
...
@@ -65,13 +65,13 @@
height
:
4rem
;
line-height
:
4rem
;
}
.main
.box
.anniu
::after
{
content
:
""
;
display
:
block
;
padding-bottom
:
36%
;
}
#RushbuyTime
{
font-size
:
0.13rem
;
color
:
#e03234
;
...
...
@@ -81,7 +81,7 @@
right
:
-18.5%
;
top
:
26%
;
}
.rushNocheck
{
width
:
0.9rem
;
height
:
0.9rem
;
...
...
@@ -93,7 +93,7 @@
margin-right
:
0.2rem
;
display
:
none
;
}
.rushNocheckTwo
{
width
:
1rem
;
height
:
1rem
;
...
...
@@ -103,12 +103,12 @@
top
:
0.1rem
;
margin-right
:
0.2rem
;
}
.rushNocheckTwo
img
{
width
:
100%
;
height
:
100%
;
}
.readXieyi
{
color
:
#fff
;
font-size
:
1rem
;
...
...
@@ -117,12 +117,12 @@
position
:
absolute
;
bottom
:
3rem
;
}
.benciXieyi
{
color
:
#FFCE55
;
text-decoration
:
underline
;
}
.activeXieyi
{
position
:
absolute
;
width
:
100%
;
...
...
@@ -133,7 +133,7 @@
background
:
rgba
(
0
,
0
,
0
,
.6
);
color
:
#333333
;
}
.xieyiContent
{
width
:
80%
;
height
:
26rem
;
...
...
@@ -143,13 +143,13 @@
margin-top
:
6rem
;
border-radius
:
1rem
;
}
.xieyiTitle
{
font-size
:
1rem
;
width
:
100%
;
text-align
:
center
;
}
.xieyiNei
{
width
:
100%
;
height
:
6rem
;
...
...
@@ -161,28 +161,28 @@
color
:
#333333
;
padding
:
0
0.2rem
;
}
.xieyiNei
div
{
margin-bottom
:
1rem
;
}
.xieyiNei
::-webkit-scrollbar
{
width
:
4px
;
height
:
8px
;
}
.xieyiNei
::-webkit-scrollbar-thumb
{
border-radius
:
4px
;
box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;
}
.xieyiNei
::-webkit-scrollbar-track
{
box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
background
:
#EDEDED
;
}
.readBtn
{
width
:
6rem
;
height
:
2.5rem
;
...
...
@@ -404,8 +404,11 @@
'message'
:
res
.
message
}));
}
else
{
layer
.
msg
(
res
.
message
)
location
.
href
=
'https://activity.oytour.com/html/login.html'
layer
.
msg
(
'登录已过期,请重新登录'
);
setTimeout
(
function
()
{
localStorage
.
removeItem
(
"u"
);
window
.
location
.
href
=
'https://activity.oytour.com/html/login.html'
;
},
2000
)
}
// window.location.reload()
...
...
@@ -419,8 +422,11 @@
'action'
:
'dismissHud'
}));
}
else
if
(
platform
==
'H5'
)
{
layer
.
close
(
loadingFlag
);
location
.
href
=
'https://activity.oytour.com/html/login.html?r=123123123'
layer
.
msg
(
'登录已过期,请重新登录'
);
setTimeout
(
function
()
{
localStorage
.
removeItem
(
"u"
);
window
.
location
.
href
=
'https://activity.oytour.com/html/login.html?r=uj23123'
;
},
2000
)
}
}
});
...
...
@@ -428,4 +434,4 @@
</script>
</body>
</html>
\ No newline at end of file
</html>
js/jquery.dataStatistics.js
View file @
e7b99c09
...
...
@@ -289,7 +289,7 @@ $.fn.dataStatistics = function(options) {
// }
// localStorage.buyInfo = JSON.stringify(buyInfo)
window
.
location
.
href
=
`https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=
${
options
.
price
}
&couponId=
${
options
.
couponId
}
&platform=
${
options
.
platform
}
&r=123123123123`
;
window
.
location
.
href
=
`https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=
${
options
.
price
}
&couponId=
${
options
.
couponId
}
&platform=
${
options
.
platform
}
&r=
ef
123123123123`
;
//window.location.href = `./Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}`;
}
else
{
let
data
=
{
...
...
@@ -515,4 +515,4 @@ $.fn.dataStatistics = function(options) {
});
},
300000
)
//5分钟请求一次接口
};
\ No newline at end of file
};
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