Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
微笑面对bug
ddz
提交
55bae1a4
ddz
项目概览
微笑面对bug
/
ddz
通知
5
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ddz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
55bae1a4
编写于
9月 19, 2020
作者:
微笑面对bug
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
界面
上级
da8e00f9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
7 deletion
+19
-7
src/components/Game.vue
src/components/Game.vue
+19
-7
未找到文件。
src/components/Game.vue
浏览文件 @
55bae1a4
...
...
@@ -47,19 +47,21 @@
<button
@
click=
"reStart"
>
reStart
</button>
</div>
<div
style=
"position: fixed;bottom:0;width: 100%;height: 100px;padding-left:1
00px;"
>
<div
:style=
"
{ marginLeft: playerMarginLeft + 'px' }" style="position: fixed;bottom:0;width: 100%;height: 2
00px;">
<div
@
mouseenter=
"enter($event,item)"
@
mousedown=
"pickPoker(item)"
v-for=
"item in game.playerList[0].pokerList"
:class=
"
{ selected: item.selected }" class="poker" style="">
{{
item
.
text
}}
</div>
</div>
<div
style=
"position: fixed;bottom:100px;width: 100%;height: 50px;padding-left:100px;text-align:left;"
>
<button
@
click=
"sendPoker2"
style=
"height: 30px;border-radius: 4px;"
>
出牌
</button>
<button
@
click=
"pass"
style=
"height: 30px;border-radius: 4px;margin-left: 20px;"
>
不出
</button>
<div
style=
"position: fixed;bottom:200px;width: 100%;height: 100px;text-align:left;"
>
<div
:style=
"
{ marginLeft: buttonMarginLeft + 'px' }" style="width: 200px;height: 30px;">
<button
@
click=
"sendPoker2"
style=
"height: 30px;border-radius: 4px;float:left"
>
出牌
</button>
<button
@
click=
"pass"
style=
"height: 30px;border-radius: 4px;margin-left: 20px;float:right"
>
不出
</button>
</div>
</div>
<div
style=
"position: fixed;bottom:200px;width: 100%;height: 100px;padding-left:100px;
"
>
<div
v-for=
"item in deskPoker"
style=
"height:100%;width:
50px;border: solid 1px;border-radius: 8px;float: left;margin-left:-25
px;background-color: azure"
>
<div
:style=
"
{ marginLeft: deskPokerMarginLeft + 'px' }" style="position: fixed;bottom:400px;width: 100%;height: 200px
">
<div
v-for=
"item in deskPoker"
style=
"height:100%;width:
100px;border: solid 1px;border-radius: 8px;float: left;margin-left:-50
px;background-color: azure"
>
{{
item
.
text
}}
</div>
</div>
...
...
@@ -81,6 +83,16 @@ export default {
},
computed
:
{
playerMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
(
this
.
game
.
playerList
[
0
].
pokerList
.
length
*
50
))
/
2
;
},
deskPokerMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
(
this
.
deskPoker
.
length
*
50
))
/
2
;
},
buttonMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
200
)
/
2
;
},
deskPoker
:
function
(){
if
(
this
.
game
.
deskPokerObj
&&
this
.
game
.
deskPokerObj
.
poker
){
if
(
this
.
game
.
deskPokerObj
.
poker
[
0
]
&&
this
.
game
.
deskPokerObj
.
poker
[
0
].
text
){
...
...
@@ -179,7 +191,7 @@ export default {
<
style
scoped
>
.poker
{
height
:
100%
;
width
:
50px
;
border
:
solid
1px
;
border-radius
:
8px
;
float
:
left
;
margin-left
:
-25
px
;
background-color
:
azure
;
height
:
100%
;
width
:
100px
;
border
:
solid
1px
;
border-radius
:
8px
;
float
:
left
;
margin-left
:
-50
px
;
background-color
:
azure
;
}
.poker
:hover
{
background-color
:
antiquewhite
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录