|
|
@@ -153,13 +153,15 @@
|
|
|
<image class="dialog-cancel" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/cancel.png" bindtap="toPay"></image>
|
|
|
<view class="dialog-content">
|
|
|
<image class="dialog-img" src="{{project.pics[0].img}}"></image>
|
|
|
- <view class="dialog-info">
|
|
|
- <view class="dialog-word dialog-red">
|
|
|
+
|
|
|
+ <view class="dialog-info" style="margin-top: 20rpx;">
|
|
|
+ <h6 style="font-size: 35rpx;font-weight: bold;color: #666;">{{project.name}}</h6>
|
|
|
+ <view class="dialog-word dialog-black" style="margin-top: 15rpx;color: #999;">库存{{project.left_count}}件 <text wx:if="{{project.have_size && (sname || cname)}}">(已选:{{cname}} {{sname}})</text></view>
|
|
|
+ <view class="dialog-word dialog-red" style="font-size: 35rpx;margin-top: 25rpx;">
|
|
|
<!-- {{project.price}}代金券 -->
|
|
|
<currency symbol="¥" value="{{project.price}}"></currency>
|
|
|
</view>
|
|
|
<!-- <view class="dialog-word dialog-gray">或{{project.price}}代金券</view> -->
|
|
|
- <view class="dialog-word dialog-black">库存{{project.left_count}}件</view>
|
|
|
</view>
|
|
|
<view class="clean"></view>
|
|
|
</view>
|
|
|
@@ -176,20 +178,22 @@
|
|
|
|
|
|
<view wx:if="{{project.have_size}}" class="select-count">
|
|
|
<view wx:for="{{productSize}}" wx:for-item="i" wx:key="{{index}}">
|
|
|
- <h5 class="sizeTitle">{{i.name}}</h5>
|
|
|
- <view wx:for="{{i.attr_values}}" wx:for-index="index2" wx:for-item="j" class="checkList">
|
|
|
- <span bindtap="checkSize" data-type='{{index}}' data-list="{{index2}}" data-id="{{j.id}}" class="{{j.is_select?'active':''}}">
|
|
|
- {{j.name}}
|
|
|
- </span>
|
|
|
+ <view wx:if="{{index != 'product'}}">
|
|
|
+ <h5 class="sizeTitle">{{i.name}}</h5>
|
|
|
+ <view wx:for="{{i.attr_values}}" wx:for-index="index2" wx:for-item="j" class="checkList">
|
|
|
+ <span bindtap="checkSize" data-type='{{index}}' data-tname="{{j.name}}" data-list="{{index2}}" data-id="{{j.id}}" class="{{j.is_select?'active':''}}">
|
|
|
+ {{j.name}}
|
|
|
+ </span>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<form bindsubmit="pay" report-submit="{{true}}" >
|
|
|
- <button class="dialog-btn" formType="submit" wx:if="{{showpay}}" disabled="{{!canpay?'true':''}}">立即购买</button>
|
|
|
+ <button class="dialog-btn" formType="submit" wx:if="{{showpay}}" disabled="{{!canpay?'true':''}}"><text wx:if="{{!noproduct}}">立即购买</text><text wx:if="{{noproduct}}">暂无库存</text></button>
|
|
|
</form>
|
|
|
- <button class="dialog-btn" open-type="share" wx:if="{{!showpay}}">立即购买</button>
|
|
|
+ <button class="dialog-btn" open-type="share" wx:if="{{!showpay}}"><text wx:if="{{!noproduct}}">立即购买</text><text wx:if="{{noproduct}}">暂无库存</text></button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="detail-dialog" bindtap="toPay"></view>
|
|
|
@@ -201,13 +205,14 @@
|
|
|
<image class="dialog-cancel" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/cancel.png" bindtap="toCart"></image>
|
|
|
<view class="dialog-content">
|
|
|
<image class="dialog-img" src="{{project.pics[0].img}}"></image>
|
|
|
- <view class="dialog-info">
|
|
|
- <view class="dialog-word dialog-red">
|
|
|
+ <view class="dialog-info" style="margin-top: 20rpx;">
|
|
|
+ <h6 style="font-size: 35rpx;font-weight: bold;color: #666;">{{project.name}}</h6>
|
|
|
+ <view class="dialog-word dialog-black" style="margin-top: 15rpx;color: #999;">库存{{project.left_count}}件 <text wx:if="{{project.have_size && (sname || cname)}}">(已选:{{cname}} {{sname}})</text></view>
|
|
|
+ <view class="dialog-word dialog-red" style="font-size: 35rpx;margin-top: 25rpx;">
|
|
|
<!-- {{project.price}}代金券 -->
|
|
|
<currency symbol="¥" value="{{project.price}}"></currency>
|
|
|
</view>
|
|
|
<!-- <view class="dialog-word dialog-gray">或{{project.price}}代金券</view> -->
|
|
|
- <view class="dialog-word dialog-black">库存{{project.left_count}}件</view>
|
|
|
</view>
|
|
|
<view class="clean"></view>
|
|
|
</view>
|
|
|
@@ -224,16 +229,18 @@
|
|
|
|
|
|
<view wx:if="{{project.have_size}}" class="select-count">
|
|
|
<view wx:for="{{productSize}}" wx:for-item="i" wx:key="{{index}}">
|
|
|
- <h5 class="sizeTitle">{{i.name}}</h5>
|
|
|
- <view wx:for="{{i.attr_values}}" wx:for-index="index2" wx:for-item="j" class="checkList">
|
|
|
- <span bindtap="checkSize" data-type='{{index}}' data-list="{{index2}}" data-id="{{j.id}}" class="{{j.is_select?'active':''}}">
|
|
|
- {{j.name}}
|
|
|
- </span>
|
|
|
- </view>
|
|
|
+ <view wx:if="{{index != 'product'}}">
|
|
|
+ <h5 class="sizeTitle">{{i.name}}</h5>
|
|
|
+ <view wx:for="{{i.attr_values}}" wx:for-index="index2" wx:for-item="j" class="checkList">
|
|
|
+ <span bindtap="checkSize" data-type='{{index}}' data-tname="{{j.name}}" data-list="{{index2}}" data-id="{{j.id}}" class="{{j.is_select?'active':''}}">
|
|
|
+ {{j.name}}
|
|
|
+ </span>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <button class="detail-yellow" bindtap="addCart" style="width:100%" disabled="{{!canpay?'true':''}}">加入购物车</button>
|
|
|
+ <button class="detail-yellow" bindtap="addCart" style="width:100%" disabled="{{!canpay?'true':''}}"><text wx:if="{{!noproduct}}">加入购物车</text><text wx:if="{{noproduct}}">暂无库存</text></button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="detail-dialog" bindtap="toCart"></view>
|