<template>
  <scroll-view scroll-y="true" class="scroll-Y">
<!--    <wx-points-commit ref='wxPointsCommit'></wx-points-commit>-->

    <img :src="icon" />
    <div style="font-weight:bold;font-size: 32px;">[支付成功]</div>
    <div style="font-size: 30px;color: #888888;margin-top: 10px;">{{carno | formatCarno}}停车费支付成功</div>
    <div style="font-size: 30px;color: #888888;margin-top: 10px;">请在<span style="color: red;">{{outParkCharging}}分钟</span>内离场</div>
    <div :class="{'page_button': true, 'blue_page_button': custTypeId === 1, 'green_page_button': custTypeId === 2}" @click="page_button">查看缴费记录</div>
    <div :class="{'page_button1': true, 'blue_page_button1': custTypeId === 1, 'green_page_button1': custTypeId === 2}" @click="page_button1">返回首页</div>
  </scroll-view>
</template>

<script>
import parkingFeeSuccessJs from '../../mixins/parkingFeeSuccess'
export default {
  mixins:[parkingFeeSuccessJs]
}
</script>

<style lang="less" scoped>
//@import '../../styles/common.less';
.scroll-Y {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #fff;
  text-align: center;
  img {
    width: 160px;
    height: 160px;
    //margin-top: 250px;
    margin: 250px auto 0;
  }
}
.page_button {
  width: 86%;
  height: 80px;
  line-height: 80px;
  border-radius: 40px;
  margin-top: 40px;
  margin-left: 7%;
  font-size: 30px;
  color: #fff;
  background-image: linear-gradient(to right, #7e4fa1 , #433c7f);
}
.blue_page_button {
  .color-background-color('blue')
}
.green_page_button {
  .color-background-color('green')
}
.page_button1 {
  width: 86%;
  height: 80px;
  line-height: 80px;
  border-radius: 40px;
  margin-top: 40px;
  margin-left: 7%;
  font-size: 30px;
  color: #7e4fa1;
  border:1px solid  #7e4fa1;
}
.style-color(@value) {
  @color: 'color-@{value}';
  color: @@color;
  border-color: @@color;
}
.blue_page_button1 {
  .style-color('blue')
}
.green_page_button1 {
  .style-color('green')
}
</style>

