You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.8 KiB
Plaintext

9 months ago
<view wx:if='{{isSpec}}' class='cy-mask-spec content-center'>
<view class='cy-mask' bindtap='cy_hide' catchtouchmove='true'></view>
<view class='cy-spec-back'>
<view class='cy-spec-header-view'>
<view class='cy-spec-header'>
<text>{{shopName}}</text>
<text bindtap='cy_hide' class='iconfont icon-guanbi cy-close'></text>
</view>
</view>
<view class='cy-spec-list'>
<view wx:if="{{spec}}" class='cy-spec-item'>
<view class='cy-spec-list-title'> 规格 </view>
<view class='cy-spec-content'>
<view bindtap='{{item.stock>0?"cy_changeSpec":"cy_changeSpecSellOut"}}' data-index='{{index}}' wx:for="{{specList}}" wx:key="spec" class='cy-spec-label cy-left-float {{item.checked ? "cy-bg cy-global-bg-color":""}} {{item.stock<=0 ? "cy_sellOut":"" }} '>{{item.specName}}
<view class="cy-new-product" wx:if="{{item.discountRule}}">促销</view>
</view>
</view>
<view style='width:100%; height:20rpx;'></view>
</view>
<block wx:for="{{makeList}}" wx:key="make" wx:for-index="inx">
<view class='cy-spec-item'>
<view class='cy-spec-list-title'>{{item.typeName}}</view>
<view class='cy-spec-content'>
<view bindtap='cy_changeMake' data-x='{{inx}}' data-y='{{index}}' wx:for="{{item.list}}" wx:key="detail" class='cy-spec-label cy-left-float content-center {{item.checked ? "cy-bg cy-global-bg-color":""}}'>{{item.showName}}</view>
</view>
<view style='width:100%; height:20rpx;'></view>
</view>
</block>
</view>
<view class='cy-spec-bottom-view flex-display'>
<view class='cy-spec-bottom-left-view'>
<view class='cy-spec-bottom-price'>
<text style='font-size:28rpx;'>¥</text>
<block wx:if="{{promotionPrice>0}}">
<text style='margin-left:3rpx;'>{{promotionPrice}}</text>
<text class="cy-product-originalPrice">{{specPrice}} </text>
</block>
<block wx:else>
<text style='margin-left:3rpx;'>{{specPrice}} </text>
</block>
</view>
<view class='cy-spec-text cy-ellipsis'> {{showSpec}}</view>
</view>
<view class="cy-spec-bottom-add">
<image wx:if="{{productCount>0}}" src='../../images/icon-sub.png' class='cy-product-sym cy-other' bindtap='cy_subSpecItem' />
<view wx:if="{{productCount>0}}" class='cy-product-count content-center' style="color:#333;">{{productCount}}</view>
<view class='cy-product-sym content-center cy-other' style='background: {{color}};' bindtap='cy_addSpecItem'>
<view class="mykd"></view>
</view>
</view>
<block>
<view class='cy-footer-add content-center cy-global-bg-color' bindtap='cy_addCart'>
<view class='cy-footer-icon'>确定</view>
</view>
</block>
</view>
</view>
</view>