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
                   </div>
21
                   </div>
22
                   <div class="flex-item">
22
                   <div class="flex-item">
23
                     <span>{{item.lotteryName}}</span>
23
                     <span>{{item.lotteryName}}</span>
24
-                    <span>{{item.totalPrice}}元</span>
24
+                    <span>{{item.totalPrice / 100}}元</span>
25
                   </div>
25
                   </div>
26
                 </div>
26
                 </div>
27
                 <div class="flex-h">
27
                 <div class="flex-h">
28
                   <div class="flex-item">
28
                   <div class="flex-item">
29
-                    <span>订单号:{{null}}</span>
29
+                    <!-- <span>订单号:{{item.orderId || null}}</span> -->
30
                   </div>
30
                   </div>
31
-                  <span>{{item.status}}</span>
31
+                  <span>{{ReturnStatus(item)}}</span>
32
                 </div>
32
                 </div>
33
               </router-link>
33
               </router-link>
34
             </ul>
34
             </ul>
78
     ...mapUserMutations([
78
     ...mapUserMutations([
79
       'EmptyUserBettingList'
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
     Init (done = () => { }) { // 初始化
93
     Init (done = () => { }) { // 初始化
82
       this.EmptyUserBettingList()
94
       this.EmptyUserBettingList()
83
       this.PageData.pageNum = 1
95
       this.PageData.pageNum = 1

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

222
         this.TotalPrize = 0
222
         this.TotalPrize = 0
223
         this.Multiple = 1
223
         this.Multiple = 1
224
         this.DataLock = false
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
       }).catch((res) => {
226
       }).catch((res) => {
227
         this.Toast(res.data.message)
227
         this.Toast(res.data.message)
228
         this.DataLock = false
228
         this.DataLock = false

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

9
           <span v-if="OrderStatus === 'Success'">支付成功</span>
9
           <span v-if="OrderStatus === 'Success'">支付成功</span>
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>
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
           <router-link :to="{ name: 'index' }">返回首页</router-link>
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
         </div>
13
         </div>
14
       </div>
14
       </div>
15
     </MainPageContainer>
15
     </MainPageContainer>

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

231
         this.TotalPrice = 0
231
         this.TotalPrice = 0
232
         this.Multiple = 1
232
         this.Multiple = 1
233
         this.DataLock = false
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
       }).catch((res) => {
235
       }).catch((res) => {
236
         this.Toast(res.data.message)
236
         this.Toast(res.data.message)
237
         this.DataLock = false
237
         this.DataLock = false

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

289
         this.TotalPrize = 0
289
         this.TotalPrize = 0
290
         this.Multiple = 1
290
         this.Multiple = 1
291
         this.DataLock = false
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
       }).catch((res) => {
293
       }).catch((res) => {
294
         this.Toast(res.data.message)
294
         this.Toast(res.data.message)
295
         this.DataLock = false
295
         this.DataLock = false

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

261
         this.TotalPrize = 0
261
         this.TotalPrize = 0
262
         this.Multiple = 1
262
         this.Multiple = 1
263
         this.DataLock = false
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
       }).catch((res) => {
265
       }).catch((res) => {
266
         this.Toast(res.data.message)
266
         this.Toast(res.data.message)
267
         this.DataLock = false
267
         this.DataLock = false

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

212
         this.TotalPrize = 0
212
         this.TotalPrize = 0
213
         this.Multiple = 1
213
         this.Multiple = 1
214
         this.DataLock = false
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
       }).catch((res) => {
216
       }).catch((res) => {
217
         this.Toast(res.data.message)
217
         this.Toast(res.data.message)
218
         this.DataLock = false
218
         this.DataLock = false

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

232
         this.TotalPrice = 0
232
         this.TotalPrice = 0
233
         this.Multiple = 1
233
         this.Multiple = 1
234
         this.DataLock = false
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
       }).catch((res) => {
236
       }).catch((res) => {
237
         this.Toast(res.data.message)
237
         this.Toast(res.data.message)
238
         this.DataLock = false
238
         this.DataLock = false

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

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