浏览代码

Merge branch 'master' of http://git.ycjcjy.com/xuchengxiang/niucai-admin

张延森 4 年前
父节点
当前提交
e9088dc486
共有 2 个文件被更改,包括 48 次插入35 次删除
  1. 34
    35
      src/pages/WoDe/ZhiFuBaoRenZheng/index.vue
  2. 14
    0
      src/pages/WoDe/ZhiFuBaoRenZheng/page.scss

+ 34
- 35
src/pages/WoDe/ZhiFuBaoRenZheng/index.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="Page">
2
   <div class="Page">
3
-    <MainPageContainer @ShopInfoChange="ShopInfoChange" :ShowMainHeader="true" :MainHeaderTitle="`店铺认证`" :ShowMainHeaderBack="true" :ShowMainHeaderMore="true" :MainHeaderMoreIcon="`iconbaocun`" :MainHeaderMoreText="CurrentShopInfo !== null ? CurrentShopInfo.isAliAuthed ? `保存` : `授权` : ``" :MainHeaderMoreClick="SaveForm">
3
+    <MainPageContainer @ShopInfoChange="ShopInfoChange" :ShowMainHeader="true" :MainHeaderTitle="`店铺认证`" :ShowMainHeaderBack="true" :ShowMainHeaderMore="true" :MainHeaderMoreIcon="`iconbaocun`" :MainHeaderMoreText="`保存`" :MainHeaderMoreClick="SaveForm">
4
       <div class="Container">
4
       <div class="Container">
5
         <div class="Content">
5
         <div class="Content">
6
 
6
 
112
               <div class="flex-item"></div>
112
               <div class="flex-item"></div>
113
               <i class="iconfont iconjiantouright"></i>
113
               <i class="iconfont iconjiantouright"></i>
114
             </router-link>
114
             </router-link>
115
+            <div class="Btn">
116
+              <a @click="ShowQrCodeLayer = true">授权</a>
117
+            </div>
115
           </div>
118
           </div>
116
 
119
 
117
         </div>
120
         </div>
255
       return true
258
       return true
256
     },
259
     },
257
     SaveForm () { // 保存认证
260
     SaveForm () { // 保存认证
258
-      if (this.CurrentShopInfo.isAliAuthed) {
259
-        if (this.DataLock || !this.CheckForm()) return
260
-        this.DataLock = true
261
-        let Data = {
262
-          shop: {
263
-            businessLicense: this.ZZImg,
264
-            address: this.AddressDetail,
265
-            cityId: this.City,
266
-            keeperId: this.UserInfo.keeperId,
267
-            lat: this.Lat,
268
-            lng: this.Lng,
269
-            name: this.ShopName,
270
-            provinceId: this.Province,
271
-            openTime: this.StartTime,
272
-            closeTime: this.EndTime
273
-          },
274
-          shopkeeper: {
275
-            avatar: this.UserInfo.avatar,
276
-            backIdCard: this.SfzfmImg,
277
-            frontIdCard: this.SfzzmImg,
278
-            keeperId: this.UserInfo.keeperId,
279
-            name: this.UserInfo.name,
280
-            phone: this.UserInfo.phone
281
-          }
261
+      if (this.DataLock || !this.CheckForm()) return
262
+      this.DataLock = true
263
+      let Data = {
264
+        shop: {
265
+          businessLicense: this.ZZImg,
266
+          address: this.AddressDetail,
267
+          cityId: this.City,
268
+          keeperId: this.UserInfo.keeperId,
269
+          lat: this.Lat,
270
+          lng: this.Lng,
271
+          name: this.ShopName,
272
+          provinceId: this.Province,
273
+          openTime: this.StartTime,
274
+          closeTime: this.EndTime
275
+        },
276
+        shopkeeper: {
277
+          avatar: this.UserInfo.avatar,
278
+          backIdCard: this.SfzfmImg,
279
+          frontIdCard: this.SfzzmImg,
280
+          keeperId: this.UserInfo.keeperId,
281
+          name: this.UserInfo.name,
282
+          phone: this.UserInfo.phone
282
         }
283
         }
283
-        this.ShopValid({ data: { ...Data } }).then((res) => {
284
-          this.Toast('认证提交成功')
285
-          this.GetCurrentShopInfo()
286
-          this.DataLock = false
287
-        }).catch((res) => {
288
-          this.Toast(res.data.message)
289
-          this.DataLock = false
290
-        })
291
-      } else {
292
-        this.ShowQrCodeLayer = true
293
       }
284
       }
285
+      this.ShopValid({ data: { ...Data } }).then((res) => {
286
+        this.Toast('认证提交成功')
287
+        this.GetCurrentShopInfo()
288
+        this.DataLock = false
289
+      }).catch((res) => {
290
+        this.Toast(res.data.message)
291
+        this.DataLock = false
292
+      })
294
     },
293
     },
295
     EndTimeConfirm (e) { // 确定选择结束时间
294
     EndTimeConfirm (e) { // 确定选择结束时间
296
       this.EndTime = this.CurrentEndDate
295
       this.EndTime = this.CurrentEndDate

+ 14
- 0
src/pages/WoDe/ZhiFuBaoRenZheng/page.scss 查看文件

61
             margin-left: 0.1rem;
61
             margin-left: 0.1rem;
62
           }
62
           }
63
         }
63
         }
64
+        > .Btn {
65
+          padding: 0 0.15rem;
66
+          margin-top: 0.2rem;
67
+          padding-bottom: 0.2rem;
68
+          > a {
69
+            font-size: 0.14rem;
70
+            color: #fff;
71
+            background: #d91e36;
72
+            border-radius: 0.06rem;
73
+            line-height: 0.4rem;
74
+            display: block;
75
+            text-align: center;
76
+          }
77
+        }
64
         > .PhotoList {
78
         > .PhotoList {
65
           font-size: 0;
79
           font-size: 0;
66
           padding-bottom: 0.15rem 0.15rem 0;
80
           padding-bottom: 0.15rem 0.15rem 0;