活动类型

This commit is contained in:
faiz 2024-11-20 16:25:18 +08:00
parent f558b80a61
commit 1e18ee32b1
2 changed files with 9 additions and 21 deletions

View File

@ -4,8 +4,8 @@ ENV = 'development'
# http://mer.crmeb.net/admin
# base api
# www.shop.xyz
VUE_APP_BASE_API = 'http://zkx.tropjoin.com'
# VUE_APP_BASE_API = 'http://test.tropjoin.com'
# VUE_APP_BASE_API = 'http://zkx.tropjoin.com'
VUE_APP_BASE_API = 'http://test.tropjoin.com'
# VUE_APP_BASE_API = 'https://api.tropjoin.com'
# socket 连接地址

View File

@ -108,10 +108,10 @@
@change="getList(1), getCardList()"
>
<el-option
v-for="item in activity"
:key="item.type"
:label="item.name"
:value="item.type"
v-for="(item, key) in activity"
:key="key"
:label="item"
:value="key"
/>
</el-select>
</el-form-item>
@ -386,9 +386,7 @@
</el-table-column>
<el-table-column label="活动类型" min-width="100">
<template slot-scope="scope">
<span>{{
scope.row.activity_type_name ? scope.row.activity_type_name : ""
}}</span>
<span>{{ scope.row.activity_type_name }}</span>
</template>
</el-table-column>
<el-table-column label="商品信息" min-width="330">
@ -584,18 +582,7 @@ export default {
data: [],
total: 0,
},
activity: [
{ name: "普通订单", type: 0 },
// {name: "",type: 1},
{ name: "预售订单", type: 2 },
// 51 52 53 54
{ name: "特惠", type: 51 },
{ name: "惠美", type: 52 },
{ name: "双十一活动", type: 53 },
{ name: "全折扣", type: 54 },
// {name: "",type: 3},
// {name: "",type: 4}
],
activity: {},
listLoading: true,
tableFrom: {
order_sn: this.$route.query.order_sn ? this.$route.query.order_sn : "",
@ -928,6 +915,7 @@ export default {
orderListApi(this.tableFrom)
.then((res) => {
this.tableData.data = res.data.list;
this.activity = res.data.activity_types;
this.tableData.total = res.data.count;
// this.cardLists = res.data.stat;
this.listLoading = false;