Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-app-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
李星剑
hs-app-project
Commits
8e9bd1d9
Commit
8e9bd1d9
authored
3 years ago
by
Zheng Shang Jun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品类问题解决1
parent
24d04ce8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
11 deletions
+34
-11
base.js
src/config/request/apiList/base.js
+10
-6
hs-material-thumbnail.vue
src/pages/brands/components/hs-material-thumbnail.vue
+5
-1
detail.vue
src/pages/brands/detail.vue
+19
-4
No files found.
src/config/request/apiList/base.js
View file @
8e9bd1d9
export
default
{
base
:{
dictionary
:{
base
:
{
dictionary
:
{
url
:
"/gdep-system/dict/dictionaryList"
,
method
:
"post"
},
sizeGroup
:{
sizeGroup
:
{
url
:
"/gdep-mdm/size/query"
,
method
:
"post"
},
getCategoryList
:{
getCategoryList
:
{
url
:
"/gdep-mdm/category/list"
,
method
:
"get"
},
getSupplierList
:{
getCategoryQuery
:
{
url
:
"/gdep-mdm/category/query"
,
method
:
"post"
},
getSupplierList
:
{
url
:
"/gdep-enterprise/supplier/getSupplierList"
,
method
:
"get"
},
upload
:{
upload
:
{
url
:
"/gdep-system/virtualfile/uploadFile"
,
method
:
"post"
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/brands/components/hs-material-thumbnail.vue
View file @
8e9bd1d9
...
...
@@ -23,7 +23,7 @@
</span>
</view>
<view
class=
"u-font-24 u-m-t-20 color_6F6F72"
>
<span
class=
"u-m-r-10"
>
{{
item.category
}}
</span>
<span
class=
"u-m-r-10"
>
{{
categoryName
}}
</span>
|
<span
class=
"u-m-l-10 u-m-r-10"
>
{{ item.clothWidth }} cm
</span>
|
...
...
@@ -45,6 +45,9 @@ export default {
type
:
Array
,
default
:
()
=>
[],
},
categoryName
:
{
type
:
String
,
},
},
data
()
{
return
{
...
...
@@ -56,6 +59,7 @@ export default {
this
.
$emit
(
"click"
);
},
},
mounted
()
{},
};
</
script
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/brands/detail.vue
View file @
8e9bd1d9
...
...
@@ -33,6 +33,7 @@
<material
:item=
"item"
:colourApiList=
"tabledata.colourApiList"
:categoryName=
"categoryName"
></material>
</view>
<!-- 其他颜色 -->
...
...
@@ -91,6 +92,7 @@ export default {
id
:
""
,
imgUrl
:
this
.
$IMG_URL
,
// 上传地址
smapTelePhone
:
""
,
//联系人电话
categoryName
:
""
,
//全名品类name
};
},
// watch: {
...
...
@@ -101,8 +103,9 @@ export default {
// },
// },
created
()
{
this
.
detail
();
async
created
()
{
await
this
.
detail
();
this
.
categoryFN
(
this
.
item
.
category
);
},
onLoad
(
options
)
{
this
.
id
=
options
.
id
;
...
...
@@ -125,11 +128,11 @@ export default {
},
// 详情接口
detail
()
{
async
detail
()
{
let
param
=
{
id
:
this
.
id
,
};
this
.
$http
(
"mobileBrand.styleDetail"
,
param
).
then
((
res
)
=>
{
return
this
.
$http
(
"mobileBrand.styleDetail"
,
param
).
then
((
res
)
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
===
200
)
{
this
.
tabledata
=
data
;
...
...
@@ -149,7 +152,19 @@ export default {
}
});
},
// 品类接口
async
categoryFN
(
ids
)
{
return
this
.
$http
(
"base.getCategoryQuery"
,
{
type
:
"ML"
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
let
cate
=
res
.
data
.
find
((
el
)
=>
{
return
el
.
id
==
ids
;
});
this
.
categoryName
=
cate
.
name
;
}
});
},
},
mounted
()
{},
};
</
script
>
...
...
This diff is collapsed.
Click to expand it.
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