leave-unused/unpackage/dist/dev/mp-weixin/components/goods-list/goods-list.wxml

1 line
1.2 KiB
Plaintext

<view class="goods-list flex data-v-108270a4"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['goodsList','',index,'id']]]]]]]}}" class="item background-white radius20 mar-s20 data-v-108270a4" bindtap="__e"><view class="cover radius20 data-v-108270a4"><image class="img data-v-108270a4" src="{{item.$orig.cover}}" mode="widthFix"></image><block wx:if="{{isOperate}}"><view data-event-opts="{{[['tap',[['changeStateEv',['$0',index],[[['goodsList','',index,'id']]]]]]]}}" class="{{['hide-btn','font24','color-ff','radius20','flex','data-v-108270a4',item.$orig.status==1?'background-8c':'background-blue']}}" catchtap="__e">{{item.$orig.status==1?'已下架':'已上架'}}</view></block></view><text class="name font28 clips1 data-v-108270a4">{{item.$orig.name}}</text><view class="price flex data-v-108270a4"><block wx:if="{{item.m0>0}}"><text class="text color-8c font24 data-v-108270a4" style="text-decoration:line-through;margin-right:6rpx;">{{"¥"+item.$orig.original_price}}</text></block><text class="text color-red font28 data-v-108270a4">{{"¥"+item.$orig.price}}</text></view></view></block></view>