Commit 2dcc276aca72c8d2de77c435781e317507bcccc4

Authored by 刘淇
1 parent 6d13a003

会员卡列表

Showing 1 changed file with 6 additions and 4 deletions
src/views/cards/cardList.vue
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 </van-row> 16 </van-row>
17 17
18 <ul v-if="cardList.length>0"> 18 <ul v-if="cardList.length>0">
19 - <li class="cardListWrap" v-for="i in cardList[0].parkList" @click="toBuyCardPage(i)">  
20 - <div class="van-ellipsis" style="padding: 20px 0 10px 10px">{{i.plName}}</div>  
21 - <div class="van-ellipsis" style="padding: 10px 0 20px 10px;color: #999">{{i.plAddress}}</div> 19 + <li class="cardListWrap" v-for="(i, index) in cardList" @click="toBuyCardPage(i)">
  20 + <div class="van-ellipsis" style="padding: 20px 0 10px 10px">{{i.parkList[0].plName}}</div>
  21 + <div class="van-ellipsis" style="padding: 10px 0 20px 10px;color: #999">{{i.parkList[0].plAddress}}</div>
22 </li> 22 </li>
23 </ul> 23 </ul>
24 24
@@ -65,7 +65,9 @@ export default { @@ -65,7 +65,9 @@ export default {
65 onCancel() { 65 onCancel() {
66 // Toast('取消'); 66 // Toast('取消');
67 }, 67 },
68 - toBuyCardPage(i) { 68 + toBuyCardPage(item) {
  69 + console.log(item)
  70 + let i = item.parkList[0]
69 this.$router.push({ 71 this.$router.push({
70 name: "buyCardDetail", 72 name: "buyCardDetail",
71 query: { 73 query: {