diff --git a/common/common.js b/common/common.js index e83ac79..143c199 100644 --- a/common/common.js +++ b/common/common.js @@ -108,6 +108,11 @@ var getGlobalUser = function(key) { } } +// 除了金额 +var moneyFormat = function (val) { + return (val/100).toFixed(2) +} + export default { // deviceInfo, @@ -119,6 +124,7 @@ export default { appVerson, SetToken, requestSign, + moneyFormat, // 接口 userLogin, diff --git a/common/uni.css b/common/uni.css index 0db444b..72f2293 100644 --- a/common/uni.css +++ b/common/uni.css @@ -1848,4 +1848,9 @@ checkbox-group label { .color-62c7ee { background-color: #62c7ee !important; +} + +.marginAuto{ + width: 100%; + margin: 0 auto; } \ No newline at end of file diff --git a/pages/parkRecordList/parkRecordList.vue b/pages/parkRecordList/parkRecordList.vue index e87149d..cfb92c1 100644 --- a/pages/parkRecordList/parkRecordList.vue +++ b/pages/parkRecordList/parkRecordList.vue @@ -27,40 +27,28 @@ - - - - 金融物流港(原蒙东云计算) - - - 蒙DL232112 - 2022-03-20 20:20:20 - - - 实收:10.00 - 应收:10.00 + + + + {{i.plName}} + + + {{i.carNumber}} + + + + + 实收:{{ $common.moneyFormat(i.orderTotalFee) }} + 应收:{{ $common.moneyFormat(i.orderActFee) }} + - - - - - 金融物流港(原蒙东云计算) - - - 蒙DL232112 - 2022-03-20 20:20:20 - - - 实收:10.00 - 应收:10.00 - - - - + + + 暂无停车记录 @@ -81,7 +69,8 @@ export default { date: currentDate, mycarNumber: '', userIsLogin: false, - shownoFlag: 0 + // shownoFlag: 0, + recordList: [], } }, onLoad(params) { @@ -89,14 +78,7 @@ export default { withShareTicket: true }) console.log("params.record : " + params.record); - if (params.record == 1) { - this.mycarNumber = ''; - } - else { - this.mycarNumber = params.carNumber; - // this.mycarNumber = '苏B3M913'; - } - this.getBusinessParkOrderByBusIdForPage() + this.getBusinessParkOrderByBusIdForPage() }, onShow() { var me = this; @@ -133,7 +115,7 @@ export default { method: 'POST', data: that.$common.requestSign(paramsData) }).then(res => { - console.log(res) + this.recordList = res.data.dataList }) }, bindDateChange: function (e) {