纸通宝SAAS仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

38 lines
2.5 KiB

<!--pages/setting/paper-detial/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content" style="color:black;font-size:18px">纸品详情</view>
</cu-custom>
<van-notice-bar color="#1989fa" background="#008AFF" left-icon="info-o" text="点击可以修改纸品信息" />
<van-field title-width="360rpx" required value="{{form.categoryName }}" readonly input-align="right" label="品类名称:" is-link arrow-direction="down"
bindtap="chooseMethod" placeholder="请选择品类"/>
<van-field title-width="360rpx" id="productName" value="{{ form.productName || form.categoryName }}" label="品类别名:"
placeholder="请输入品类别名(选填)" input-align="right" clearable bind:input="bindInput" />
<van-field title-width="360rpx" required id="defaultUnitPrice" value="{{ form.defaultUnitPrice }}" label="收货价格(元/公斤):"
placeholder="请输入收货价格" input-align="right" clearable type="digit" bind:input="bindInput" />
<van-field title-width="360rpx" id="highestUnitPrice" value="{{ form.highestUnitPrice }}" label="最高收货价格(元/公斤):"
placeholder="请输入最高收货价格(选填)" input-align="right" clearable type="digit" bind:input="bindInput" />
<view style="margin-top:48rpx;padding:48rpx 32rpx">
<van-button block type="danger" bind:click="deleteForm" wx:if="{{ form.id}}">删除</van-button>
<view style="height:36rpx" wx:if="{{ form.id}}"></view>
<van-button block type="info" bind:click="submitForm">保存</van-button>
</view>
<van-popup position="bottom" show="{{ visible }}" bind:close="onHide" z-index="29">
<view class="van-picker__toolbar van-hairline--top-bottom toolbar-class">
<view class="van-picker__cancel" hover-stay-time="70"></view>
<view class="van-picker__title van-ellipsis">选择纸品</view>
<view class="van-picker__confirm flex flex-cener" hover-class="van-picker__confirm--hover" hover-stay-time="70" bindtap="onHide">
<van-icon name="cross" size="24" color="#999999" />
</view>
</view>
<scroll-view scroll-y="true" style="height:480rpx;padding: 12rpx 0rpx">
<van-grid column-num="3" border="{{fasle}}">
<van-grid-item use-slot wx:for="{{ paperList }}" wx:key="index" content-style="padding:12rpx">
<van-button plain type="{{index == cIndex ? 'info' : 'default'}}" custom-style="height:88rpx;width:208rpx;padding: 0rpx" data-index="{{index}}" bind:click="onConfirm">{{item.categoryName}}</van-button>
</van-grid-item>
</van-grid>
</scroll-view>
</van-popup>
<van-dialog id="van-dialog" />
<notification id="qn-notification"/>