1002884655 пре 4 година
родитељ
комит
bbfb1ab6ec
3 измењених фајлова са 27 додато и 26 уклоњено
  1. 4
    4
      src/pages/WoDe/DingDanLiuShui/index.vue
  2. 21
    21
      src/pages/index/ShouYe/index.vue
  3. 2
    1
      src/util/Api.js

+ 4
- 4
src/pages/WoDe/DingDanLiuShui/index.vue Прегледај датотеку

@@ -6,16 +6,16 @@
6 6
           <ul>
7 7
             <router-link tag="li" v-for="(item, index) in PageList" :key="index" :to="{name: 'DingDanXiangQing', query: {id: item.orderId}}">
8 8
               <div class="Title flex-h">
9
-                <span class="flex-item">{{item.customerBetting.lotteryName}}</span>
10
-                <span class="Prize" v-if="item.customerBetting.isWinning">奖金:<em>{{item.customerBetting.winAmount}}</em>牛币</span>
11
-                <span class="Status" :class="[item.customerBetting.isWinning ? 'Red' : 'Black']">{{ReturnStatus(item.customerBetting)}}</span>
9
+                <span class="flex-item">{{item.lotteryName}}</span>
10
+                <span class="Prize" v-if="item.isWinning">奖金:<em>{{item.winAmount}}</em>牛币</span>
11
+                <span class="Status" :class="[item.isWinning ? 'Red' : 'Black']">{{ReturnStatus(item)}}</span>
12 12
               </div>
13 13
               <div class="OrderId">
14 14
                 <span>订单号:</span>
15 15
                 <span>{{item.orderId}}</span>
16 16
               </div>
17 17
               <div class="Date">
18
-                <span>{{item.customerBetting.totalPrice}}牛币</span>
18
+                <span>{{item.totalPrice}}牛币</span>
19 19
                 <span>下单时间:{{ToolClass.DateFormat(item.createDate)}}</span>
20 20
               </div>
21 21
             </router-link>

+ 21
- 21
src/pages/index/ShouYe/index.vue Прегледај датотеку

@@ -19,36 +19,36 @@
19 19
                       <div class="Res">
20 20
                         <div class="Num flex-h">
21 21
                           <div class="Icon">
22
-                            <img v-if="item.customerBetting.lotteryId === 'double-color'" src="../../../assets/img/icon5.png" class="centerLabel contain" alt="">
23
-                            <img v-if="item.customerBetting.lotteryId === 'lottery'" src="../../../assets/img/icon4.png" class="centerLabel contain" alt="">
24
-                            <img v-if="item.customerBetting.lotteryId === 'p5'" src="../../../assets/img/icon2.png" class="centerLabel contain" alt="">
25
-                            <img v-if="item.customerBetting.lotteryId === 'p3'" src="../../../assets/img/icon7.png" class="centerLabel contain" alt="">
26
-                            <img v-if="item.customerBetting.lotteryId === 'football'" src="../../../assets/img/icon3.png" class="centerLabel contain" alt="">
27
-                            <img v-if="item.customerBetting.lotteryId === 'basketball'" src="../../../assets/img/icon6.png" class="centerLabel contain" alt="">
22
+                            <img v-if="item.lotteryId === 'double-color'" src="../../../assets/img/icon5.png" class="centerLabel contain" alt="">
23
+                            <img v-if="item.lotteryId === 'lottery'" src="../../../assets/img/icon4.png" class="centerLabel contain" alt="">
24
+                            <img v-if="item.lotteryId === 'p5'" src="../../../assets/img/icon2.png" class="centerLabel contain" alt="">
25
+                            <img v-if="item.lotteryId === 'p3'" src="../../../assets/img/icon7.png" class="centerLabel contain" alt="">
26
+                            <img v-if="item.lotteryId === 'football'" src="../../../assets/img/icon3.png" class="centerLabel contain" alt="">
27
+                            <img v-if="item.lotteryId === 'basketball'" src="../../../assets/img/icon6.png" class="centerLabel contain" alt="">
28 28
                           </div>
29
-                          <span v-if="item.customerBetting.lotteryId === 'double-color'">双色球</span>
30
-                          <span v-if="item.customerBetting.lotteryId === 'lottery'">大乐透</span>
31
-                          <span v-if="item.customerBetting.lotteryId === 'p5'">排列5</span>
32
-                          <span v-if="item.customerBetting.lotteryId === 'p3'">排列3</span>
33
-                          <span v-if="item.customerBetting.lotteryId === 'football'">足球</span>
34
-                          <span v-if="item.customerBetting.lotteryId === 'basketball'">篮球</span>
29
+                          <span v-if="item.lotteryId === 'double-color'">双色球</span>
30
+                          <span v-if="item.lotteryId === 'lottery'">大乐透</span>
31
+                          <span v-if="item.lotteryId === 'p5'">排列5</span>
32
+                          <span v-if="item.lotteryId === 'p3'">排列3</span>
33
+                          <span v-if="item.lotteryId === 'football'">足球</span>
34
+                          <span v-if="item.lotteryId === 'basketball'">篮球</span>
35 35
                           <div class="flex-item">
36
-                            <ul v-if="item.customerBetting.lotteryId === 'lottery' || item.customerBetting.lotteryId === 'double-color'">
37
-                              <li v-for="(subItem, subIndex) in item.customerBetting.bettingPlan.itemList[0].firstNums.split(',')" :key="`First-${subIndex}`">{{subItem}}</li>
38
-                              <li class="active" v-for="(subItem, subIndex) in item.customerBetting.bettingPlan.itemList[0].secondNums.split(',')" :key="`Sec-${subIndex}`">{{subItem}}</li>
36
+                            <ul v-if="item.lotteryId === 'lottery' || item.lotteryId === 'double-color'">
37
+                              <li v-for="(subItem, subIndex) in item.planItems[0].firstNums.split(',')" :key="`First-${subIndex}`">{{subItem}}</li>
38
+                              <li class="active" v-for="(subItem, subIndex) in item.planItems[0].secondNums.split(',')" :key="`Sec-${subIndex}`">{{subItem}}</li>
39 39
                             </ul>
40
-                            <span v-if="item.customerBetting.lotteryId === 'football' || item.customerBetting.lotteryId === 'basketball'">{{item.customerBetting.planName}} 预计奖金:{{item.customerBetting.expectedEarning}}</span>
40
+                            <span v-if="item.lotteryId === 'football' || item.lotteryId === 'basketball'">{{item.planName}} 预计奖金:{{item.expectedEarning}}</span>
41 41
                           </div>
42 42
                         </div>
43 43
                         <div class="Count flex-h">
44
-                          <span class="flex-item" v-if="item.customerBetting.lotteryId !== 'football' && item.customerBetting.lotteryId !== 'basketball'"><em>{{item.customerBetting.notesNum}}</em>注<em>{{item.customerBetting.bettingTimes}}</em>倍<em>{{item.customerBetting.totalPrice}}</em>牛币</span>
45
-                          <span class="flex-item" v-else>{{item.customerBetting.notesNum}}注{{item.customerBetting.totalPrice}}牛币</span>
46
-                          <span>{{ToolClass.DateFormat(item.customerBetting.createDate)}}</span>
44
+                          <span class="flex-item" v-if="item.lotteryId !== 'football' && item.lotteryId !== 'basketball'"><em>{{item.notesNum}}</em>注<em>{{item.bettingTimes}}</em>倍<em>{{item.totalPrice}}</em>牛币</span>
45
+                          <span class="flex-item" v-else>{{item.notesNum}}注{{item.totalPrice}}牛币</span>
46
+                          <span>{{ToolClass.DateFormat(item.createDate)}}</span>
47 47
                         </div>
48 48
                       </div>
49 49
                       <div class="Time flex-h">
50
-                        <span v-if="item.customerBetting.lotteryId !== 'football' && item.customerBetting.lotteryId !== 'basketball'">第{{item.customerBetting.issueNo}}期</span>
51
-                        <span class="flex-item">下单人:{{item.customerBetting.customerName}}</span>
50
+                        <span v-if="item.lotteryId !== 'football' && item.lotteryId !== 'basketball'">第{{item.issueNo}}期</span>
51
+                        <span class="flex-item">下单人:{{item.customerName}}</span>
52 52
                         <router-link :to="{ name: 'DingDanXiangQing', query: {id: item.orderId} }">查看详情</router-link>
53 53
                       </div>
54 54
                     </li>

+ 2
- 1
src/util/Api.js Прегледај датотеку

@@ -40,7 +40,8 @@ const $api = {
40 40
   },
41 41
   GetCurrentShopOrderList: { // 获取当前店铺订单列表
42 42
     method: 'get',
43
-    url: `${prefix}/shop/order`
43
+    url: `${prefix}/shop/order2`
44
+    // url: `${prefix}/shop/order`
44 45
   },
45 46
   GetCurrentShopOrderDetail: { // 获取当前店铺订单详情
46 47
     method: 'get',