Blame view

src/views/youdaopingsection.vue 2.7 KB
e00e4982   liuqimichale   道闸 诱导屏
1
2
  <template>
    <div>
adf82b69   liuqimichale   调取接口
3
      <titlesection title="支付方式"></titlesection>
e00e4982   liuqimichale   道闸 诱导屏
4
5
6
7
      <ul class="flexfm ydp-dz-wrap">
        <li>
          <div>
            <div class="bg-wrap">
adf82b69   liuqimichale   调取接口
8
9
              <p class="dznum-total">{{ wxNum|formatNum }}</p>
              <p class="name">微信</p>
e00e4982   liuqimichale   道闸 诱导屏
10
11
12
13
            </div>
          </div>
          <div>
            <div class="bg-wrap">
adf82b69   liuqimichale   调取接口
14
15
              <p class="ydpnum-total">{{ zfbNum|formatNum }}</p>
              <p class="name">支付宝</p>
e00e4982   liuqimichale   道闸 诱导屏
16
17
18
            </div>
          </div>
        </li>
e00e4982   liuqimichale   道闸 诱导屏
19
        <li>
adf82b69   liuqimichale   调取接口
20
21
22
23
24
25
26
27
28
29
30
31
          <div>
            <div class="bg-wrap">
              <p class="dznum-total">{{ xjNum|formatNum }}</p>
              <p class="name">现金</p>
            </div>
          </div>
          <div>
            <div class="bg-wrap">
              <p class="ydpnum-total">{{ qtNum|formatNum }}</p>
              <p class="name">其他</p>
            </div>
          </div>
e00e4982   liuqimichale   道闸 诱导屏
32
33
34
35
36
37
38
39
        </li>
      </ul>
    </div>
  </template>
  
  <script>
  import titlesection from '../components/titlesection'
  import allPieChart from '../components/allPieChart'
adf82b69   liuqimichale   调取接口
40
  import { moneyAddress } from '../api/api'
e00e4982   liuqimichale   道闸 诱导屏
41
42
43
44
45
46
47
48
49
  
  export default {
    name: 'youdaopingsection',
    components: {
      titlesection,
      allPieChart
    },
    data() {
      return {
adf82b69   liuqimichale   调取接口
50
51
52
53
54
        pieChartData:  [],
        wxNum: '',
        zfbNum: '',
        xjNum: '',
        qtNum: '',
e00e4982   liuqimichale   道闸 诱导屏
55
56
57
      }
    },
    created() {
adf82b69   liuqimichale   调取接口
58
      this.getList()
e00e4982   liuqimichale   道闸 诱导屏
59
60
61
    },
    methods: {
      getList() {
adf82b69   liuqimichale   调取接口
62
63
64
65
        moneyAddress({
          orgIds: this.GLOBAL.paramsvariables
        }).then((response)=>{
          const data = response.data.data
c85d412b   liuqimichale   正式地址
66
67
68
69
          this.wxNum = Math.round(data.wxPay/100)
          this.zfbNum = Math.round(data.aliPay/100)
          this.qtNum = Math.round(data.otherPay/100)
          this.xjNum = Math.round((data.totalPay - data.aliPay - data.wxPay - data.otherPay)/100)
adf82b69   liuqimichale   调取接口
70
71
72
73
          // this.dzNum = data[3].num
          // this.ydpNum = data[2].num
          // this.pieChartData = [data[3].num,data[2].num]
        })
e00e4982   liuqimichale   道闸 诱导屏
74
75
76
77
78
79
80
81
      },
    }
  }
  </script>
  
  <style lang="scss"  scoped>
    .ydp-dz-wrap{
      display: flex;
66faa378   liuqimichale   道闸 诱导屏
82
      text-align: center;
5fed471f   liuqimichale   道闸
83
      padding: 0 23px;
e00e4982   liuqimichale   道闸 诱导屏
84
85
      li{
        height: 100%;
adf82b69   liuqimichale   调取接口
86
87
        width: 50%;
        >div{
e00e4982   liuqimichale   道闸 诱导屏
88
89
          height: 50%;
          .bg-wrap{
66faa378   liuqimichale   道闸 诱导屏
90
91
92
            width: 115px;
            height: 59px;
            padding: 13px 0 0 0;
e00e4982   liuqimichale   道闸 诱导屏
93
94
95
96
            position: relative;
            top:50%;
            left: 50%;
            transform: translate(-50%,-50%);
66faa378   liuqimichale   道闸 诱导屏
97
98
            background:url("../assets/img/bg-wrap.png") no-repeat;
            .dznum-total,.ydpnum-total{
237f69eb   liuqimichale   收费员
99
              @include fonttextStyle(20px);
66faa378   liuqimichale   道闸 诱导屏
100
101
            }
            .dznum-total{
237f69eb   liuqimichale   收费员
102
              background-image: $fontBlue;
66faa378   liuqimichale   道闸 诱导屏
103
104
            }
            .ydpnum-total{
237f69eb   liuqimichale   收费员
105
              background-image: $fontOrange;
66faa378   liuqimichale   道闸 诱导屏
106
107
108
109
110
111
            }
            .name{
              padding-top: 5px;
              font-size: 12px;
              color: #fff;
            }
e00e4982   liuqimichale   道闸 诱导屏
112
113
114
115
116
          }
        }
      }
    }
  </style>