Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Lotteryprocedure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
Lotteryprocedure
Commits
593ea800
Commit
593ea800
authored
Jul 28, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
cbf127bb
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
66 additions
and
27 deletions
+66
-27
cjcode/src/main.js
cjcode/src/main.js
+4
-0
cjcode/src/utils/http.js
cjcode/src/utils/http.js
+8
-6
cjcode/src/views/Home/Home.vue
cjcode/src/views/Home/Home.vue
+10
-5
cjcode/src/views/Home/home.css
cjcode/src/views/Home/home.css
+29
-13
cjcode/src/views/Luckdraw/Luckdraw.css
cjcode/src/views/Luckdraw/Luckdraw.css
+3
-1
cjcode/src/views/Luckdraw/Luckdraw.vue
cjcode/src/views/Luckdraw/Luckdraw.vue
+12
-2
No files found.
cjcode/src/main.js
View file @
593ea800
...
...
@@ -10,6 +10,10 @@ Vue.use(ElementUI);
import
{
Message
}
from
'
element-ui
'
Vue
.
prototype
.
$message
=
Message
Vue
.
component
(
Message
.
name
,
Message
)
//解决默认弹出Message 提示框
Vue
.
config
.
productionTip
=
false
...
...
cjcode/src/utils/http.js
View file @
593ea800
...
...
@@ -6,7 +6,7 @@
import
store
from
'
../store/index
'
import
{
message
}
from
"
element-ui
"
;
import
{
Message
}
from
'
element-ui
'
// 环境的切换
/* if (process.env.NODE_ENV == 'development') {
...
...
@@ -17,7 +17,9 @@
axios.defaults.baseURL = 'https://tj.jxlld.com/Wxapp/';
} */
axios
.
defaults
.
baseURL
=
'
https://zxluma.jxdsy.cn/api/
'
;
// axios.defaults.baseURL = 'https://zxluma.jxdsy.cn/api/';
axios
.
defaults
.
baseURL
=
'
https://luma.jxdsy.cn/api/
'
;
// 请求超时时间
axios
.
defaults
.
timeout
=
10000
;
...
...
@@ -69,7 +71,7 @@
// 清除本地token和清空vuex中token对象
// 跳转登录页面
case
403
:
m
essage
({
M
essage
({
message
:
'
登录过期,请重新登录
'
,
type
:
'
warning
'
});
...
...
@@ -88,14 +90,14 @@
break
;
// 404请求不存在
case
404
:
m
essage
({
M
essage
({
message
:
'
网络请求不存在
'
,
type
:
'
warning
'
,
});
break
;
// 其他错误,直接抛出错误提示
default
:
m
essage
({
M
essage
({
message
:
error
.
response
.
data
.
message
,
type
:
'
warning
'
,
});
...
...
@@ -146,7 +148,7 @@
console
.
log
(
res
,
"
res11
"
);
if
(
res
.
data
.
code
!=
0
){
console
.
info
(
"
提示
"
);
m
essage
({
M
essage
({
message
:
res
.
data
.
msg
,
type
:
'
warning
'
,
});
...
...
cjcode/src/views/Home/Home.vue
View file @
593ea800
...
...
@@ -35,6 +35,8 @@
<img
class=
"qiaodaotx"
:src=
"item.avatar"
>
<p
class=
"qiaodaoxm"
>
{{
item
.
nickname
}}
</p>
</li>
</ul>
</div>
</div>
...
...
@@ -63,10 +65,7 @@
//显示的数据
Checkuserlist
:[
{
username
:
"
春暖花开
"
,
usertx
:
"
https://p.qqan.com/up/2021-7/2021761012352324.png
"
,
},
]
}
},
...
...
@@ -92,8 +91,14 @@
// },1500)
//加载更多数据
let
user_idends
=
""
;
if
(
this
.
Checkuserlist
.
length
!=
0
){
user_idends
=
this
.
Checkuserlist
[
this
.
Checkuserlist
.
length
-
1
].
user_id
}
getSignNewList
({
user_id
:
this
.
Checkuserlist
[
this
.
Checkuserlist
.
length
-
1
].
user_id
,
user_id
:
user_idends
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
...
...
cjcode/src/views/Home/home.css
View file @
593ea800
...
...
@@ -85,7 +85,7 @@
position
:
relative
;
}
.qiaodaotx
{
position
:
relative
;
/*
position: relative;
z-index: 9;
-webkit-animation: f1 1.2s 0.5s ease forwards;
-moz-animation: 2s 0.5s ease forwards;
...
...
@@ -95,7 +95,21 @@
height: 108px;
margin: 0 auto;
border-radius: 100%;
overflow: hidden; */
width
:
108px
;
height
:
108px
;
margin
:
0
auto
;
border-radius
:
100%
;
overflow
:
hidden
;
opacity
:
0
;
display
:
none
;
}
.qiaodaosf
.qiaodaotx
{
-webkit-animation
:
f1
1.2s
0.5s
ease
forwards
;
-moz-animation
:
2s
0.5s
ease
forwards
;
animation
:
f1
1.2s
0.5s
ease
forwards
;
display
:
block
;
}
.qiaodaoxm
{
font-size
:
16px
;
...
...
@@ -105,14 +119,16 @@
text-overflow
:
ellipsis
;
margin
:
0
auto
;
padding
:
5px
0
;
opacity
:
0
;
display
:
none
;
text-align
:
center
;
width
:
100%
;
}
.qiaodaosf
.qiaodaoxm
{
-webkit-animation
:
mc
1.2s
0.5
s
ease
forwards
;
-moz-animation
:
2s
0.5
s
ease
forwards
;
animation
:
mc
1.2s
0.5
s
ease
forwards
;
-webkit-animation
:
mc
1.2s
2
s
ease
forwards
;
-moz-animation
:
2s
2
s
ease
forwards
;
animation
:
mc
1.2s
2
s
ease
forwards
;
display
:
block
;
}
...
...
cjcode/src/views/Luckdraw/Luckdraw.css
View file @
593ea800
...
...
@@ -194,7 +194,9 @@
}
.lottery-win-list
.lottery-winner
.ulul
{
width
:
100%
;
height
:
300px
;
/* height: 300px; */
display
:
inline-block
;
margin-bottom
:
20px
;
}
.ulul
.lunci
{
color
:
#fff
;
...
...
cjcode/src/views/Luckdraw/Luckdraw.vue
View file @
593ea800
...
...
@@ -21,7 +21,9 @@
<div
class=
"bgvideo"
style=
"width: 100%;height: 100%;position: absolute;left:0;top: 0;z-index: -1;"
>
<!-- bgvideo.mp4 -->
<!-- beijvie.mp4 -->
<video
src=
"@/assets/news/28.mp4"
style=
"object-fit:fill;"
autoplay
autoplay=
"autoplay"
autobuffer=
""
<!-- beijvie.mp4 -->
<!-- 28.mp4 -->
<video
src=
"@/assets/news/beijvie.mp4"
style=
"object-fit:fill;"
autoplay
autoplay=
"autoplay"
autobuffer=
""
autoloop=
""
loop=
""
width=
"100%"
height=
"100%"
></video>
</div>
...
...
@@ -200,6 +202,10 @@
if
(
this
.
Wintheprizenum
>=
10
){
this
.
Wintheprizenum
=
10
;
}
if
(
this
.
Wintheprizenum
>=
this
.
usersigcount
&&
this
.
usersigcount
!=
0
){
this
.
Wintheprizenum
=
this
.
usersigcount
;
}
},
//开始抽奖
startchoujiang
()
{
...
...
@@ -209,7 +215,7 @@
cls
=
setInterval
(()
=>
{
let
suijiarr
=
[];
for
(
let
i
=
0
;
i
<
this
.
Wintheprizenum
;
i
++
)
{
let
suijindex
=
this
.
randomNum
(
0
,
this
.
Checkuserlist
.
length
);
let
suijindex
=
this
.
randomNum
(
0
,
this
.
Checkuserlist
.
length
-
1
);
// console.info("suijindex",suijindex);
suijiarr
.
push
(
this
.
Checkuserlist
[
suijindex
]);
}
...
...
@@ -232,7 +238,11 @@
this
.
isshowstop
=
false
;
//隐藏停止按钮
this
.
dtuserzj
=
res
.
data
;
//赋值中奖名单
}
else
{
this
.
centerDialogVisible
=
false
;
clearInterval
(
cls
);
//清除定时器
this
.
isshowstop
=
false
;
//隐藏停止按钮
this
.
dtuserzj
=
[];
this
.
$message
.
error
(
res
.
msg
);
}
}).
catch
((
err
)
=>
{
this
.
dtuserzj
=
[];
...
...
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