replace-manage.wxml 5.2 KB

1
  1. <view class="replace data-v-6267c106"><view hidden="{{!(showHint)}}" class="hint flexB data-v-6267c106"><view class="data-v-6267c106"><text class="store_icon icongonggao data-v-6267c106"></text><text class="data-v-6267c106">选择完尺码之后,可选择数量</text></view><text data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="store_icon iconguanbi2 data-v-6267c106" bindtap="__e"></text></view><block wx:if="{{hasOrder==1}}"><view class="user_info data-v-6267c106"><text class="data-v-6267c106">客户:</text><block wx:if="{{userInfo.nickname!=userInfo.phone&&userInfo.nickname}}"><text class="data-v-6267c106">{{$root.f0}}</text></block><text style="margin-left:15rpx;" class="data-v-6267c106">{{userInfo.phone}}</text></view></block><block wx:else><view class="new_user_info flexB data-v-6267c106"><view class="user_con data-v-6267c106"><view class="data-v-6267c106"><text class="data-v-6267c106">{{"客户:"+$root.f1}}</text><block wx:if="{{newVip==1}}"><image class="vip_icon data-v-6267c106" src="../../static/imgs/shop/vip.png"></image></block></view><view class="data-v-6267c106">{{"手机号:"+userInfo.phone}}</view></view><view data-event-opts="{{[['tap',[['setVip',['$0'],['isVip']]]]]}}" class="{{['vip_btn','flexCC','data-v-6267c106',newVip==0?'cancel_vip_btn':'set_vip_btn']}}" bindtap="__e">{{''+(newVip==0?'升级VIP':'取消VIP')+''}}</view></view></block><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="goodsIdx" wx:key="goodsIdx"><view class="goods_box data-v-6267c106"><view class="goods flexS data-v-6267c106"><image class="goods_img data-v-6267c106" src="{{item.$orig.img}}"></image><view class="goods_info data-v-6267c106"><view style="font-size:32rpx;font-weight:bold;" class="data-v-6267c106">{{item.$orig.name}}</view><view class="price_box data-v-6267c106"><block wx:if="{{isVip==1}}"><view class="goods_price flexS data-v-6267c106"><view class="flexS data-v-6267c106"><view class="vip_ident data-v-6267c106">VIP</view><text class="big_price data-v-6267c106"><text class="data-v-6267c106">¥</text><text class="data-v-6267c106">{{item.$orig.vip_price}}</text></text></view><view class="draw_off data-v-6267c106"><text class="data-v-6267c106">(</text><text class="old_price data-v-6267c106"><text class="symbol data-v-6267c106">¥</text><text class="data-v-6267c106">{{item.$orig.price}}</text></text><text class="data-v-6267c106">)</text></view></view></block><block wx:else><view class="goods_price flexS data-v-6267c106"><view class="big_price data-v-6267c106"><text class="data-v-6267c106">¥</text><text class="data-v-6267c106">{{item.$orig.price}}</text></view><view class="save_box data-v-6267c106">{{"VIP可省"+item.m0}}</view></view></block></view></view></view><view class="size data-v-6267c106"><block wx:for="{{item.$orig.size}}" wx:for-item="val" wx:for-index="key" wx:key="key"><view class="data-v-6267c106"><view class="size_con data-v-6267c106"><view class="type data-v-6267c106">{{key+":"}}</view><view class="size_box flexS data-v-6267c106"><block wx:for="{{val}}" wx:for-item="temp" wx:for-index="sizeIdx" wx:key="sizeIdx"><view data-event-opts="{{[['tap',[['showSize',['$0',goodsIdx,key,sizeIdx],[[['skuList','',goodsIdx],['size','',key],['','',sizeIdx]]]]]]]}}" class="{{['data-v-6267c106',temp.isChecked?'checked':'']}}" bindtap="__e">{{''+temp.size+''}}</view></block></view></view></view></block></view><block wx:if="{{item.$orig.sku}}"><view class="data-v-6267c106"><block wx:for="{{item.$orig.sku}}" wx:for-item="alone" wx:for-index="skuIdx" wx:key="skuIdx"><view class="num flexB data-v-6267c106"><view class="box data-v-6267c106">{{alone.type}}</view><view class="box data-v-6267c106">{{alone.size}}</view><view class="count flexS data-v-6267c106"><view data-event-opts="{{[['tap',[['down',[goodsIdx,skuIdx,'$0'],[[['skuList','',goodsIdx],['sku','',skuIdx,'new_num']]]]]]]}}" class="flexC data-v-6267c106" bindtap="__e">-</view><input type="number" maxlength="3" data-event-opts="{{[['input',[['getVal',['$event',goodsIdx,skuIdx,'$0'],[[['skuList','',goodsIdx],['sku','',skuIdx,'num']]]]]]]}}" value="{{alone.new_num}}" bindinput="__e" class="data-v-6267c106"/><view data-event-opts="{{[['tap',[['up',[goodsIdx,skuIdx,'$0','$1'],[[['skuList','',goodsIdx],['sku','',skuIdx,'new_num']],[['skuList','',goodsIdx],['sku','',skuIdx,'num']]]]]]]}}" class="flexC data-v-6267c106" bindtap="__e">+</view></view><text data-event-opts="{{[['tap',[['delSku',[goodsIdx,skuIdx,'$0'],[[['skuList','',goodsIdx],['sku','',skuIdx]]]]]]]}}" class="iconfont iconicon_huabanfuben data-v-6267c106" bindtap="__e"></text></view></block></view></block></view></block><view class="fixed_box data-v-6267c106"><view class="all flexS data-v-6267c106"><text class="gray data-v-6267c106">{{"共"+totalNum+"套,"}}</text><text class="data-v-6267c106">合计:</text><text class="big_price data-v-6267c106"><text class="data-v-6267c106">¥</text><text class="data-v-6267c106">{{isVip==1?vipPrice:totalPrice}}</text></text><block wx:if="{{isVip==1}}"><view class="one_year data-v-6267c106" style="margin-left:15rpx;">{{"已省"+(totalPrice-vipPrice)}}</view></block></view><view data-event-opts="{{[['tap',[['placeOrder',['$event']]]]]}}" class="btn_con flexC data-v-6267c106" bindtap="__e">立即下单</view></view></view>