Browse Source

静态页面

1002884655 4 years ago
parent
commit
f599334fa4

+ 3
- 3
src/main.js View File

@@ -12,10 +12,10 @@ import { Dialog, Toast } from 'vant'
12 12
 // import 'babel-polyfill'
13 13
 import Es6Promise from 'es6-promise'
14 14
 
15
-import Vconsole from 'vconsole'
15
+// import Vconsole from 'vconsole'
16 16
 
17
-let aVconsole = new Vconsole()
18
-console.log(aVconsole)
17
+// let aVconsole = new Vconsole()
18
+// console.log(aVconsole)
19 19
 
20 20
 require('es6-promise').polyfill()
21 21
 Es6Promise.polyfill()

+ 21
- 1
src/pages/WoDe/CaiPiaoXiangQing/index.vue View File

@@ -24,7 +24,7 @@
24 24
               <span>预计奖金(牛币)</span>
25 25
             </div>
26 26
             <div class="flex-item">
27
-              <span>{{Detail.betting.isDrawn ? Detail.betting.isOpen ? Detail.betting.isWinning ? '已中奖' : '未中奖' : '已出票' : '未出票'}}</span>
27
+              <span>{{ReturnStatus(Detail.betting)}}</span>
28 28
               <span>订单状态</span>
29 29
             </div>
30 30
             <div class="flex-item">
@@ -152,6 +152,10 @@
152 152
           <img :src="Detail.betting.lotteryPicture" width="100%" alt="">
153 153
         </div>
154 154
 
155
+        <div class="Tips">
156
+          <span>彩票中奖情况以实际出票为准,超时未出票,系统判定为出票失败,自动退还已投注的牛币,请关注出票情况。</span>
157
+        </div>
158
+
155 159
         <div class="Btn">
156 160
           <!-- <a :href="`tel: ${Detail.shop.keeperPhone}`">联系店主</a> -->
157 161
           <router-link :to="{ name: 'index' }">返回首页</router-link>
@@ -225,6 +229,22 @@ export default {
225 229
           console.log(JSON.stringify(this.P3Arr))
226 230
         }
227 231
       })
232
+    },
233
+    ReturnStatus (item) {
234
+      if (!item.isDrawn) {
235
+        if (item.status - 0 === 2) {
236
+          return '出票失败'
237
+        } else {
238
+          return '未出票'
239
+        }
240
+      }
241
+      if (!item.isOpen) {
242
+        return '未开奖'
243
+      }
244
+      if (!item.isWinning) {
245
+        return '未中奖'
246
+      }
247
+      return '已中奖'
228 248
     }
229 249
   }
230 250
 }

+ 14
- 0
src/pages/WoDe/CaiPiaoXiangQing/page.scss View File

@@ -236,6 +236,20 @@
236 236
         margin-bottom: 0.1rem;
237 237
       }
238 238
     }
239
+    > .Tips {
240
+      padding: 0.15rem;
241
+      position: relative;
242
+      overflow: hidden;
243
+      background: none;
244
+      margin: 0;
245
+      box-shadow: none;
246
+      > span {
247
+        display: block;
248
+        color: #666;
249
+        font-size: 0.1rem;
250
+        line-height: 0.16rem;
251
+      }
252
+    }
239 253
     > .Btn {
240 254
       background: none;
241 255
       box-shadow: none;

+ 5
- 1
src/pages/WoDe/WoDeCaiPiao/index.vue View File

@@ -80,7 +80,11 @@ export default {
80 80
     ]),
81 81
     ReturnStatus (item) {
82 82
       if (!item.isDrawn) {
83
-        return '未出票'
83
+        if (item.status - 0 === 2) {
84
+          return '出票失败'
85
+        } else {
86
+          return '未出票'
87
+        }
84 88
       }
85 89
       if (!item.isOpen) {
86 90
         return '未开奖'