Skip to content

Commit

Permalink
docs: update qrcode
Browse files Browse the repository at this point in the history
  • Loading branch information
vvpvvp committed Sep 18, 2018
1 parent 4dc6f60 commit 399030b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions doc/components/common/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- <router-link to="/about">团队</router-link> -->
<ButtonGroup class="change-lang">
<Button size="s" @click="goGithub"><i class="h-icon-github link"></i></Button>
<Button size="s" @click="openWeixin"><i class="h-icon-message link"></i></Button>
<Button size="s" @click="openWeixin"><span class="link">微信</span></Button>
<Button @click="changeLang" size="s"><span class="link">English</span></Button>
</ButtonGroup>
</div>
Expand All @@ -24,15 +24,16 @@
<div>
<!-- <p>微信群</p> -->
<div class="weixin-image">
<img src="../../static/images/qrcode.jpg"/>
<p>该二维码9月9日前有效。</p>
<img src="../../static/images/qrcode1.jpg"/>
<p>该二维码9月25日前有效。</p>
</div>
</div>
</Modal>
</header>
</template>

<script>
import utils from 'hey-utils';
export default {
data() {
Expand All @@ -43,6 +44,28 @@ export default {
showModel: false
}
},
created() {
this.$nextTick(()=>{
if(utils.getLocal('wenxinNotice')) return;
utils.saveLocal('wenxinNotice', 1);
this.$Notice({
timeout: 0,
title: '加入 HeyUI 微信交流群',
content: '拥有更快速更详细的交流,加入我们的微信交流群。',
buttons: [{
type: 'confirm',
color: 'primary',
name: '查看'
}],
events: {
confirm: (notice)=> {
this.openWeixin();
notice.close();
}
}
})
})
},
methods: {
changeLang() {
this.$i18n.locale = 'en';
Expand Down
Binary file added doc/static/images/qrcode1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 399030b

Please sign in to comment.