优化金额

This commit is contained in:
duan
2024-05-30 15:13:12 +08:00
parent 6402da83aa
commit 2f7fac1888

View File

@@ -25,7 +25,7 @@
<!-- <image :src="require('')" style="width: 76rpx;height: 76rpx;float: left;" mode=""></image> -->
<view class="listrigth">
<view>{{item.biz_name}}</view>
<view :class="[item.biz_code=='accountGroupPay'?'':'colorStyle']">{{item.biz_code=='accountGroupPay'?'-':'+'}}{{item.amount}}</view>
<view :class="[checkIn(item.biz_code)?'':'colorStyle']">{{checkIn(item.biz_code)?'-':'+'}}{{item.amount}}</view>
</view>
<view class="listrigth2">
<view>{{$u.timeFormat(item.create_time, 'yyyy-mm-dd hh:MM:ss')}}</view>
@@ -59,6 +59,11 @@
this.getlist()
},
methods: {
// 检测是否包含In
checkIn(str) {
    let reg = RegExp(/In/)
    return str.match(reg)
},
async getlist() {
if (this.active == 1) {
let res = await this.api.queryMemberAccount(this.form)