Blame view

src/views/cards/cardList.vue 1.72 KB
5e52ed7c   刘淇   个人中心
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
  <template>
  
    <section style="padding: 0 10px">
  
      <van-row>
        <van-col span="18">
          <van-search
            v-model="value"
            placeholder="请输入搜索关键词"
            @search="onSearch"
          />
        </van-col>
        <van-col span="6" style="margin-top: 5px;">
          <van-button type="info" round block>续费</van-button>
        </van-col>
      </van-row>
  
      <ul>
        <li class="cardListWrap" @click="toBuyCardPage">
          <div class="van-ellipsis" style="padding: 20px 0  10px 10px">万达停车场plName</div>
          <div class="van-ellipsis" style="padding: 10px 0  20px 10px">万达停车场plAddress</div>
        </li>
        <li class="cardListWrap">
          <div class="van-ellipsis" style="padding: 20px 0  10px 10px">万达停车场plName</div>
          <div class="van-ellipsis" style="padding: 10px 0  20px 10px">万达停车场plAddress</div>
        </li>
      </ul>
  
  
      <section style="text-align: center;padding-top: 20px">
        <van-image :src="require('../../assets/images/cards/novipcard.png')" />
        <p>为找到会员卡</p>
      </section>
  
  
    </section>
  
  </template>
  
  <script>
  import { Toast } from 'vant';
  export default {
    name: "cardList",
    data() {
      return {
        value: '',
      };
    },
    methods: {
      onSearch(val) {
        Toast(val);
      },
      onCancel() {
        Toast('取消');
      },
      toBuyCardPage(){
        this.$router.push({
            name: "buyCardDetail"
          }
        );
      }
    },
  };
  </script>
  
  <style scoped>
    .cardListWrap{
      margin-top: 15px;
      margin-left: 0px;
      margin-right: 0px;
      width: 100%;
      height: 106px;
      background: url("../../assets/images/cards/vipcardbg1.png") no-repeat;
      background-size: 100% 100%;
      font-size: 16px;
    }
  
  </style>