notYetOpened.vue 1.23 KB
<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>