Commit 49142d00 authored by mengwenhao's avatar mengwenhao

feature:商户图片

parent e852740c
.detail {
margin-top: 30px;
}
.detail .state {
display: flex;
align-items: center;
}
.detail .state .update_time {
margin: 0 20px;
}
.detail .message {
display: flex;
}
.detail .message .message_form {
width: 50%;
}
.detail .message .message_image {
width: 50%;
}
.message_border {
border: 1px solid #000000;
border-radius: 10px;
padding: 30px;
margin: 10px 0;
}
.detail { .detail {
margin-top: 30px; margin-top: 30px;
.commodity { .state {
margin-top: 30px; display: flex;
padding: 0 30px; align-items: center;
.search_condition { .update_time {
display: flex; margin: 0 20px;
justify-content: flex-start;
flex-wrap: wrap;
align-items: center;
.search_button {
display: flex;
align-items: center;
.el-form-item__content {
display: flex;
justify-content: space-around;
}
}
} }
.commodity_list { }
margin-top: 30px; .message {
display: flex;
.message_form {
width: 50%;
} }
.pagination { .message_image {
margin-top: 30px; width: 50%;
} }
} }
} }
.message_border {
border: 1px solid #000000;
border-radius: 10px;
padding: 30px;
margin: 10px 0;
}
<template> <template>
<div class="detail"> <el-card class="detail">
<el-card class="commodity"> <!-- 状态区域 -->
<!-- 筛选区 --> <section class="state">
<el-form <h2>待审核</h2>
inline <span class="update_time">上次更新时间:2021-06-18</span>
class="search_condition" <span>创建时间:2021-06-18</span>
> </section>
<!-- 商品id --> <!-- 基本信息 -->
<el-form-item label="商品id"> <section class="message_border">
<el-input></el-input> <h3>基本信息</h3>
</el-form-item> <section class="message">
<!-- 商品名称 --> <!-- 商品列表修改区 -->
<el-form-item label="商品名称"> <el-form
<el-input></el-input> class="message_form"
</el-form-item> inline
<!-- 所属分类 -->
<el-form-item label="所属分类">
<el-cascader
:options="options"
:props="cascaderProps"
collapse-tags
clearable
></el-cascader>
</el-form-item>
<!-- 生活号ID -->
<el-form-item label="生活号id">
<el-input></el-input>
</el-form-item>
<!-- 生活号名称 -->
<el-form-item label="生活号名称">
<el-input></el-input>
</el-form-item>
<!-- 商品状态 -->
<el-form-item label="商品状态">
<el-select
v-model="stateValue"
multiple
collapse-tags
>
<el-option
v-for="item in option"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
<!-- 按钮操作 -->
<el-form-item class="search_button">
<el-button type="primary">搜索</el-button>
<el-button>重置</el-button>
</el-form-item>
</el-form>
<!-- 列表区 -->
<el-table
class="commodity_list"
:data="commodityList"
border
stripe
>
<el-table-column
label="商品id"
prop="commodity_id"
align="center"
></el-table-column>
<el-table-column
label="商品名称"
prop="commodity_name"
align="center"
></el-table-column>
<el-table-column
label="一级分类"
prop="first_classify"
align="center"
></el-table-column>
<el-table-column
label="二级分类"
prop="second_classify"
align="center"
></el-table-column>
<el-table-column
label="关联门店"
prop="shop"
align="center"
></el-table-column>
<el-table-column
label="活动营销价"
prop="sale_prise"
align="center"
></el-table-column>
<el-table-column
label="售价"
prop="prise"
align="center"
></el-table-column>
<el-table-column
label="原价"
prop="perprise"
align="center"
></el-table-column>
<el-table-column
label="库存"
prop="inventory"
align="center"
></el-table-column>
<el-table-column
label="状态"
prop="state"
align="center"
></el-table-column>
<el-table-column
label="生活号id"
prop="life_no_id"
align="center"
></el-table-column>
<el-table-column
label="生活号名称"
prop="life_no_name"
align="center"
></el-table-column>
<el-table-column
label="发布者"
prop="publisher"
align="center"
></el-table-column>
<el-table-column
label="状态更新时间"
prop="state_update_time"
align="center"
></el-table-column>
<el-table-column
label="商品创建时间"
prop="commodity_create_time"
align="center"
></el-table-column>
<!-- 操作快捷键 -->
<el-table-column
label="操作"
align="center"
fixed="right"
width="200"
> >
<template #default="scope"> <el-form-item label="生活号名称:">
<el-button <el-input></el-input>
type="text" </el-form-item>
v-if="scope.row.state === 1" <el-form-item label="生活号认证:">
>编辑</el-button> <el-input></el-input>
<el-button </el-form-item>
type="text" <el-form-item label="商品id:">
v-if="scope.row.state === 1" <el-input></el-input>
>审核</el-button> </el-form-item>
<el-button <el-form-item label="商品名称:">
type="text" <el-input></el-input>
v-if="scope.row.state === 1" </el-form-item>
>上架</el-button> <el-form-item label="一级分类:">
<el-button <el-input></el-input>
type="text" </el-form-item>
v-if="scope.row.state === 1" <el-form-item label="二级分类:">
>下架</el-button> <el-input></el-input>
</template> </el-form-item>
</el-table-column> <el-form-item label="描述:">
</el-table> <textarea
name=""
<!-- 页码区 --> id=""
<el-pagination cols="100"
class="pagination" rows="4"
@current-change="handleCurrentChange" ></textarea>
v-model:currentPage="currentPage" </el-form-item>
:page-size="100" </el-form>
layout="prev, pager, next, jumper" <!-- 商品详情图 -->
:total="1000" <article class="message_image">
> <h3>商品</h3>
</el-pagination> </article>
</el-card> </section>
</div> </section>
<!-- 商品详情 -->
<section class="message_border"></section>
<!-- 可用门店 -->
<section class="message_border"></section>
<!-- 使用规则 -->
<section class="message_border"></section>
<!-- 操作记录 -->
<section class="message_border"></section>
</el-card>
</template> </template>
<style lang="less" src="./index.less" scope></style> <style lang="less" src="./index.less" scope></style>
\ No newline at end of file
<script>
export default {
name: "CommodityDetail",
created () { },
data () {
return {
cascaderProps: { multiple: true },
// 级联选择器
options: [
{
value: 1,
label: "东南",
children: [
{
value: 2,
label: "上海",
children: [
{ value: 3, label: "普陀" },
{ value: 4, label: "黄埔" },
{ value: 5, label: "徐汇" }
]
},
{
value: 7,
label: "江苏",
children: [
{ value: 8, label: "南京" },
{ value: 9, label: "苏州" },
{ value: 10, label: "无锡" }
]
},
{
value: 12,
label: "浙江",
children: [
{ value: 13, label: "杭州" },
{ value: 14, label: "宁波" },
{ value: 15, label: "嘉兴" }
]
}
]
},
{
value: 17,
label: "西北",
children: [
{
value: 18,
label: "陕西",
children: [
{ value: 19, label: "西安" },
{ value: 20, label: "延安" }
]
},
{
value: 21,
label: "新疆维吾尔族自治区",
children: [
{ value: 22, label: "乌鲁木齐" },
{ value: 23, label: "克拉玛依" }
]
}
]
}
],
option: [
{ value: 1, label: "待审核" },
{ value: 2, label: "审核通过" },
{ value: 3, label: "审核驳回" },
{ value: 4, label: "已上架" },
{ value: 5, label: "已下架" }
],
// 商品状态
stateValue: [],
// 商品列表
commodityList: [
{
commodity_id: 1,
commodity_name: "威化",
first_classify: 1,
second_classify: 1,
life_no_id: 1,
shop: "楼下小卖部",
life_no_name: "1的生活号",
publisher: "蒙文昊",
sale_prise: 300,
prise: 200,
perprise: 500,
inventory: 999,
state: 1,
state_update_time: "2021-06-17",
commodity_create_time: "2021-06-17"
}
],
currentPage: 1 // 当前页码
};
},
methods: {
// 页码变化
handleCurrentChange (e) {
console.log("currentPage", e);
console.log(this.currentPage);
}
}
};
</script>
...@@ -65,6 +65,12 @@ const routes = [ ...@@ -65,6 +65,12 @@ const routes = [
name: "CommodityList", name: "CommodityList",
component: () => import(/* webpackChunkName: "commodity" */ "@/pages/Commodity/List") component: () => import(/* webpackChunkName: "commodity" */ "@/pages/Commodity/List")
}, },
// 商品详情管理
{
path: "/commodity/detail",
name: "CommodityDetail",
component: () => import(/* webpackChunkName: "commodity" */ "@/pages/Commodity/Detail")
},
//生活号管理 //生活号管理
{ {
path: "/lifeNo", path: "/lifeNo",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment