Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Testing merge to master branch #8

Merged
merged 12 commits into from
May 26, 2018
Prev Previous commit
Next Next commit
feat: fill sth for luckydraw
  • Loading branch information
frankwei98 committed May 23, 2018
commit 64faf6c95b6af9c522bbaaf2cb4f50e02a4a4d95
14 changes: 7 additions & 7 deletions src/views/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template lang="pug">
#index
section.hero.is-medium.is-fullheight
.hero-body
.container
h1.title| {{$t('CryptoGirl')}} <strong class="tag is-danger">Beta</strong>
h2.subtitle| 虚拟货币娘化计划 ?!
router-link(:to="{name: 'GirlList'}"
class="button is-large is-primary is-rounded")| 查看在册币娘
section.hero.is-medium.is-fullheight
.hero-body
.container
h1.title| {{$t('CryptoGirl')}} <strong class="tag is-danger">Beta</strong>
h2.subtitle| 虚拟货币娘化计划 ?!
router-link(:to="{name: 'GirlList'}"
class="button is-large is-primary is-rounded")| 查看在册币娘
</template>


Expand Down
39 changes: 37 additions & 2 deletions src/views/LuckyDraw.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
<template lang="pug">
#lucky-draw
p| T.B.C
.container
#login(v-if="!account")
h1| 请使用 MetaMask 登录
h3| 无法访问你的 Web3 接口,请登录后抽卡
#draw(v-if="account")
//- h1.title| 幸运回旋
.columns
.column.is-one-quarters
AccountView
.field.is-grouped
p.control
button.button.is-primary.is-medium(@click="draw")| 搏一搏!
p.control
router-link.button.is-success.is-medium(to="/my")| 我的奖品
p.control
button.button.is-info.is-medium(@click="draw" disabled)| 奖池明细
.column.is-three-quarters
section.hero
.hero-body
.container
h1.title| 幸运抽卡
h2.subtitle| 欧洲人与非洲人,只在一瞬间
//- Spin(v-if="pricesRow.length === 0" size="large" fix)
Row
Col(:xs="12" :sm="8" :md="8" :lg="6" style="min-height: 100px"
v-for="element in pricesRow" :key="element.name" :class="isSelect(element)")
img(:src="element.img" style="width: 128px")
p| {{element.name}}

</template>

<script>
export default {
data: () => ({
pricesRow: [],
}),
};
</script>