wpfw_ewei_wxapp/pages/diy/template/tpl_goods.wxml
2023-02-26 08:10:18 +08:00

111 lines
19 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="fui-goods-group {{diyitem.style.liststyle}}" style="background:{{diyitem.style.bgd==0||!diyitem.style.bgd?diyitem.style.background:'transparent'}}" wx:if="{{diyitem.params.goodsscroll!=1}}">
<view class="fui-goods-item" wx:for="{{diyitem.data}}" wx:for-index="childid" wx:for-item="childitem" wx:key="childid">
<navigator class="image {{diyitem.params.showicon=='1'?diyitem.style.iconstyle:''}}" data-text="{{diyitem.style.goodsicon}}" style="background-image:url({{childitem.thumb}})" url="{{childitem.bargain>0?'/bargain/detail/detail?id='+childitem.bargain:'/pages/goods/detail/index?id='+childitem.gid}}" wx:if="{{diyitem.style.liststyle!='block one'}}">
<block wx:if="{{diyitem.style.liststyle=='block'||diyitem.style.liststyle=='block two'}}">
<view class="goodsicon" style="position:relative;width:{{realWindowWidth/2-10}}px;height:{{realWindowWidth/2-10}}px" wx:if="{{diyitem.params.showicon=='2'}}">
<image bindload="goodsicon" class="left top" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left top'}}"></image>
<image bindload="goodsicon" class="right top" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right top'}}"></image>
<image bindload="goodsicon" class="left bottom" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left bottom'}}"></image>
<image bindload="goodsicon" class="right bottom" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right bottom'}}"></image>
</view>
</block>
<block wx:if="{{diyitem.style.liststyle=='block three'}}">
<view class="goodsicon" style="position:relative;width:{{realWindowWidth/3-10}}px;height:{{realWindowWidth/3-10}}px" wx:if="{{diyitem.params.showicon=='2'}}">
<image bindload="goodsicon" class="left top" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left top'}}"></image>
<image bindload="goodsicon" class="right top" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right top'}}"></image>
<image bindload="goodsicon" class="left bottom" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left bottom'}}"></image>
<image bindload="goodsicon" class="right bottom" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right bottom'}}"></image>
</view>
</block>
<block wx:if="{{diyitem.style.liststyle==''}}">
<view class="goodsicon" style="position:relative;width: 100%;height:100%" wx:if="{{diyitem.params.showicon=='2'}}">
<image bindload="goodsicon" class="left top" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left top'}}"></image>
<image bindload="goodsicon" class="right top" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right top'}}"></image>
<image bindload="goodsicon" class="left bottom" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left bottom'}}"></image>
<image bindload="goodsicon" class="right bottom" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right bottom'}}"></image>
</view>
</block>
<image class="salez" src="{{diyitem.params.saleout==0?'/static/images/saleout-2.png':diyitem.params.saleout}}" wx:if="{{diyitem.params.saleout!=-1&&childitem.total==0&&childitem.cansee<=0||diyitem.params.saleout!=-1&&childitem.total==0&&childitem.cansee>0&&childitem.seecommission<=0}}"></image>
<view class="goods-Commission" wx:if="{{childitem.cansee>0&&childitem.seecommission>0}}">{{childitem.seetitle}}¥{{childitem.seecommission}}</view>
</navigator>
<navigator class="image {{diyitem.params.showicon=='1'?diyitem.style.iconstyle:''}}" data-text="{{diyitem.style.goodsicon}}" style="padding-bottom: 0;height: auto" url="{{childitem.bargain>0?'/bargain/detail/detail?id='+childitem.bargain:'/pages/goods/detail/index?id='+childitem.gid}}" wx:else>
<image mode="widthFix" src="{{childitem.thumb}}"></image>
<view class="goodsicon" wx:if="{{diyitem.params.showicon=='2'}}">
<image bindload="goodsicon" class="left top" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="position:absolute;width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left top'}}"></image>
<image bindload="goodsicon" class="right top" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right top'}}"></image>
<image bindload="goodsicon" class="left bottom" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left bottom'}}"></image>
<image bindload="goodsicon" class="right bottom" mode="widthFix" src="{{diyitem.params.goodsiconsrc}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right bottom'}}"></image>
</view>
<image class="salez" src="{{diyitem.params.saleout==0?'/static/images/saleout-2.png':diyitem.params.saleout}}" wx:if="{{diyitem.params.saleout!=-1&&childitem.total==0&&childitem.cansee<=0||diyitem.params.saleout!=-1&&childitem.total==0&&childitem.cansee>0&&childitem.seecommission<=0}}"></image>
<view class="goods-Commission" wx:if="{{childitem.cansee>0&&childitem.seecommission>0}}">{{childitem.seetitle}}¥{{childitem.seecommission}}</view>
</navigator>
<view class="detail">
<navigator class="name" style="color:{{diyitem.style.titlecolor}};width:{{diyitem.style.liststyle=='block three'?realWindowWidth/3-10:diyitem.style.liststyle=='block'||diyitem.style.liststyle=='block two'?realWindowWidth/2-10:''}}px" url="{{childitem.bargain>0?'/bargain/detail/detail?id='+childitem.bargain:'/pages/goods/detail/index?id='+childitem.gid}}" wx:if="{{diyitem.params.showtitle=='1'}}">
<image class="bargain_label" src="/static/images/label.png" wx:if="{{childitem.bargain>0}}"></image>
<text class="cycle-tip" wx:if="{{childitem.ctype==9}}">周期购</text>
<text>{{childitem.title}} </text>
</navigator>
<view class="productprice" wx:if="{{diyitem.params.showprice=='1'&&(diyitem.params.showproductprice=='1'||diyitem.params.showsales=='1')}}">
<text style="color:{{diyitem.style.productpricecolor}};margin-right:16rpx" wx:if="{{childitem.productprice>0&&diyitem.params.showproductprice=='1'}}">{{diyitem.params.productpricetext}}<text class="{{diyitem.params.productpriceline=='1'?'line':''}}">¥{{childitem.productprice}}</text>
</text>
<text style="color:{{diyitem.style.salescolor}}" wx:if="{{diyitem.params.showsales=='1'}}">{{diyitem.params.salestext}}{{childitem.sales}}</text>
</view>
<view class="price" wx:if="{{diyitem.params.showprice=='1'}}">
<text class="text" style="color:{{diyitem.style.pricecolor}}">¥{{childitem.price}}</text>
<navigator class="buy buybtnbtn buybtn-1" data-buytype="buy" data-id="{{childitem.gid}}" style="" url="/pages/goods/detail/index?id={{childitem.gid}}" wx:if="{{childitem.ctype==9&&childitem.bargain==0}}">详情</navigator>
<navigator class="buy buybtnbtn buybtn-1" data-buytype="buy" data-id="{{childitem.gid}}" style="" url="/pages/goods/detail/index?id={{childitem.gid}}" wx:if="{{childitem.ctype==5&&childitem.bargain==0}}">详情</navigator>
<navigator class="buy buybtnbtn buybtn-1" data-buytype="buy" data-id="{{childitem.gid}}" style="" url="/bargain/detail/detail?id={{childitem.bargain}}" wx:if="{{childitem.bargain>0}}">砍价</navigator>
<text bindtap="selectPicker" class="buy buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-home="1" data-id="{{childitem.gid}}" style="color:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-1'&&childitem.ctype!=9&&(childitem.bargain==0||childitem.bargain==null)&&childitem.ctype!=5&&childitem.total>0}}">购买</text>
<text bindtap="selectPicker" class="buy buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-home="1" data-id="{{childitem.gid}}" style="background:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-2'&&childitem.ctype!=9&&(childitem.bargain==0||childitem.bargain==null)&&childitem.ctype!=5&&childitem.total>0}}">购买</text>
<text bindtap="selectPicker" class="buy icox icox-cartfill buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-id="{{childitem.gid}}" style="height:39.5rpx;background:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-3'&&childitem.ctype!=9&&childitem.ctype!=5&&childitem.bargain==0&&childitem.total>0}}"></text>
<text bindtap="selectPicker" class="buy icox icox-gouwuche4 buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-id="{{childitem.gid}}" style="height:39.5rpx;color:{{diyitem.style.buybtncolor}};" wx:if="{{diyitem.style.buystyle=='buybtn-4'&&childitem.ctype!=9&&childitem.ctype!=5&&childitem.bargain==0&&childitem.total>0}}"></text>
<text bindtap="selectPicker" class="buy icox icox-add buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-id="{{childitem.gid}}" style="color:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-5'&&childitem.ctype!=9&&childitem.ctype!=5&&childitem.bargain==0&&childitem.total>0}}"></text>
<text bindtap="selectPicker" class="buy icox icox-add buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-id="{{childitem.gid}}" style="background:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-6'&&childitem.ctype!=9&&childitem.ctype!=5&&childitem.bargain==0&&childitem.total>0}}"></text>
</view>
</view>
</view>
</view>
<view class="fui-goods-swiper-group" style="position: relative;" wx:if="{{diyitem.params.goodsscroll==1}}">
<view bindtap="cutGoods" class="cut retreat" data-id="{{diyitemid}}" data-num="{{diyitem.data_temp.length}}" data-type="retreat">
<i class="icox icox-qianjin-copy-copy"></i>
</view>
<swiper circular="true" class="swiper fui-goods-group {{diyitem.style.liststyle}} {{diyitem.params.showprice=='1'&&(diyitem.params.showproductprice=='1'||diyitem.params.showsales=='1')?'showproduct':''}} {{diyitem.params.showtitle==1?'showtitle':''}} {{diyitem.params.showprice==1?'showprice':''}}" current="{{diyitem.current}}" duration="{{duration}}" interval="{{interval}}" style="background:{{diyitem.style.bgd==0||!diyitem.style.bgd?diyitem.style.background:'transparent'}};" wx:if="{{diyitem.params.goodsscroll==1}}">
<swiper-item nextMargin="10px" wx:for="{{diyitem.data_temp}}" wx:for-index="childid" wx:for-item="childitem" wx:key="childid">
<view class="fui-goods-item" wx:for="{{childitem}}" wx:for-index="childitemid" wx:for-item="childitems" wx:key="childitemid">
<navigator class="image {{diyitem.params.showicon=='1'?diyitem.style.iconstyle:''}}" data-text="{{diyitem.style.goodsicon}}" openType="navigate" style="background-image:url({{diyitem.params.showicon=='2'?diyitem.params.goodsiconsrc:childitems.thumb}})" url="{{childitems.bargain>0?'/bargain/detail/detail?id='+childitems.bargain:'/pages/goods/detail/index?id='+childitems.gid}}">
<view class="goodsicon 66" style="position:relative;width:{{iconwidth}}px;height:{{iconheight}}px" wx:if="{{diyitem.params.showicon=='2'}}">
<image bindload="goodsicon" class="left top" mode="widthFix" src="{{childitem.thumb}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left top'}}"></image>
<image bindload="goodsicon" class="right top" mode="widthFix" src="{{childitem.thumb}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;top:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right top'}}"></image>
<image bindload="goodsicon" class="left bottom" mode="widthFix" src="{{childitem.thumb}}" style="width:{{diyitem.style.iconzoom}}%; left:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='left bottom'}}"></image>
<image bindload="goodsicon" class="right bottom" mode="widthFix" src="{{childitem.thumb}}" style="width:{{diyitem.style.iconzoom}}%; right:{{diyitem.style.iconpaddingleft}}rpx;bottom:{{diyitem.style.iconpaddingtop}}rpx" wx:if="{{diyitem.params.iconposition=='right bottom'}}"></image>
</view>
<image class="salez" src="{{diyitem.params.saleout==0?'/static/images/saleout-2.png':diyitem.params.saleout}}" wx:if="{{diyitem.params.saleout!=-1&&childitems.total==0&&childitems.cansee<=0||diyitem.params.saleout!=-1&&childitems.total==0&&childitems.cansee>0&&childitems.seecommission<=0}}"></image>
<view class="goods-Commission" wx:if="{{childitems.cansee>0&&childitems.seecommission>0}}">{{childitems.seetitle}}¥{{childitems.seecommission}}</view>
</navigator>
<view class="detail">
<navigator class="name" openType="navigate" style="color:{{diyitem.style.titlecolor}};width: {{diyitem.style.liststyle==''?'450rpx':'350rpx'}}" url="{{childitems.bargain>0?'/bargain/detail/detail?id='+childitems.bargain:'/pages/goods/detail/index?id='+childitems.gid}}" wx:if="{{diyitem.params.showtitle=='1'}}">
{{childitems.title}}
</navigator>
<view class="productprice" wx:if="{{diyitem.params.showprice=='1'&&(diyitem.params.showproductprice=='1'||diyitem.params.showsales=='1')}}">
<text style="color:{{diyitem.style.productpricecolor}};margin-right:16rpx" wx:if="{{childitems.productprice>0&&diyitem.params.showproductprice=='1'}}">{{diyitem.params.productpricetext}}<text class="{{diyitem.params.productpriceline=='1'?'line':''}}">¥{{childitems.productprice}}</text>
</text>
<text style="color:{{diyitem.style.salescolor}}" wx:if="{{diyitem.params.showsales=='1'}}">{{diyitem.params.salestext}}: {{childitems.sales}}</text>
</view>
<view class="price" wx:if="{{diyitem.params.showprice=='1'}}">
<text class="text" style="color:{{diyitem.style.pricecolor}}">¥{{childitems.price}}</text>
<text bindtap="selectPicker" class="buy buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-home="1" data-id="{{childitems.gid}}" style="color:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-1'}}">购买</text>
<text bindtap="selectPicker" class="buy buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-home="1" data-id="{{childitems.gid}}" style="background:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-2'}}">购买</text>
<text bindtap="selectPicker" class="buy icox icox-cartfill buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-id="{{childitems.gid}}" style="background:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-3'}}"></text>
<text bindtap="selectPicker" class="buy icox icox-gouwuche4 buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-id="{{childitems.gid}}" style="color:{{diyitem.style.buybtncolor}};" wx:if="{{diyitem.style.buystyle=='buybtn-4'}}"></text>
<text bindtap="selectPicker" class="buy icox icox-add buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-id="{{childitems.gid}}" style="color:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-5'}}"></text>
<text bindtap="selectPicker" class="buy icox icox-add buybtnbtn {{diyitem.style.buystyle}}" data-buytype="buy" data-id="{{childitems.gid}}" style="background:{{diyitem.style.buybtncolor}};border-color:{{diyitem.style.buybtncolor}}" wx:if="{{diyitem.style.buystyle=='buybtn-6'}}"></text>
</view>
</view>
</view>
</swiper-item>
</swiper>
<view bindtap="cutGoods" class="cut advance" data-id="{{diyitemid}}" data-num="{{diyitem.data_temp.length}}" data-type="advance">
<i class="icox icox-qianjin-copy"></i>
</view>
</view>