优化会员下单
This commit is contained in:
@@ -6,20 +6,22 @@
|
||||
<span>{{ dayjs(item.create_time).format("YYYY-MM-DD HH:mm:ss") }}</span>
|
||||
</div>
|
||||
<div class="dialog_footer_right">
|
||||
<span :class="{ active: item.biz_code == 'cashMemberIn' }">
|
||||
<template v-if="item.biz_code == 'cashMemberIn'">+</template>
|
||||
<span :class="{ active: checkIn(item.biz_code) }">
|
||||
<template v-if="checkIn(item.biz_code)">+</template>
|
||||
<template v-else>-</template>
|
||||
¥{{ (Math.floor(item.amount * 100) / 100).toFixed(2) }}
|
||||
¥{{ formatDecimal(item.amount) }}
|
||||
</span>
|
||||
<span>余额:¥{{ (Math.floor(item.balance * 100) / 100).toFixed(2) }}</span>
|
||||
<span>余额:¥{{ formatDecimal(item.balance) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<el-empty description="暂无数据" v-if="!props.flowingwater.list.length" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { dayjs } from 'element-plus'
|
||||
import { formatDecimal } from '@/utils/index'
|
||||
|
||||
const props = defineProps({
|
||||
flowingwater: {
|
||||
@@ -27,6 +29,13 @@ const props = defineProps({
|
||||
default: {}
|
||||
}
|
||||
})
|
||||
|
||||
// 检测是否包含In
|
||||
function checkIn(str) {
|
||||
let reg = RegExp(/In/)
|
||||
return str.match(reg)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -43,7 +52,7 @@ const props = defineProps({
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-bottom: 1px solid #ececec;
|
||||
padding-bottom: 6px;
|
||||
|
||||
.dialog_footer_left {
|
||||
|
||||
Reference in New Issue
Block a user