tm-cartCellListFood.wxml 5.2 KB

1
  1. <view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{['tm-cartCellListFood','px-20','py-32','flex-top-start',bgColor,black_tmeme?'grey-darken-4':'',black_tmeme?'bk':'',border==='top'?'border-t-1':'',border==='bottom'?'border-b-1':'']}}" catchtap="__e"><block wx:if="{{mdata[keyMap['img']]}}"><view class="tm-cartCellListFood-img" style="{{'width:'+(imgWidth+'rpx')+';'+('height:'+(imgWidth+'rpx')+';')}}"><image style="width:90px;height:90px;" round="{{3}}" src="{{mdata[keyMap['img']]}}" data-event-opts="{{[['tap',[['quxq',['$0'],['mdata']]]]]}}" bindtap="__e"></image></view></block><view class="tm-cartCellListFood-r fulled "><view class="pl-15"><view class="{{['title','','text-size-s','text-weight-b','text-overflow-2',black_tmeme?'bk':'']}}" style="line-height:32rpx;">{{''+mdata[keyMap['title']]+''}}<block wx:if="{{typeclick==4}}"><image class="shanchu" src="/static/img/94.png" data-event-opts="{{[['tap',[['shanchu',['$0'],['mdata']]]]]}}" bindtap="__e"></image></block></view><view style="min-height:64rpx;"><block wx:if="{{!dense&&mdata[keyMap['label']]}}"><view class="tm-cartCellListFood-label text-size-s text-grey py-8">{{mdata[keyMap['label']]}}</view></block><block wx:if="{{!dense&&mdata[keyMap['label']]}}"><view class="tm-cartCellListFood-label text-size-s text-grey py-8 text-red">{{mdata[keyMap['size']]+''}}</view></block><block wx:if="{{mdata[keyMap['saleLabel']]&&!dense}}"><view class="tm-cartCellListFood-sale text-size-s text-grey"><block wx:for="{{mdata[keyMap['saleLabel']]}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{index<4}}"><tm-tags vue-id="{{'0b884bb3-1-'+index}}" black="{{black_tmeme}}" color="{{color}}" size="xs" bind:__l="__l" vue-slots="{{['default']}}">{{item}}</tm-tags></block></block></block></view></block></view><view class="tm-cartCellListFood-price flex-between"><view><block wx:if="{{typeclick!=7&&typeclick!=6&&typeclick!=8}}"><text class="text-size-xs text-red">¥</text></block><block wx:if="{{typeclick!=7&&typeclick!=6&&typeclick!=8}}"><text class="text-size-n text-red text-weight-b px-5">{{mdata[keyMap['price']]}}</text></block><block wx:if="{{mdata[keyMap['unit']]}}"><text class="text-size-xs text-grey pr-10">{{"/"+mdata[keyMap['unit']]}}</text></block><block wx:if="{{mdata[keyMap['salePrice']]}}"><text class="text-delete text-size-xxs text-grey">{{"¥"+mdata[keyMap['salePrice']]}}</text></block></view><block wx:if="{{typeclick==1}}"><view data-event-opts="{{[['tap',[['jiaru',['$0'],['mdata']]]]]}}" class="flex jiarugouwuche" catchtap="__e"><image src="/static/img/86.png"></image></view></block><block wx:if="{{typeclick==2}}"><view class="flex"><block wx:if="{{cNum>0}}"><block><view data-event-opts="{{[['tap',[['jian',['$0'],['mdata']]]]]}}" class="{{['tm-cartCellListFood-actions','rounded','','flex-center','outlined',color,black_tmeme?'bk':'']}}" style="{{'width:'+(actionSize+'rpx')+';'+('height:'+(actionSize+'rpx')+';')}}" bindtap="__e"><text class="iconfont icon-minus text-size-xxs"></text></view><view class="{{['px-12','text-size-n','',black_tmeme?'bk':'']}}">{{cNum}}</view></block></block><view data-event-opts="{{[['tap',[['jia',['$event']]]]]}}" class="{{['tm-cartCellListFood-actions','rounded','','flex-center','',color,'border-'+color+'-a-1',black_tmeme?'bk':'']}}" style="{{'width:'+(actionSize+'rpx')+';'+('height:'+(actionSize+'rpx')+';')}}" bindtap="__e"><text class="iconfont icon-plus text-size-xs"></text></view></view></block><block wx:if="{{typeclick==3}}"><view data-event-opts="{{[['tap',[['jiaru',['$0'],['mdata']]]]]}}" class="flex" bindtap="__e"><view class="qiangwang">前往商城购买</view></view></block><block wx:if="{{typeclick==4}}"><view class="flex"><block wx:if="{{mdata[keyMap['orderStatus']]==0}}"><view><view data-event-opts="{{[['tap',[['goPay',['$0',0],['mdata']]]]]}}" class="fukuan" bindtap="__e">去付款</view></view></block><block wx:if="{{mdata[keyMap['orderStatus']]==1||mdata[keyMap['orderStatus']]==2}}"><view class="flex"><view data-event-opts="{{[['tap',[['goBuy',['$0',1],['mdata']]]]]}}" class="fukuan mr-10" bindtap="__e">再次购买</view><block wx:if="{{mdata[keyMap['orderStatus']]==1}}"><view data-event-opts="{{[['tap',[['goSure',['$0',1],['mdata']]]]]}}" class="fukuan" bindtap="__e">确认收货</view></block><block wx:if="{{mdata[keyMap['orderStatus']]==2&&mdata[keyMap['isEval']]==0}}"><view data-event-opts="{{[['tap',[['goEval',['$0',2],['mdata']]]]]}}" class="fukuan" bindtap="__e">去评价</view></block></view></block></view></block><block wx:if="{{typeclick==5}}"><view style="position:absolute;right:20px;"><view class="genghuan mr-10">出库</view></view></block><block wx:if="{{typeclick==6}}"><view style="position:absolute;right:20px;"><view data-event-opts="{{[['tap',[['genghuan',['$0',1],['mdata']]]]]}}" class="genghuan mr-10" bindtap="__e">更换</view><view data-event-opts="{{[['tap',[['genghuan',['$0',2],['mdata']]]]]}}" class="genghuan" bindtap="__e">出库</view></view></block><block wx:if="{{typeclick==7}}"><view style="position:absolute;right:20px;"><view data-event-opts="{{[['tap',[['genghuan',['$0',1],['mdata']]]]]}}" class="genghuan mr-10" bindtap="__e">更换</view></view></block><block wx:if="{{typeclick==8}}"><view style="position:absolute;right:20px;"></view></block></view></view></view></view>