|
@@ -29,7 +29,8 @@ var productDetail = new Vue({
|
|
|
parameters: [],
|
|
|
tabsIndex:0,
|
|
|
disabledText:'',
|
|
|
- isNoneDisabled:false
|
|
|
+ isNoneDisabled:false,
|
|
|
+ isServiceInfo:false,
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
@@ -71,6 +72,9 @@ var productDetail = new Vue({
|
|
|
ProductApi.GetProductDdtails({userId:GLOBAL_USER_ID,productID:_self.productId},function (response) {
|
|
|
if(response.code == 0){
|
|
|
var product = response.data;
|
|
|
+ if(product.productDetail.orderInfo!='' && product.productDetail.serviceInfo!=''){
|
|
|
+ _self.isServiceInfo = true;
|
|
|
+ }
|
|
|
if(product.validFlag =='3' || product.stock == 0 ){
|
|
|
_self.isNoneDisabled = true;
|
|
|
}else{
|
|
@@ -79,7 +83,7 @@ var productDetail = new Vue({
|
|
|
if(product.validFlag =='3'){
|
|
|
_self.disabledText = '下架'
|
|
|
}
|
|
|
- if(product.stock == 0){
|
|
|
+ if(product.stock == 0 && product.validFlag !='3'){
|
|
|
_self.disabledText = '售罄'
|
|
|
}
|
|
|
}else{
|