Commit 60e80f1c authored by zhanglw's avatar zhanglw

个人中心-产品管理

parent 9b052bdb
...@@ -164,6 +164,14 @@ export const constantRouterMap = [ ...@@ -164,6 +164,14 @@ export const constantRouterMap = [
}, },
hidden: true hidden: true
}, },
{
path: '/console/product',
meta: { title: '个人中心-产品管理', noCache: true },
component: (resolve) => {
return require(['@/views/homepage/console/product'], resolve)
},
hidden: true
},
{ {
path: '/backstage', path: '/backstage',
component: Layout, component: Layout,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<img src="@/assets/home_images/mark_sup.png"> <img src="@/assets/home_images/mark_sup.png">
<span>供应</span> <span>供应</span>
</div> </div>
<div class="vertical-menu-label touch"><span :class="menuIndex==='1'?'active':''" @click="menuClick('/home')">产品管理</span></div> <div class="vertical-menu-label touch"><span :class="menuIndex==='1'?'active':''" @click="menuClick('/console/product')">产品管理</span></div>
<div class="vertical-menu-label touch"><span :class="menuIndex==='2'?'active':''" @click="menuClick('/home')">被询价记录</span></div> <div class="vertical-menu-label touch"><span :class="menuIndex==='2'?'active':''" @click="menuClick('/home')">被询价记录</span></div>
<el-divider /> <el-divider />
<div class="vertical-menu-title"> <div class="vertical-menu-title">
......
This diff is collapsed.
This diff is collapsed.
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
</el-row> </el-row>
</div> </div>
</div> </div>
<updatePass ref="pass" />
<home-footer ref="homeFooter" /> <home-footer ref="homeFooter" />
<inquiry-view ref="inquiryView" /> <inquiry-view ref="inquiryView" />
<el-backtop /> <el-backtop />
<updatePass ref="pass" />
<myUpload <myUpload
v-model="uploadVisible" v-model="uploadVisible"
:headers="headers" :headers="headers"
...@@ -63,7 +63,6 @@ import { getToken } from '@/utils/auth' ...@@ -63,7 +63,6 @@ import { getToken } from '@/utils/auth'
export default { export default {
components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, userMenus, myUpload, updatePass }, components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, userMenus, myUpload, updatePass },
dicts: [],
data() { data() {
return { return {
Avatar: Avatar, Avatar: Avatar,
...@@ -98,32 +97,11 @@ export default { ...@@ -98,32 +97,11 @@ export default {
}) })
}, },
methods: { methods: {
onDictReady(dict) {},
// 点击询价
inquiry(item, type) {
console.log(item, type)
this.$refs.inquiryView.initView(item.id, type)
},
uploadAvatar() { uploadAvatar() {
this.uploadVisible = !this.uploadVisible this.uploadVisible = !this.uploadVisible
}, },
cropUploadSuccess() { cropUploadSuccess() {
location.reload() location.reload()
},
// 跳转到详情
goToDetails(item, type) {
console.log(item, type)
},
pageChange(e) {
this.page = e
this.loadData()
},
loadData() {
},
goTop() {
document.body.scrollTop = 0
document.documentElement.scrollTop = 0
} }
} }
} }
...@@ -139,54 +117,12 @@ export default { ...@@ -139,54 +117,12 @@ export default {
display: inline-block; display: inline-block;
} }
.ellipsis { .ellipsis {
// 多行溢出省略号
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.pagination {
margin-top: 23px;
text-align: center;
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
>>>.el-pagination.is-background .el-pager li {
font-style: normal;
font-weight: 400;
font-size: 14px;
text-align: center;
background-color: #fff;
color: #000000;
border: 1px solid #e5e5ea;
}
/* 激活后的样式 */
>>>.el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: #ffffff;
color: #0366ed;
border: 1px solid #0366ed;
text-align: center;
}
/* 修改左右箭头样式 */
>>>.el-pagination .btn-next .el-icon, >>>.el-pagination .btn-prev .el-icon {
font-style: normal;
font-weight: 400;
font-size: 14px;
text-align: center;
background-color: #fff;
color: #e5e5ea;
border: 1px solid #e5e5ea;
}
>>>.el-pager {
height: 35.5px !important;
}
>>>.number, >>>.el-icon {
height: 35.5px !important;
line-height: 35.5px !important;
}
}
.head-box { .head-box {
width: 100vw; width: 100vw;
top: 0; top: 0;
...@@ -216,81 +152,6 @@ export default { ...@@ -216,81 +152,6 @@ export default {
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
} }
.box-card {
display: inline-block;
position: relative;
margin: 12px;
padding: 10px 0;
width: 350px;
background: #FFFFFF;
border: 1px solid rgba(0,0,0,0.12);
box-shadow: 1px 2px 8px 0 rgba(0,0,0,0.12);
border-radius: 10px;
.line-text {
width: 100%;
text-align: center;
padding: 5px;
font-size: 18px;
font-weight: bolder;
opacity: 0.85;
}
.line-text:hover {
opacity: 1;
}
.float-title {
width: 344px;
position: absolute;
padding: 5px;
top: 200px;
left: 2px;
text-align: center;
font-weight: 600;
color: #fff;
background: rgba(0,0,0,0.6);
opacity: 0.9;
}
.float-title:hover {
opacity: 1;
}
.title {
width: 305px;
padding: 2px 20px;
font-size: 18px;
color: #333333;
overflow:hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow:ellipsis;
}
.title:hover {
font-weight: 600;
}
.subTitle {
width: 260px;
padding: 2px 20px;
font-size: 15px;
color: #1961C5;
overflow:hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow:ellipsis;
}
.area {
padding: 2px 0;
font-size: 17px;
color: #666666;
}
.date {
padding: 2px 10px;
font-size: 17px;
color: #999999;
}
.stamp {
border-style: none;
position: absolute;
z-index: 99;
}
}
} }
.line-btn { .line-btn {
display: flex; display: flex;
......
This diff is collapsed.
<template>
<!-- 表单渲染 -->
<el-dialog append-to-body :close-on-click-modal="false" :show-close="false" :visible="visible" width="520px" top="26vh">
<div class="review-box">
<div class="review-title">审核意见:</div>
<div class="review-text">{{ formData.reviewComments }}</div>
</div>
<div slot="footer" class="dialog-footer" style="text-align: center">
<el-button @click="cancelView">关闭</el-button>
</div>
</el-dialog>
</template>
<script>
import { HttpReq } from '@/api/common'
export default {
data() {
return {
visible: false,
formData: {
reviewComments: '请咨询后台管理员了解详情...'
}
}
},
mounted() {
},
methods: {
showView() {
this.visible = true
},
hideView() {
this.visible = false
},
cancelView() {
this.hideView()
},
loadData(id) {
this.showView()
}
}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.review-box {
padding: 0 50px;
width: 100%;
font-family: Source Han Sans CN;
.review-title {
font-size: 18px;
font-weight: bold;
color: #333;
}
.review-text {
padding-top: 15px;
color: #777;
}
}
</style>
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