Просмотр исходного кода

Merge branch 'master' of http://git.ycjcjy.com/xuchengxiang/niucai-user

xcx 4 лет назад
Родитель
Сommit
5aacb4d3a3

+ 5
- 2
src/pages/index/DaLeTouDingDan/index.vue Просмотреть файл

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

+ 4
- 1
src/pages/index/LanQiuDingDan/index.vue Просмотреть файл

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

+ 5
- 2
src/pages/index/PaiLie3DingDan/index.vue Просмотреть файл

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

+ 5
- 2
src/pages/index/PaiLie5DingDan/index.vue Просмотреть файл

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

+ 4
- 1
src/pages/index/ShuangSeQiuDingDan/index.vue Просмотреть файл

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

+ 21
- 4
src/pages/index/ZuQiu/index.vue Просмотреть файл

@@ -200,10 +200,27 @@ export default {
200 200
       if (wayCode !== '' && wayCode !== 'Mix') {
201 201
         queryData.wayCode = wayCode
202 202
       }
203
-      this.GetMixData({ queryData }).then((res) => {
204
-        this.MixData = res.data.data || []
205
-        this.NoData = !this.MixData.length
206
-      })
203
+      if (wayCode === 'ft-wdl') {
204
+        this.GetMixData({ queryData }).then((res) => {
205
+          let aArr = res.data.data || []
206
+          this.GetMixData({ queryData: { ...queryData, wayCode: 'ft-wdls' } }).then((ChildRes) => {
207
+            let bArr = ChildRes.data.data || []
208
+            aArr.map((aItem) => {
209
+              bArr.map((bItem) => {
210
+                if (aItem.matchId - 0 === bItem.matchId - 0) {
211
+                  this.MixData.push({ ...aItem, playOdds: { ...aItem.playOdds, 'ft-wdls': bItem.playOdds['ft-wdls'] } })
212
+                }
213
+              })
214
+            })
215
+            this.NoData = !this.MixData.length
216
+          })
217
+        })
218
+      } else {
219
+        this.GetMixData({ queryData }).then((res) => {
220
+          this.MixData = res.data.data || []
221
+          this.NoData = !this.MixData.length
222
+        })
223
+      }
207 224
     },
208 225
     ToBetting () { // 去投注
209 226
       if (this.SelectType > 5) {

+ 4
- 1
src/pages/index/ZuQiuDingDan/index.vue Просмотреть файл

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