|
@@ -27,28 +27,6 @@
|
|
|
<p class="price descript">价格:<span style="color:red;font-size:16px"><small>¥</small>{{item.minprice}}</span> ~ <span style="color:red;font-size:16px"><small>¥</small>{{item.maxprice}}</span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="group-item" v-for="item in productGroup" :key="item.sa_itemgroupid" @click="itemClick(item)">
|
|
|
- <div class="top">
|
|
|
- <el-image style="width:100%" :src="Object.keys(item.attinfos).length > 0 ? item.attinfos[0].url : ''" fit="cover" />
|
|
|
- </div>
|
|
|
- <div class="bottom">
|
|
|
- <p class="title">{{item.groupname}}</p>
|
|
|
- <p class="descript">{{item.groupnum}}</p>
|
|
|
- <p class="descript"><span v-for="(cls,index) in item.itemclass" :key="cls.index">{{index === item.itemclass.length -1 ?cls.itemclassfullname:cls.itemclassfullname + ','}}</span></p>
|
|
|
- <p class="price descript">价格:<span style="color:red;font-size:16px"><small>¥</small>{{item.minprice}}</span> ~ <span style="color:red;font-size:16px"><small>¥</small>{{item.maxprice}}</span></p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="group-item" v-for="item in productGroup" :key="item.sa_itemgroupid" @click="itemClick(item)">
|
|
|
- <div class="top">
|
|
|
- <el-image style="width:100%" :src="Object.keys(item.attinfos).length > 0 ? item.attinfos[0].url : ''" fit="cover" />
|
|
|
- </div>
|
|
|
- <div class="bottom">
|
|
|
- <p class="title">{{item.groupname}}</p>
|
|
|
- <p class="descript">{{item.groupnum}}</p>
|
|
|
- <p class="descript"><span v-for="(cls,index) in item.itemclass" :key="cls.index">{{index === item.itemclass.length -1 ?cls.itemclassfullname:cls.itemclassfullname + ','}}</span></p>
|
|
|
- <p class="price descript">价格:<span style="color:red;font-size:16px"><small>¥</small>{{item.minprice}}</span> ~ <span style="color:red;font-size:16px"><small>¥</small>{{item.maxprice}}</span></p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-empty description="暂无数据" v-else></el-empty>
|
|
@@ -129,6 +107,8 @@ export default {
|
|
|
this.params.content.brandids = this.brandId
|
|
|
let res = await this.$api.requested(this.params)
|
|
|
this.productGroup = res.data
|
|
|
+ console.log(this.productGroup);
|
|
|
+
|
|
|
this.total = res.total
|
|
|
this.currentPage = res.pageNumber
|
|
|
},
|