Commit a1366f5f by zhangquan

bug修复

1 parent 729b6a3d
......@@ -53,9 +53,14 @@
<div class="detail-table">
<div class="rich-text" v-if="curTitle==1" v-html="goodsInfo.goodsDescribe"></div>
<div class="grid" v-if="curTitle==2">
<div class="gird-item" v-for="(item,index) in goodsInfo.attributeResponses" :key="index">
<span class="label">{{item.attributeName}}</span>
<span class="value">{{item.attributeValueName}}</span>
<template v-for="(item,index) in goodsInfo.attributeResponses">
<div class="gird-item" v-if="item.attributeName" :key="index">
<span class="label">{{item.attributeName}}</span>
<span class="value">{{item.attributeValueName || '--'}}</span>
</div>
</template>
<div v-if="!(goodsInfo.attributeResponses && goodsInfo.attributeResponses.length)">
暂无产品参数
</div>
</div>
</div>
......
......@@ -221,11 +221,11 @@ export default {
console.log(e)
const {order, prop} = e
if(prop=='saleAmount'){
this.goodsFormObj.orderBySaleAmount = order=='ascending' ? 1 : 2
this.goodsFormObj.orderBySaleAmount = order=='ascending' ? 1 : order=='descending' ? 2 : ''
this.goodsFormObj.orderBySalePrice = ''
}
if(prop=='salePrice'){
this.goodsFormObj.orderBySalePrice = order=='ascending' ? 1 : 2
this.goodsFormObj.orderBySalePrice = order=='ascending' ? 1 : order=='descending' ? 2 : ''
this.goodsFormObj.orderBySaleAmount = ''
}
this.handleSearch()
......
......@@ -145,7 +145,7 @@ export default {
{
label: '库存',
prop: 'goodsStock',
sortable: true,
// sortable: true,
},
{
label: '商品状态',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!