Commit 7321f4ca by zhangquan

商品详情补充

1 parent 119f57fc
......@@ -11,8 +11,8 @@
<GLTable ref="tableRef" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImageUrl" alt="">
<el-tooltip class="item" effect="dark" :content="scope.scope.goodsSkuName" placement="top">
<span class="name">{{ scope.scope.goodsSkuName || '--' }}</span>
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
<span class="name">{{ scope.scope.brandName }}{{ scope.scope.goodsSkuName }}</span>
</el-tooltip>
</div>
<div slot="userInfoSlot" class="userInfoSlot" slot-scope="scope">
......
......@@ -13,7 +13,7 @@
</div>
</div>
<div class="info-wrap">
<p class="info-title">{{goodsInfo.brandName}}{{ goodsInfo.goodsSkuName }}{{ goodsInfo.goodsSkuTitle }}</p>
<p class="info-title">{{goodsInfo.brandName}} {{ goodsInfo.goodsSkuName }} {{ goodsInfo.goodsSkuTitle }}</p>
<p class="classify">分类:{{goodsInfo.firstCategoryName}}/{{goodsInfo.secondCategoryName}}/{{goodsInfo.lastCategoryName}}</p>
<div class="sale-price">
<div class="set-price">
......@@ -28,10 +28,10 @@
<span class="attr-label">{{ item.label }}</span>
<span class="attr-key">{{ goodsInfo[item.key] || '--' }}</span>
</li>
<!-- <li>
<span class="attr-label">规格名称</span>
<span class="attr-key">{{ goodsInfo?.specificationResponses?.specName || '--' }}</span>
</li> -->
<li v-if=" goodsInfo.specificationResponses && goodsInfo.specificationResponses[0] && goodsInfo.specificationResponses[0].specName">
<span class="attr-label">{{ goodsInfo.specificationResponses[0].specName }}</span>
<span class="attr-key">{{ goodsInfo.specificationResponses[0].specValue || '--' }}</span>
</li>
</ul>
<div class="operate-btn">
<el-button type="primary" v-if="goodsInfo.goodsPosition==1" @click="handleSale">上架销售</el-button>
......@@ -62,6 +62,10 @@
<script>
const attrList = [
{
label:'商品特点',
key: 'goodsCharacteristic'
},
{
label:'供货价(元)',
key: 'sellPrice'
},
......
......@@ -22,8 +22,8 @@
<GLTable ref="tableRef" :pageConf="pageConf" @sortChange="sortChange" :searchForm="goodsFormObj" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImgUrl" alt="">
<el-tooltip class="item" effect="dark" :content="scope.scope.goodsSkuName" placement="top">
<span class="name">{{ scope.scope.goodsSkuName }}</span>
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
<span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span>
</el-tooltip>
</div>
<div class="setPriceSlot" slot="setPriceSlot" slot-scope="scope">
......
......@@ -23,8 +23,8 @@
<GLTable ref="tableRef" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImgUrl" alt="">
<el-tooltip class="item" effect="dark" :content="scope.scope.goodsSkuName" placement="top">
<span class="name">{{ scope.scope.goodsSkuName }}</span>
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
<span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span>
</el-tooltip>
</div>
<div slot="setPriceSlot" slot-scope="scope">
......
......@@ -11,8 +11,8 @@
<GLTable ref="tableRef" :pageConf="pageConf" :searchForm="orderFormObj" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImageUrl" alt="">
<el-tooltip class="item" effect="dark" :content="scope.scope.goodsSkuName" placement="top">
<span class="name">{{ scope.scope.goodsSkuName || '--' }}</span>
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
<span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span>
</el-tooltip>
</div>
<div slot="userInfoSlot" class="userInfoSlot" slot-scope="scope">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!