auto delay for v-entrance-transition
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<card-container v-if="customer" v-entrance-transition>
|
||||
<customer-profile-card :customer="customer" />
|
||||
</card-container>
|
||||
<section v-if="account" class="account-card" v-entrance-transition="70">
|
||||
<section v-if="account" class="account-card" v-entrance-transition>
|
||||
<div class="header">
|
||||
<div>积分卡</div>
|
||||
<div class="time dark-white" v-text="formatTimestamp(account.createdAt!)" />
|
||||
@@ -14,13 +14,13 @@
|
||||
</div>
|
||||
<div class="id" v-text="account.id?.toUpperCase()" />
|
||||
</section>
|
||||
<t-cell-group v-if="account" title="积分统计" theme="card" v-entrance-transition="140">
|
||||
<t-cell-group v-if="account" title="积分统计" theme="card" v-entrance-transition>
|
||||
<t-cell title="累计获得" :note="formatPoints(account.totalEarned)" />
|
||||
<t-cell title="累计消耗" :note="formatPoints(account.totalConsumed)" />
|
||||
<t-cell title="累计撤销" :note="formatPoints(account.totalRevoked)" />
|
||||
<t-cell title="人工调整" :note="formatSignedPoints(account.totalAdjusted)" />
|
||||
</t-cell-group>
|
||||
<section v-if="customer" class="actions" v-entrance-transition="210">
|
||||
<section v-if="customer" class="actions" v-entrance-transition>
|
||||
<t-button
|
||||
v-can="permissionCodes.point.ledgerRead"
|
||||
class="bg-white"
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
<div class="list-wrap">
|
||||
<t-cell-group v-if="pageResult.list.length" class="list" theme="card">
|
||||
<customer-cell
|
||||
v-entrance-transition="index * 30"
|
||||
v-for="(item, index) in pageResult.list"
|
||||
v-entrance-transition="{ step: 30 }"
|
||||
v-for="item in pageResult.list"
|
||||
:key="item.id"
|
||||
:customer="item.customer"
|
||||
class="item"
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
:loading="isSaving"
|
||||
:disabled="!canSubmit"
|
||||
block
|
||||
v-entrance-transition="70"
|
||||
v-entrance-transition
|
||||
@click="submitAdjust"
|
||||
>
|
||||
提交调整
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
<t-cell-group
|
||||
v-if="ledger?.accountId && canReadPointAccount"
|
||||
theme="card"
|
||||
v-entrance-transition="70"
|
||||
v-entrance-transition
|
||||
>
|
||||
<t-cell title="积分账户" arrow @click="toPointAccount" />
|
||||
</t-cell-group>
|
||||
<template v-if="ledger">
|
||||
<t-cell-group title="积分流水" theme="card" v-entrance-transition="140">
|
||||
<t-cell-group title="积分流水" theme="card" v-entrance-transition>
|
||||
<t-cell title="流水类型">
|
||||
<template #note>
|
||||
<t-tag
|
||||
@@ -33,7 +33,7 @@
|
||||
</t-cell>
|
||||
<t-cell title="流水备注" :note="Text.display(ledger.remark)" />
|
||||
</t-cell-group>
|
||||
<t-cell-group title="触发事件" theme="card" v-entrance-transition="210">
|
||||
<t-cell-group title="触发事件" theme="card" v-entrance-transition>
|
||||
<template v-if="triggerEvent">
|
||||
<t-cell title="事件名称" :note="triggerEvent.name || '未命名事件'" />
|
||||
<t-cell title="事件类型" :note="getEventValueTypeText(triggerEvent)" />
|
||||
@@ -42,7 +42,7 @@
|
||||
</template>
|
||||
<div v-else class="empty" v-text="getEventEmptyText()" />
|
||||
</t-cell-group>
|
||||
<t-cell-group title="事件记录" theme="card" v-entrance-transition="280">
|
||||
<t-cell-group title="事件记录" theme="card" v-entrance-transition>
|
||||
<template v-if="eventRecord">
|
||||
<t-cell title="登记事件" :note="eventRecord.event?.name || triggerEvent?.name || '未知事件'" />
|
||||
<t-cell title="登记时间">
|
||||
@@ -59,7 +59,7 @@
|
||||
</template>
|
||||
<div v-else class="empty" v-text="getRecordEmptyText()" />
|
||||
</t-cell-group>
|
||||
<t-cell-group title="命中规则" theme="card" v-entrance-transition="350">
|
||||
<t-cell-group title="命中规则" theme="card" v-entrance-transition>
|
||||
<template v-if="hitRule">
|
||||
<t-cell title="规则名称" :note="hitRule.name || '未命名规则'" />
|
||||
<t-cell title="规则模式" :note="hitRule.ruleMode === 'GROOVY' ? '脚本规则' : '简单规则'" />
|
||||
|
||||
@@ -62,8 +62,8 @@
|
||||
</t-cell-group>
|
||||
<t-cell-group v-if="pageResult.list.length" class="list" theme="card">
|
||||
<t-cell
|
||||
v-entrance-transition="index * 30"
|
||||
v-for="(item, index) in pageResult.list"
|
||||
v-entrance-transition="{ step: 30 }"
|
||||
v-for="item in pageResult.list"
|
||||
:key="item.id"
|
||||
class="item"
|
||||
:arrow="!!item.id"
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
v-if="form.id"
|
||||
class="cell-button"
|
||||
theme="danger"
|
||||
v-entrance-transition="70"
|
||||
v-entrance-transition
|
||||
content="删除"
|
||||
@click="remove"
|
||||
/>
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
<t-pull-down-refresh v-model="isRefreshing" :refresh-timeout="30000" @refresh="reload" @scrolltolower="load">
|
||||
<t-cell-group v-if="result.list.length" theme="card">
|
||||
<t-cell
|
||||
v-for="(item, index) in result.list"
|
||||
v-for="item in result.list"
|
||||
:key="item.id"
|
||||
class="item"
|
||||
arrow
|
||||
v-entrance-transition="index * 30"
|
||||
v-entrance-transition="{ step: 30 }"
|
||||
@click="toEdit(item)"
|
||||
>
|
||||
<template #left-icon>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
:customer="customer"
|
||||
v-entrance-transition
|
||||
/>
|
||||
<t-cell-group v-if="item" title="兑换信息" theme="card" v-entrance-transition="70">
|
||||
<t-cell-group v-if="item" title="兑换信息" theme="card" v-entrance-transition>
|
||||
<t-cell title="客户" :note="item.customer?.name || item.customerId || '-'" />
|
||||
<t-cell title="兑换商品" :note="item.productNameSnapshot || item.skuNameSnapshot || '-'" />
|
||||
<t-cell title="兑换数量" :note="`${quantityText(item.quantity)} ${item.unitSnapshot || ''}`" />
|
||||
@@ -24,7 +24,7 @@
|
||||
/>
|
||||
</div>
|
||||
</t-cell-group>
|
||||
<t-cell-group v-if="returnList.length" title="退货记录" theme="card" v-entrance-transition="140">
|
||||
<t-cell-group v-if="returnList.length" title="退货记录" theme="card" v-entrance-transition>
|
||||
<t-cell
|
||||
v-for="record in returnList"
|
||||
:key="record.id"
|
||||
@@ -38,7 +38,7 @@
|
||||
class="return-button cell-button"
|
||||
theme="danger"
|
||||
content="冲正兑换"
|
||||
v-entrance-transition="140"
|
||||
v-entrance-transition
|
||||
@click="returnVisible = true"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -67,11 +67,11 @@
|
||||
<div v-if="result.list.length" class="items">
|
||||
<t-cell-group theme="card">
|
||||
<t-cell
|
||||
v-for="(item, index) in result.list"
|
||||
v-for="item in result.list"
|
||||
:key="item.id"
|
||||
class="item"
|
||||
arrow
|
||||
v-entrance-transition="70 + index * 30"
|
||||
v-entrance-transition="{ step: 30 }"
|
||||
@click="toDetail(item)"
|
||||
>
|
||||
<template #left-icon>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="point-value" v-text="rulePointText" />
|
||||
</div>
|
||||
</section>
|
||||
<t-cell-group v-if="rule" title="基本信息" theme="card" v-entrance-transition="70">
|
||||
<t-cell-group v-if="rule" title="基本信息" theme="card" v-entrance-transition>
|
||||
<t-cell
|
||||
v-if="rule.triggerSourceType === 'EVENT_RECORD'"
|
||||
title="触发事件"
|
||||
@@ -35,7 +35,7 @@
|
||||
class="script"
|
||||
title="积分配置"
|
||||
theme="card"
|
||||
v-entrance-transition="140"
|
||||
v-entrance-transition
|
||||
>
|
||||
<t-cell title="规则模式" :note="rule.ruleMode === 'GROOVY' ? '脚本规则' : '简单规则'" />
|
||||
<t-cell v-if="rule.ruleMode !== 'GROOVY'" title="固定积分" :note="formatPointValue(rule.pointValue)" />
|
||||
@@ -67,7 +67,7 @@
|
||||
</t-cell>
|
||||
</template>
|
||||
</t-cell-group>
|
||||
<t-cell-group v-if="rule" title="其他配置" theme="card" v-entrance-transition="280">
|
||||
<t-cell-group v-if="rule" title="其他配置" theme="card" v-entrance-transition>
|
||||
<t-cell title="规则优先级" :note="formatNumber(rule.priority)" />
|
||||
<t-cell title="命中后停止匹配" :note="rule.exclusive ? '是' : '否'" />
|
||||
<t-cell title="生效开始" :note="formatDate(rule.beginAt)" />
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<t-textarea v-model.trim="formModel.remark" :autosize="{ minRows: 3, maxRows: 5 }" placeholder="规则说明" />
|
||||
</t-form-item>
|
||||
</card-container>
|
||||
<card-container v-entrance-transition="70">
|
||||
<card-container v-entrance-transition>
|
||||
<t-form-item label="规则模式" arrow @click="openRuleModePicker">
|
||||
<span class="picker-text" v-text="getRuleModeText(formModel.ruleMode)" />
|
||||
</t-form-item>
|
||||
@@ -43,7 +43,7 @@
|
||||
</t-form-item>
|
||||
</template>
|
||||
</card-container>
|
||||
<card-container v-entrance-transition="140">
|
||||
<card-container v-entrance-transition>
|
||||
<t-form-item label="生效开始" arrow @click="openBeginAtPicker">
|
||||
<div class="time-value">
|
||||
<span class="picker-text" v-text="formModel.beginAtText || '不限'" />
|
||||
@@ -57,7 +57,7 @@
|
||||
</div>
|
||||
</t-form-item>
|
||||
</card-container>
|
||||
<card-container tips="命中规则并执行积分动作后不再匹配后续规则" v-entrance-transition="210">
|
||||
<card-container tips="命中规则并执行积分动作后不再匹配后续规则" v-entrance-transition>
|
||||
<t-form-item label="独占匹配" content-align="right">
|
||||
<t-switch size="small" v-model="formModel.exclusive" />
|
||||
</t-form-item>
|
||||
|
||||
@@ -23,12 +23,12 @@
|
||||
theme="card"
|
||||
>
|
||||
<t-cell
|
||||
v-for="(item, index) in pageResult.list"
|
||||
v-for="item in pageResult.list"
|
||||
:key="item.id"
|
||||
class="item"
|
||||
:arrow="!!item.id"
|
||||
:hover="!!item.id"
|
||||
v-entrance-transition="index * 30"
|
||||
v-entrance-transition="{ step: 30 }"
|
||||
@click="toDetail(item)"
|
||||
>
|
||||
<template #left-icon>
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
>
|
||||
<t-cell
|
||||
class="cell"
|
||||
v-for="(item, index) in ruleList"
|
||||
v-for="item in ruleList"
|
||||
:key="item.id"
|
||||
v-entrance-transition="index * 30"
|
||||
v-entrance-transition="{ step: 30 }"
|
||||
>
|
||||
<template #title>
|
||||
<div class="title" v-text="item.name || '未命名规则'" />
|
||||
|
||||
Reference in New Issue
Block a user