Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 76519711
authored
Aug 01, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车系弹窗优化
1 parent
f284273d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
src/views/goods/addPrefer.vue
src/views/store/components/selectCarDialog.vue
src/views/goods/addPrefer.vue
View file @
7651971
...
@@ -332,7 +332,7 @@ export default {
...
@@ -332,7 +332,7 @@ export default {
return
{
merchantId
,
merchantName
,
activityPrice
,
giveIntegral
}
return
{
merchantId
,
merchantName
,
activityPrice
,
giveIntegral
}
})
})
const
params
=
{
const
params
=
{
merchantRequestList
,
saleMerchantList
:
merchantRequestList
,
...
obj
...
obj
}
}
if
(
this
.
routeInfo
.
id
)
params
.
id
=
this
.
routeInfo
.
id
if
(
this
.
routeInfo
.
id
)
params
.
id
=
this
.
routeInfo
.
id
...
@@ -377,7 +377,7 @@ export default {
...
@@ -377,7 +377,7 @@ export default {
this
.
formObj
.
source
=
'2'
,
this
.
formObj
.
source
=
'2'
,
this
.
formObj
.
method
=
'2'
,
this
.
formObj
.
method
=
'2'
,
this
.
formObj
.
coverList
=
[
res
.
goodsImage
]
this
.
formObj
.
coverList
=
[
res
.
goodsImage
]
this
.
merchantRequestList
=
res
.
m
erchantList
?.
map
(
item
=>
{
this
.
merchantRequestList
=
res
.
saleM
erchantList
?.
map
(
item
=>
{
let
activityPrice
=
item
.
activityPrice
?
Number
(
Number
(
item
.
activityPrice
/
100
).
toFixed
(
2
))
:
0
let
activityPrice
=
item
.
activityPrice
?
Number
(
Number
(
item
.
activityPrice
/
100
).
toFixed
(
2
))
:
0
return
{...
item
,
activityPrice
}
return
{...
item
,
activityPrice
}
})
||
[]
})
||
[]
...
...
src/views/store/components/selectCarDialog.vue
View file @
7651971
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
</el-option>
</el-option>
</el-select>
-->
</el-select>
-->
<el-autocomplete
<el-autocomplete
clearable
debounce=
"1000"
debounce=
"1000"
v-model=
"curbrandName"
v-model=
"curbrandName"
:fetch-suggestions=
"querySearchAsync"
:fetch-suggestions=
"querySearchAsync"
...
@@ -114,7 +115,8 @@
...
@@ -114,7 +115,8 @@
querySearchAsync
(
queryString
,
cb
){
querySearchAsync
(
queryString
,
cb
){
var
restaurants
=
this
.
searchList
;
var
restaurants
=
this
.
searchList
;
var
results
=
queryString
?
restaurants
.
filter
(
this
.
createStateFilter
(
queryString
))
:
[];
var
results
=
queryString
?
restaurants
.
filter
(
this
.
createStateFilter
(
queryString
))
:
[];
cb
(
results
);
if
(
!
queryString
)
this
.
filterBrandList
=
this
.
carSeriesData
if
(
results
?.
length
>
0
)
cb
(
results
);
},
},
createStateFilter
(
queryString
)
{
createStateFilter
(
queryString
)
{
return
(
state
)
=>
{
return
(
state
)
=>
{
...
@@ -130,15 +132,15 @@
...
@@ -130,15 +132,15 @@
let
{
brandId
,
brandName
,
childBrandId
,
childBrandName
,
vehicleSeriesId
,
vehicleSeriesName
}
=
item
let
{
brandId
,
brandName
,
childBrandId
,
childBrandName
,
vehicleSeriesId
,
vehicleSeriesName
}
=
item
if
(
obj
[
brandId
]){
if
(
obj
[
brandId
]){
if
(
obj
[
brandId
][
childBrandId
]){
if
(
obj
[
brandId
][
childBrandId
]){
obj
[
brandId
][
childBrandId
].
push
({
rootId
:
brandId
,
rootName
:
brandName
,
parentId
:
vehicleSeries
Id
,
parentName
:
childBrandName
,
id
:
vehicleSeriesId
,
name
:
vehicleSeriesName
})
obj
[
brandId
][
childBrandId
].
push
({
rootId
:
brandId
,
rootName
:
brandName
,
parentId
:
childBrand
Id
,
parentName
:
childBrandName
,
id
:
vehicleSeriesId
,
name
:
vehicleSeriesName
})
}
else
{
}
else
{
obj
[
brandId
][
childBrandId
]
=
[]
obj
[
brandId
][
childBrandId
]
=
[]
obj
[
brandId
][
childBrandId
].
push
({
rootId
:
brandId
,
rootName
:
brandName
,
parentId
:
vehicleSeries
Id
,
parentName
:
childBrandName
,
id
:
vehicleSeriesId
,
name
:
vehicleSeriesName
})
obj
[
brandId
][
childBrandId
].
push
({
rootId
:
brandId
,
rootName
:
brandName
,
parentId
:
childBrand
Id
,
parentName
:
childBrandName
,
id
:
vehicleSeriesId
,
name
:
vehicleSeriesName
})
}
}
}
else
{
}
else
{
obj
[
brandId
]
=
{}
obj
[
brandId
]
=
{}
obj
[
brandId
][
childBrandId
]
=
[]
obj
[
brandId
][
childBrandId
]
=
[]
obj
[
brandId
][
childBrandId
].
push
({
rootId
:
brandId
,
rootName
:
brandName
,
parentId
:
vehicleSeries
Id
,
parentName
:
childBrandName
,
id
:
vehicleSeriesId
,
name
:
vehicleSeriesName
})
obj
[
brandId
][
childBrandId
].
push
({
rootId
:
brandId
,
rootName
:
brandName
,
parentId
:
childBrand
Id
,
parentName
:
childBrandName
,
id
:
vehicleSeriesId
,
name
:
vehicleSeriesName
})
}
}
})
})
this
.
selectdData
=
obj
this
.
selectdData
=
obj
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment