xcx 4 gadus atpakaļ
vecāks
revīzija
30bfcbbec1

+ 3
- 1
src/pages/index/DaLeTouDingDan/index.vue Parādīt failu

@@ -191,7 +191,9 @@ export default {
191 191
       }).then((res) => {
192 192
         this.StoreList = res.data.data.nearest || []
193 193
         this.RecommendStoreList = res.data.data.recommend || []
194
-        this.MyStoreList = res.data.data.mine || []
194
+        if (res.data.data.mine !== null) {
195
+          this.MyStoreList = [{ ...res.data.data.mine }]
196
+        }
195 197
         if (this.MyStoreList.length) {
196 198
           this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
197 199
           this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId

+ 4
- 1
src/pages/index/LanQiuDingDan/index.vue Parādīt failu

@@ -302,7 +302,10 @@ export default {
302 302
       }).then((res) => {
303 303
         let StoreList = res.data.data.nearest || []
304 304
         let RecommendStoreList = res.data.data.recommend || []
305
-        let MyStoreList = res.data.data.mine || []
305
+        let MyStoreList = []
306
+        if (res.data.data.mine !== null) {
307
+          MyStoreList = [{ ...res.data.data.mine }]
308
+        }
306 309
         StoreList.map((item) => {
307 310
           if (item.status - 0 === 1) {
308 311
             this.StoreList.push(item)

+ 3
- 1
src/pages/index/PaiLie3DingDan/index.vue Parādīt failu

@@ -235,7 +235,9 @@ export default {
235 235
       }).then((res) => {
236 236
         this.StoreList = res.data.data.nearest || []
237 237
         this.RecommendStoreList = res.data.data.recommend || []
238
-        this.MyStoreList = res.data.data.mine || []
238
+        if (res.data.data.mine !== null) {
239
+          this.MyStoreList = [{ ...res.data.data.mine }]
240
+        }
239 241
         if (this.MyStoreList.length) {
240 242
           this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
241 243
           this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId

+ 3
- 1
src/pages/index/PaiLie5DingDan/index.vue Parādīt failu

@@ -234,7 +234,9 @@ export default {
234 234
       }).then((res) => {
235 235
         this.StoreList = res.data.data.nearest || []
236 236
         this.RecommendStoreList = res.data.data.recommend || []
237
-        this.MyStoreList = res.data.data.mine || []
237
+        if (res.data.data.mine !== null) {
238
+          this.MyStoreList = [{ ...res.data.data.mine }]
239
+        }
238 240
         if (this.MyStoreList.length) {
239 241
           this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
240 242
           this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId

+ 3
- 1
src/pages/index/ShuangSeQiuDingDan/index.vue Parādīt failu

@@ -188,7 +188,9 @@ export default {
188 188
       }).then((res) => {
189 189
         this.StoreList = res.data.data.nearest || []
190 190
         this.RecommendStoreList = res.data.data.recommend || []
191
-        this.MyStoreList = res.data.data.mine || []
191
+        if (res.data.data.mine !== null) {
192
+          this.MyStoreList = [{ ...res.data.data.mine }]
193
+        }
192 194
         if (this.MyStoreList.length) {
193 195
           this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
194 196
           this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId

+ 4
- 3
src/pages/index/ZuQiuDingDan/index.vue Parādīt failu

@@ -300,10 +300,12 @@ export default {
300 300
           lotteryId: 'football'
301 301
         }
302 302
       }).then((res) => {
303
-        console.log(`店铺请求成功,请求数据是:${JSON.stringify(res)}`)
304 303
         let StoreList = res.data.data.nearest || []
305 304
         let RecommendStoreList = res.data.data.recommend || []
306
-        let MyStoreList = res.data.data.mine || []
305
+        let MyStoreList = []
306
+        if (res.data.data.mine !== null) {
307
+          MyStoreList = [{ ...res.data.data.mine }]
308
+        }
307 309
         StoreList.map((item) => {
308 310
           if (item.status - 0 === 1) {
309 311
             this.StoreList.push(item)
@@ -331,7 +333,6 @@ export default {
331 333
         }
332 334
         this.GetStoreListStatus = true
333 335
       }).catch((res) => {
334
-        console.log(`店铺请求失败,请求数据是:${JSON.stringify(res)}`)
335 336
       })
336 337
     },
337 338
     ToGetAllParts () { // 枚举投注