创建数据库表格

This commit is contained in:
not-like-juvenile
2026-02-06 16:56:24 +08:00
parent 56ae71babf
commit a5e7afacec
12 changed files with 645 additions and 59 deletions

View File

@@ -35,7 +35,7 @@
</view>
<view class="log-row">
<text class="log-label">事件:</text>
<text class="log-value">{{ log.event_code }}</text>
<text class="log-value">{{ getEventText(log.event_code) }}</text>
</view>
<view class="log-row">
<text class="log-label">状态:</text>
@@ -84,6 +84,18 @@
showPayload.value = true
}
function getEventText(code: string) : string {
const maps = {
'SHIPPED': '发货揽收',
'IN_TRANSIT': '运输中',
'ARRIVED_HUB': '中转入库',
'OUT_FOR_DELIVERY': '派件中',
'DELIVERED': '确认签收',
'EXCEPTION': '异常上报'
}
return (maps[code] != null) ? maps[code] : code
}
function reProcess(log: MockWebhookLog) {
uni.showLoading({ title: '重送中...' })
setTimeout(() => {