70 lines
3.3 KiB
Plaintext
70 lines
3.3 KiB
Plaintext
<!-- 规格start -->
|
|
<van-popup show="{{popupSpecs1}}" position="bottom" bind:close="popupSpecsbtn">
|
|
<view class="shadeMode {{popupSpecs1?'shadeModeShow':''}}">
|
|
<view class="specifications">
|
|
<view class="icon_close" bindtap="popupSpecsbtn">
|
|
<view class="guanbi_icon">
|
|
<van-icon name="close" size='40rpx' />
|
|
</view>
|
|
</view>
|
|
<view class="shopimg">
|
|
<view class="chooser_img" bindtap="showSkuImages_Methob">
|
|
<image src="{{popThumb == null || popThumb == '' || popThumb == undefined?goodsInfo.thumb:popThumb}}" />
|
|
</view>
|
|
<view class="right">
|
|
<view class="price ">
|
|
{{language['money']}}
|
|
<text id="option_price">{{popPrice}}</text>
|
|
<text wx:if="{{isRent}}">/天</text>
|
|
</view>
|
|
<view class="option">库存{{popStock}}{{goodsInfo.sku}}</view>
|
|
<view class="option">{{goodsDescription}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="shopinfoContent">
|
|
<view class="shopinfo" wx:key="{{specsIdex}}" wx:for="{{goodsInfo.has_many_specs}}" wx:for-index="specsIdex" wx:for-item="specs">
|
|
<view class="dl">
|
|
<view class="dt">{{specs.title}}</view>
|
|
<view class="dd" data-descr="{{specs.description}}">
|
|
<view wx:for="{{specs.specitem}}" wx:key="{{specitemIdex}}" wx:for-index="specitemIdex" wx:for-item="specitem" class="spec {{specs.description==specitem.id?'sele ':''}} {{specitem.c?'disab':''}}" data-specitem="{{specitem}}" data-specsidex="{{specsIdex}}" bindtap='selectSpecs'>
|
|
{{specitem.title}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="goodsnum">
|
|
<view class="num">购买数量:</view>
|
|
<view class="calculation">
|
|
<view class="leftnav" bindtap='reduceGoods'>-</view>
|
|
<input type="number" class="shownum" value="{{goodsCount}}" bindinput="inputGoodsNum" />
|
|
<view class="rightnav" bindtap='addGoods'>+</view>
|
|
</view>
|
|
</view>
|
|
<view class="subbtn " bindtap="submitAction" wx:if="{{popStock>=1}}">确认</view>
|
|
<view class="subbtn" style="background-color:#999999;" wx:else>确认</view>
|
|
</view>
|
|
</view>
|
|
<view class="popupMode {{popupModeshow?'popupModeShow':''}}" hidden="{{popupModeshow}}"></view>
|
|
</van-popup>
|
|
<!-- 规格end -->
|
|
|
|
<!--图片弹窗-->
|
|
<van-popup show="{{showSkuImages}}" close-on-click-overlay="{{true}}" overlay="{{true}}" custom-style="overflow:auto;background:rgba(0,0,0,0);" bind:click-overlay="onCloseSkuImages">
|
|
<view class="sku_swiper">
|
|
<swiper style="height:760rpx;" bindchange="onChangeSkuImagesIndex" current="{{activeSkuIndex}}">
|
|
<block wx:for="{{skuImages}}" wx:key="*this">
|
|
<swiper-item class="sku_swiper_child">
|
|
<image src="{{item}}" mode='widthFix' />
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
</view>
|
|
<view class="sku_other">
|
|
<view class="sku_title" wx:if="{{goodsInfo.has_option == 1}}">{{language['money']}}{{goodsInfo.has_many_options[activeSkuIndex].product_price}}</view>
|
|
<view class="sku_title" wx:if="{{goodsInfo.has_option != 1}}">{{language['money']}}{{goodsInfo.price}}</view>
|
|
<view class="swiper_num">{{activeSkuIndex+1}}/{{skuImages.length}}</view>
|
|
</view>
|
|
</van-popup>
|
|
<!--图片弹窗end-->
|