diff --git a/src/views/modules/custom/groupbuy-detail.vue b/src/views/modules/custom/groupbuy-detail.vue index 25ca9a9..6e1cc37 100644 --- a/src/views/modules/custom/groupbuy-detail.vue +++ b/src/views/modules/custom/groupbuy-detail.vue @@ -35,15 +35,15 @@ 查看 - 团购中 - 已结束 + 团购中 + 已结束 已取消 {{ dataForm.cancelReason }} - 已置顶 + 已置顶 {{ dataForm.topTime }} diff --git a/src/views/modules/custom/groupbuyinfo.vue b/src/views/modules/custom/groupbuyinfo.vue index 522f60a..09c719a 100644 --- a/src/views/modules/custom/groupbuyinfo.vue +++ b/src/views/modules/custom/groupbuyinfo.vue @@ -42,13 +42,13 @@ {{ $t('query') }} - + - + + - 查看 @@ -168,14 +168,6 @@ export default { this.$refs.groupbuyDetail.init() }) }, - topFlagFormat: function (row, column) { - let topFlag = row.topFlag - if (topFlag === 0) { - return '未置顶' - } else if (topFlag === 1) { - return '已置顶' - } - }, statusFormat: function (row, column) { let groupBuyStatus = row.groupBuyStatus if (groupBuyStatus === 0) { @@ -210,6 +202,13 @@ export default { this.getDataList() }).catch(() => {}) }).catch(() => {}) + }, + cellStyle (row, column, rowIndex, columnIndex) { + if (row.column.label === '状态' && row.row.groupBuyStatus === 0) { + return 'color:#00A066' + } else if (row.column.label === '状态' && row.row.groupBuyStatus === 5) { + return 'color:#E30000' + } } } }