123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <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 class="top-txt">
- <input bindblur="blur" type="text" class="inputs" data-name="originalPrice" value="{{originalPrice}}" placeholder="商品原价"></input>
- <view>元</view>
- </view>
- </view>
- <view class="top-input">
- <view class="top-txt">
- <input bindblur="blur" type="number" class="inputs" data-name="sales" value="{{sales}}" placeholder="已售数量"></input>
- <view>件</view>
- </view>
- <view class="top-txt">
- <input bindblur="blur" type="number" class="inputs" data-name="total" value="{{total}}" placeholder="库存数量"></input>
- <view>件</view>
- </view>
- </view>
- <view class="top-input">
- <view class="top-txt">
- <input bindblur="blur" type="number" class="inputs" data-name="top" value="{{top}}" placeholder="套餐排序"></input>
- <view>排序</view>
- </view>
- </view>
- </view>
- <view class="service">
- <view>服务</view>
- <block wx:for="{{services}}" wx:key="index">
- <view class="services">{{item.value}}</view>
- </block>
- <view class="service-list"></view>
- <view class="service-add" bindtap="showPopup">添加服务</view>
- <van-popup show="{{ show }}" closeable close-icon-position="top-right" bind:close="onClose" round custom-style="width:80%;">
- <view class="txt">添加服务</view>
- <input bindblur="blur" type="text" class="inputs" data-name="service" value="{{service}}" placeholder="请输入内容"></input>
- <view class="determine" bindtap="twoonConfirm">确定</view>
- </van-popup>
- </view>
- <view class="goods-titlet" bindtap="goodsimage">
- <view class="goods-titles">
- <view class="goods-txt">商品详情</view>
- <view class="txt-placeholder">
- <view class="txt-place">不设置默认为主图</view>
- <van-icon name="arrow" />
- </view>
- </view>
- <block wx:if="{{images.length > 0}}">
- <view class="images">
- <block wx:for="{{images}}" wx:key="index" wx:for-index="i">
- <block wx:if="{{i<4}}">
- <image class="goods-place" src="{{item}}" />
- </block>
- </block>
- <view class="goods-numbe">已添加: {{images.length}}</view>
- </view>
- </block>
- </view>
- <view class="goods-title">
- <view class="goods-txt">是否上架商品</view>
- <van-switch checked="{{ checked }}" bind:change="onChange" />
- </view>
- <view class="goods-title">
- <view class="goods-txt">是否推荐商品</view>
- <van-switch checked="{{ check }}" bind:change="oChange" />
- </view>
- <view class="buttoms">
- <buttom class="buttoms-bottom2" bindtap="submit">发布商品</buttom>
- </view>
|