Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
280c6c5a
Commit
280c6c5a
authored
Feb 01, 2021
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix全选包括非售服务问题
parent
f555968d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
src/components/shopping-cart/shopping-cart-cell.vue
src/components/shopping-cart/shopping-cart-cell.vue
+16
-4
src/components/shopping-cart/shopping-cart-list.vue
src/components/shopping-cart/shopping-cart-list.vue
+2
-0
No files found.
src/components/shopping-cart/shopping-cart-cell.vue
View file @
280c6c5a
...
@@ -128,14 +128,22 @@
...
@@ -128,14 +128,22 @@
{{
item
.
money
}}
金币/
{{
item
.
spcs_count
}}
次
{{
item
.
money
}}
金币/
{{
item
.
spcs_count
}}
次
</el-button>
</el-button>
<el-button
<el-button
v-if=
"cellItems.service.request_spcs_info.spcs_type_2 && cellItems.service.request_spcs_info.spcs_type_2.length != 0"
v-if=
"
cellItems.service.request_spcs_info.spcs_type_2 &&
cellItems.service.request_spcs_info.spcs_type_2
.length != 0
"
:class=
"
:class=
"
specificationPop.spcs_type == 2
specificationPop.spcs_type == 2
? 'shopping_cell_specification_btn active'
? 'shopping_cell_specification_btn active'
: 'shopping_cell_specification_btn'
: 'shopping_cell_specification_btn'
"
"
size=
"mini"
size=
"mini"
@
click=
"changeSpecification(cellItems.service.request_spcs_info.spcs_type_2[0])"
@
click=
"
changeSpecification(
cellItems.service.request_spcs_info.spcs_type_2[0]
)
"
>
{{
>
{{
cellItems
.
service
.
request_spcs_info
.
spcs_type_2
[
0
]
cellItems
.
service
.
request_spcs_info
.
spcs_type_2
[
0
]
.
money
.
money
...
@@ -301,10 +309,14 @@ export default {
...
@@ -301,10 +309,14 @@ export default {
!
this
.
cellItems
.
service
.
spcs_info
.
id
!
this
.
cellItems
.
service
.
spcs_info
.
id
)
{
)
{
this
.
$message
({
this
.
$message
({
message
:
"
该服务暂不支持购买
"
,
message
:
(
this
.
cellItems
.
service_id
==
0
?
this
.
cellItems
.
application
.
app_name
:
this
.
cellItems
.
service
.
name
)
+
"
暂不支持购买
"
,
type
:
"
error
"
,
type
:
"
error
"
,
});
});
this
.
checkedItem
=
false
;
this
.
checkedItem
=
false
;
this
.
$emit
(
"
changeState
"
,
{
state
:
false
,
index
:
this
.
cellIndex
});
}
else
{
}
else
{
this
.
$emit
(
"
changeState
"
,
{
state
:
val
,
index
:
this
.
cellIndex
});
this
.
$emit
(
"
changeState
"
,
{
state
:
val
,
index
:
this
.
cellIndex
});
}
}
...
@@ -322,7 +334,7 @@ export default {
...
@@ -322,7 +334,7 @@ export default {
},
},
setSpecificationPop
()
{
setSpecificationPop
()
{
this
.
specificationPop
=
this
.
cellItems
.
service
.
spcs_info
;
this
.
specificationPop
=
this
.
cellItems
.
service
.
spcs_info
;
console
.
log
(
this
.
specificationPop
)
console
.
log
(
this
.
specificationPop
)
;
// this.specificationApplicationPop = this.cellItems.duration_method;
// this.specificationApplicationPop = this.cellItems.duration_method;
},
},
changeSubscription
(
val
)
{
changeSubscription
(
val
)
{
...
...
src/components/shopping-cart/shopping-cart-list.vue
View file @
280c6c5a
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<div>
<div>
<div
class=
"shopping_list_page"
>
<div
class=
"shopping_list_page"
>
<ShoppingCartCell
<ShoppingCartCell
:ref=
"`cartcell_$
{index}`"
v-for="(item, index) in list"
v-for="(item, index) in list"
:cellItem="item"
:cellItem="item"
:cellIsService="item.app_id == 0"
:cellIsService="item.app_id == 0"
...
@@ -59,6 +60,7 @@ export default {
...
@@ -59,6 +60,7 @@ export default {
setAllState
(
val
)
{
setAllState
(
val
)
{
for
(
let
i
=
0
;
i
<
this
.
checkLists
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
checkLists
.
length
;
i
++
)
{
this
.
$set
(
this
.
checkLists
,
i
,
val
);
this
.
$set
(
this
.
checkLists
,
i
,
val
);
this
.
$refs
[
"
cartcell_
"
+
i
][
0
].
getState
(
val
);
}
}
},
},
changeCellMsg
(
val
)
{
changeCellMsg
(
val
)
{
...
...
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