Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d8836db3
authored
Apr 29, 2021
by
MichaelJier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature
1. 增加6种红包的区域限制提示
parent
8c6951ee
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
5 deletions
+25
-5
components/modules/redBox/business/info.vue
+2
-0
components/modules/redBox/countDown/index.vue
+8
-1
components/modules/redBox/default/index.vue
+3
-1
components/modules/redBox/password/index.vue
+3
-1
components/modules/redBox/rain/index.vue
+9
-2
No files found.
components/modules/redBox/business/info.vue
View file @
d8836db3
...
@@ -91,6 +91,8 @@ export default {
...
@@ -91,6 +91,8 @@ export default {
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
this
.
redInfo
=
res
.
data
;
this
.
redInfo
=
res
.
data
;
this
.
_timerWait
(
res
.
data
.
wait
);
this
.
_timerWait
(
res
.
data
.
wait
);
}
else
{
res
.
errorMessage
&&
this
.
$layer
.
msg
(
res
.
errorMessage
);
}
}
},
},
async
_openRed
()
{
async
_openRed
()
{
...
...
components/modules/redBox/countDown/index.vue
View file @
d8836db3
...
@@ -101,13 +101,20 @@ export default {
...
@@ -101,13 +101,20 @@ export default {
this
.
isAjax
=
true
;
this
.
isAjax
=
true
;
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
this
.
countDownInfo
.
svSalt
=
res
.
data
.
svSalt
||
''
;
this
.
countDownInfo
.
svSalt
=
res
.
data
.
svSalt
||
''
;
return
res
}
else
{
res
.
errorMessage
&&
this
.
$layer
.
msg
(
res
.
errorMessage
);
return
false
}
}
},
},
async
_openRed
()
{
async
_openRed
()
{
if
(
this
.
times
>
0
)
{
if
(
this
.
times
>
0
)
{
return
false
return
false
}
}
await
this
.
_robRedpacket
()
const
rob
=
await
this
.
_robRedpacket
()
if
(
!
rob
)
{
return
}
if
(
!
this
.
isAjax
)
{
if
(
!
this
.
isAjax
)
{
return
'红包不存在'
;
return
'红包不存在'
;
}
}
...
...
components/modules/redBox/default/index.vue
View file @
d8836db3
<
template
>
<
template
>
<div
class=
"default"
v-
show
=
"redInfo.rid"
@
click=
"_closeRed"
>
<div
class=
"default"
v-
if
=
"redInfo.rid"
@
click=
"_closeRed"
>
<div
class=
"box"
@
click
.
stop
>
<div
class=
"box"
@
click
.
stop
>
<i
class=
"close"
@
click=
"_closeRed"
></i>
<i
class=
"close"
@
click=
"_closeRed"
></i>
<div
class=
"red-info"
v-if=
"!showLuck"
>
<div
class=
"red-info"
v-if=
"!showLuck"
>
...
@@ -75,6 +75,8 @@ export default {
...
@@ -75,6 +75,8 @@ export default {
this
.
isAjax
=
true
;
this
.
isAjax
=
true
;
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
this
.
redInfo
=
res
.
data
;
this
.
redInfo
=
res
.
data
;
}
else
{
res
.
errorMessage
&&
this
.
$layer
.
msg
(
res
.
errorMessage
);
}
}
},
},
async
_openRed
()
{
async
_openRed
()
{
...
...
components/modules/redBox/password/index.vue
View file @
d8836db3
<
template
>
<
template
>
<div
class=
"password"
v-
show
=
"redInfo.rid"
@
click=
"_closeRed"
>
<div
class=
"password"
v-
if
=
"redInfo.rid"
@
click=
"_closeRed"
>
<div
class=
"box"
@
click
.
stop
>
<div
class=
"box"
@
click
.
stop
>
<i
class=
"close"
@
click=
"_closeRed"
></i>
<i
class=
"close"
@
click=
"_closeRed"
></i>
<div
class=
"red-info"
v-if=
"!showLuck"
>
<div
class=
"red-info"
v-if=
"!showLuck"
>
...
@@ -82,6 +82,8 @@ export default {
...
@@ -82,6 +82,8 @@ export default {
this
.
isAjax
=
true
;
this
.
isAjax
=
true
;
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
this
.
redInfo
=
res
.
data
;
this
.
redInfo
=
res
.
data
;
}
else
{
res
.
errorMessage
&&
this
.
$layer
.
msg
(
res
.
errorMessage
);
}
}
},
},
async
_openRed
()
{
async
_openRed
()
{
...
...
components/modules/redBox/rain/index.vue
View file @
d8836db3
...
@@ -85,6 +85,10 @@ export default {
...
@@ -85,6 +85,10 @@ export default {
this
.
isAjax
=
true
;
this
.
isAjax
=
true
;
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
this
.
rainInfo
.
svSalt
=
res
.
data
.
svSalt
||
''
;
this
.
rainInfo
.
svSalt
=
res
.
data
.
svSalt
||
''
;
return
res
}
else
{
res
.
errorMessage
&&
this
.
$layer
.
msg
(
res
.
errorMessage
);
return
false
}
}
},
},
async
checkRainIsOpen
()
{
async
checkRainIsOpen
()
{
...
@@ -100,7 +104,6 @@ export default {
...
@@ -100,7 +104,6 @@ export default {
}
}
},
},
async
_openRed
()
{
async
_openRed
()
{
await
this
.
_robRedpacket
()
if
(
!
this
.
isAjax
)
{
if
(
!
this
.
isAjax
)
{
return
'红包不存在'
;
return
'红包不存在'
;
}
}
...
@@ -130,8 +133,12 @@ export default {
...
@@ -130,8 +133,12 @@ export default {
}
}
return
'未抢到'
return
'未抢到'
},
},
playGame
()
{
async
playGame
()
{
if
(
this
.
userInfo
.
id
)
{
if
(
this
.
userInfo
.
id
)
{
const
rob
=
await
this
.
_robRedpacket
()
if
(
!
rob
)
{
return
}
const
rainGame
=
require
(
'./game'
)
const
rainGame
=
require
(
'./game'
)
this
.
showGame
=
!
this
.
showGame
this
.
showGame
=
!
this
.
showGame
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
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