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

1 line
1.0 KiB
Plaintext
Raw Normal View History

<view class="goods-list flex data-v-108270a4"><block wx:for="{{goodsList}}" 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 src="{{item.cover}}" mode="widthFix" class="data-v-108270a4"></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.state==0?'background-8c':'background-blue']}}" catchtap="__e">{{item.state==0?'已隐藏':'已展示'}}</view></block></view><text class="name font28 clips1 data-v-108270a4">{{item.name}}</text><view class="price flex data-v-108270a4"><text class="color-8c font24 data-v-108270a4">{{"¥"+item.original_price}}</text><text class="color-red font28 data-v-108270a4">{{"¥"+item.price}}</text></view></view></block></view>