Commit 6f3101a6 authored by 罗超's avatar 罗超

修改数钞票金额

parent 53b641d2
...@@ -913,10 +913,14 @@ ...@@ -913,10 +913,14 @@
</div> </div>
<!-- 按钮 --> <!-- 按钮 -->
<div class="hd-game-btn-container"> <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> <i class="iconfont icon-go"></i>
<span>准备</span> <span>准备</span>
</div> </div>
<div class="hd-game-btn" v-show="status==-1" @click="rest">
<i class="iconfont icon-lajitong"></i>
<span>重置</span>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -935,40 +939,17 @@ ...@@ -935,40 +939,17 @@
<div class="Number_prompt_div"> <div class="Number_prompt_div">
<span class="Numberpro_number"> <span class="Numberpro_number">
<span class="Numberpro_left">游戏已进入</span> <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 class="Numberpro_right"></span>
</span> </span>
</div> </div>
<div class="prompt_imgdiv"> <div class="prompt_imgdiv">
<div class="prompt_img"> <div class="prompt_img">
<span class="waiting-box"> <span class="waiting-box" v-for="(item, index) in roomPeoples" :key="index">
<!-- roomPeoples --> <!-- -->
<img src="../../../static/image/shuqian/lantern.png" alt /> <img :src="item.p" />
</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> </span>
</div> </div>
</div> </div>
</div> </div>
...@@ -987,35 +968,24 @@ ...@@ -987,35 +968,24 @@
<img class="img-num imgNumberImg2" src="../../../static/image/shuqian/0.png" /> <img class="img-num imgNumberImg2" src="../../../static/image/shuqian/0.png" />
</div> </div>
<div class="shu-rank-list" v-if="showMoney"> <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"> <div class="shu-rank-item-info">
<img src="../../../static/image/shuqian/132.jpg" alt /> <img :src="item.p" />
<span class="ranking">1</span> <span class="ranking">{{index+1}}</span>
<span class="shu-rank-item-score">14400</span> <span class="shu-rank-item-score">{{item.s}}</span>
<p class="shu-rank-item-name">mr.z</p> <p class="shu-rank-item-name">{{item.n}}</p>
</div> </div>
<div class="shu-rank-item-head"></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 class="shu-rank-item-footer"></div>
</div> </div>
<div class="shu-rank-item"> <div class="shu-rank-item" v-for="(item) in emitList" :key="item">
<div class="shu-rank-item-info"> <!-- <div class="shu-rank-item-info">
<img src="../../../static/image/shuqian/132.jpg" alt /> <img :src="item.p" />
<span class="ranking">1</span> <span class="ranking">{{index+1}}</span>
<span class="shu-rank-item-score">14400</span> <span class="shu-rank-item-score">{{item.s}}</span>
<p class="shu-rank-item-name">mr.z</p> <p class="shu-rank-item-name">{{item.n}}</p>
</div> </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-head"></div> <div class="shu-rank-item-head"></div>
<div class="shu-rank-item-body"></div> <div class="shu-rank-item-body"></div>
<div class="shu-rank-item-footer"></div> <div class="shu-rank-item-footer"></div>
...@@ -1027,7 +997,7 @@ ...@@ -1027,7 +997,7 @@
<i class="iconfont icon-go"></i> <i class="iconfont icon-go"></i>
<span>开始</span> <span>开始</span>
</div> </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> <i class="iconfont icon-lajitong"></i>
<span>重置</span> <span>重置</span>
</div> </div>
...@@ -1054,7 +1024,10 @@ export default { ...@@ -1054,7 +1024,10 @@ export default {
showMoney: false, showMoney: false,
isShowBtn: true, isShowBtn: true,
code: "Money", code: "Money",
roomPeoples:[] roomPeoples:[],
ranks:[],
emitList:[],
status:0
}; };
}, },
mounted() { mounted() {
...@@ -1065,6 +1038,9 @@ export default { ...@@ -1065,6 +1038,9 @@ export default {
// }); // });
this.bindCallBack(); this.bindCallBack();
this.initStatus(); this.initStatus();
for (let i = 0; i < 10; i++) {
this.emitList.push('temp_'+i);
}
}, },
methods: { methods: {
...@@ -1072,9 +1048,11 @@ export default { ...@@ -1072,9 +1048,11 @@ export default {
let that=this let that=this
try { try {
this.$PROXY.invoke("GetMenuStatus", this.code).done(m => { this.$PROXY.invoke("GetMenuStatus", this.code).done(m => {
if (m == 1) { if (m.status == 1) {
that.readyGo() that.readyGo()
} }
console.log(m);
that.status=m.status
}); });
} catch (error) { } catch (error) {
setTimeout(() => { setTimeout(() => {
...@@ -1086,6 +1064,9 @@ export default { ...@@ -1086,6 +1064,9 @@ export default {
getReady() { getReady() {
this.$PROXY.invoke("ReadyGame", this.code).done(m => {}); this.$PROXY.invoke("ReadyGame", this.code).done(m => {});
}, },
rest(){
this.$PROXY.invoke("RestGame", this.code).done(m=>{});
},
bindCallBack() { bindCallBack() {
let that = this; let that = this;
this.$PROXY.on("getChangeMenu", data => { this.$PROXY.on("getChangeMenu", data => {
...@@ -1093,6 +1074,10 @@ export default { ...@@ -1093,6 +1074,10 @@ export default {
if (data.code == that.code) { if (data.code == that.code) {
if (data.status == 1) { if (data.status == 1) {
that.readyGo() that.readyGo()
}else if(data.status==2){
that.startGo()
}else if(data.status==-1){
that.status=-1
} }
} }
}); });
...@@ -1107,6 +1092,11 @@ export default { ...@@ -1107,6 +1092,11 @@ export default {
this.$PROXY.invoke("GetRoomAllUser", this.code).done(m => { this.$PROXY.invoke("GetRoomAllUser", this.code).done(m => {
that.roomPeoples=m that.roomPeoples=m
}); });
this.$PROXY.on("notifyNewMoneyGamerUser",data=>{
if(data){
that.roomPeoples.push(data)
}
})
}, },
// 飘钱方法开始 // 飘钱方法开始
init() { init() {
...@@ -1127,6 +1117,7 @@ export default { ...@@ -1127,6 +1117,7 @@ export default {
durationValue(a) { durationValue(a) {
return a + "s"; return a + "s";
}, },
createALeaf() { createALeaf() {
var d = document.createElement("div"); var d = document.createElement("div");
var g = document.createElement("img"); var g = document.createElement("img");
...@@ -1152,10 +1143,22 @@ export default { ...@@ -1152,10 +1143,22 @@ export default {
// 飘钱方法结束 // 飘钱方法结束
// 开始游戏 // 开始游戏
StartGame() { StartGame() {
this.$PROXY.invoke("BeginGame",this.code).done(m=>{});
},
startGo(){
this.showPeople = false; this.showPeople = false;
this.showCount = true; this.showCount = true;
this.isShowBtn = false; this.isShowBtn = false;
this.countDown(); 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倒计时 // 321倒计时
countDown() { countDown() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment