12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <nav type="back" title="{{id?'编辑菜品':'添加菜品'}}" background-color="#46a9a4"></nav>
- <view class="top">
- <view class="top-figure">菜品首图</view>
- <upload bind:onChangeFile="changeFile" fileList="{{imageList}}" accept="image" maxCount="1" uploadURL="{{uploadURL}}"
- domain="{{domain}}" uptokenURL="{{uptokenURL}}"></upload>
- <input bindblur="blur" type="text" class="input" data-name="name" value="{{name}}" placeholder="菜品名称"></input>
- <view class="top-input">
- <view class="top-txt">
- <input bindblur="blur" type="text" class="inputs" data-name="price" value="{{price}}"
- placeholder="售价多少"></input>
- <view>元</view>
- </view>
- <view bindtap="category" class="top-txt">类型:{{columns[idx].name}}</view>
- </view>
- <view class="top-input">
- <view class="top-txt">
- <input bindblur="blur" type="text" class="inputs" data-name="unit" value="{{unit}}"
- placeholder="计量单位"></input>
- <view>单位</view>
- </view>
- </view>
- <van-popup show="{{ show }}" closeable close-icon-position="top-right" round bind:close="onCancela">
- <view style="text-align:center ;">
- <view class="txt">选择类型</view>
- <view class='box'>
- <view wx:for="{{columns}}" wx:key="list">
- <view class="{{index==idx?'_left':'left'}}" bindtap='goIndex' data-index="{{index}}"
- data-item="{{item}}">{{item.name}}
- </view>
- </view>
- </view>
- </view>
- </van-popup>
- </view>
- <view class="goods-title">
- <view class="goods-txt">是否上架商品</view>
- <van-switch checked="{{ checked }}" bind:change="onChange" />
- </view>
- <view class="buttoms">
- <buttom class="buttoms-bottom2" bindtap="submit">提交</buttom>
- </view>
|