pay-entry.vue 4.65 KB
Newer Older
24776's avatar
24776 committed
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
<template>
  <h-view id="margin-pay-entry" class="public-style">
    <h-header :proportion="[5,1,1]" class="bar-custom">
      <div slot="left" class="h-header-btn">
        <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
        <span>支付中心</span>
      </div>
    </h-header>

    <h-content class="entry-content">
      <div class="amount">
        <p>首付还款</p>
        <div>{{ money |currency }}</div>
      </div>
      <list-item :item-height="56" class="pay-way">
        <item :proportion="[7,1,1]" @click.native="isSelect('one')">
          <div slot="name"> <img src="@/assets/payment/alipay.png" alt="" class="icon1"> 支付宝</div>
          <section slot="content">
            <img v-show="select === 'one'" src="@/assets/payment/select.png" alt="">
            <img v-show="select !== 'one'" src="@/assets/payment/unselect.png" alt="">
          </section>
        </item>
        <item :proportion="[7,1,1]" @click.native="isSelect('two')">
          <div slot="name"> <img src="@/assets/payment/wx.png" alt="" class="icon2"> 微信</div>
          <section slot="content">
            <img v-show="select === 'two'" src="@/assets/payment/select.png" alt="">
            <img v-show="select !== 'two'" src="@/assets/payment/unselect.png" alt="">
          </section>
        </item>
        <item :proportion="[7,1,1]" @click.native="isSelect('three')">
          <div slot="name" style="flex=3"> <img src="@/assets/payment/ly.png" alt="" class="icon"> 中国农业银行</div>
          <section slot="content">
            <img v-show="select === 'three'" src="@/assets/payment/select.png" alt="">
            <img v-show="select !== 'three'" src="@/assets/payment/unselect.png" alt="">
          </section>
        </item>
        <item :proportion="[7,1,1]" @click.native="isSelect('four')">
          <div slot="name"> <img src="@/assets/payment/js.png" alt="" class="icon"> 中国建设银行</div>
          <section slot="content">
            <img v-show="select === 'four'" src="@/assets/payment/select.png" alt="">
            <img v-show="select !== 'four'" src="@/assets/payment/unselect.png" alt="">
          </section>
        </item>

      </list-item>
    </h-content>

    <bottom-tab>
      <tab-button class="footer">
        立即付款
      </tab-button>
    </bottom-tab>
  </h-view>
</template>

<script>

export default {
  name: 'PayEntry',
  components: {
  },
  data () {
    return {
      money: '',
      select: 'one',

    }
  },
  computed: {},
  watch: {},
  activated () {
    this.money = this.$route.params.money
  },
  methods: {
    isSelect (way) {
      this.select = way
    },
  },
}
</script>
<style lang='less' >
#margin-pay-entry {
  .h-header {
    background-color: #00469C;
    .h-header-btn {
      img {
        width: 16px;
        height: 16px;
        margin-left: 4px;
      }

      span {
        font-family: PingFangSC-Semibold;
        margin-left: 16px;
        font-size: 17px;
        letter-spacing: 0.61px;
        line-height: 24px;
      }
    }
  }
  .entry-content {
    .amount {
      height: 166px;
      background-color: #fff;
      padding-top: 55px;
      text-align: center;
      border-bottom: 1px solid #D9DBDF;

      p {
        font-family: PingFangSC-Regular;
        font-size: 14px;
        color: #656464;
        letter-spacing: 0;
      }

      div {
        font-family: PingFangSC-Semibold;
        font-size: 24px;
        color: #383F45;
        letter-spacing: 0.86px;
        font-weight: 700;
        margin-top: 10px;
      }
    }

    .pay-way {
      .hls-item {
        padding-left: 12px;
        .add-name {
          flex: 3;
          line-height: 56px;
          font-family: PingFangSC-Regular;
          font-size: 14px;
          color: #656464;

          .icon1 {
            width: 34px;
            height: 34px;
            display: block;
            float: left;
            margin-top: 10px;
            margin-right: 5px;
          }
          .icon2 {
            width: 32px;
            display: block;
            float: left;
            margin-top: 12px;
            margin-right: 8px;
          }
          .icon {
            width: 30px;
            display: block;
            float: left;
            margin: 12px 8px 0 3px;
          }
        }

        .add-content {
          img{
            width: 21px;
          }
        }
      }

    }
  }

  .bottom-tab-button{
    background: #00469C;
    border-radius: 4px;
    color:white;
    height: 40px;
    margin: 4px 2% 0 2%;
  }
}
</style>