|
|
@@ -9,8 +9,7 @@
|
|
|
</view>
|
|
|
<view class="qinshihao">
|
|
|
<!-- <text class="iconfont icon-zhuye"></text> -->
|
|
|
- <image :src="require('./images/icon-zhuye.png')" style="width: 28rpx; margin-right: 8rpx;"
|
|
|
- mode="aspectFit"></image>
|
|
|
+ <image :src="require('./images/icon-zhuye.png')" style="width: 28rpx; margin-right: 8rpx;" mode="aspectFit"></image>
|
|
|
<text class="dormtxt">{{dorm_number || '宿舍未知'}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -33,8 +32,8 @@
|
|
|
</view>
|
|
|
<view class="start_payamount" @tap="chongzhi_yemian()" hover-class="scan_hover">
|
|
|
<text>点击充值</text>
|
|
|
- <image :src="require('./images/icon-dayuhao.png')"
|
|
|
- style="width: 26rpx; margin-left: 10rpx; padding-top: 3rpx; opacity: 0.6;" mode="aspectFit">
|
|
|
+ <image :src="require('./images/icon-dayuhao.png')" style="width: 26rpx; margin-left: 10rpx; padding-top: 3rpx; opacity: 0.6;"
|
|
|
+ mode="aspectFit">
|
|
|
</image>
|
|
|
<!-- <text class="iconfont icon-dayuhao"></text> -->
|
|
|
</view>
|
|
|
@@ -46,8 +45,7 @@
|
|
|
</view>
|
|
|
<view v-if="showRoom" style="width: 100%; height: 100%; ">
|
|
|
<view style="display: flex; flex-wrap: wrap;">
|
|
|
- <button v-for="item in rooms" :key="item.id" @tap="clickRoom(item.id)"
|
|
|
- class="btn_room">{{item.room}}</button>
|
|
|
+ <button v-for="item in rooms" :key="item.id" @tap="clickRoom(item.id)" class="btn_room">{{item.room}}</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="start_up_process">
|
|
|
@@ -62,22 +60,19 @@
|
|
|
</view>
|
|
|
<view class="record-item">
|
|
|
<view class="uni-list-cell-db">
|
|
|
- <picker mode="date" :value="date" fields="month" :start="startDate" :end="endDate"
|
|
|
- @change="bindDateChange">
|
|
|
+ <picker mode="date" :value="date" fields="month" :start="startDate" :end="endDate" @change="bindDateChange">
|
|
|
<view class="uni-input">
|
|
|
<text>{{date}}</text>
|
|
|
<!-- <text class="iconfont icon-arrow-down"></text> -->
|
|
|
- <image :src="require('./images/icon-arrow-down.png')" style="width: 26rpx;"
|
|
|
- mode="aspectFit">
|
|
|
+ <image :src="require('./images/icon-arrow-down.png')" style="width: 26rpx;" mode="aspectFit">
|
|
|
</image>
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
<view class="item-list" v-for="(item, i) in xiaofei_items" :key="i">
|
|
|
<text class="item-list-txt"><text class="iconfont icon-shijian"></text>{{item.begin_time}}</text>
|
|
|
- <text class="item-list-txt"><text
|
|
|
- class="iconfont icon-shuidi"></text>{{numFilter(item.use_size)}}t</text>
|
|
|
- <text class="item-list-txt">{{numFilter(item.use_amount)}}</text>
|
|
|
+ <text class="item-list-txt"><text class="iconfont icon-shuidi"></text>{{numFilter(item.use_size, 'l')}} t</text>
|
|
|
+ <text class="item-list-txt">{{numFilter(item.use_amount, 'm')}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -325,10 +320,13 @@
|
|
|
* 保留小数点数值后两位,尾数四舍五入
|
|
|
* @param {Object} value
|
|
|
*/
|
|
|
- numFilter(value) {
|
|
|
- // 截取当前数据到小数点后两位
|
|
|
- let realVal = parseFloat(value).toFixed(2)
|
|
|
- return realVal
|
|
|
+ numFilter(value, param) {
|
|
|
+ var v = parseFloat(value);
|
|
|
+ if (param == 'l')
|
|
|
+ return v.toFixed(2);
|
|
|
+ else
|
|
|
+ // 截取当前数据到小数点后两位
|
|
|
+ return v.toFixed(2);
|
|
|
},
|
|
|
/**
|
|
|
* 获取基本信息
|
|
|
@@ -515,6 +513,7 @@
|
|
|
// console.log(res);
|
|
|
if (res.data.mess == '返回成功') {
|
|
|
this.xiaofei_items = []
|
|
|
+ console.log(res.data.data);
|
|
|
// 消费记录
|
|
|
let items = res.data.data
|
|
|
for (var i = 0; i < items.length; i++) {
|
|
|
@@ -1792,4 +1791,4 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|