Browse Source

静态页面

1002884655 4 years ago
parent
commit
c8f39241fc

+ 2
- 1
src/pages/HuiYuan/CaiMinLieBiao/index.vue View File

12
                 </div>
12
                 </div>
13
                 <div class="flex-item">
13
                 <div class="flex-item">
14
                   <div>
14
                   <div>
15
-                    <span>{{item.name}}</span>
15
+                    <span>{{item.name}} <em v-if="item.recShop - 0 === CurrentShopInfo.shopId">荐</em></span>
16
                     <span>{{ToolClass.DateFormat(item.createDate)}}</span>
16
                     <span>{{ToolClass.DateFormat(item.createDate)}}</span>
17
                   </div>
17
                   </div>
18
                 </div>
18
                 </div>
45
   },
45
   },
46
   computed: {
46
   computed: {
47
     ...mapUserState({
47
     ...mapUserState({
48
+      CurrentShopInfo: x => x.CurrentShopInfo,
48
       UserInfo: x => x.UserInfo,
49
       UserInfo: x => x.UserInfo,
49
       CurrentShopAllCustomer: x => x.CurrentShopAllCustomer
50
       CurrentShopAllCustomer: x => x.CurrentShopAllCustomer
50
     })
51
     })

+ 11
- 0
src/pages/HuiYuan/CaiMinLieBiao/page.scss View File

43
                 &:first-child {
43
                 &:first-child {
44
                   font-size: 0.14rem;
44
                   font-size: 0.14rem;
45
                   color: #333;
45
                   color: #333;
46
+                  > em {
47
+                    display: inline-block;
48
+                    vertical-align: middle;
49
+                    color: #fff;
50
+                    background: #d91d36;
51
+                    width: 0.16rem;
52
+                    line-height: 0.16rem;
53
+                    text-align: center;
54
+                    font-size: 0.1rem;
55
+                    margin-left: 0.1rem;
56
+                  }
46
                 }
57
                 }
47
               }
58
               }
48
             }
59
             }

+ 8
- 3
src/pages/HuiYuan/ShouYe/index.vue View File

13
         <!-- 内容 -->
13
         <!-- 内容 -->
14
         <div class="flex-item">
14
         <div class="flex-item">
15
           <div>
15
           <div>
16
-            <div class="Content">
16
+            <div class="Content" v-if="CurrentShopInfo !== null">
17
               <scroller :on-refresh="Refresh" :on-infinite="Infinite" ref="MyScroller">
17
               <scroller :on-refresh="Refresh" :on-infinite="Infinite" ref="MyScroller">
18
                 <div class="Container">
18
                 <div class="Container">
19
                   <ul>
19
                   <ul>
24
                       </div>
24
                       </div>
25
                       <div class="flex-item">
25
                       <div class="flex-item">
26
                         <div>
26
                         <div>
27
-                          <span>{{item.name}}</span>
27
+                          <span>{{item.name}} <em v-if="item.recShop - 0 === CurrentShopInfo.shopId">荐</em></span>
28
                           <span>{{ToolClass.DateFormat(item.createDate)}}</span>
28
                           <span>{{ToolClass.DateFormat(item.createDate)}}</span>
29
                         </div>
29
                         </div>
30
                       </div>
30
                       </div>
60
   },
60
   },
61
   computed: {
61
   computed: {
62
     ...mapUserState({
62
     ...mapUserState({
63
+      CurrentShopInfo: x => x.CurrentShopInfo,
63
       UserInfo: x => x.UserInfo,
64
       UserInfo: x => x.UserInfo,
64
       CurrentShopCustomer: x => x.CurrentShopCustomer
65
       CurrentShopCustomer: x => x.CurrentShopCustomer
65
     })
66
     })
69
   },
70
   },
70
   created () {
71
   created () {
71
     this.EmptyCurrentShopCustomer()
72
     this.EmptyCurrentShopCustomer()
73
+    if (this.CurrentShopInfo === null) {
74
+      this.GetCurrentShopInfo()
75
+    }
72
   },
76
   },
73
   mounted () {
77
   mounted () {
74
     this.$nextTick(() => {
78
     this.$nextTick(() => {
79
       'EmptyCurrentShopCustomer'
83
       'EmptyCurrentShopCustomer'
80
     ]),
84
     ]),
81
     ...mapUserActions([
85
     ...mapUserActions([
82
-      'GetShopCustomer'
86
+      'GetShopCustomer',
87
+      'GetCurrentShopInfo'
83
     ]),
88
     ]),
84
     Init (done = () => { }) { // 初始化
89
     Init (done = () => { }) { // 初始化
85
       this.EmptyCurrentShopCustomer()
90
       this.EmptyCurrentShopCustomer()

+ 11
- 0
src/pages/HuiYuan/ShouYe/page.scss View File

84
                       &:first-child {
84
                       &:first-child {
85
                         font-size: 0.14rem;
85
                         font-size: 0.14rem;
86
                         color: #333;
86
                         color: #333;
87
+                        > em {
88
+                          display: inline-block;
89
+                          vertical-align: middle;
90
+                          color: #fff;
91
+                          background: #d91d36;
92
+                          width: 0.16rem;
93
+                          line-height: 0.16rem;
94
+                          text-align: center;
95
+                          font-size: 0.1rem;
96
+                          margin-left: 0.1rem;
97
+                        }
87
                       }
98
                       }
88
                     }
99
                     }
89
                   }
100
                   }

+ 17
- 2
src/pages/WoDe/ShouYe/index.vue View File

16
               <div class="flex-item flex-h">
16
               <div class="flex-item flex-h">
17
                 <div class="flex-item">
17
                 <div class="flex-item">
18
                   <div>
18
                   <div>
19
-                    <router-link tag="span" :to="{ name: 'DianPuRenZheng' }" v-if="CurrentShopInfo !== null"> {{CurrentShopInfo.name}} <em>({{CurrentShopInfo.status - 0 === 0 ? '未认证' : CurrentShopInfo.status - 0 === 1 ? '已认证' : '认证失败'}})</em></router-link>
19
+                    <router-link tag="span" :to="{ name: 'DianPuRenZheng' }" v-if="CurrentShopInfo !== null"> {{CurrentShopInfo.name}} <em>({{ReturnStatus()}})</em></router-link>
20
                   </div>
20
                   </div>
21
                 </div>
21
                 </div>
22
                 <router-link tag="span" :to="{ name: 'DingDanLiuShui' }">营业额</router-link>
22
                 <router-link tag="span" :to="{ name: 'DingDanLiuShui' }">营业额</router-link>
97
             item.Tips = this.CurrentShopInfo.aliLoginId || '未授权'
97
             item.Tips = this.CurrentShopInfo.aliLoginId || '未授权'
98
           }
98
           }
99
           if (item.Id - 0 === 5) {
99
           if (item.Id - 0 === 5) {
100
-            item.Tips = this.CurrentShopInfo.status - 0 === 0 ? '未认证' : this.CurrentShopInfo.status - 0 === 1 ? '已认证' : '认证失败'
100
+            item.Tips = this.ReturnStatus()
101
           }
101
           }
102
         })
102
         })
103
       }
103
       }
104
     },
104
     },
105
+    ReturnStatus () {
106
+      if (this.CurrentShopInfo.status - 0 === 0) {
107
+        if (this.CurrentShopInfo.businessLicense !== null && this.CurrentShopInfo.businessLicense !== '') {
108
+          return '认证中'
109
+        } else {
110
+          return '未认证'
111
+        }
112
+      } else if (this.CurrentShopInfo.status - 0 === 1) {
113
+        return '已认证'
114
+      } else if (this.CurrentShopInfo.status - 0 === 2) {
115
+        return '认证失败'
116
+      } else {
117
+        return ''
118
+      }
119
+    },
105
     Refresh (done) { // 页面下拉刷新
120
     Refresh (done) { // 页面下拉刷新
106
       window.setTimeout(() => {
121
       window.setTimeout(() => {
107
         done()
122
         done()