notYetOpened.vue 1.16 KB
<template>
  <div class="not_yet_opened">
   <div class="box">
       <img src="static/img/Computer.png" alt=""/>
       <div class="title">
           商城/餐厅入驻仅限PC端申请
       </div>
       <div class="desc">
           请使用PC端前往好家园电商平台进行入驻申请, 网址:  <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>