app-commodity.wxml 3.4 KB

1
  1. <view data-event-opts="{{[['tap',[['customNum',['$0'],['info.variety']]]]]}}" class="item-cmd_bx data-v-3b6ee9e3" bindtap="__e"><view data-event-opts="{{[['tap',[['showBigImg',['$event']]]]]}}" class="img_bx data-v-3b6ee9e3" style="background:#eeeeee;" catchtap="__e"><block wx:if="{{isImg}}"><image src="{{info.cover}}" class="data-v-3b6ee9e3"></image></block></view><view class="cmd-info_bx data-v-3b6ee9e3"><view class="tit data-v-3b6ee9e3">{{info.itemName||""}}</view><block wx:if="{{type==COMMODITY_TYPE.COMMON}}"><view class="kc num-open_bx flex-space data-v-3b6ee9e3"><block wx:if="{{!offPrice}}"><view class="data-v-3b6ee9e3"><block wx:if="{{$root.m0>0}}"><view class="flex-space data-v-3b6ee9e3" style="margin-top:8rpx;"><view style="padding:2rpx 10rpx 5rpx 10rpx;text-align:center;color:red;border:1px solid red;margin-right:20rpx;line-height:1;font-size:20rpx;" class="data-v-3b6ee9e3">{{''+($root.g0+'折')+''}}</view><text style="text-decoration:line-through;color:#A9A9A9;" class="data-v-3b6ee9e3">{{"¥"+info.prePrice}}</text></view></block><block wx:if="{{discount<1&&discount>0}}"><view class="data-v-3b6ee9e3"><block wx:if="{{$root.m1>0}}"><text class="data-v-3b6ee9e3">{{"到手价 "+$root.m2}}</text></block><block wx:else><text class="data-v-3b6ee9e3">{{"到手价 "+$root.m3}}</text></block></view></block><block wx:if="{{$root.m4>0}}"><view class="price data-v-3b6ee9e3">{{"¥"+info.discountPrice}}</view></block><block wx:else><view class="price data-v-3b6ee9e3">{{"¥"+info.price}}</view></block></view></block><block wx:else><view class="price data-v-3b6ee9e3"></view></block><view style="text-align:right;" class="data-v-3b6ee9e3"><view class="open-bx data-v-3b6ee9e3"><block wx:if="{{bigCount>0||smallCount>0}}"><view data-event-opts="{{[['tap',[['delEvent',['$0'],['info.variety']]]]]}}" class="{{['iconfont iconjian _i data-v-3b6ee9e3',delAnimationData?'animation':'']}}" catchtap="__e"></view></block><text class="num data-v-3b6ee9e3"><block wx:if="{{bigCount>0||smallCount>0}}"><text class="data-v-3b6ee9e3">{{''+bigCount}}</text></block><block wx:if="{{smallCount>0}}"><text class="data-v-3b6ee9e3">/</text></block><block wx:if="{{smallCount>0}}"><text class="data-v-3b6ee9e3">{{''+smallCount}}</text></block></text><view data-event-opts="{{[['tap',[['addEvents',['$0'],['info.variety']]]]]}}" class="{{['iconfont iconzeng _i data-v-3b6ee9e3',addAnimationData?'animation':'']}}" catchtap="__e"></view></view></view></view></block><block wx:if="{{type==COMMODITY_TYPE.CHANGE}}"><view class="num-open_bx flex-space data-v-3b6ee9e3"><block wx:if="{{!offPrice}}"><view class="price data-v-3b6ee9e3">{{"¥"+showPrice}}</view></block><block wx:else><view class="price data-v-3b6ee9e3"></view></block><view class="open-bx data-v-3b6ee9e3" style="padding-bottom:40rpx;"><all-select-input vue-id="a60a7166-1" inputType="digit" isActive="{{isAloneAllActive}}" isFocus="{{isAloneAllFocus}}" value="{{changeAutoPrice}}" placeholder="自动调价" data-event-opts="{{[['^deleteInputVal',[['deleteInputVal']]],['^initAllInput',[['initAloneAllInput']]],['^moveAllInput',[['moveAllInput']]]]}}" bind:deleteInputVal="__e" bind:initAllInput="__e" bind:moveAllInput="__e" class="data-v-3b6ee9e3" bind:__l="__l"></all-select-input><view class="{{['_i data-v-3b6ee9e3',isShowSucceed?'position iconfont iconjihuo':'position']}}"></view><view data-event-opts="{{[['tap',[['changePriceEvent',['$event']]]]]}}" class="btn-box data-v-3b6ee9e3" bindtap="__e">确定</view></view></view></block></view></view>