Browse Source

静态页面

1002884655 4 years ago
parent
commit
6f5fe7957c

+ 5
- 2
src/pages/index/DaLeTouDingDan/index.vue View File

47
 
47
 
48
         <div class="Bottom">
48
         <div class="Bottom">
49
           <div class="Store">
49
           <div class="Store">
50
-            <a @click="ShowStore = true">店铺:{{CurrentStoreName || '请选择'}}</a>
50
+            <a @click="() => { if (GetStoreListStatus) { ShowStore = true } }">店铺:{{GetStoreListStatus ? CurrentStoreName === null ? '请选择' : CurrentStoreName : '正在请求店铺数据...'}}</a>
51
           </div>
51
           </div>
52
           <div class="Count">
52
           <div class="Count">
53
             <span><em>{{TotalCount}}</em>注</span>
53
             <span><em>{{TotalCount}}</em>注</span>
119
     return {
119
     return {
120
       Lat: '',
120
       Lat: '',
121
       Lng: '',
121
       Lng: '',
122
+      GetStoreListStatus: false,
122
       MyStoreList: [], // 我的店铺
123
       MyStoreList: [], // 我的店铺
123
       CurrentStoreName: null, // 当前选择店铺名称
124
       CurrentStoreName: null, // 当前选择店铺名称
124
       CurrentStoreId: null, // 当前选择店铺id
125
       CurrentStoreId: null, // 当前选择店铺id
174
       'GetCurrentUserInfo'
175
       'GetCurrentUserInfo'
175
     ]),
176
     ]),
176
     ToGetStoreList () {
177
     ToGetStoreList () {
178
+      this.GetStoreListStatus = false
177
       this.GetStoreList({
179
       this.GetStoreList({
178
         queryData: {
180
         queryData: {
179
           location: `${this.Lng},${this.Lat}`,
181
           location: `${this.Lng},${this.Lat}`,
193
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
195
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
194
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
196
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
195
         }
197
         }
198
+        this.GetStoreListStatus = true
196
       })
199
       })
197
     },
200
     },
198
     SelectStore (item) { // 选择店铺
201
     SelectStore (item) { // 选择店铺
224
         done()
227
         done()
225
       }
228
       }
226
     },
229
     },
227
-    ToPostBetting (done = () => {}) { // 去下注
230
+    ToPostBetting (done = () => { }) { // 去下注
228
       if (this.DataLock || !this.DaLeTouCart.length || this.CurrentStoreId === null) return
231
       if (this.DataLock || !this.DaLeTouCart.length || this.CurrentStoreId === null) return
229
       this.DataLock = true
232
       this.DataLock = true
230
       let ListData = []
233
       let ListData = []

+ 4
- 1
src/pages/index/LanQiuDingDan/index.vue View File

41
 
41
 
42
         <div class="Bottom">
42
         <div class="Bottom">
43
           <div class="Store">
43
           <div class="Store">
44
-            <a @click="ShowStore = true">店铺:{{CurrentStoreName || '请选择'}}</a>
44
+            <a @click="() => { if (GetStoreListStatus) { ShowStore = true } }">店铺:{{GetStoreListStatus ? CurrentStoreName === null ? '请选择' : CurrentStoreName : '正在请求店铺数据...'}}</a>
45
           </div>
45
           </div>
46
           <div class="Chuan" v-if="$route.query.type === 'mix'">
46
           <div class="Chuan" v-if="$route.query.type === 'mix'">
47
             <span @click="ShowPassWay = true">{{CurrentPassName || '请选择过关方式'}} <i class="iconfont iconjiantoudown"></i></span>
47
             <span @click="ShowPassWay = true">{{CurrentPassName || '请选择过关方式'}} <i class="iconfont iconjiantoudown"></i></span>
138
     return {
138
     return {
139
       Lat: '',
139
       Lat: '',
140
       Lng: '',
140
       Lng: '',
141
+      GetStoreListStatus: false,
141
       MyStoreList: [],
142
       MyStoreList: [],
142
       PriceArr: [0, 0], // 奖金区间
143
       PriceArr: [0, 0], // 奖金区间
143
       AllParts: [], // 投注生成结果
144
       AllParts: [], // 投注生成结果
283
       })
284
       })
284
     },
285
     },
285
     ToGetStoreList () { // 获取店铺列表
286
     ToGetStoreList () { // 获取店铺列表
287
+      this.GetStoreListStatus = false
286
       this.GetStoreList({
288
       this.GetStoreList({
287
         queryData: {
289
         queryData: {
288
           location: `${this.Lng},${this.Lat}`,
290
           location: `${this.Lng},${this.Lat}`,
317
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
319
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
318
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
320
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
319
         }
321
         }
322
+        this.GetStoreListStatus = true
320
       })
323
       })
321
     },
324
     },
322
     ToGetAllParts () { // 枚举投注
325
     ToGetAllParts () { // 枚举投注

+ 5
- 2
src/pages/index/PaiLie3DingDan/index.vue View File

2
   <div class="Page">
2
   <div class="Page">
3
     <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderRight="true" :ShowMainHeaderBack="true" MainHeaderRightIcon="iconqingkong" MainHeaderRightText="清空重选" MainHeaderTitle="确认投注" :MainHeaderRightClick="() => { this.EmptyCart() }">
3
     <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderRight="true" :ShowMainHeaderBack="true" MainHeaderRightIcon="iconqingkong" MainHeaderRightText="清空重选" MainHeaderTitle="确认投注" :MainHeaderRightClick="() => { this.EmptyCart() }">
4
       <div class="PageContainer flex-v">
4
       <div class="PageContainer flex-v">
5
-        <a class="Store flex-h" @click="ShowStore = true">
5
+        <a class="Store flex-h" @click="() => { if (GetStoreListStatus) { ShowStore = true } }">
6
           <div class="flex-item">
6
           <div class="flex-item">
7
             <div>
7
             <div>
8
-              <span>投注门店:{{CurrentStoreName || '请选择'}}</span>
8
+              <span>投注门店:{{GetStoreListStatus ? CurrentStoreName === null ? '请选择' : CurrentStoreName : '正在请求店铺数据...'}}</span>
9
             </div>
9
             </div>
10
           </div>
10
           </div>
11
           <span>查看更多</span>
11
           <span>查看更多</span>
163
     return {
163
     return {
164
       Lat: '',
164
       Lat: '',
165
       Lng: '',
165
       Lng: '',
166
+      GetStoreListStatus: false,
166
       MyStoreList: [],
167
       MyStoreList: [],
167
       CurrentStoreName: null, // 当前选择店铺名称
168
       CurrentStoreName: null, // 当前选择店铺名称
168
       CurrentStoreId: null, // 当前选择店铺id
169
       CurrentStoreId: null, // 当前选择店铺id
218
       }, { enableHighAccuracy: true })
219
       }, { enableHighAccuracy: true })
219
     },
220
     },
220
     ToGetStoreList () {
221
     ToGetStoreList () {
222
+      this.GetStoreListStatus = false
221
       this.GetStoreList({
223
       this.GetStoreList({
222
         queryData: {
224
         queryData: {
223
           location: `${this.Lng},${this.Lat}`,
225
           location: `${this.Lng},${this.Lat}`,
237
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
239
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
238
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
240
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
239
         }
241
         }
242
+        this.GetStoreListStatus = true
240
       })
243
       })
241
     },
244
     },
242
     ReturnType (type) { // 投注类型返回值
245
     ReturnType (type) { // 投注类型返回值

+ 5
- 2
src/pages/index/PaiLie5DingDan/index.vue View File

2
   <div class="Page">
2
   <div class="Page">
3
     <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderRight="true" MainHeaderRightIcon="iconqingkong" MainHeaderRightText="清空重选" :ShowMainHeaderBack="true" MainHeaderTitle="确认投注" :MainHeaderRightClick="() => { this.EmptyCart() }">
3
     <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderRight="true" MainHeaderRightIcon="iconqingkong" MainHeaderRightText="清空重选" :ShowMainHeaderBack="true" MainHeaderTitle="确认投注" :MainHeaderRightClick="() => { this.EmptyCart() }">
4
       <div class="PageContainer flex-v">
4
       <div class="PageContainer flex-v">
5
-        <a class="Store flex-h" @click="ShowStore = true">
5
+        <a class="Store flex-h" @click="() => { if (GetStoreListStatus) { ShowStore = true } }">
6
           <div class="flex-item">
6
           <div class="flex-item">
7
             <div>
7
             <div>
8
-              <span>投注门店:{{CurrentStoreName || '请选择'}}</span>
8
+              <span>投注门店:{{GetStoreListStatus ? CurrentStoreName === null ? '请选择' : CurrentStoreName : '正在请求店铺数据...'}}</span>
9
             </div>
9
             </div>
10
           </div>
10
           </div>
11
           <span>查看更多</span>
11
           <span>查看更多</span>
154
     return {
154
     return {
155
       Lat: '',
155
       Lat: '',
156
       Lng: '',
156
       Lng: '',
157
+      GetStoreListStatus: false,
157
       MyStoreList: [],
158
       MyStoreList: [],
158
       CurrentStoreName: null, // 当前选择店铺名称
159
       CurrentStoreName: null, // 当前选择店铺名称
159
       CurrentStoreId: null, // 当前选择店铺id
160
       CurrentStoreId: null, // 当前选择店铺id
217
       this.CreateData()
218
       this.CreateData()
218
     },
219
     },
219
     ToGetStoreList () {
220
     ToGetStoreList () {
221
+      this.GetStoreListStatus = false
220
       this.GetStoreList({
222
       this.GetStoreList({
221
         queryData: {
223
         queryData: {
222
           location: `${this.Lng},${this.Lat}`,
224
           location: `${this.Lng},${this.Lat}`,
236
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
238
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
237
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
239
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
238
         }
240
         }
241
+        this.GetStoreListStatus = true
239
       })
242
       })
240
     },
243
     },
241
     ConfirmBetting () {
244
     ConfirmBetting () {

+ 4
- 1
src/pages/index/ShuangSeQiuDingDan/index.vue View File

45
         </div>
45
         </div>
46
         <div class="Bottom">
46
         <div class="Bottom">
47
           <div class="Store">
47
           <div class="Store">
48
-            <a @click="ShowStore = true">店铺:{{CurrentStoreName || '请选择'}}</a>
48
+            <a @click="() => { if (GetStoreListStatus) { ShowStore = true } }">店铺:{{GetStoreListStatus ? CurrentStoreName === null ? '请选择' : CurrentStoreName : '正在请求店铺数据...'}}</a>
49
           </div>
49
           </div>
50
           <div class="Count">
50
           <div class="Count">
51
             <span><em>{{TotalCount}}</em>注</span>
51
             <span><em>{{TotalCount}}</em>注</span>
117
     return {
117
     return {
118
       Lat: '',
118
       Lat: '',
119
       Lng: '',
119
       Lng: '',
120
+      GetStoreListStatus: false,
120
       MyStoreList: [],
121
       MyStoreList: [],
121
       CurrentStoreName: null, // 当前选择店铺名称
122
       CurrentStoreName: null, // 当前选择店铺名称
122
       CurrentStoreId: null, // 当前选择店铺id
123
       CurrentStoreId: null, // 当前选择店铺id
171
       'GetCurrentUserInfo'
172
       'GetCurrentUserInfo'
172
     ]),
173
     ]),
173
     ToGetStoreList () {
174
     ToGetStoreList () {
175
+      this.GetStoreListStatus = false
174
       this.GetStoreList({
176
       this.GetStoreList({
175
         queryData: {
177
         queryData: {
176
           location: `${this.Lng},${this.Lat}`,
178
           location: `${this.Lng},${this.Lat}`,
190
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
192
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
191
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
193
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
192
         }
194
         }
195
+        this.GetStoreListStatus = true
193
       })
196
       })
194
     },
197
     },
195
     ResToString (target) {
198
     ResToString (target) {

+ 4
- 1
src/pages/index/ZuQiuDingDan/index.vue View File

41
 
41
 
42
         <div class="Bottom">
42
         <div class="Bottom">
43
           <div class="Store">
43
           <div class="Store">
44
-            <a @click="ShowStore = true">店铺:{{CurrentStoreName || '请选择'}}</a>
44
+            <a @click="() => { if (GetStoreListStatus) { ShowStore = true } }">店铺:{{GetStoreListStatus ? CurrentStoreName === null ? '请选择' : CurrentStoreName : '正在请求店铺数据...'}}</a>
45
           </div>
45
           </div>
46
           <div class="Chuan" v-if="$route.query.type === 'mix'">
46
           <div class="Chuan" v-if="$route.query.type === 'mix'">
47
             <span @click="ShowPassWay = true">{{CurrentPassName || '请选择过关方式'}} <i class="iconfont iconjiantoudown"></i></span>
47
             <span @click="ShowPassWay = true">{{CurrentPassName || '请选择过关方式'}} <i class="iconfont iconjiantoudown"></i></span>
138
     return {
138
     return {
139
       Lat: '',
139
       Lat: '',
140
       Lng: '',
140
       Lng: '',
141
+      GetStoreListStatus: false,
141
       MyStoreList: [],
142
       MyStoreList: [],
142
       PriceArr: [0, 0], // 奖金区间
143
       PriceArr: [0, 0], // 奖金区间
143
       AllParts: [], // 投注生成结果
144
       AllParts: [], // 投注生成结果
283
       })
284
       })
284
     },
285
     },
285
     ToGetStoreList () { // 获取店铺列表
286
     ToGetStoreList () { // 获取店铺列表
287
+      this.GetStoreListStatus = false
286
       this.GetStoreList({
288
       this.GetStoreList({
287
         queryData: {
289
         queryData: {
288
           location: `${this.Lng},${this.Lat}`,
290
           location: `${this.Lng},${this.Lat}`,
317
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
319
           this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
318
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
320
           this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
319
         }
321
         }
322
+        this.GetStoreListStatus = true
320
       })
323
       })
321
     },
324
     },
322
     ToGetAllParts () { // 枚举投注
325
     ToGetAllParts () { // 枚举投注