Commit 51f918ff authored by 刘殿昕's avatar 刘殿昕

Merge branch 'dev'

parents bbe42b9a 280c6c5a
...@@ -265,7 +265,7 @@ pipeline: ...@@ -265,7 +265,7 @@ pipeline:
- master - master
deploy: deploy:
image: registry.cn-qingdao.aliyuncs.com/wod-devops/kubernetes:1.0 image: registry.cn-qingdao.aliyuncs.com/wod/devops-kubernetes:1.0
namespace: apaas-v3 namespace: apaas-v3
deployment: apaas-ui deployment: apaas-ui
container: apaas-ui container: apaas-ui
......
...@@ -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) {
......
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment