cb_ggadd.wxml 3.66 KB
<view>
<nav backgroundColor="#199095" color="#ffffff">添加规格</nav>
<block wx:for="{{gglist}}" wx:for-index='key' wx:for-item='item'>
          <view class="flex-lr height51 bg_white" style="padding:0 45rpx;box-sizing:border-box;">
              <view class="item-title font38r black-font" style="width:40%;">{{item.name}}</view>
              <block wx:if="{{item.status==1}}">
                 <switch data-name="{{item.name}}" data-id="{{item.id}}" bindchange="switch1Change" checked color="#199095"/>
              </block>
              <block wx:else>
                 <switch bindchange="switch2Change" data-name="{{item.name}}" data-id="{{item.id}}"/>
              </block>
          </view>

          <view data-id="{{item.id}}" data-sub="{{key}}" style="padding:0 30rpx;box-sizing:border-box;" class="bg_white">
              <view class="flex-lr height120r" bindtap="focusonName" style="padding:0 15rpx;box-sizing:border-box;overflow:hidden;">
                  <view class="item-title font38r smooth" style="width:200rpx;color:{{item.status==0 ? '#999' : '#353535'}};">售价</view>
                  <view class="flex-rr" style="width:490rpx;">
                    <block wx:if="{{item.status==1}}">
                        <input class="t-align-r font38r smooth" data-id="{{item.id}}" data-sub="{{key}}" data-name="{{item.name}}" type="digit" bindinput="priceModalInput" name="price" value="{{item.price}}" placeholder="点这里,输入价格" placeholder-style="color:#999;" placeholder-class="smooth font36r" style="width:420rpx;min-height:40rpx;" bindblur="condition"/>
                        <view class="black-font font38r smooth" style="margin-left:6rpx;">元</view>
                    </block>
                    <block wx:else>
                        <input class="t-align-r font38r smooth" data-id="{{item.id}}" data-sub="{{key}}" data-name="{{item.name}}" type="digit" bindinput="priceModalInput" name="price" value="" placeholder="" placeholder-style="color:#999;" placeholder-class="smooth font36r" style="width:420rpx;min-height:40rpx;" disabled="true"/>
                    </block>
                  </view>
              </view>
              <view class="flex-lr height120r" bindtap="focusonName" style="padding:0 15rpx;box-sizing:border-box;overflow:hidden;">
                  <view class="item-title font38r smooth" style="width:200rpx;color:{{item.status==0 ? '#999' : '#353535'}};">折扣价</view>
                  <view class="flex-rr" style="width:490rpx;min-height:40rpx;">
                    <block wx:if="{{item.status==1}}">
                        <input class="t-align-r font38r mooth" data-sub="{{key}}" data-id="{{item.id}}" data-name="{{item.name}}" type="digit" name="member_price"  bindinput="memberpriceModalInput" value="{{item.member_price}}" placeholder="点这里,输入折扣价" placeholder-style="color:#999;" placeholder-class="smooth font36r" style="width:420rpx;min-height:40rpx;"/>
                        <view class="black-font font38r smooth" style="margin-left:6rpx;">元</view>
                    </block>
                    <block wx:else>
                        <input class="t-align-r font38r mooth" data-sub="{{key}}" data-id="{{item.id}}" data-name="{{item.name}}" type="digit" name="member_price"  bindinput="memberpriceModalInput" value="" placeholder="" placeholder-style="color:#999;" placeholder-class="smooth font36r" disabled="true" style="width:420rpx;min-height:40rpx;" bindblur="condition"/>
                    </block>
                  </view>
              </view>
          </view>
          <view class="cut"></view>

</block>
<view style="margin-bottom:225rpx;"></view>
</view>


<netWork bind:netchange="netchange" id="network"></netWork>