notYetOpened.vue
1.23 KB
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
<template>
<div class="not_yet_opened">
<div class="box">
<img src="static/img/Computer.png" alt=""/>
<div class="title">
商城/餐厅入驻手机端尚未开通
</div>
<div class="desc">
请前往网家家电商平台进行入驻申请,网址: <span :title="teamLink" class="invitLink pull-left ellipsis" v-text="teamLink" ></span>
</div>
<div class="copy" type="primary" v-clipboard:error="onError"
v-clipboard:copy="teamLink" v-clipboard:success="onCopy">
复制链接
</div>
</div>
</div>
</template>
<script>
// 引入组件
import { Toast } from "mint-ui";
export default {
name: 'notYetOpened',
data () {
return {
teamLink:'http://seller.mall.cnlive.com'
}
},
created(){
document.title = "尚未开通"
},
methods: {
// 复制成功
onCopy(e){
Toast('复制成功');
},
// 复制失败
onError(e){
Toast('复制失败');
},
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style rel="stylesheet/less" lang="less" scoped>
@import "NotYetOpened";
</style>