index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <style>
  2. </style>
  3. <template>
  4. <div class="hero-index">
  5. <!--英雄简介 固定布局-->
  6. <header class="h-brief">
  7. <section class="h-head">
  8. <!--<i class="h-follow has-follow"></i>-->
  9. <!--<i class="h-follow not-follow"></i>-->
  10. <img :src="`http://static.lolbox.duowan.com/images/champions/${heroData.name}.png`" class="h-icon" />
  11. </section>
  12. <section class="h-property">
  13. <p class="p-line1">
  14. <label class="h-name">{{heroData.title}}</label>
  15. <label class="h-type" v-for="role in rolesCH">{{role}}</label>
  16. </p>
  17. <p class="p-line2">
  18. <label>金{{heroData.gold}}</label>,
  19. <label>卷{{heroData.coupon}}</label>
  20. </p>
  21. <p class="p-line3">
  22. <label>攻{{heroMetaInfo.attack}}</label>
  23. <label>防{{heroMetaInfo.defense}}</label>
  24. <label>法{{heroMetaInfo.magic}}</label>
  25. <label>难度{{heroMetaInfo.difficulty}}</label>
  26. </p>
  27. </section>
  28. <!-- 右边的按钮-->
  29. <section class="compare-talent">
  30. <div class="b-wrap">
  31. <!--<a>英雄对比</a>-->
  32. <a>天赋符文</a>
  33. </div>
  34. </section>
  35. </header>
  36. <nav class="h-nav">
  37. <ul>
  38. <li class="active"><a @click.prevent="switchNav($event)" data-for="hero_info">资料</a></li>
  39. <li><a @click.prevent="switchNav($event)" data-for="hero_equipment">出装</a></li>
  40. <!--<li><a @click.prevent="switchNav($event)" data-for="hero_video">视频</a></li>
  41. <li><a @click.prevent="switchNav($event)" data-for="hero_skinvideo">皮肤视频</a></li>
  42. <li><a @click.prevent="switchNav($event)"data-for="hero_dub">配音</a></li>-->
  43. </ul>
  44. <div class="nav-underline" id="nav_underline"></div>
  45. </nav>
  46. <!--英雄的详细信息-->
  47. <article class="h-content-wrap" id="h-content-wrap">
  48. <!--资料-->
  49. <div class="content-section h-info active" id="hero_info">
  50. <article class="ability-explain">
  51. <header class="content-section-header one-level">
  52. <h2>技能说明</h2>
  53. </header>
  54. <ul class="ability-list">
  55. <li @click="switchAblibity($event)" v-for="(ability,index) in heroData.pqwer" :class="[index==0?'active':'']">
  56. <div class="border-like"></div>
  57. <img :src="ability.img_url" />
  58. </li>
  59. </ul>
  60. <!--技能详细解释的容器-->
  61. <div class="ability-explain-wrapper" id="ability_wrap">
  62. <section class="ability-detail" v-for="(ability,index) in heroData.pqwer" :class="[index==0?'active':'']">
  63. <i :class="`arrow-up-${index+1}th`"></i>
  64. <article>
  65. <header class="content-section-header two-level">
  66. <h2>{{ability.name}}</h2>
  67. </header>
  68. <div class="article-content" v-html="ability.desc">
  69. </div>
  70. </article>
  71. </section>
  72. </div>
  73. </article>
  74. <article class="best-partner-counter">
  75. <header class="content-section-header one-level">
  76. <h2>最佳拍档</h2>
  77. </header>
  78. <ul class="b-pc-list default-show">
  79. <li>
  80. <img src="/img/ability_r.jpg" class="b-pc-icon" />
  81. <div class="b-pc-info">
  82. 击倒-人类形态:奈德丽投掷她的标枪,撞击目标造成55/95/140/185/230(+0.65)点魔法德丽下次攻击将产生额外伤
  83. </div>
  84. </li>
  85. </ul>
  86. <ul class="b-pc-list">
  87. <li>
  88. <img src="/img/ability_r.jpg" class="b-pc-icon" />
  89. <div class="b-pc-info">
  90. 击倒-人类形态:奈德丽投掷她的标枪,撞击目标造成55/95/140/185/230(+0.65)点魔法德丽下次攻击将产生额外伤
  91. </div>
  92. </li>
  93. <li>
  94. <img src="/img/ability_r.jpg" class="b-pc-icon" />
  95. <div class="b-pc-info">
  96. 击倒-人类形态:奈德丽投掷她的标枪,撞击目标造成55/95/140/185/230(+0.65)点魔法德丽下次攻击将产生额外伤
  97. </div>
  98. </li>
  99. </ul>
  100. <p class="b-pc-more"><a @click="showMorePC($event)">查看更多</a></p>
  101. </article>
  102. <article class="best-partner-counter">
  103. <header class="content-section-header one-level">
  104. <h2>最佳克制</h2>
  105. </header>
  106. <ul class="b-pc-list default-show">
  107. <li>
  108. <img src="/img/ability_r.jpg" class="b-pc-icon" />
  109. <div class="b-pc-info">
  110. 击倒-人类形态:奈德丽投掷她的标枪,撞击目标造成55/95/140/185/230(+0.65)点魔法德丽下次攻击将产生额外伤
  111. </div>
  112. </li>
  113. </ul>
  114. <ul class="b-pc-list">
  115. <li>
  116. <img src="/img/ability_r.jpg" class="b-pc-icon" />
  117. <div class="b-pc-info">
  118. 击倒-人类形态:奈德丽投掷她的标枪,撞击目标造成55/95/140/185/230(+0.65)点魔法德丽下次攻击将产生额外伤
  119. </div>
  120. </li>
  121. </ul>
  122. <p class="b-pc-more"><a @click="showMorePC($event)">查看更多</a></p>
  123. </article>
  124. <!--使用技巧-->
  125. <article class="use-tip">
  126. <header class="content-section-header one-level">
  127. <h2>使用技巧</h2>
  128. </header>
  129. </article>
  130. <!--应对技巧-->
  131. <article class="coping-skills">
  132. <header class="content-section-header one-level">
  133. <h2>应对技巧</h2>
  134. </header>
  135. </article>
  136. <!--英雄数据-->
  137. <article class="hero-lore">
  138. <header class="content-section-header one-level">
  139. <h2>英雄背景</h2>
  140. </header>
  141. <section class="content-text-wrap" v-html="heroMetaData.lore">
  142. </section>
  143. </article>
  144. </div>
  145. <!--出装-->
  146. <div class="content-section h-equipment" id="hero_equipment">
  147. <ul class="equip-build-list">
  148. <li class="equip-build-item">
  149. <header class="equip-build-title">
  150. <h5>上单无敌奈德丽</h5>
  151. <time>2017-01-15</time>
  152. </header>
  153. <table class="equip-build-brief">
  154. <tbody>
  155. <tr>
  156. <td>作者</td>
  157. <td>我的菊花安好</td>
  158. </tr>
  159. <tr class="equipment_list">
  160. <td class="vertical-middle">出装</td>
  161. <td class="clear-inline-px">
  162. <img src="/img/equipment_1.jpg" />
  163. <img src="/img/equipment_2.jpg"/>
  164. <img src="/img/equipment_3.jpg"/>
  165. <img src="/img/equipment_4.jpg"/>
  166. <img src="/img/equipment_5.jpg"/>
  167. <img src="/img/equipment_6.jpg"/>
  168. </td>
  169. </tr>
  170. <tr>
  171. <td class="vertical-middle">天赋</td>
  172. <td class="equipment-talent-list">
  173. <label class="talent-col-1"></label>
  174. <span>18</span>
  175. <label class="talent-col-2"></label>
  176. <span>0</span>
  177. <label class="talent-col-3"></label>
  178. <span>12</span>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td>符文</td>
  183. <td>
  184. <ul class="equipment-build-rune vertical-middle">
  185. <li>
  186. <label>
  187. <i class="rune-elite-icon"></i>
  188. </label>
  189. <span class="vertical-middle">精华:9护法</span>
  190. </li>
  191. <li>
  192. <label>
  193. <i class="rune-stamp-icon"></i>
  194. </label>
  195. <span class="vertical-middle">印记:9穿透</span>
  196. </li>
  197. <li>
  198. <label>
  199. <i class="rune-sigil-icon"></i>
  200. </label>
  201. <span class="vertical-middle">符印:9魔抗</span>
  202. </li>
  203. <li>
  204. <label>
  205. <i class="rune-glyph-icon"></i>
  206. </label>
  207. <span class="vertical-middle">雕文:3攻击</span>
  208. </li>
  209. </ul>
  210. </td>
  211. </tr>
  212. </tbody>
  213. </table>
  214. <aside class="eb-go">
  215. <a class="eb-go-detail" data-href="/?page=equip-build"></a>
  216. </aside>
  217. </li>
  218. <li class="equip-build-item">
  219. <header class="equip-build-title">
  220. <h5>上单无敌奈德丽</h5>
  221. <time>2017-01-15</time>
  222. </header>
  223. <table class="equip-build-brief">
  224. <tbody>
  225. <tr>
  226. <td>作者</td>
  227. <td>我的菊花安好</td>
  228. </tr>
  229. <tr class="equipment_list">
  230. <td class="vertical-middle">出装</td>
  231. <td class="clear-inline-px">
  232. <img src="/img/equipment_1.jpg" />
  233. <img src="/img/equipment_2.jpg"/>
  234. <img src="/img/equipment_3.jpg"/>
  235. <img src="/img/equipment_4.jpg"/>
  236. <img src="/img/equipment_5.jpg"/>
  237. <img src="/img/equipment_6.jpg"/>
  238. </td>
  239. </tr>
  240. <tr>
  241. <td class="vertical-middle">天赋</td>
  242. <td class="equipment-talent-list">
  243. <label class="talent-col-1"></label>
  244. <span>18</span>
  245. <label class="talent-col-2"></label>
  246. <span>0</span>
  247. <label class="talent-col-3"></label>
  248. <span>12</span>
  249. </td>
  250. </tr>
  251. <tr>
  252. <td>符文</td>
  253. <td class="">
  254. <ul class="equipment-build-rune vertical-middle">
  255. <li>
  256. <label>
  257. <i class="rune-elite-icon"></i>
  258. </label>
  259. <span class="vertical-middle">精华:9护法</span>
  260. </li>
  261. <li>
  262. <label>
  263. <i class="rune-stamp-icon"></i>
  264. </label>
  265. <span class="vertical-middle">印记:9穿透</span>
  266. </li>
  267. <li>
  268. <label>
  269. <i class="rune-sigil-icon"></i>
  270. </label>
  271. <span class="vertical-middle">符印:9魔抗</span>
  272. </li>
  273. <li>
  274. <label>
  275. <i class="rune-glyph-icon"></i>
  276. </label>
  277. <span class="vertical-middle">雕文:3攻击</span>
  278. </li>
  279. </ul>
  280. </td>
  281. </tr>
  282. </tbody>
  283. </table>
  284. <aside class="eb-go">
  285. <a class="eb-go-detail" data-href="/?page=equip-build"></a>
  286. </aside>
  287. </li>
  288. </ul>
  289. </div>
  290. </article>
  291. </div>
  292. </template>
  293. <script>
  294. import index from './js/index.js';
  295. export default index;
  296. </script>