Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglw
sensorConsult
Commits
059087f1
Commit
059087f1
authored
Jun 28, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
求购留言
parent
954ca425
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
628 additions
and
24 deletions
+628
-24
routers.js
src/router/routers.js
+8
-0
searchPanel.vue
src/views/homepage/components/searchPanel.vue
+1
-1
index.vue
src/views/homepage/index.vue
+4
-4
buyInfo.vue
src/views/homepage/publish/buyInfo.vue
+252
-9
otherInfo.vue
src/views/homepage/publish/otherInfo.vue
+351
-0
supplyInfo.vue
src/views/homepage/publish/supplyInfo.vue
+12
-10
No files found.
src/router/routers.js
View file @
059087f1
...
...
@@ -124,6 +124,14 @@ export const constantRouterMap = [
},
hidden
:
true
},
{
path
:
'
/publish/otherInfo
'
,
meta
:
{
title
:
'
留言页
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/publish/otherInfo
'
],
resolve
)
},
hidden
:
true
},
{
path
:
'
/backstage
'
,
component
:
Layout
,
...
...
src/views/homepage/components/searchPanel.vue
View file @
059087f1
...
...
@@ -6,7 +6,7 @@
<el-option
v-for=
"item in [
{value:undefined,label:'全部产品'}, ...dict.product_type]" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<el-select
v-model=
"query.area"
placeholder=
"区域"
style=
"width: 100px"
>
<el-option
v-for=
"item in [
{value:undefined,label:'
区域
'}, ...dict.area_province]" :key="item.value" :label="item.label" :value="item.value" />
<el-option
v-for=
"item in [
{value:undefined,label:'
全地区
'}, ...dict.area_province]" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<el-button
icon=
"el-icon-search"
class=
"btn"
>
搜索
</el-button>
</div>
...
...
src/views/homepage/index.vue
View file @
059087f1
...
...
@@ -13,7 +13,7 @@
</div>
<div
class=
"line-btn"
style=
"padding-top: 42px;"
>
<div
class=
"btn-o"
style=
"padding: 10px"
@
click=
"goToDetails(null, '/publish/supplyInfo/all')"
>
我要供应
</div>
<div
class=
"btn-o"
style=
"padding: 10px"
>
我要采购
</div>
<div
class=
"btn-o"
style=
"padding: 10px"
@
click=
"goToDetails(null, '/publish/buyInfo/all')"
>
我要采购
</div>
</div>
<div
class=
"line-btn"
style=
"padding-top: 30px"
>
<div
v-for=
"(item,index) in dict.product_type"
:key=
"index"
class=
"btn-b"
:class=
"currentProductTypeObj===item?'active':''"
@
mouseenter=
"changeProductPush(item)"
>
{{
item
.
label
}}
</div>
...
...
@@ -136,11 +136,11 @@
</div></el-col>
</el-row>
<div
class=
"line-btn"
style=
"padding-top: 64px;"
>
<div
class=
"btn-o"
style=
"padding: 10px"
>
我要供应
</div>
<div
class=
"btn-o"
style=
"padding: 10px"
>
我要采购
</div>
<div
class=
"btn-o"
style=
"padding: 10px"
@
click=
"goToDetails(null, '/publish/supplyInfo/all')"
>
我要供应
</div>
<div
class=
"btn-o"
style=
"padding: 10px"
@
click=
"goToDetails(null, '/publish/buyInfo/all')"
>
我要采购
</div>
</div>
<div
class=
"line-btn"
style=
"padding: 30px 0;"
>
<div
class=
"btn-l"
>
没有我需要的,我要留言
</div>
<div
class=
"btn-l"
@
click=
"goToDetails(null, '/publish/otherInfo')"
>
没有我需要的,我要留言
</div>
</div>
<!--合作伙伴 -->
<div
class=
"line-title"
><div
class=
"title-point"
/><span
class=
"title-text"
>
合作伙伴
</span></div>
...
...
src/views/homepage/publish/buyInfo.vue
View file @
059087f1
This diff is collapsed.
Click to expand it.
src/views/homepage/publish/otherInfo.vue
0 → 100644
View file @
059087f1
This diff is collapsed.
Click to expand it.
src/views/homepage/publish/supplyInfo.vue
View file @
059087f1
...
...
@@ -15,7 +15,7 @@
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
:to=
"
{ path: '/home' }">首页
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/publish' }">信息发布
</el-breadcrumb-item>
<el-breadcrumb-item>
我要供应
{{
title
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
我要供应
{{
title
}}
产品
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div
class=
"form-table-box"
>
...
...
@@ -28,12 +28,12 @@
<el-form-item
label=
"产品分类:"
class=
"form-cell"
required
style=
"margin: 0"
>
<div
class=
"cell-box"
style=
"display: flex"
>
<el-form-item
prop=
"productType"
>
<el-select
v-model=
"formData.productType"
placeholder=
"产品大类"
style=
"width:
12
0px"
@
change=
"changeProductType"
>
<el-select
v-model=
"formData.productType"
placeholder=
"产品大类"
style=
"width:
24
0px"
@
change=
"changeProductType"
>
<el-option
v-for=
"item in productTypeOpts"
:key=
"item.id"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-form-item>
<el-form-item
prop=
"productSubType"
style=
"margin-left: 5px"
>
<el-select
v-model=
"formData.productSubType"
placeholder=
"产品小类"
style=
"width:
16
0px"
>
<el-select
v-model=
"formData.productSubType"
placeholder=
"产品小类"
style=
"width:
32
0px"
>
<el-option
v-for=
"item in productSubTypeOpts"
:key=
"item.id"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-form-item>
...
...
@@ -144,11 +144,11 @@
<el-form-item
label=
"产品价格区间(元):"
class=
"form-cell"
required
style=
"margin: 0"
>
<div
class=
"cell-box"
style=
"display: flex"
>
<el-form-item
prop=
"minPrice"
>
<el-input
v-model.number=
"formData.minPrice"
placeholder=
"价格区间下限"
class=
"cell-input"
style=
"width:
18
0px"
/>
<el-input
v-model.number=
"formData.minPrice"
placeholder=
"价格区间下限"
class=
"cell-input"
style=
"width:
30
0px"
/>
</el-form-item>
<div
style=
"width: 20px;text-align: center"
>
~
</div>
<el-form-item
prop=
"maxPrice"
>
<el-input
v-model.number=
"formData.maxPrice"
placeholder=
"价格区间上限"
class=
"cell-input"
style=
"width:
18
0px"
/>
<el-input
v-model.number=
"formData.maxPrice"
placeholder=
"价格区间上限"
class=
"cell-input"
style=
"width:
30
0px"
/>
</el-form-item>
</div>
</el-form-item>
...
...
@@ -216,8 +216,8 @@
</el-form>
<div
style=
"width: 100%;text-align: center"
>
<el-button
@
click=
"cancelView"
>
返回
</el-button>
<el-button
type=
"
primary
"
@
click=
"submitForm()"
>
保存
</el-button>
<el-button
type=
"
warning
"
@
click=
"submitForm()"
>
提交
</el-button>
<el-button
type=
"
success
"
@
click=
"submitForm()"
>
保存
</el-button>
<el-button
type=
"
primary
"
@
click=
"submitForm()"
>
提交
</el-button>
</div>
</div>
</div>
...
...
@@ -259,7 +259,7 @@ export default {
},
500
)
}
return
{
title
:
'
产品
'
,
title
:
''
,
uploadHeaders
:
{
'
Authorization
'
:
getToken
()
},
imgSrcStart
:
process
.
env
.
VUE_APP_BASE_API
,
editor
:
false
,
// 富文本对象
...
...
@@ -332,12 +332,14 @@ export default {
},
methods
:
{
onDictReady
(
dict
)
{
console
.
log
(
this
.
$route
.
params
.
type
)
if
(
this
.
$route
.
params
.
type
===
'
hardware
'
)
{
this
.
title
=
'
硬件
'
this
.
productTypeOpts
=
dict
.
product_type
.
slice
(
0
,
4
)
}
else
if
(
this
.
$route
.
params
.
type
===
'
other
'
)
{
this
.
title
=
'
其他
'
this
.
productTypeOpts
=
dict
.
product_type
.
slice
(
4
)
}
else
{
this
.
title
=
''
this
.
productTypeOpts
=
dict
.
product_type
}
this
.
loadData
()
...
...
@@ -589,7 +591,7 @@ export default {
.cell-box
{
min-width
:
120px
;
.cell-input
{
width
:
4
20px
;
width
:
6
20px
;
}
.cell-select
{
width
:
220px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment