|
@@ -1,6 +1,6 @@
|
1
|
1
|
<template>
|
2
|
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
|
4
|
<div class="Container">
|
5
|
5
|
<div class="Content">
|
6
|
6
|
|
|
@@ -112,6 +112,9 @@
|
112
|
112
|
<div class="flex-item"></div>
|
113
|
113
|
<i class="iconfont iconjiantouright"></i>
|
114
|
114
|
</router-link>
|
|
115
|
+ <div class="Btn">
|
|
116
|
+ <a @click="ShowQrCodeLayer = true">授权</a>
|
|
117
|
+ </div>
|
115
|
118
|
</div>
|
116
|
119
|
|
117
|
120
|
</div>
|
|
@@ -255,42 +258,38 @@ export default {
|
255
|
258
|
return true
|
256
|
259
|
},
|
257
|
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
|
294
|
EndTimeConfirm (e) { // 确定选择结束时间
|
296
|
295
|
this.EndTime = this.CurrentEndDate
|