-
Notifications
You must be signed in to change notification settings - Fork 0
/
some.vue.html
150 lines (140 loc) · 4.04 KB
/
some.vue.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="author" content="Baytars">
<title>SoMe</title>
<script src="js/jquery-3.3.1.min.js"></script>
<!-- 开发环境版本,包含了有帮助的命令行警告 -->
<script src="js/vue.js"></script>
<link rel="stylesheet" type="text/css" href="css/some.css" />
</head>
<body>
<div id="whole">
<div class="side">
<nav>
<a v-for="menu in menus" v-bind:onclick="menu.func">
<img v-bind:src="menu.img">
<span>
{{ menu.name }}
</span>
</a>
</nav>
</div>
<div class="main">
<div id="game_control" class="module">
<p>
<input type="file" id="load_data" v-on:change="load" />
</p>
<p>
<a v-on:click="save" download="data.json" v-bind:href="save_href">
<button>保存进度</button>
</a>
</p>
<p>
<audio controls="controls">
<source src="sounds/Egypt.mp3" type="audio/mpeg" /> 您的浏览器不支持 audio 标签。
</audio>
</p>
<p>
作弊面板:
<br>
<button v-for="cheat in cheats" v-bind:onclick="cheat.func">
{{ cheat.name }}
</button>
</p>
</div>
<div id="game_frame" class="module">
<p v-for="(value, key) in career['player']">
{{ key }}:{{ value }}
</p>
</div>
<div id="game_item" class="module">
<p>物品栏</p>
<ul id="item_list">
<li v-for="(value, key) in career['backpack']">
<p>
{{ key }}
</p>
<p>
{{ value['数量'] }}
</p>
</li>
</ul>
</div>
<div id="game_synthesis" class="module">
<p>合成</p>
<select id="synthesis">
<option v-for="(value, key) in career['recipe']">
{{ key }}
</option>
</select>
<button v-on:click="react">开始反应</button>
</div>
<div class="module" id="game_vs" style="width: 1024px; height: 768px;">
<p>
选择你的对手
<select id="vs">
<option v-for="(value, key) in career['monster']">
{{ key }}
</option>
</select>
<button v-on:click="fight('selected')">
开始对战
</button>
</p>
<div id='ally' style='width:300px;display:inline-block;margin-left:50px;margin-top:50px;border:2px solid black;border-radius:20px;padding:20px;background-color:#7b7b7b;color:white;'>
<label>我方:</label>
<span>{{ aname }}</span>
<br />
<label>温度:</label>
<span>{{ atemp }}</span>
<label>°C</label>
<br />
<label>熔点:</label>
<span>{{ amp }}</span>
<label>°C</label>
<br />
<label>生命:</label>
<span>{{ aheal }}</span>
<label>°C</label>
</div>
<div style='float:right;'>
<div id='enemy' style='width:300px;display:inline-block;margin-right:50px;margin-top:50px;border:2px solid black;border-radius:20px;padding:20px;background-color:#7b7b7b;color:white;'>
<label>敌方:</label>
{{ bname }}
<br />
<label>温度:</label>
{{ btemp }}
<label>°C</label>
<br />
<label>熔点:</label>
{{ bmp }}
<label>°C</label>
<br />
<label>生命:</label>
{{ bheal }}
<label>°C</label>
</div>
</div>
<div style='clear:both;'></div>
<div id='pic' style='text-align:center;'>
<img v-bind:src="apic" style='margin:50px 200px 0 0;' />
<img v-bind:src="bpic" style='margin:50px 0 0 200px;' />
</div>
<div id="skl" style="margin:50px;text-align:center;">
<button v-for="(value, key) in career['skill']" v-on:click="rep(value, key)">
{{ key }}
</button>
</div>
<div id="msg" style="border:1px solid;text-align:center;height:300px;">
<p>
<h2>系统消息</h2>
</p>
<div id="txt" style="text-align:left;height:200px;overflow:auto;">
</div>
</div>
</div>
</div>
</div>
<script src="js/some.vue.js"></script>
</body>
</html>