Commit bdf0190f authored by 徐一鸣's avatar 徐一鸣

服务超市详情优化

parent e8ba6a5e
...@@ -551,6 +551,26 @@ width: 620px!important; ...@@ -551,6 +551,26 @@ width: 620px!important;
.apass_button .el-button.is-disabled:hover { .apass_button .el-button.is-disabled:hover {
cursor: not-allowed; cursor: not-allowed;
} }
.apass_button .el-button--warning.is-plain {
background-color: #fcefd6;
border-color: #fac266;
color: #e56600;
}
.apass_button .el-button--warning {
background-color: #e56600;
border-color: #e56600;
color: #fff;
}
.apass_button .el-button.is-disabled,
.apass_button .el-button.is-disabled:focus,
.apass_button .el-button.is-disabled:hover {
color: #C0C4CC;
cursor: not-allowed;
background-image: none;
background-color: #FFF;
border-color: #EBEEF5;
}
.apass_table .el-table th > .cell { .apass_table .el-table th > .cell {
color: #1a2236; color: #1a2236;
} }
......
...@@ -49,7 +49,8 @@ ...@@ -49,7 +49,8 @@
</ul> </ul>
<div class="commodity_information"> <div class="commodity_information">
<span>&emsp;&emsp;格:</span> <span>&emsp;&emsp;格:</span>
<div class="btn_container"> <span v-if="actionDisabled" class="commodity_text">暂无</span>
<div v-else class="btn_container">
<el-button <el-button
v-for="(item, index) in specifications" v-for="(item, index) in specifications"
:key="'spcs_' + index" :key="'spcs_' + index"
...@@ -62,14 +63,17 @@ ...@@ -62,14 +63,17 @@
</div> </div>
<div class="commodity_information"> <div class="commodity_information">
<span>规格说明:</span> <span>规格说明:</span>
<span v-if="actionDisabled" class="commodity_text">暂无</span>
<span <span
v-else
class="commodity_text" class="commodity_text"
v-text="(specification && specification.descript) || '-'" v-text="(specification && specification.descript) || '-'"
></span> ></span>
</div> </div>
<div class="commodity_information"> <div class="commodity_information">
<span>购买方式:</span> <span>购买方式:</span>
<div class="btn_container"> <span v-if="actionDisabled" class="commodity_text">暂无</span>
<div v-else class="btn_container">
<el-button <el-button
v-for="(item, index) in types" v-for="(item, index) in types"
v-text="item.name" v-text="item.name"
...@@ -83,14 +87,27 @@ ...@@ -83,14 +87,27 @@
<div class="commodity_information"> <div class="commodity_information">
<span>购买时长:</span> <span>购买时长:</span>
<div class="btn_container"> <div class="btn_container">
<el-input-number v-model="duration" :min="1"></el-input-number> <el-input-number
v-model="duration"
:min="1"
:disabled="actionDisabled"
></el-input-number>
</div> </div>
</div> </div>
<div class="commodity_action"> <div class="apass_button commodity_action">
<el-button type="warning" plain @click="addToCart"> <el-button
type="warning"
plain
@click="addToCart"
:disabled="actionDisabled"
>
加入购物车 加入购物车
</el-button> </el-button>
<el-button type="warning" @click="applyImmediately"> <el-button
type="warning"
@click="applyImmediately"
:disabled="actionDisabled"
>
立即申请 立即申请
</el-button> </el-button>
</div> </div>
...@@ -123,6 +140,9 @@ export default { ...@@ -123,6 +140,9 @@ export default {
return specifications; return specifications;
}, },
actionDisabled() {
return this.specifications.length == 0;
},
}, },
watch: { watch: {
specifications: { specifications: {
...@@ -363,17 +383,4 @@ export default { ...@@ -363,17 +383,4 @@ export default {
width: 220px; width: 220px;
margin-left: 20px; margin-left: 20px;
} }
.service_info .el-button--primary {
background-color: #515fe7;
border-color: #515fe7;
}
.service_info .el-button--warning.is-plain {
background-color: #fcefd6;
border-color: #fac266;
color: #e56600;
}
.service_info .el-button--warning {
background-color: #e56600;
border-color: #e56600;
}
</style> </style>
...@@ -61,7 +61,6 @@ export default { ...@@ -61,7 +61,6 @@ export default {
}, },
tempFilter: null, tempFilter: null,
}), }),
computed: {},
methods: { methods: {
init(filter) { init(filter) {
// console.log(filter); // console.log(filter);
......
...@@ -85,7 +85,6 @@ export default { ...@@ -85,7 +85,6 @@ export default {
}, },
tempFilter: null, tempFilter: null,
}), }),
computed: {},
methods: { methods: {
init(filter) { init(filter) {
// console.log(filter); // console.log(filter);
......
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