创建数据库表格
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user