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.
1 line
13 KiB
1 line
13 KiB
|
2 months ago
|
<view class="page1"><view class="formBox"><uni-forms class="vue-ref" vue-id="6e366e19-1" modelValue="{{formData}}" rules="{{rules}}" labelWidth="170rpx" data-ref="form" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('6e366e19-2')+','+('6e366e19-1')}}" label="商品名称" name="productName" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6e366e19-3')+','+('6e366e19-2')}}" type="text" placeholder="请输入商品名称" trim="all" value="{{formData.productName}}" data-event-opts="{{[['^input',[['__set_model',['$0','productName','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-4')+','+('6e366e19-1')}}" label="商品主图" name="productPicture" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{formData.productPicture!=''}}"><view><image class="upload-img _img" src="{{formData.productPicture}}" alt></image></view></block><u-upload vue-id="{{('6e366e19-5')+','+('6e366e19-4')}}" fileList="{{formData.productPicture}}" name="1" multiple="{{true}}" maxCount="{{1}}" data-event-opts="{{[['^afterRead',[['afterRead']]],['^delete',[['deletePic']]]]}}" bind:afterRead="__e" bind:delete="__e" bind:__l="__l"></u-upload></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-6')+','+('6e366e19-1')}}" label="批发价" name="wholesalePrice" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入批发价" data-event-opts="{{[['focus',[['obtainPrice',['$event','wholesalePrice']]]],['blur',[['changessPrice',['$event','wholesalePrice']]]],['input',[['__set_model',['$0','wholesalePrice','$event',[]],['formData']]]]]}}" value="{{formData.wholesalePrice}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-7')+','+('6e366e19-1')}}" label="商品分类" name="categoryId" bind:__l="__l" vue-slots="{{['default']}}"><view class="content-list"><view class="list-val"><input style="border-bottom:1px solid #fff;text-align:center;" type="text" placeholder="请选择商品分类" disabled="{{true}}" data-event-opts="{{[['tap',[['goGategoryLow',['$event']]]]]}}" value="{{typeItem.categoryName}}" bindtap="__e"/><uni-icons style="margin-left:40rpx;line-height:70rpx;" vue-id="{{('6e366e19-8')+','+('6e366e19-7')}}" type="right" size="16" bind:__l="__l"></uni-icons></view></view></uni-forms-item><block wx:if="{{customerCategoryList!=null}}"><view style="display:flex;"><view style="width:28%;"></view><view style="width:72%;min-height:80rpx;padding:0 20rpx 20rpx 0;"><block wx:for="{{customerCategoryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view>{{''+item.categoryName+":"+item.categoryPrice+''}}</view></block></view></view></block><uni-forms-item vue-id="{{('6e366e19-9')+','+('6e366e19-1')}}" label="添加规格" name="categoryId" bind:__l="__l" vue-slots="{{['default']}}"><view class="content-list"><view class="list-val"><input style="border-bottom:1px solid #fff;text-align:center;" type="text" placeholder="点击选择规格" disabled="{{true}}" data-event-opts="{{[['tap',[['ejectRuleSelect',['$event']]]]]}}" bindtap="__e"/></view></view></uni-forms-item><block wx:for="{{multipleList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="display:flex;"><view style="width:28%;">{{''+item.attributeName+''}}</view><view style="width:72%;min-height:80rpx;padding:0 20rpx 20rpx 0;"><block wx:for="{{item.productAttributeValueVoList}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view style="float:left;padding-right:20rpx;">{{''+item1.value+''}}</view></block></view></view></block><uni-forms-item vue-id="{{('6e366e19-10')+','+('6e366e19-1')}}" label="商品条码" name="barcode" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6e366e19-11')+','+('6e366e19-10')}}" type="text" placeholder="可以扫码商品条码添加" trim="all" value="{{formData.barcode}}" data-event-opts="{{[['^input',[['__set_model',['$0','barcode','$eve
|