Bladeren bron

静态页面

1002884655 4 jaren geleden
bovenliggende
commit
2739f0fc20

+ 14
- 1
src/pages/WoDe/GeRenSheZhi/SheZhi/index.vue Bestand weergeven

@@ -7,6 +7,16 @@
7 7
             <span class="flex-item">账户设置</span>
8 8
             <i class="iconfont iconjiantouright"></i>
9 9
           </router-link>
10
+          <router-link v-if="UserInfo !== null" tag="li" class="flex-h" :to="{name: 'EditTiXianMiMa'}">
11
+            <span class="flex-item">提现密码</span>
12
+            <span>{{UserInfo.cashPass === null ? '未设置' : '已设置'}}</span>
13
+            <i class="iconfont iconjiantouright"></i>
14
+          </router-link>
15
+          <router-link v-if="UserInfo !== null" tag="li" class="flex-h" :to="{name: 'BangDingZhiFuBao'}">
16
+            <span class="flex-item">绑定支付宝</span>
17
+            <span>{{UserInfo.alipayUser === null ? '未绑定' : '已绑定'}}</span>
18
+            <i class="iconfont iconjiantouright"></i>
19
+          </router-link>
10 20
           <router-link tag="li" class="flex-h" :to="{name: 'GuanYuWoMen'}">
11 21
             <span class="flex-item">关于我们</span>
12 22
             <i class="iconfont iconjiantouright"></i>
@@ -21,7 +31,7 @@
21 31
 <script>
22 32
 import MainPageContainer from '../../../../components/common/MainPageContainer'
23 33
 import { createNamespacedHelpers } from 'vuex'
24
-const { mapMutations: mapUserMutations } = createNamespacedHelpers('user')
34
+const { mapState: mapUserState, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
25 35
 export default {
26 36
   name: '',
27 37
   data () {
@@ -29,6 +39,9 @@ export default {
29 39
     }
30 40
   },
31 41
   computed: {
42
+    ...mapUserState({
43
+      UserInfo: x => x.UserInfo
44
+    })
32 45
   },
33 46
   components: {
34 47
     MainPageContainer

+ 4
- 0
src/pages/WoDe/GeRenSheZhi/SheZhi/page.scss Bestand weergeven

@@ -20,6 +20,10 @@
20 20
         > span {
21 21
           font-size: 0.16rem;
22 22
           line-height: 0.2rem;
23
+          + span {
24
+            font-size: 0.1rem;
25
+            color: #999;
26
+          }
23 27
         }
24 28
         > i {
25 29
           font-size: 0.2rem;

+ 4
- 4
src/pages/WoDe/GeRenSheZhi/ZhangHuSheZhi/UserInfo/index.vue Bestand weergeven

@@ -20,21 +20,21 @@
20 20
             <span class="flex-item">修改密码</span>
21 21
             <i class="iconfont iconjiantouright"></i>
22 22
           </router-link>
23
-          <router-link tag="li" class="flex-h" :to="{name: 'EditTiXianMiMa'}">
23
+          <!-- <router-link tag="li" class="flex-h" :to="{name: 'EditTiXianMiMa'}">
24 24
             <span class="flex-item">提现密码</span>
25 25
             <span>{{UserInfo.cashPass === null ? '未设置' : '已设置'}}</span>
26 26
             <i class="iconfont iconjiantouright"></i>
27
-          </router-link>
27
+          </router-link> -->
28 28
           <router-link tag="li" class="flex-h" :to="{name: 'BangDingShenFenZheng'}">
29 29
             <span class="flex-item">绑定身份证</span>
30 30
             <span>{{UserInfo.idCard === null ? '未绑定' : '已绑定'}}</span>
31 31
             <i class="iconfont iconjiantouright"></i>
32 32
           </router-link>
33
-          <router-link tag="li" class="flex-h" :to="{name: 'BangDingZhiFuBao'}">
33
+          <!-- <router-link tag="li" class="flex-h" :to="{name: 'BangDingZhiFuBao'}">
34 34
             <span class="flex-item">绑定支付宝</span>
35 35
             <span>{{UserInfo.alipayUser === null ? '未绑定' : '已绑定'}}</span>
36 36
             <i class="iconfont iconjiantouright"></i>
37
-          </router-link>
37
+          </router-link> -->
38 38
         </ul>
39 39
       </div>
40 40
     </MainPageContainer>

+ 21
- 9
src/pages/index/DaLeTouDingDan/index.vue Bestand weergeven

@@ -149,6 +149,10 @@ export default {
149 149
       window.localStorage.DaLeTouCart = JSON.stringify(this.DaLeTouCart)
150 150
     } else if (window.localStorage.DaLeTouCart !== undefined && window.localStorage.DaLeTouCart !== null) {
151 151
       this.UpdateCart({ name: 'DaLeTouCart', value: JSON.parse(window.localStorage.DaLeTouCart) || [] })
152
+      if (window.localStorage.niucaiselectstoreid !== 'null' && window.localStorage.niucaiselectstoreid !== undefined) {
153
+        this.CurrentStoreId = window.localStorage.niucaiselectstoreid - 0
154
+        this.CurrentStoreName = window.localStorage.niucaiselectstorename
155
+      }
152 156
     }
153 157
     this.PageList = [...this.DaLeTouCart]
154 158
     this.CheckOrderCount() // 计算订单倍数、金额
@@ -194,15 +198,21 @@ export default {
194 198
         if (res.data.data.mine !== null) {
195 199
           this.MyStoreList = [{ ...res.data.data.mine }]
196 200
         }
197
-        if (this.MyStoreList.length) {
198
-          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
199
-          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
200
-        } else if (this.RecommendStoreList.length) {
201
-          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
202
-          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
203
-        } else if (this.StoreList.length) {
204
-          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
205
-          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
201
+        if (this.CurrentStoreId === null) {
202
+          if (this.MyStoreList.length) {
203
+            this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
204
+            this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
205
+          } else if (this.RecommendStoreList.length) {
206
+            this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
207
+            this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
208
+          } else if (this.StoreList.length) {
209
+            this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
210
+            this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
211
+          }
212
+          if (this.CurrentStoreId !== null) {
213
+            window.localStorage.niucaiselectstoreid = this.CurrentStoreId
214
+            window.localStorage.niucaiselectstorename = this.CurrentStoreName
215
+          }
206 216
         }
207 217
         this.GetStoreListStatus = true
208 218
       })
@@ -212,6 +222,8 @@ export default {
212 222
       this.DataLock = true
213 223
       this.CurrentStoreName = item.shopId === this.CurrentStoreId ? null : item.name
214 224
       this.CurrentStoreId = item.shopId === this.CurrentStoreId ? null : item.shopId
225
+      window.localStorage.niucaiselectstoreid = this.CurrentStoreId
226
+      window.localStorage.niucaiselectstorename = this.CurrentStoreName
215 227
       this.DataLock = false
216 228
     },
217 229
     ResToString (target) {

+ 21
- 9
src/pages/index/LanQiuDingDan/index.vue Bestand weergeven

@@ -197,6 +197,10 @@ export default {
197 197
         window.localStorage.LanQiuCart = JSON.stringify(this.LanQiuCart)
198 198
       } else if (window.localStorage.LanQiuCart !== undefined && window.localStorage.LanQiuCart !== null) {
199 199
         this.UpdateCart({ name: 'LanQiuCart', value: JSON.parse(window.localStorage.LanQiuCart) || [] })
200
+        if (window.localStorage.niucaiselectstoreid !== 'null' && window.localStorage.niucaiselectstoreid !== undefined) {
201
+          this.CurrentStoreId = window.localStorage.niucaiselectstoreid - 0
202
+          this.CurrentStoreName = window.localStorage.niucaiselectstorename
203
+        }
200 204
       }
201 205
       this.PageList = [...this.LanQiuCart] // 赋值页面数据
202 206
       let map = new window.BMap.Geolocation()
@@ -321,15 +325,21 @@ export default {
321 325
             this.MyStoreList.push(item)
322 326
           }
323 327
         })
324
-        if (this.MyStoreList.length) {
325
-          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
326
-          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
327
-        } else if (this.RecommendStoreList.length) {
328
-          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
329
-          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
330
-        } else if (this.StoreList.length) {
331
-          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
332
-          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
328
+        if (this.CurrentStoreId === null) {
329
+          if (this.MyStoreList.length) {
330
+            this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
331
+            this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
332
+          } else if (this.RecommendStoreList.length) {
333
+            this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
334
+            this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
335
+          } else if (this.StoreList.length) {
336
+            this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
337
+            this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
338
+          }
339
+          if (this.CurrentStoreId !== null) {
340
+            window.localStorage.niucaiselectstoreid = this.CurrentStoreId
341
+            window.localStorage.niucaiselectstorename = this.CurrentStoreName
342
+          }
333 343
         }
334 344
         this.GetStoreListStatus = true
335 345
       })
@@ -436,6 +446,8 @@ export default {
436 446
       this.DataLock = true
437 447
       this.CurrentStoreName = item.shopId === this.CurrentStoreId ? null : item.name
438 448
       this.CurrentStoreId = item.shopId === this.CurrentStoreId ? null : item.shopId
449
+      window.localStorage.niucaiselectstoreid = this.CurrentStoreId
450
+      window.localStorage.niucaiselectstorename = this.CurrentStoreName
439 451
       this.DataLock = false
440 452
     },
441 453
     DeleteItem (index) { // 删除投注

+ 21
- 9
src/pages/index/PaiLie3DingDan/index.vue Bestand weergeven

@@ -209,6 +209,10 @@ export default {
209 209
         window.localStorage.PaiLie3Cart = JSON.stringify(this.PaiLie3Cart)
210 210
       } else if (window.localStorage.PaiLie3Cart !== undefined && window.localStorage.PaiLie3Cart !== null) {
211 211
         this.UpdateCart({ name: 'PaiLie3Cart', value: JSON.parse(window.localStorage.PaiLie3Cart) || [] })
212
+        if (window.localStorage.niucaiselectstoreid !== 'null' && window.localStorage.niucaiselectstoreid !== undefined) {
213
+          this.CurrentStoreId = window.localStorage.niucaiselectstoreid - 0
214
+          this.CurrentStoreName = window.localStorage.niucaiselectstorename
215
+        }
212 216
       }
213 217
       this.PageList = [...this.PaiLie3Cart]
214 218
       this.CalcTotalCount()
@@ -238,15 +242,21 @@ export default {
238 242
         if (res.data.data.mine !== null) {
239 243
           this.MyStoreList = [{ ...res.data.data.mine }]
240 244
         }
241
-        if (this.MyStoreList.length) {
242
-          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
243
-          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
244
-        } else if (this.RecommendStoreList.length) {
245
-          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
246
-          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
247
-        } else if (this.StoreList.length) {
248
-          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
249
-          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
245
+        if (this.CurrentStoreId === null) {
246
+          if (this.MyStoreList.length) {
247
+            this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
248
+            this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
249
+          } else if (this.RecommendStoreList.length) {
250
+            this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
251
+            this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
252
+          } else if (this.StoreList.length) {
253
+            this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
254
+            this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
255
+          }
256
+          if (this.CurrentStoreId !== null) {
257
+            window.localStorage.niucaiselectstoreid = this.CurrentStoreId
258
+            window.localStorage.niucaiselectstorename = this.CurrentStoreName
259
+          }
250 260
         }
251 261
         this.GetStoreListStatus = true
252 262
       })
@@ -285,6 +295,8 @@ export default {
285 295
       this.DataLock = true
286 296
       this.CurrentStoreName = item.shopId === this.CurrentStoreId ? null : item.name
287 297
       this.CurrentStoreId = item.shopId === this.CurrentStoreId ? null : item.shopId
298
+      window.localStorage.niucaiselectstoreid = this.CurrentStoreId
299
+      window.localStorage.niucaiselectstorename = this.CurrentStoreName
288 300
       this.DataLock = false
289 301
     },
290 302
     ConfirmBetting () {

+ 21
- 9
src/pages/index/PaiLie5DingDan/index.vue Bestand weergeven

@@ -207,6 +207,10 @@ export default {
207 207
         window.localStorage.PaiLie5Cart = JSON.stringify(this.PaiLie5Cart)
208 208
       } else if (window.localStorage.PaiLie5Cart !== undefined && window.localStorage.PaiLie5Cart !== null) {
209 209
         this.UpdateCart({ name: 'PaiLie5Cart', value: JSON.parse(window.localStorage.PaiLie5Cart) || [] })
210
+        if (window.localStorage.niucaiselectstoreid !== 'null' && window.localStorage.niucaiselectstoreid !== undefined) {
211
+          this.CurrentStoreId = window.localStorage.niucaiselectstoreid - 0
212
+          this.CurrentStoreName = window.localStorage.niucaiselectstorename
213
+        }
210 214
       }
211 215
       this.PageList = [...this.PaiLie5Cart]
212 216
       let map = new window.BMap.Geolocation()
@@ -237,15 +241,21 @@ export default {
237 241
         if (res.data.data.mine !== null) {
238 242
           this.MyStoreList = [{ ...res.data.data.mine }]
239 243
         }
240
-        if (this.MyStoreList.length) {
241
-          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
242
-          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
243
-        } else if (this.RecommendStoreList.length) {
244
-          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
245
-          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
246
-        } else if (this.StoreList.length) {
247
-          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
248
-          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
244
+        if (this.CurrentStoreId === null) {
245
+          if (this.MyStoreList.length) {
246
+            this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
247
+            this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
248
+          } else if (this.RecommendStoreList.length) {
249
+            this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
250
+            this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
251
+          } else if (this.StoreList.length) {
252
+            this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
253
+            this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
254
+          }
255
+          if (this.CurrentStoreId !== null) {
256
+            window.localStorage.niucaiselectstoreid = this.CurrentStoreId
257
+            window.localStorage.niucaiselectstorename = this.CurrentStoreName
258
+          }
249 259
         }
250 260
         this.GetStoreListStatus = true
251 261
       })
@@ -329,6 +339,8 @@ export default {
329 339
       this.DataLock = true
330 340
       this.CurrentStoreName = item.shopId === this.CurrentStoreId ? null : item.name
331 341
       this.CurrentStoreId = item.shopId === this.CurrentStoreId ? null : item.shopId
342
+      window.localStorage.niucaiselectstoreid = this.CurrentStoreId
343
+      window.localStorage.niucaiselectstorename = this.CurrentStoreName
332 344
       this.DataLock = false
333 345
     },
334 346
     EmptyCart () { // 清空购物车

+ 21
- 9
src/pages/index/ShuangSeQiuDingDan/index.vue Bestand weergeven

@@ -147,6 +147,10 @@ export default {
147 147
       window.localStorage.ShuangSeQiuCart = JSON.stringify(this.ShuangSeQiuCart)
148 148
     } else if (window.localStorage.ShuangSeQiuCart !== undefined && window.localStorage.ShuangSeQiuCart !== null) {
149 149
       this.UpdateCart({ name: 'ShuangSeQiuCart', value: JSON.parse(window.localStorage.ShuangSeQiuCart) || [] })
150
+      if (window.localStorage.niucaiselectstoreid !== 'null' && window.localStorage.niucaiselectstoreid !== undefined) {
151
+        this.CurrentStoreId = window.localStorage.niucaiselectstoreid - 0
152
+        this.CurrentStoreName = window.localStorage.niucaiselectstorename
153
+      }
150 154
     }
151 155
     this.PageList = [...this.ShuangSeQiuCart]
152 156
     this.CheckOrderCount() // 计算订单倍数、金额
@@ -191,15 +195,21 @@ export default {
191 195
         if (res.data.data.mine !== null) {
192 196
           this.MyStoreList = [{ ...res.data.data.mine }]
193 197
         }
194
-        if (this.MyStoreList.length) {
195
-          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
196
-          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
197
-        } else if (this.RecommendStoreList.length) {
198
-          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
199
-          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
200
-        } else if (this.StoreList.length) {
201
-          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
202
-          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
198
+        if (this.CurrentStoreId === null) {
199
+          if (this.MyStoreList.length) {
200
+            this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
201
+            this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
202
+          } else if (this.RecommendStoreList.length) {
203
+            this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
204
+            this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
205
+          } else if (this.StoreList.length) {
206
+            this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
207
+            this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
208
+          }
209
+          if (this.CurrentStoreId !== null) {
210
+            window.localStorage.niucaiselectstoreid = this.CurrentStoreId
211
+            window.localStorage.niucaiselectstorename = this.CurrentStoreName
212
+          }
203 213
         }
204 214
         this.GetStoreListStatus = true
205 215
       })
@@ -287,6 +297,8 @@ export default {
287 297
       this.DataLock = true
288 298
       this.CurrentStoreName = item.shopId === this.CurrentStoreId ? null : item.name
289 299
       this.CurrentStoreId = item.shopId === this.CurrentStoreId ? null : item.shopId
300
+      window.localStorage.niucaiselectstoreid = this.CurrentStoreId
301
+      window.localStorage.niucaiselectstorename = this.CurrentStoreName
290 302
       this.DataLock = false
291 303
     },
292 304
     SwitchChange () { // 追加状态改变

+ 21
- 9
src/pages/index/ZuQiuDingDan/index.vue Bestand weergeven

@@ -197,6 +197,10 @@ export default {
197 197
         window.localStorage.ZuQiuCart = JSON.stringify(this.ZuQiuCart)
198 198
       } else if (window.localStorage.ZuQiuCart !== undefined && window.localStorage.ZuQiuCart !== null) {
199 199
         this.UpdateCart({ name: 'ZuQiuCart', value: JSON.parse(window.localStorage.ZuQiuCart) || [] })
200
+        if (window.localStorage.niucaiselectstoreid !== 'null' && window.localStorage.niucaiselectstoreid !== undefined) {
201
+          this.CurrentStoreId = window.localStorage.niucaiselectstoreid - 0
202
+          this.CurrentStoreName = window.localStorage.niucaiselectstorename
203
+        }
200 204
       }
201 205
       this.PageList = [...this.ZuQiuCart] // 赋值页面数据
202 206
       let map = new window.BMap.Geolocation()
@@ -321,15 +325,21 @@ export default {
321 325
             this.MyStoreList.push(item)
322 326
           }
323 327
         })
324
-        if (this.MyStoreList.length) {
325
-          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
326
-          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
327
-        } else if (this.RecommendStoreList.length) {
328
-          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
329
-          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
330
-        } else if (this.StoreList.length) {
331
-          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
332
-          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
328
+        if (this.CurrentStoreId === null) {
329
+          if (this.MyStoreList.length) {
330
+            this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
331
+            this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
332
+          } else if (this.RecommendStoreList.length) {
333
+            this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
334
+            this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
335
+          } else if (this.StoreList.length) {
336
+            this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
337
+            this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
338
+          }
339
+          if (this.CurrentStoreId !== null) {
340
+            window.localStorage.niucaiselectstoreid = this.CurrentStoreId
341
+            window.localStorage.niucaiselectstorename = this.CurrentStoreName
342
+          }
333 343
         }
334 344
         this.GetStoreListStatus = true
335 345
       }).catch((res) => {
@@ -426,6 +436,8 @@ export default {
426 436
       this.DataLock = true
427 437
       this.CurrentStoreName = item.shopId === this.CurrentStoreId ? null : item.name
428 438
       this.CurrentStoreId = item.shopId === this.CurrentStoreId ? null : item.shopId
439
+      window.localStorage.niucaiselectstoreid = this.CurrentStoreId
440
+      window.localStorage.niucaiselectstorename = this.CurrentStoreName
429 441
       this.DataLock = false
430 442
     },
431 443
     DeleteItem (index) { // 删除投注

+ 2
- 2
src/store/index.js Bestand weergeven

@@ -60,11 +60,11 @@ const store = new Vuex.Store({
60 60
         } else if (item.lotteryId === 'double-color') {
61 61
           item.router = 'ShuangSeQiu'
62 62
           item.icon = 'icon5.png'
63
-          item.desc = '2牛币可中1000w'
63
+          item.desc = '2可中1000w'
64 64
         } else if (item.lotteryId === 'p3') {
65 65
           item.router = 'PaiLie3'
66 66
           item.icon = 'icon7.png'
67
-          item.desc = '最高可中1040牛币'
67
+          item.desc = '最高可中1040'
68 68
         } else if (item.lotteryId === 'p5') {
69 69
           item.router = 'PaiLie5'
70 70
           item.icon = 'icon2.png'