You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.7 KiB
1 lines
1.7 KiB
<view><view class="{{['product-window',attr.cartAttr===true?'on':'']}}"><view class="textpic acea-row row-between-wrapper"><view class="pictrue"><image class="image" src="{{attr.productSelect.image}}"></image></view><view class="text"><view class="line1">{{attr.productSelect.store_name}}</view><view class="money font-color-red">¥<text class="num">{{attr.productSelect.price}}</text><text class="stock">{{"库存: "+attr.productSelect.stock}}</text></view></view><view data-event-opts="{{[['tap',[['closeAttr',['$event']]]]]}}" class="iconfont icon-guanbi" bindtap="__e"></view></view><view class="productWinList"><block wx:for="{{attr.productAttr}}" wx:for-item="item" wx:for-index="indexw" wx:key="indexw"><view class="item"><view class="title">{{item.attrName}}</view><view class="listn acea-row row-middle"><block wx:for="{{item.attrValue}}" wx:for-item="itemn" wx:for-index="indexn" wx:key="indexn"><view data-event-opts="{{[['tap',[['tapAttr',[indexw,indexn]]]]]}}" class="{{['itemn',item.index==indexn?'on':'']}}" bindtap="__e">{{itemn.attr}}</view></block></view></view></block></view><view class="cart"><view class="title">数量</view><view class="carnum acea-row row-left"><view data-event-opts="{{[['tap',[['CartNumDes',['$event']]]]]}}" class="{{['item reduce',cartNum<=1?'on':'']}}" bindtap="__e">-</view><view class="item num">{{cartNum}}</view><view data-event-opts="{{[['tap',[['CartNumAdd',['$event']]]]]}}" class="{{['item plus',cartNum>=attr.productSelect.stock?'on':'']}}" bindtap="__e">+</view></view></view></view><view class="mask" hidden="{{attr.cartAttr===false}}" data-event-opts="{{[['touchmove',[['',['$event']]]],['tap',[['closeAttr',['$event']]]]]}}" bindtouchmove="__e" bindtap="__e"></view></view> |