yuantianjiao 6 anni fa
parent
commit
5804e2e6de

+ 1
- 1
src/components/customerCard/customerCard.vue Vedi File

1
 <template>
1
 <template>
2
   <div class="card-content">
2
   <div class="card-content">
3
-    <div class="tag">
3
+    <div class="tag" v-if='data.showTag'>
4
       <span>我推荐</span>
4
       <span>我推荐</span>
5
     </div>
5
     </div>
6
     <div class="card-top flex-h">
6
     <div class="card-top flex-h">

+ 3
- 1
src/pages/sales/login/index.vue Vedi File

120
       // console.log(this.postData)
120
       // console.log(this.postData)
121
       this.submitData(this.postData).then((res) => {
121
       this.submitData(this.postData).then((res) => {
122
         // this.$toast(res)
122
         // this.$toast(res)
123
-        window.location.href = this.getUrl('mainPage/coffeeIndex')
123
+        setTimeout(() => {
124
+          window.location.href = this.getUrl('mainPage/coffeeIndex')
125
+        }, 2000)
124
       })
126
       })
125
     }
127
     }
126
   },
128
   },

+ 1
- 1
src/pages/user/App.vue Vedi File

37
     wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
37
     wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
38
       title: '城的空间',
38
       title: '城的空间',
39
       desc: '城的空间',
39
       desc: '城的空间',
40
-      link: `${window.location.origin}${window.location.pathname}/user.html#/mainPage/indexPage`,
40
+      link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
41
       thu_image: `${window.location.origin}${window.location.pathname}${logo}`
41
       thu_image: `${window.location.origin}${window.location.pathname}${logo}`
42
     })
42
     })
43
   },
43
   },

+ 1
- 1
src/pages/user/bindMobile/bindMobile.vue Vedi File

179
           setTimeout(() => {
179
           setTimeout(() => {
180
             // this.$router.push({name: 'userCenter'})
180
             // this.$router.push({name: 'userCenter'})
181
             window.history.go(-1)
181
             window.history.go(-1)
182
-          }, 300)
182
+          }, 2000)
183
         }
183
         }
184
       })
184
       })
185
     }
185
     }

+ 29
- 16
src/pages/user/mainPage/coffeeIndex/index.vue Vedi File

77
               <div class="list-box">
77
               <div class="list-box">
78
                 <div class="search-bar flex-h">
78
                 <div class="search-bar flex-h">
79
                   <span>共{{this.data[3].list.length}}位客户</span>
79
                   <span>共{{this.data[3].list.length}}位客户</span>
80
-                  <!-- <van-checkbox v-model="postCustomerData.isrecommend">
80
+                  <van-checkbox v-model="postCustomerData.isrecommend">
81
                     我推荐的客户({{myRecommendUserList.length}}人)
81
                     我推荐的客户({{myRecommendUserList.length}}人)
82
                     <img
82
                     <img
83
                       slot="icon"
83
                       slot="icon"
85
                       :src="postCustomerData.isrecommend ? icon.active : icon.normal"
85
                       :src="postCustomerData.isrecommend ? icon.active : icon.normal"
86
                       style="width:.2rem;height:.2rem;bottom: .02rem;position: relative;"
86
                       style="width:.2rem;height:.2rem;bottom: .02rem;position: relative;"
87
                     >
87
                     >
88
-                  </van-checkbox> -->
88
+                  </van-checkbox>
89
                   <i class="iconfont icon-sousuo search-icon" @click="searchMask"></i>
89
                   <i class="iconfont icon-sousuo search-icon" @click="searchMask"></i>
90
                 </div>
90
                 </div>
91
                 <customerCard v-for="(item,index) in postCustomerData.isrecommend ? myRecommendUserList : data[3].list" :key="index" :data='item' @record='record'></customerCard>
91
                 <customerCard v-for="(item,index) in postCustomerData.isrecommend ? myRecommendUserList : data[3].list" :key="index" :data='item' @record='record'></customerCard>
265
           for (var n = 0; n < res.length; n++) {
265
           for (var n = 0; n < res.length; n++) {
266
             if (res[n].RecommendId === this.userInfo.customer.MapUser) {
266
             if (res[n].RecommendId === this.userInfo.customer.MapUser) {
267
               this.myRecommendUserList.push(res[n])
267
               this.myRecommendUserList.push(res[n])
268
+              res[n].showTag = true
269
+            } else {
270
+              res[n].showTag = false
268
             }
271
             }
269
             this.data[3].list.push(res[n])
272
             this.data[3].list.push(res[n])
270
           }
273
           }
276
           for (var n = 0; n < res.list.length; n++) {
279
           for (var n = 0; n < res.list.length; n++) {
277
             this.data[2].list.push({
280
             this.data[2].list.push({
278
               invalid: this.returnInvalid(res.list[n], 'coupon'),
281
               invalid: this.returnInvalid(res.list[n], 'coupon'),
279
-              price: res.list[n].Price,
282
+              price: parseInt(res.list[n].Price),
280
               title: res.list[n].CouponName,
283
               title: res.list[n].CouponName,
281
               desc: res.list[n].Share.UseRule,
284
               desc: res.list[n].Share.UseRule,
282
               startDate: this.toolClass.dateFormat(res.list[n].StartDate, 'yyyy年MM月dd日'),
285
               startDate: this.toolClass.dateFormat(res.list[n].StartDate, 'yyyy年MM月dd日'),
300
           for (var n = 0; n < res.list.length; n++) {
303
           for (var n = 0; n < res.list.length; n++) {
301
             this.data[1].list.push({
304
             this.data[1].list.push({
302
               invalid: this.returnInvalid(res.list[n], 'card'),
305
               invalid: this.returnInvalid(res.list[n], 'card'),
303
-              price: res.list[n].Price,
306
+              price: parseInt(res.list[n].Price),
304
               title: res.list[n].CardName,
307
               title: res.list[n].CardName,
305
               desc: res.list[n].Share.CardUseRule,
308
               desc: res.list[n].Share.CardUseRule,
306
               startDate: this.toolClass.dateFormat(res.list[n].StartDate, 'yyyy年MM月dd日'),
309
               startDate: this.toolClass.dateFormat(res.list[n].StartDate, 'yyyy年MM月dd日'),
308
               totalCount: res.list[n].TotalCount,
311
               totalCount: res.list[n].TotalCount,
309
               SentCount: res.list[n].SentCount,
312
               SentCount: res.list[n].SentCount,
310
               usedCount: res.list[n].UsedCount,
313
               usedCount: res.list[n].UsedCount,
311
-              CardId: res.list[n].CardId,
314
+              CardId: res.list[n].CardId
312
             })
315
             })
313
           }
316
           }
314
           var count = 0
317
           var count = 0
391
         id: item.CardId,
394
         id: item.CardId,
392
         type: 'card',
395
         type: 'card',
393
         sharetype: 'share',
396
         sharetype: 'share',
394
-        salesid: this.userInfo.customer.MapUser
397
+        salesid: this.userInfo.customer.MapUser,
398
+        random: this.random()
395
       }
399
       }
396
       this.$router.push({ name: 'receive', query: query })
400
       this.$router.push({ name: 'receive', query: query })
397
     },
401
     },
400
         id: item.CardId,
404
         id: item.CardId,
401
         type: 'coupon',
405
         type: 'coupon',
402
         sharetype: 'share',
406
         sharetype: 'share',
403
-        salesid: this.userInfo.customer.MapUser
407
+        salesid: this.userInfo.customer.MapUser,
408
+        random: this.random()
404
       }
409
       }
405
       this.$router.push({ name: 'receive', query: query })
410
       this.$router.push({ name: 'receive', query: query })
406
     },
411
     },
412
+    random () {
413
+      let rnd = ''
414
+      for (let i = 0; i < 5; i++) {
415
+        rnd += Math.floor(Math.random() * 10)
416
+      }
417
+      let timestamp = new Date().valueOf()
418
+      return `${rnd}${timestamp}`
419
+    },
407
     remark (item) {
420
     remark (item) {
408
       // console.log(item)
421
       // console.log(item)
409
       this.showDialog = true
422
       this.showDialog = true
423
       let that = this
436
       let that = this
424
       that.topCaseInfoData.caseName = that.CaseList[0].CaseName
437
       that.topCaseInfoData.caseName = that.CaseList[0].CaseName
425
       that.topCaseInfoData.caseId = that.CaseList[0].CaseId
438
       that.topCaseInfoData.caseId = that.CaseList[0].CaseId
426
-      that.getCaseTableList({
427
-        caseid: that.topCaseInfoData.caseId
428
-      })
429
-      if (this.userInfo.customer.MapUser !== '') {
430
-        that.getCaseTotal({
431
-          caseid: that.topCaseInfoData.caseId
432
-        })
433
-      }
434
       if (this.userInfo.customer.MapUser !== '') {
439
       if (this.userInfo.customer.MapUser !== '') {
435
         this.topCaseInfoData.caseId = this.userInfo.customer.BelongCaseId
440
         this.topCaseInfoData.caseId = this.userInfo.customer.BelongCaseId
436
         for (let i = 0; i < this.CaseList.length; i++) {
441
         for (let i = 0; i < this.CaseList.length; i++) {
438
             this.topCaseInfoData.caseName = this.CaseList[i].CaseName
443
             this.topCaseInfoData.caseName = this.CaseList[i].CaseName
439
           }
444
           }
440
         }
445
         }
446
+        that.getCaseTableList({
447
+          caseid: that.topCaseInfoData.caseId
448
+        })
449
+        if (this.userInfo.customer.MapUser !== '') {
450
+          that.getCaseTotal({
451
+            caseid: that.topCaseInfoData.caseId
452
+          })
453
+        }
441
       } else {
454
       } else {
442
         wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
455
         wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
443
           title: '城的空间',
456
           title: '城的空间',
444
           desc: '城的空间',
457
           desc: '城的空间',
445
-          link: `${window.location.origin}${window.location.pathname}/user.html#/mainPage/indexPage`,
458
+          link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
446
           thu_image: `${window.location.origin}${window.location.pathname}${logo}`
459
           thu_image: `${window.location.origin}${window.location.pathname}${logo}`
447
         }).then(() => {
460
         }).then(() => {
448
           wx.getLocation({
461
           wx.getLocation({

+ 5
- 2
src/pages/user/mainPage/indexPage/index.vue Vedi File

84
       locationId: '',
84
       locationId: '',
85
       swiperOption: {
85
       swiperOption: {
86
         observer: true,
86
         observer: true,
87
+        speed: 1000,
87
         autoplay: {
88
         autoplay: {
88
           disableOnInteraction: false,
89
           disableOnInteraction: false,
89
         }
90
         }
91
       swiperOptionMsg: {
92
       swiperOptionMsg: {
92
         observer: true,
93
         observer: true,
93
         direction: 'vertical',
94
         direction: 'vertical',
94
-        loop: true,
95
+        speed: 1000,
95
         autoplay: {
96
         autoplay: {
96
           disableOnInteraction: false,
97
           disableOnInteraction: false,
97
         }
98
         }
115
       return this.$refs.mySwiper.swiper
116
       return this.$refs.mySwiper.swiper
116
     },
117
     },
117
     MySwiperMsg () {
118
     MySwiperMsg () {
118
-      return this.$refs.MySwiperMsg.swiper
119
+      this.$nextTick(() => {  // 下一个UI帧再初始化swiper
120
+        return this.$refs.MySwiperMsg.swiper
121
+      })
119
     }
122
     }
120
   },
123
   },
121
   components: {
124
   components: {

+ 6
- 13
src/pages/user/mainPage/userCenter/index.vue Vedi File

1
 <template>
1
 <template>
2
   <div class="mainPage">
2
   <div class="mainPage">
3
-    <div class="loading" v-if="isLoading">
4
-      <!-- <div @click="bindMobile">请绑定手机号</div> -->
5
-    </div>
6
-    <div v-else>
3
+    <div>
7
       <div class="userTop_view" >
4
       <div class="userTop_view" >
8
         <div class="gradient_bg"></div>
5
         <div class="gradient_bg"></div>
9
         <div class="zIndex_bg"></div>
6
         <div class="zIndex_bg"></div>
10
         <div class="userAvatar_Border">
7
         <div class="userAvatar_Border">
11
           <div class="userAvatar">
8
           <div class="userAvatar">
12
-            <img :src='AccountInfo.headimgurl' alt="" width="100%" height="100%">
9
+            <img :src='headimgurl' alt="" width="100%" height="100%">
13
           </div>
10
           </div>
14
         </div>
11
         </div>
15
         <div class="uesr-info">
12
         <div class="uesr-info">
71
   name: '',
68
   name: '',
72
   data () {
69
   data () {
73
     return {
70
     return {
74
-      user: {},
75
-      isLoading: true
71
+      user: {}
76
     }
72
     }
77
   },
73
   },
78
   computed: {
74
   computed: {
87
   },
83
   },
88
   mounted () {
84
   mounted () {
89
     this.getUserInfo({ org: this.org }).then(() => {
85
     this.getUserInfo({ org: this.org }).then(() => {
90
-      if (this.userInfo) {
91
-        this.user = this.userInfo.customer
92
-        this.AccountInfo = JSON.parse(this.user.AccountInfo)
93
-        this.headimgurl = this.AccountInfo.headimgurl
94
-        this.isLoading = false
95
-      }
86
+      this.user = this.userInfo.customer
87
+      this.AccountInfo = JSON.parse(this.user.AccountInfo)
88
+      this.headimgurl = this.user.Headimgurl
96
     })
89
     })
97
     this.getNum()
90
     this.getNum()
98
   },
91
   },

+ 2
- 2
src/pages/user/majorProjectsDetail/index.vue Vedi File

122
       }
122
       }
123
       this.courseTimeList = arr.sort(function (a, b) { return new Date(a.BeginDate).getTime() > new Date(b.BeginDate).getTime() ? 1 : -1 })
123
       this.courseTimeList = arr.sort(function (a, b) { return new Date(a.BeginDate).getTime() > new Date(b.BeginDate).getTime() ? 1 : -1 })
124
       let nowDate = Date.now()
124
       let nowDate = Date.now()
125
-      let endData = new Date(this.courseDetail.EndDate).getTime()
125
+      let endData = new Date(this.courseDetail.CourseDetail[0].EndDate).getTime()
126
       if (nowDate > endData) {
126
       if (nowDate > endData) {
127
         this.gray = true
127
         this.gray = true
128
       }
128
       }
130
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
130
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
131
         title: '城的空间',
131
         title: '城的空间',
132
         desc: '城的空间',
132
         desc: '城的空间',
133
-        link: `${window.location.origin}${window.location.pathname}/user.html#/mainPage/indexPage`,
133
+        link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
134
         thu_image: `${window.location.origin}${window.location.pathname}${logo}`
134
         thu_image: `${window.location.origin}${window.location.pathname}${logo}`
135
       }).then(() => {
135
       }).then(() => {
136
         let result = this.courseDetail.CaseInfo.Coordinate.split(",")
136
         let result = this.courseDetail.CaseInfo.Coordinate.split(",")

+ 5
- 3
src/pages/user/placeOrder/index.vue Vedi File

186
         // console.log(JSON.stringify(res))
186
         // console.log(JSON.stringify(res))
187
         this.mapArr()
187
         this.mapArr()
188
       })
188
       })
189
-      this.getCaseTotal({
190
-        caseid: this.caseId
191
-      })
189
+      if (this.userInfo.customer.MapUser !== '') {
190
+        this.getCaseTotal({
191
+          caseid: this.caseId
192
+        })
193
+      }
192
     })
194
     })
193
   },
195
   },
194
   methods: {
196
   methods: {

+ 8
- 14
src/pages/user/receive/index.vue Vedi File

8
       <img :src="logo" alt="">
8
       <img :src="logo" alt="">
9
     </div> -->
9
     </div> -->
10
     <div class="banner"  v-if="!video">
10
     <div class="banner"  v-if="!video">
11
-      <img :src="data.Images[0].CardImageUrl" alt="" width="100%" height="100%" v-if="$route.query.type === 'card'">
12
-      <img :src="data.Images[0].CouponImageUrl" alt="" width="100%" height="100%" v-else>
11
+      <img :src="data.Images[0].CardImageUrl" alt="" width="100%" height="100%" v-if="type === 'card'">
12
+      <img :src="data.Images[0].CouponImageUrl" alt="" width="100%" height="100%" v-if="type === 'coupon'">
13
     </div>
13
     </div>
14
     <div class="content">
14
     <div class="content">
15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
59
       video: true,
59
       video: true,
60
       button: true,
60
       button: true,
61
       show: false,
61
       show: false,
62
+      type: '',
62
       data: {}
63
       data: {}
63
     }
64
     }
64
   },
65
   },
80
       })
81
       })
81
     }
82
     }
82
 
83
 
84
+    this.type = this.$route.query.type
83
 
85
 
84
     if (this.$route.query.sharetype === 'share') {
86
     if (this.$route.query.sharetype === 'share') {
85
       this.button = false
87
       this.button = false
116
     },
118
     },
117
     receive () {
119
     receive () {
118
       if (this.$route.query.type === 'card') {
120
       if (this.$route.query.type === 'card') {
119
-        this.setCardShare({ id: this.$route.query.id, salesid: this.$route.query.salesid, serialcode: this.random() }).then(() => {
121
+        this.setCardShare({ id: this.$route.query.id, salesid: this.$route.query.salesid, serialcode: this.$route.query.random }).then(() => {
120
           this.$router.push({ name: 'receiveResults', query: { type: 'success' } })
122
           this.$router.push({ name: 'receiveResults', query: { type: 'success' } })
121
         }).catch((err) => {
123
         }).catch((err) => {
122
           this.$router.push({ name: 'receiveResults', query: { type: 'fail' } })
124
           this.$router.push({ name: 'receiveResults', query: { type: 'fail' } })
123
           console.log(err)
125
           console.log(err)
124
         })
126
         })
125
       } else {
127
       } else {
126
-        this.setCouponShare({ id: this.$route.query.id, salesid: this.$route.query.salesid, serialcode: this.random() }).then(() => {
128
+        this.setCouponShare({ id: this.$route.query.id, salesid: this.$route.query.salesid, serialcode: this.$route.query.random }).then(() => {
127
           this.$router.push({ name: 'receiveResults', query: { type: 'success' } })
129
           this.$router.push({ name: 'receiveResults', query: { type: 'success' } })
128
         }).catch((err) => {
130
         }).catch((err) => {
129
           this.$router.push({ name: 'receiveResults', query: { type: 'fail' } })
131
           this.$router.push({ name: 'receiveResults', query: { type: 'fail' } })
131
         })
133
         })
132
       }
134
       }
133
     },
135
     },
134
-    random () {
135
-      let rnd = ''
136
-      for (let i = 0; i < 5; i++) {
137
-        rnd += Math.floor(Math.random() * 10)
138
-      }
139
-      let timestamp = new Date().valueOf()
140
-      return `${rnd}${timestamp}`
141
-    },
142
     sdk (info) {
136
     sdk (info) {
143
       let logo, title
137
       let logo, title
144
-      if ($route.query.type === 'card') {
138
+      if (this.$route.query.type === 'card') {
145
         logo = this.data.Images[0].CardImageUrl
139
         logo = this.data.Images[0].CardImageUrl
146
         title = this.data.CardName
140
         title = this.data.CardName
147
       } else {
141
       } else {
151
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
145
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
152
         title: title,
146
         title: title,
153
         desc: info,
147
         desc: info,
154
-        link: `${window.location.origin}${window.location.pathname}#/receiveShared/${this.$route.query.id}/${this.$route.query.salesid}/${this.$route.query.type}/receive`,
148
+        link: `${window.location.origin}${window.location.pathname}#/receiveShared/${this.$route.query.id}/${this.$route.query.salesid}/${this.$route.query.type}/${this.$route.query.random}/receive`,
155
         thu_image: logo
149
         thu_image: logo
156
       })
150
       })
157
     }
151
     }

+ 7
- 4
src/pages/user/receiveChannel/index.vue Vedi File

8
       <img :src="logo" alt="">
8
       <img :src="logo" alt="">
9
     </div>
9
     </div>
10
     <div class="banner"  v-if="!video">
10
     <div class="banner"  v-if="!video">
11
-      <img :src="data.Images[0].CardImageUrl" alt="" width="100%" height="100%" v-if="$route.query.type === 'card'">
12
-      <img :src="data.Images[0].CouponImageUrl" alt="" width="100%" height="100%" v-else>
11
+      <img :src="data.Images[0].CardImageUrl" alt="" width="100%" height="100%" v-if="type === 'card'">
12
+      <img :src="data.Images[0].CouponImageUrl" alt="" width="100%" height="100%" v-if="type === 'coupon'">
13
     </div>
13
     </div>
14
     <div class="content">
14
     <div class="content">
15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
59
       video: true,
59
       video: true,
60
       button: true,
60
       button: true,
61
       show: false,
61
       show: false,
62
+      type:'',
62
       data: {}
63
       data: {}
63
     }
64
     }
64
   },
65
   },
79
       })
80
       })
80
     }
81
     }
81
 
82
 
82
-
83
     if (this.$route.query.sharetype === 'share') {
83
     if (this.$route.query.sharetype === 'share') {
84
       this.button = false
84
       this.button = false
85
     }
85
     }
86
+
87
+    this.type = this.$route.query.type
88
+    
86
     this.getCaseList().then(() => {
89
     this.getCaseList().then(() => {
87
       this.init()
90
       this.init()
88
     })
91
     })
132
     },
135
     },
133
     sdk (info) {
136
     sdk (info) {
134
       let logo, title
137
       let logo, title
135
-      if ($route.query.type === 'card') {
138
+      if (this.$route.query.type === 'card') {
136
         logo = this.data.Images[0].CardImageUrl
139
         logo = this.data.Images[0].CardImageUrl
137
         title = this.data.CardName
140
         title = this.data.CardName
138
       } else {
141
       } else {

+ 1
- 1
src/pages/user/receiveResults/page.scss Vedi File

32
   img{
32
   img{
33
     width: 1rem;
33
     width: 1rem;
34
     margin-top: 1rem;
34
     margin-top: 1rem;
35
-    opacity: .5;
35
+    opacity: .3;
36
   }
36
   }
37
 }
37
 }

+ 1
- 1
src/pages/user/router.js Vedi File

139
     component: receiveResults,
139
     component: receiveResults,
140
     children: []
140
     children: []
141
   }, { // 卡券领取(带参数,分享后的路径)
141
   }, { // 卡券领取(带参数,分享后的路径)
142
-    path: '/receiveShared/:id/:salesid/:type/:sharetype',
142
+    path: '/receiveShared/:id/:salesid/:type/:random/:sharetype',
143
     name: 'receive',
143
     name: 'receive',
144
     component: receive
144
     component: receive
145
   }, { // 渠道卡券领取
145
   }, { // 渠道卡券领取

+ 10
- 7
src/util/ajax.js Vedi File

6
 
6
 
7
 const token = function (headers) {
7
 const token = function (headers) {
8
   let JWT
8
   let JWT
9
-  if (headers){
9
+  if (headers) {
10
     localStorage.setItem('JWT', headers.authorization)
10
     localStorage.setItem('JWT', headers.authorization)
11
     JWT = headers.authorization
11
     JWT = headers.authorization
12
   }
12
   }
77
           router.push({ name: 'bindMobile' })
77
           router.push({ name: 'bindMobile' })
78
         }
78
         }
79
       } else {
79
       } else {
80
-        // console.log(message)
81
-        Toast.fail({
82
-          duration: 2000, // 持续展示 toast
83
-          forbidClick: true, // 禁用背景点击
84
-          message: message
85
-        })
80
+        if (message.indexOf("log-error") != -1) {
81
+          console.log(message)
82
+        } else {
83
+          Toast.fail({
84
+            duration: 2000, // 持续展示 toast
85
+            forbidClick: true, // 禁用背景点击
86
+            message: message
87
+          })
88
+        }
86
         reject(message)
89
         reject(message)
87
       }
90
       }
88
     }).catch(reject)
91
     }).catch(reject)