cb_wayadd.wxml 2.32 KB
<view>
	<nav backgroundColor="#199095" color="#ffffff">添加做法</nav>
    <form bindsubmit="formSubmit">
        <block wx:for="{{waylist}}" wx:for-index='key' wx:for-item='item'>
                  <view class="flex-lr common height120r">
                      <view class="item-title font36r smooth" style="width:40%">{{item.name}}</view>
                      <block wx:if="{{item.status==true}}">
                         <switch checked data-id="{{item.id}}" data-name="{{item.name}}" bindchange="switch1Change" color="#199095"/>
                      </block>
                      <block wx:else>
                         <switch  data-id="{{item.id}}" data-name="{{item.name}}"  bindchange="switch2Change" color="#199095"/>
                      </block>
                  </view>
                  <view class="cut"></view>
        </block>
    </form>

    <view class="addcook font36r" bindtap="addWayName"  style="padding-top:60rpx;margin-bottom:225rpx;">
        <view style="color:#199095;">+添加做法</view>
    </view>
</view>

<!-- 添加做法弹出框 -->
<view class="modal-mask" hidden="{{atn_ishidden}}"></view>
<view class="modal-dialog" hidden="{{atn_ishidden}}">
  <view class="modal-dialog-title flex-cc font34r black-font">添加做法</view>
  <input type="text" bindinput="modalInput" cursor-spacing="100" name="" maxlength="15" placeholder="输入菜品做法" value="{{inputvalue}}" class="modal-dialog-input font30r black-font" placeholder-style="color:#999;font-size:32rpx;text-align:center;" focus="{{auto_focus}}"
  />
  <view class="modal-dialog-button flex-lr">
    <view class="modal-button modal-cancel flex-cc font36r black" bindtap="cancelModel">取消</view>
    <view class="modal-button modal-confirm flex-cc font36r" bindtap="confirmModel">确定</view>
  </view>
</view>


<!-- 提示弹出框 -->
<view class="modal-mask" hidden="{{dtn_ishidden}}"></view>
<view class="modal-dialog modal-dialog-reminder" hidden="{{dtn_ishidden}}">
    <view class="modal-dialog-title flex-cc font36r black">提示信息</view>
    <view class="modal-reminder-title font32r">{{reminderInfo}}</view>
    <view class="modal-dialog-button flex-lr">
        <view class="modal-button modal-confirm flex-cc font36r" bindtap="confirm" style="width:100%;">确定</view>
    </view>
</view>

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