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
20 KiB

<view class="page1"><view class="formBox"><uni-forms class="vue-ref" vue-id="b9d1a310-1" modelValue="{{formData}}" rules="{{rules}}" labelWidth="170rpx" data-ref="form" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('b9d1a310-2')+','+('b9d1a310-1')}}" label="商品名称" name="productName" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('b9d1a310-3')+','+('b9d1a310-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="{{('b9d1a310-4')+','+('b9d1a310-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="{{('b9d1a310-5')+','+('b9d1a310-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="{{('b9d1a310-6')+','+('b9d1a310-1')}}" label="货号" name="productSn" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput vue-id="{{('b9d1a310-7')+','+('b9d1a310-6')}}" clearable="{{false}}" type="text" placeholder="请输入货号" trim="all" value="{{formData.productSn}}" data-event-opts="{{[['^blur',[['getSnIsRepeat']]],['^input',[['__set_model',['$0','productSn','$event',[]],['formData']]]]]}}" bind:blur="__e" bind:input="__e" bind:__l="__l"></uni-easyinput><uni-icons vue-id="{{('b9d1a310-8')+','+('b9d1a310-6')}}" type="refresh" color="#777" size="36" data-event-opts="{{[['^tap',[['e0']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></uni-forms-item><block wx:if="{{shopId=='1960543009070256129'}}"><view><uni-forms-item vue-id="{{('b9d1a310-9')+','+('b9d1a310-1')}}" label="团长佣金(%)" name="price" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入团长佣金" data-event-opts="{{[['focus',[['obtainPrice',['$event','purchasePrice']]]],['blur',[['changessPrice',['$event','purchasePrice']]]],['input',[['__set_model',['$0','purchasePrice','$event',[]],['formData']]]]]}}" value="{{formData.purchasePrice}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item></view></block><block wx:else><view><uni-forms-item vue-id="{{('b9d1a310-10')+','+('b9d1a310-1')}}" label="采购价" name="price" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入采购价" data-event-opts="{{[['focus',[['obtainPrice',['$event','purchasePrice']]]],['blur',[['changessPrice',['$event','purchasePrice']]]],['input',[['__set_model',['$0','purchasePrice','$event',[]],['formData']]]]]}}" value="{{formData.purchasePrice}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item></view></block><block wx:if="{{shopId=='1960543009070256129'}}"><view><uni-forms-item vue-id="{{('b9d1a310-11')+','+('b9d1a310-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></view></block><block wx:else><view><uni-forms-item vue-id="{{('b9d1a310-12')+','+('b9d1a310-1')}}" label="批发价" name="wholesalePrice" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入批发价" data-event-opts="{{[['focus',[['obtainPrice',['$event','wholesalePrice']