fix(订单详情): 修复报错
This commit is contained in:
parent
ed762c7613
commit
b6895f78fe
@ -73,7 +73,7 @@
|
||||
<div class="blockquote">{{ $t('pages.inAppPurchaseDetails.section.statusFlow') }}</div>
|
||||
<div class="content">
|
||||
<el-steps align-center :space="200" :active="order.details.statusSteps.length" finish-status="success" style="margin: 10px 0px;">
|
||||
<el-step v-for="(item, index) in order.details.statusSteps" :key="index" :title="getOrderStatus(item.status).label" :description="item.createTime" />
|
||||
<el-step v-for="(item, index) in order.details.statusSteps" :key="index" :title="getOrderStatus(item.status).label" :description="getElementText(item.createTime)" />
|
||||
</el-steps>
|
||||
</div>
|
||||
</div>
|
||||
@ -127,7 +127,7 @@
|
||||
v-for="(item, index) in order.details.payNotices"
|
||||
:key="index"
|
||||
placement="top"
|
||||
:timestamp="item.createTime"
|
||||
:timestamp="getElementText(item.createTime)"
|
||||
>
|
||||
<div class="event-info">
|
||||
<div class="event-info-item">{{ $t('pages.inAppPurchaseDetails.label.eventId') }}: {{ item.eventId }}</div>
|
||||
@ -243,6 +243,12 @@ export default {
|
||||
getOrderFactory(details) {
|
||||
return (details && details.factory) || {}
|
||||
},
|
||||
getElementText(value) {
|
||||
if (value === undefined || value === null) {
|
||||
return ''
|
||||
}
|
||||
return String(value)
|
||||
},
|
||||
loadInAppPurchase() {
|
||||
const that = this
|
||||
that.orderLoading = true
|
||||
|
||||
@ -41,8 +41,9 @@ if (isMock()) {
|
||||
|
||||
// initialize ElementUI and runtime locale
|
||||
const DEFAULT_TABLE_COLUMN_MIN_WIDTH = 120
|
||||
const TABLE_COLUMN_MIN_WIDTH_PATCH_FLAG = '__defaultMinWidthPatched__'
|
||||
|
||||
if (TableColumn && TableColumn.methods && !TableColumn.methods.__defaultMinWidthPatched__) {
|
||||
if (TableColumn && TableColumn.methods && !TableColumn[TABLE_COLUMN_MIN_WIDTH_PATCH_FLAG]) {
|
||||
const originalSetColumnWidth = TableColumn.methods.setColumnWidth
|
||||
TableColumn.methods.setColumnWidth = function(column) {
|
||||
const nextColumn = originalSetColumnWidth.call(this, column)
|
||||
@ -57,7 +58,11 @@ if (TableColumn && TableColumn.methods && !TableColumn.methods.__defaultMinWidth
|
||||
|
||||
return nextColumn
|
||||
}
|
||||
TableColumn.methods.__defaultMinWidthPatched__ = true
|
||||
delete TableColumn.methods[TABLE_COLUMN_MIN_WIDTH_PATCH_FLAG]
|
||||
Object.defineProperty(TableColumn, TABLE_COLUMN_MIN_WIDTH_PATCH_FLAG, {
|
||||
value: true,
|
||||
configurable: true
|
||||
})
|
||||
}
|
||||
|
||||
Vue.use(ElementUI, { size: Cookies.get('size') || 'medium' })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user