Commit d845c043 authored by guoyou's avatar guoyou

中奖列表

parent 2d9e1013
<template> <template>
<div class="app-container calendar-list-container"> <div class="app-container calendar-list-container">
<div class="online"> <!-- <div class="online">
<h4>参与活动奖励抽奖</h4> <h4>参与活动奖励抽奖</h4>
<table border="1"> <table border="1">
<tr> <tr>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<td>宫格9</td> <td>宫格9</td>
</tr> </tr>
</table> </table>
</div> </div> -->
<div class="local"> <div class="local">
<h4>发布会现场奖品抽奖</h4> <h4>发布会现场奖品抽奖</h4>
<table border="1"> <table border="1">
...@@ -358,18 +358,21 @@ export default { ...@@ -358,18 +358,21 @@ export default {
} else { } else {
if (data.data.localePrize != ''){ if (data.data.localePrize != ''){
data.data.localePrize.forEach(element => { data.data.localePrize.forEach(element => {
if (!element.goodsId) { // if (!element.goodsId) {
element.goodsId = '' // element.goodsId = ''
} // }
if (!element.totalStock) { // if (!element.totalStock) {
element.totalStock = '' // element.totalStock = ''
} // }
if (!element.dayMaxUse) { // if (!element.dayMaxUse) {
element.dayMaxUse = '' // element.dayMaxUse = ''
} // }
}); });
} }
console.log(this.table);
this.table = data.data.localePrize this.table = data.data.localePrize
console.log(this.table);
} }
}) })
}, },
...@@ -491,13 +494,13 @@ li p:nth-child(7) { ...@@ -491,13 +494,13 @@ li p:nth-child(7) {
.online, .online,
.local { .local {
width: 49%; width: 49%;
display: inline-block; margin: 0 auto;
} }
.online { .online {
float: left; float: left;
} }
.local { .local {
float: right; /* float: right; */
} }
h4 { h4 {
text-align: center; text-align: center;
......
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
phone: null, phone: null,
activityId: 2, activityId: 2,
prizeType: null, prizeType: null,
hasWinning: 2 hasWinning: 1
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment