changeCounter.vue 3.81 KB
Newer Older
1 2
<template>
  <div class="container">
xd's avatar
xd committed
3
    <!--  <div class="active">
4
      <div class="list">
xd's avatar
xd committed
5 6 7 8 9 10 11
        <div class="left">
            <img src="../../../public/img/counter.png" alt="">
        </div>
        <div class="right">
          <h3>欧亚一号专柜</h3>
          <p>由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。</p>
        </div>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
      </div>
      <div class="list">
          <div class="left">
              <img src="../../../public/img/counter.png" alt="">
          </div>
          <div class="right">
            <h3>欧亚一号专柜</h3>
            <p>由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。</p>
          </div>
      </div>
      <div class="list list3">
          <div class="left">
              <img src="../../../public/img/counter.png" alt="">
          </div>
          <div class="right">
            <h3>欧亚一号专柜</h3>
            <p>由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。</p>
          </div>
      </div>
xd's avatar
xd committed
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
    </div> -->
    <van-radio-group v-model="radio">
      <van-cell-group>
        <van-cell clickable @click="radio = '1'">
          <div class="list">
            <div class="left">
              <img src="../../../public/img/counter.png" alt="" />
            </div>
            <div class="right">
              <h3>欧亚一号专柜</h3>
              <p>由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。</p>
            </div>
          </div>
          <van-radio slot="right-icon" name="1" />
        </van-cell>
        <van-cell  clickable @click="radio = '2'">
          <div class="list">
            <div class="left">
              <img src="../../../public/img/counter.png" alt="" />
            </div>
            <div class="right">
              <h3>欧亚一号专柜</h3>
              <p>由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。</p>
            </div>
          </div>
          <van-radio slot="right-icon" name="2" />
        </van-cell>
        <van-cell  clickable @click="radio = '3'">
          <div class="list">
            <div class="left">
              <img src="../../../public/img/counter.png" alt="" />
            </div>
            <div class="right">
              <h3>欧亚一号专柜</h3>
              <p>由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。</p>
            </div>
          </div>
          <van-radio slot="right-icon" name="3" />
        </van-cell>
      </van-cell-group>
    </van-radio-group>
72 73 74 75
  </div>
</template>

<script>
xd's avatar
xd committed
76 77 78 79 80 81 82
export default {
  data() {
    return {
      radio: ""
    };
  }
};
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
</script>

<style scoped>
.container {
  height: 100%;
  background-color: rgba(248, 248, 248, 1);
}
.title {
  height: 44px;
  background: rgba(248, 248, 248, 1);
  line-height: 44px;
  padding: 0 16px;
  font-size: 12px;
  color: rgba(45, 71, 106, 1);
}
.fg {
  padding: 0 16px;
  font-size: 12px;
  color: rgba(45, 71, 106, 1);
  height: 44px;
xd's avatar
xd committed
103
  line-height: 44px;
104 105 106 107 108 109 110
}
.icon {
  font-weight: 800;
}
.active {
  background-color: #fff;
  padding: 12px 12px 0 12px;
xd's avatar
xd committed
111
  box-shadow: 0px 2px 4px 0px rgba(221, 221, 221, 1);
112 113 114 115 116 117 118
}
.list {
  height: 94px;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
xd's avatar
xd committed
119
  border-bottom: 1px solid rgba(238, 238, 238, 1);
120 121 122 123 124 125
  margin-bottom: 14px;
}
.list3 {
  border-bottom: none;
  margin-bottom: 0;
}
xd's avatar
xd committed
126 127
.left,
.right {
128 129 130
  height: 80px;
}
.left {
xd's avatar
xd committed
131 132
  width: 80px;
  background: rgba(248, 248, 248, 1);
133 134
}
.left img {
xd's avatar
xd committed
135
  width: 100%;
136 137 138 139 140 141 142 143
}
.right {
  width: 76%;
  padding: 10px;
  background-color: #fff;
}
h3 {
  font-size: 14px;
xd's avatar
xd committed
144 145
  font-weight: bold;
  color: rgba(45, 71, 106, 1);
146 147 148
}
p {
  margin-top: 10px;
xd's avatar
xd committed
149 150
  font-size: 12px;
  color: rgba(45, 71, 106, 0.8);
151 152
}
</style>