Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NEWYEARPARTY
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
华国豪
NEWYEARPARTY
Commits
6f3101a6
Commit
6f3101a6
authored
Dec 27, 2019
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数钞票金额
parent
53b641d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
56 deletions
+59
-56
Money.vue
src/components/playGame/Money.vue
+59
-56
No files found.
src/components/playGame/Money.vue
View file @
6f3101a6
...
...
@@ -913,10 +913,14 @@
</div>
<!-- 按钮 -->
<div
class=
"hd-game-btn-container"
>
<div
class=
"hd-game-btn"
@
click=
"getReady()"
>
<div
class=
"hd-game-btn"
@
click=
"getReady()"
v-show=
"status==0"
>
<i
class=
"iconfont icon-go"
></i>
<span>
准备
</span>
</div>
<div
class=
"hd-game-btn"
v-show=
"status==-1"
@
click=
"rest"
>
<i
class=
"iconfont icon-lajitong"
></i>
<span>
重置
</span>
</div>
</div>
</div>
</
template
>
...
...
@@ -935,40 +939,17 @@
<div
class=
"Number_prompt_div"
>
<span
class=
"Numberpro_number"
>
<span
class=
"Numberpro_left"
>
游戏已进入
</span>
<span
class=
"game_join_total"
>
1
</span>
<span
class=
"game_join_total"
>
{{
roomPeoples
.
length
}}
</span>
<span
class=
"Numberpro_right"
>
人
</span>
</span>
</div>
<div
class=
"prompt_imgdiv"
>
<div
class=
"prompt_img"
>
<span
class=
"waiting-box"
>
<!-- roomPeoples -->
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
</span>
<span
class=
"waiting-box"
>
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
</span>
<span
class=
"waiting-box"
>
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
</span>
<span
class=
"waiting-box"
>
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
</span>
<span
class=
"waiting-box"
>
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
</span>
<span
class=
"waiting-box"
>
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
</span>
<span
class=
"waiting-box"
>
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
</span>
<span
class=
"waiting-box"
>
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
</span>
<span
class=
"waiting-box"
>
<img
src=
"../../../static/image/shuqian/lantern.png"
alt
/>
<span
class=
"waiting-box"
v-for=
"(item, index) in roomPeoples"
:key=
"index"
>
<!-- -->
<img
:src=
"item.p"
/>
</span>
</div>
</div>
</div>
...
...
@@ -987,35 +968,24 @@
<img
class=
"img-num imgNumberImg2"
src=
"../../../static/image/shuqian/0.png"
/>
</div>
<div
class=
"shu-rank-list"
v-if=
"showMoney"
>
<div
class=
"shu-rank-item"
>
<div
class=
"shu-rank-item"
v-for=
"(item, index) in ranks"
:key=
"index"
>
<div
class=
"shu-rank-item-info"
>
<img
src=
"../../../static/image/shuqian/132.jpg"
alt
/>
<span
class=
"ranking"
>
1
</span>
<span
class=
"shu-rank-item-score"
>
14400
</span>
<p
class=
"shu-rank-item-name"
>
mr.z
</p>
<img
:src=
"item.p"
/>
<span
class=
"ranking"
>
{{
index
+
1
}}
</span>
<span
class=
"shu-rank-item-score"
>
{{
item
.
s
}}
</span>
<p
class=
"shu-rank-item-name"
>
{{
item
.
n
}}
</p>
</div>
<div
class=
"shu-rank-item-head"
></div>
<div
class=
"shu-rank-item-body"
></div>
<div
class=
"shu-rank-item-body"
:style=
"
{height:`${(Math.floor(item.s/800)+1)*13}px`}"
>
</div>
<div
class=
"shu-rank-item-footer"
></div>
</div>
<div
class=
"shu-rank-item"
>
<div
class=
"shu-rank-item-info"
>
<img
src=
"../../../static/image/shuqian/132.jpg"
alt
/>
<span
class=
"ranking"
>
1
</span>
<span
class=
"shu-rank-item-score"
>
14400
</span>
<p
class=
"shu-rank-item-name"
>
mr.z
</p>
</div>
<div
class=
"shu-rank-item-head"
></div>
<div
class=
"shu-rank-item-body"
></div>
<div
class=
"shu-rank-item-footer"
></div>
</div>
<div
class=
"shu-rank-item"
>
<div
class=
"shu-rank-item-info"
>
<img
src=
"../../../static/image/shuqian/132.jpg"
alt
/>
<span
class=
"ranking"
>
1
</span>
<span
class=
"shu-rank-item-score"
>
14400
</span>
<p
class=
"shu-rank-item-name"
>
mr.z
</p>
</div>
<div
class=
"shu-rank-item"
v-for=
"(item) in emitList"
:key=
"item"
>
<!--
<div
class=
"shu-rank-item-info"
>
<img
:src=
"item.p"
/>
<span
class=
"ranking"
>
{{
index
+
1
}}
</span>
<span
class=
"shu-rank-item-score"
>
{{
item
.
s
}}
</span>
<p
class=
"shu-rank-item-name"
>
{{
item
.
n
}}
</p>
</div>
-->
<div
class=
"shu-rank-item-head"
></div>
<div
class=
"shu-rank-item-body"
></div>
<div
class=
"shu-rank-item-footer"
></div>
...
...
@@ -1027,7 +997,7 @@
<i
class=
"iconfont icon-go"
></i>
<span>
开始
</span>
</div>
<div
class=
"hd-game-btn"
style=
"display:none;
"
>
<div
class=
"hd-game-btn"
v-show=
"status==-1"
@
click=
"rest
"
>
<i
class=
"iconfont icon-lajitong"
></i>
<span>
重置
</span>
</div>
...
...
@@ -1054,7 +1024,10 @@ export default {
showMoney
:
false
,
isShowBtn
:
true
,
code
:
"Money"
,
roomPeoples
:[]
roomPeoples
:[],
ranks
:[],
emitList
:[],
status
:
0
};
},
mounted
()
{
...
...
@@ -1065,6 +1038,9 @@ export default {
// });
this
.
bindCallBack
();
this
.
initStatus
();
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
this
.
emitList
.
push
(
'temp_'
+
i
);
}
},
methods
:
{
...
...
@@ -1072,9 +1048,11 @@ export default {
let
that
=
this
try
{
this
.
$PROXY
.
invoke
(
"GetMenuStatus"
,
this
.
code
).
done
(
m
=>
{
if
(
m
==
1
)
{
if
(
m
.
status
==
1
)
{
that
.
readyGo
()
}
console
.
log
(
m
);
that
.
status
=
m
.
status
});
}
catch
(
error
)
{
setTimeout
(()
=>
{
...
...
@@ -1086,6 +1064,9 @@ export default {
getReady
()
{
this
.
$PROXY
.
invoke
(
"ReadyGame"
,
this
.
code
).
done
(
m
=>
{});
},
rest
(){
this
.
$PROXY
.
invoke
(
"RestGame"
,
this
.
code
).
done
(
m
=>
{});
},
bindCallBack
()
{
let
that
=
this
;
this
.
$PROXY
.
on
(
"getChangeMenu"
,
data
=>
{
...
...
@@ -1093,6 +1074,10 @@ export default {
if
(
data
.
code
==
that
.
code
)
{
if
(
data
.
status
==
1
)
{
that
.
readyGo
()
}
else
if
(
data
.
status
==
2
){
that
.
startGo
()
}
else
if
(
data
.
status
==-
1
){
that
.
status
=-
1
}
}
});
...
...
@@ -1107,6 +1092,11 @@ export default {
this
.
$PROXY
.
invoke
(
"GetRoomAllUser"
,
this
.
code
).
done
(
m
=>
{
that
.
roomPeoples
=
m
});
this
.
$PROXY
.
on
(
"notifyNewMoneyGamerUser"
,
data
=>
{
if
(
data
){
that
.
roomPeoples
.
push
(
data
)
}
})
},
// 飘钱方法开始
init
()
{
...
...
@@ -1127,6 +1117,7 @@ export default {
durationValue
(
a
)
{
return
a
+
"s"
;
},
createALeaf
()
{
var
d
=
document
.
createElement
(
"div"
);
var
g
=
document
.
createElement
(
"img"
);
...
...
@@ -1152,10 +1143,22 @@ export default {
// 飘钱方法结束
// 开始游戏
StartGame
()
{
this
.
$PROXY
.
invoke
(
"BeginGame"
,
this
.
code
).
done
(
m
=>
{});
},
startGo
(){
this
.
showPeople
=
false
;
this
.
showCount
=
true
;
this
.
isShowBtn
=
false
;
this
.
countDown
();
this
.
$PROXY
.
on
(
"notifyeMoneyGamerRank"
,
d
=>
{
this
.
ranks
=
d
;
if
(
d
.
length
<
10
){
this
.
emitList
=
[]
for
(
let
i
=
0
;
i
<
10
-
d
.
length
;
i
++
)
{
this
.
emitList
.
push
(
"a_"
+
i
);
}
}
})
},
// 321倒计时
countDown
()
{
...
...
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