Commit d3014bb1 by 肖康

x

parent d3987db0
...@@ -2,11 +2,22 @@ ...@@ -2,11 +2,22 @@
<section> <section>
<div class="block oneDataGoods" v-for="(itemchild,indexdata) in dataList"> <div class="block oneDataGoods" v-for="(itemchild,indexdata) in dataList">
<dl class="mui-row img-box"> <dl class="mui-row img-box">
<a :href="'https://m.ichunt.com/goods_'+itemchild.goods_id+'.html?ptag=lxshop'"> <a :href="isZy?('https://m.ichunt.com/item/'+itemchild.goods_id+'.html?ptag=selfshop'):('https://m.ichunt.com/goods_'+itemchild.goods_id+'.html?ptag=lxshop')">
<dt v-lazy-container="{selector:'img'}"> <dt v-lazy-container="{selector:'img'}">
<img class="lazy img-lazy" :alt="itemchild.goods_name_temp" :data-src="itemchild.goods_img" data-error="https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png" /> <img class="lazy img-lazy" :alt="itemchild.goods_name_temp" :data-src="isZy?itemchild.goods_images:itemchild.goods_img" data-error="https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png" />
</dt> </dt>
<dd> <dd>
<template v-if="isZy">
<h4>{{itemchild.sku_name}}</h4>
<p v-if="itemchild.class_name2">分类:{{itemchild.class_name2}}</p>
<p>制造商:{{itemchild.brand_name}}</p>
<p v-if="itemchild.encap">封装:{{itemchild.encap}}</p>
<p>库存:
<span v-html="itemchild.stock"></span>
(<span v-html="itemchild.purchase_info"></span>)
</p>
</template>
<template v-else>
<h4>{{itemchild.goods_name_temp}}</h4> <h4>{{itemchild.goods_name_temp}}</h4>
<p>制造商:{{itemchild.brand_name||'- -'}}</p> <p>制造商:{{itemchild.brand_name||'- -'}}</p>
<p> <p>
...@@ -16,11 +27,23 @@ ...@@ -16,11 +27,23 @@
起订:<span v-html="itemchild.moq||1"></span> 起订:<span v-html="itemchild.moq||1"></span>
</p> </p>
<p>MPQ:<span v-html="itemchild.mpq||1"></span></p> <p>MPQ:<span v-html="itemchild.mpq||1"></span></p>
</template>
</dd> </dd>
</a> </a>
</dl> </dl>
<div class="mui-row block-but"> <div class="mui-row block-but">
<div class="morePrice"> <div class="morePrice">
<template v-if="isZy">
<div class="mui-row list_data" v-for="(itemPrice,index) in itemchild.ladder_price" :class="{'dataNo':(index>(limitLength-1))&&!itemchild.check}" >
<p class="mui-col-sm-6 mui-col-xs-6" v-html="itemPrice.purchases+'+'"></p>
<p class="mui-col-sm-6 mui-col-xs-6">{{itemPrice.price_cn}}</p>
</div>
<div class="mui-row list_data f-fff" v-if="itemchild.ladder_price.length==0">
<p class="mui-col-sm-6 mui-col-xs-6" >- -</p>
<p class="mui-col-sm-6 mui-col-xs-6">- -</p>
</div>
</template>
<template v-else>
<div class="mui-row list_data" v-for="(itemPrice,index) in itemchild.ladder_price" :class="{'dataNo':(index>(limitLength-1))&&!itemchild.check}" > <div class="mui-row list_data" v-for="(itemPrice,index) in itemchild.ladder_price" :class="{'dataNo':(index>(limitLength-1))&&!itemchild.check}" >
<p class="mui-col-sm-4 mui-col-xs-4" v-html="itemPrice.purchases+'+'"></p> <p class="mui-col-sm-4 mui-col-xs-4" v-html="itemPrice.purchases+'+'"></p>
<p class="mui-col-sm-4 mui-col-xs-4">{{itemPrice.price_cn}}</p> <p class="mui-col-sm-4 mui-col-xs-4">{{itemPrice.price_cn}}</p>
...@@ -31,6 +54,7 @@ ...@@ -31,6 +54,7 @@
<p class="mui-col-sm-4 mui-col-xs-4">- -</p> <p class="mui-col-sm-4 mui-col-xs-4">- -</p>
<p class="mui-col-sm-4 mui-col-xs-4">- -</p> <p class="mui-col-sm-4 mui-col-xs-4">- -</p>
</div> </div>
</template>
<div class="more-height" v-if="itemchild.ladder_price.length>limitLength" @click="priceRow(indexdata)" v-html="itemchild.checkBtn||defaultBtn"> <div class="more-height" v-if="itemchild.ladder_price.length>limitLength" @click="priceRow(indexdata)" v-html="itemchild.checkBtn||defaultBtn">
更多梯度价格<i class="icon-bot"></i> 更多梯度价格<i class="icon-bot"></i>
</div> </div>
...@@ -49,9 +73,13 @@ ...@@ -49,9 +73,13 @@
export default { export default {
name: "GoodsOne", name: "GoodsOne",
props: { props: {
dataList: { dataList: {//数组数据
type: Array, type: Array,
default: [] default: []
},
isZy:{//是否自营
type: Boolean,
default: false
} }
}, },
data() { data() {
...@@ -117,8 +145,8 @@ ...@@ -117,8 +145,8 @@
p{ font-size: 12px; color: #666; line-height: 19px;overflow:hidden;text-overflow:ellipsis;white-space: nowrap; } p{ font-size: 12px; color: #666; line-height: 19px;overflow:hidden;text-overflow:ellipsis;white-space: nowrap; }
} }
.but-shop{ width: 25%; vertical-align: middle; display: table-cell;} .but-shop{ width: 25%; vertical-align: middle; display: table-cell;}
.but{height: 30px; float: right; line-height:30px;padding: 0 20px; width: 60px; font-size: 14px; .but{height: 30px; float: right; line-height:30px;padding: 0 20px; width:100px; font-size: 14px;
display: block;color:#fff;background: #1080d0;text-align: center;cursor: pointer; display: block;color:#fff;background: #1080d0;text-align: center;cursor: pointer;box-sizing: border-box;
border-radius: 4px; border-radius: 4px;
} }
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<img :src="item.supplier_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'" class="name-img" alt="aipco"> <img :src="item.supplier_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'" class="name-img" alt="aipco">
<a :href="item.supplier_ad.url" class="ad">{{item.supplier_ad.ad}}</a> <a :href="item.supplier_ad.url" class="ad">{{item.supplier_ad.ad}}</a>
</div> </div>
<GoodsOne :dataList="item.data"></GoodsOne> <GoodsOne :dataList="item.data" ></GoodsOne>
<div class="more-number" v-if="item.fished"> <div class="more-number" v-if="item.fished">
为您找到<span>{{item.total}}</span>个商品,已全部显示 为您找到<span>{{item.total}}</span>个商品,已全部显示
</div> </div>
......
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
error-text="请求失败,点击重新加载" error-text="请求失败,点击重新加载"
:immediate-check="true" :immediate-check="true"
> >
<GoodsOne :dataList="zyData"></GoodsOne> <GoodsOne :dataList="zyData" :isZy="isZy"></GoodsOne>
</van-list> </van-list>
</div> </div>
</div> </div>
...@@ -185,6 +185,7 @@ export default { ...@@ -185,6 +185,7 @@ export default {
}, },
data() { data() {
return { return {
isZy:true,
zyFilterInit: -1, zyFilterInit: -1,
zyRankInit: 0, //0综合 1库存多到少 2//库存少到多 3//价格高到低 4//价格低到高 zyRankInit: 0, //0综合 1库存多到少 2//库存少到多 3//价格高到低 4//价格低到高
classFilter: "", classFilter: "",
......
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 sign in to comment