Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
17616392
Commit
17616392
authored
Jun 29, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 图片默认值
parent
bb32f329
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
index.vue
src/components/select-parts/index.vue
+6
-1
parts.vue
src/pages/order/parts.vue
+2
-0
addParts.vue
src/pages/parts/addParts.vue
+2
-1
No files found.
src/components/select-parts/index.vue
View file @
17616392
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</view>
</view>
<view
class=
"u-flex right"
>
<view
class=
"u-flex right"
>
<view
class=
"right-img"
>
<view
class=
"right-img"
>
<u-image
:src=
"info.images"
width=
"200rpx"
height=
"200rpx"
/>
<u-image
:src=
"info.images
|| noPartsImage
"
width=
"200rpx"
height=
"200rpx"
/>
</view>
</view>
<view
class=
"u-flex right-content"
>
<view
class=
"u-flex right-content"
>
<view
class=
"right-content-name"
>
{{
info
.
name
}}
</view>
<view
class=
"right-content-name"
>
{{
info
.
name
}}
</view>
...
@@ -45,6 +45,11 @@
...
@@ -45,6 +45,11 @@
}
}
}
}
},
},
computed
:
{
noPartsImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'morentupian.png'
}
},
data
()
{
data
()
{
return
{
return
{
}
}
...
...
src/pages/order/parts.vue
View file @
17616392
...
@@ -78,6 +78,8 @@
...
@@ -78,6 +78,8 @@
v
.
max
=
v
.
stock
v
.
max
=
v
.
stock
v
.
checked
=
false
v
.
checked
=
false
v
.
quantity
=
v
.
stock
v
.
quantity
=
v
.
stock
const
images
=
v
.
images
?
v
.
images
.
split
(
','
)
:
[]
v
.
images
=
images
[
0
]
return
v
return
v
})
})
}
}
...
...
src/pages/parts/addParts.vue
View file @
17616392
...
@@ -151,7 +151,6 @@ export default {
...
@@ -151,7 +151,6 @@ export default {
this
.
$u
.
api
.
getBrandList
({
categoryId
:
this
.
categaryId
}).
then
(
res
=>
{
this
.
$u
.
api
.
getBrandList
({
categoryId
:
this
.
categaryId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
const
data
=
res
.
data
const
data
=
res
.
data
console
.
log
(
"data"
,
data
)
if
(
data
.
length
>
0
)
{
if
(
data
.
length
>
0
)
{
this
.
brand
=
data
.
map
(
v
=>
{
this
.
brand
=
data
.
map
(
v
=>
{
v
.
label
=
v
.
brandName
v
.
label
=
v
.
brandName
...
@@ -183,6 +182,8 @@ export default {
...
@@ -183,6 +182,8 @@ export default {
v
.
quantity
=
0
v
.
quantity
=
0
v
.
disabled
=
true
v
.
disabled
=
true
v
.
max
=
999
v
.
max
=
999
const
images
=
v
.
images
?
v
.
images
.
split
(
','
)
:
[]
v
.
images
=
images
[
0
]
return
v
return
v
})
})
this
.
lists
=
this
.
lists
.
concat
(
lists
)
this
.
lists
=
this
.
lists
.
concat
(
lists
)
...
...
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