Commit c886eae1e03a47d45057dc8f6e00cac1e4980113

Authored by zhiyangdu
1 parent 74c0321c

暂未开通页样式优化

src/pages/notYetOpened/notYetOpened.less
1 .not_yet_opened{ 1 .not_yet_opened{
2 - height: 100vh; 2 + height: calc(100vh-110px);
3 display: flex; 3 display: flex;
4 align-items: center; 4 align-items: center;
5 .box{ 5 .box{
@@ -18,12 +18,12 @@ @@ -18,12 +18,12 @@
18 margin-top: 10px; 18 margin-top: 10px;
19 } 19 }
20 .desc{ 20 .desc{
21 - width:500px;  
22 font-size:24px; 21 font-size:24px;
23 font-weight:400; 22 font-weight:400;
24 color:rgba(180,180,180,1); 23 color:rgba(180,180,180,1);
25 line-height:33px; 24 line-height:33px;
26 margin: 10px 0 30px 0; 25 margin: 10px 0 30px 0;
  26 + text-align: center;
27 } 27 }
28 .copy{ 28 .copy{
29 font-size: 26px; 29 font-size: 26px;
src/pages/notYetOpened/notYetOpened.vue
1 <template> 1 <template>
2 - <div class="not_yet_opened">  
3 - <div class="box">  
4 - <img src="static/img/Computer.png" alt=""/>  
5 - <div class="title">  
6 - 商城/餐厅入驻手机端尚未开通  
7 - </div>  
8 - <div class="desc">  
9 - 请前往网家家电商平台进行入驻申请,网址: <span :title="teamLink" class="invitLink pull-left ellipsis" v-text="teamLink" ></span>  
10 - </div>  
11 - <div class="copy" type="primary" v-clipboard:error="onError"  
12 - v-clipboard:copy="teamLink" v-clipboard:success="onCopy">  
13 - 复制链接  
14 - </div>  
15 - </div>  
16 - </div> 2 + <div>
  3 + <!-- nav -->
  4 + <back-box
  5 + :style="'padding-top: ' + $parent.top.value + 'px'"
  6 + @back="back"
  7 + :backs="backs"
  8 + >
  9 + </back-box>
  10 + <div class="not_yet_opened">
  11 + <div class="box">
  12 + <img src="static/img/Computer.png" alt="" />
  13 + <div class="title">商城/餐厅入驻手机端尚未开通</div>
  14 + <div class="desc">
  15 + 请前往网家家电商平台进行入驻申请,网址:
  16 + <span
  17 + :title="teamLink"
  18 + class="invitLink pull-left ellipsis"
  19 + v-text="teamLink"
  20 + ></span>
  21 + </div>
  22 + <div
  23 + class="copy"
  24 + type="primary"
  25 + v-clipboard:error="onError"
  26 + v-clipboard:copy="teamLink"
  27 + v-clipboard:success="onCopy"
  28 + >
  29 + 复制链接
  30 + </div>
  31 + </div>
  32 + </div>
  33 + </div>
17 </template> 34 </template>
18 35
19 <script> 36 <script>
20 - // 引入组件  
21 - import { Toast } from "mint-ui";  
22 - export default {  
23 - name: 'notYetOpened',  
24 - data () {  
25 - return {  
26 - teamLink:(this.mode == "prod")?'http://seller.mall.cnlive.com':'http://wjjseller.cnlive.com/'  
27 - } 37 +// 引入组件
  38 +import { Toast } from "mint-ui";
  39 +import backBox from "@/components/backBox/backBox";
  40 +export default {
  41 + name: "notYetOpened",
  42 + data() {
  43 + return {
  44 + backs: {
  45 + // nav导航条数据
  46 + title: "已关注达人动态",
  47 + funcs: {
  48 + back: {
  49 + icon: "static/img/icon_back.png"
  50 + }
  51 + }
  52 + },
  53 + teamLink:
  54 + this.mode == "prod"
  55 + ? "http://seller.mall.cnlive.com"
  56 + : "http://wjjseller.cnlive.com/"
  57 + };
28 }, 58 },
29 - created(){  
30 - document.title = "尚未开通" 59 + components: {
  60 + backBox
  61 + },
  62 + created() {
  63 + document.title = "尚未开通";
31 }, 64 },
32 methods: { 65 methods: {
33 // 复制成功 66 // 复制成功
34 - onCopy(e){  
35 - Toast('复制成功'); 67 + onCopy(e) {
  68 + Toast("复制成功");
36 }, 69 },
37 // 复制失败 70 // 复制失败
38 - onError(e){  
39 - Toast('复制失败');  
40 - }, 71 + onError(e) {
  72 + Toast("复制失败");
  73 + }
41 } 74 }
42 - } 75 +};
43 </script> 76 </script>
44 77
45 <!-- Add "scoped" attribute to limit CSS to this component only --> 78 <!-- Add "scoped" attribute to limit CSS to this component only -->
46 <style rel="stylesheet/less" lang="less" scoped> 79 <style rel="stylesheet/less" lang="less" scoped>
47 - @import "NotYetOpened"; 80 +@import "NotYetOpened";
48 </style> 81 </style>