Browse Source

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

xcx 4 years ago
parent
commit
bc43c7faf4

+ 15
- 3
src/pages/WoDe/WoDeCaiPiao/index.vue View File

@@ -21,14 +21,14 @@
21 21
                   </div>
22 22
                   <div class="flex-item">
23 23
                     <span>{{item.lotteryName}}</span>
24
-                    <span>{{item.totalPrice}}元</span>
24
+                    <span>{{item.totalPrice / 100}}元</span>
25 25
                   </div>
26 26
                 </div>
27 27
                 <div class="flex-h">
28 28
                   <div class="flex-item">
29
-                    <span>订单号:{{null}}</span>
29
+                    <!-- <span>订单号:{{item.orderId || null}}</span> -->
30 30
                   </div>
31
-                  <span>{{item.status}}</span>
31
+                  <span>{{ReturnStatus(item)}}</span>
32 32
                 </div>
33 33
               </router-link>
34 34
             </ul>
@@ -78,6 +78,18 @@ export default {
78 78
     ...mapUserMutations([
79 79
       'EmptyUserBettingList'
80 80
     ]),
81
+    ReturnStatus (item) {
82
+      if (!item.isDrawn) {
83
+        return '未出票'
84
+      }
85
+      if (!item.isOpen) {
86
+        return '未开奖'
87
+      }
88
+      if (!item.isWinning) {
89
+        return '未中奖'
90
+      }
91
+      return '已中奖'
92
+    },
81 93
     Init (done = () => { }) { // 初始化
82 94
       this.EmptyUserBettingList()
83 95
       this.PageData.pageNum = 1

+ 1
- 1
src/pages/index/DaLeTouDingDan/index.vue View File

@@ -222,7 +222,7 @@ export default {
222 222
         this.TotalPrize = 0
223 223
         this.Multiple = 1
224 224
         this.DataLock = false
225
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}&routerName=DaLeTou`
225
+        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=DaLeTou`
226 226
       }).catch((res) => {
227 227
         this.Toast(res.data.message)
228 228
         this.DataLock = false

+ 1
- 1
src/pages/index/DingDanZhiFuZhuangTai/index.vue View File

@@ -9,7 +9,7 @@
9 9
           <span v-if="OrderStatus === 'Success'">支付成功</span>
10 10
           <a v-if="OrderStatus === 'Error'" :href="`/api/app/order/alipay/betting?orderId=${$route.query.id}&returlURL=${LocationOrigin}&token=${Jwt}&routerName=${$route.query.routerName}`">重新支付</a>
11 11
           <router-link :to="{ name: 'index' }">返回首页</router-link>
12
-          <router-link :to="{ name: $route.query.routerName }">继续投注</router-link>
12
+          <router-link :to="{ name: 'CaiPiaoXiangQing', query: { id: $route.query.bettingId } }">查看投注</router-link>
13 13
         </div>
14 14
       </div>
15 15
     </MainPageContainer>

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

@@ -231,7 +231,7 @@ export default {
231 231
         this.TotalPrice = 0
232 232
         this.Multiple = 1
233 233
         this.DataLock = false
234
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}&routerName=LanQiu`
234
+        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=LanQiu`
235 235
       }).catch((res) => {
236 236
         this.Toast(res.data.message)
237 237
         this.DataLock = false

+ 1
- 1
src/pages/index/PaiLie3DingDan/index.vue View File

@@ -289,7 +289,7 @@ export default {
289 289
         this.TotalPrize = 0
290 290
         this.Multiple = 1
291 291
         this.DataLock = false
292
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}&routerName=PaiLie3`
292
+        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=PaiLie3`
293 293
       }).catch((res) => {
294 294
         this.Toast(res.data.message)
295 295
         this.DataLock = false

+ 1
- 1
src/pages/index/PaiLie5DingDan/index.vue View File

@@ -261,7 +261,7 @@ export default {
261 261
         this.TotalPrize = 0
262 262
         this.Multiple = 1
263 263
         this.DataLock = false
264
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}&routerName=PaiLie5`
264
+        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=PaiLie5`
265 265
       }).catch((res) => {
266 266
         this.Toast(res.data.message)
267 267
         this.DataLock = false

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

@@ -212,7 +212,7 @@ export default {
212 212
         this.TotalPrize = 0
213 213
         this.Multiple = 1
214 214
         this.DataLock = false
215
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}&routerName=ShuangSeQiu`
215
+        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=ShuangSeQiu`
216 216
       }).catch((res) => {
217 217
         this.Toast(res.data.message)
218 218
         this.DataLock = false

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

@@ -232,7 +232,7 @@ export default {
232 232
         this.TotalPrice = 0
233 233
         this.Multiple = 1
234 234
         this.DataLock = false
235
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}&routerName=ZuQiu`
235
+        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=ZuQiu`
236 236
       }).catch((res) => {
237 237
         this.Toast(res.data.message)
238 238
         this.DataLock = false

+ 6
- 6
src/store/index.js View File

@@ -40,27 +40,27 @@ const store = new Vuex.Store({
40 40
         if (item.lotteryId === 'basketball') {
41 41
           item.router = 'LanQiu'
42 42
           item.icon = 'icon6.png'
43
-          item.desc = '精彩赛事实况'
43
+          item.desc = '玩转NBA'
44 44
         } else if (item.lotteryId === 'football') {
45 45
           item.router = 'ZuQiu'
46 46
           item.icon = 'icon3.png'
47
-          item.desc = '有态度看直播'
47
+          item.desc = '精彩足球赛事'
48 48
         } else if (item.lotteryId === 'lottery') {
49 49
           item.router = 'DaLeTou'
50 50
           item.icon = 'icon4.png'
51
-          item.desc = '想要中奖必看'
51
+          item.desc = '喜提头等奖'
52 52
         } else if (item.lotteryId === 'double-color') {
53 53
           item.router = 'ShuangSeQiu'
54 54
           item.icon = 'icon5.png'
55
-          item.desc = '十分钟开奖'
55
+          item.desc = '2元可中100w'
56 56
         } else if (item.lotteryId === 'p3') {
57 57
           item.router = 'PaiLie3'
58 58
           item.icon = 'icon7.png'
59
-          item.desc = '得仕球迷乐园'
59
+          item.desc = '最高可中1040元'
60 60
         } else if (item.lotteryId === 'p5') {
61 61
           item.router = 'PaiLie5'
62 62
           item.icon = 'icon2.png'
63
-          item.desc = '一起抢好运'
63
+          item.desc = '奖金可达10w'
64 64
         } else {
65 65
           item.router = ''
66 66
           item.icon = ''