<My_GeneralTemplate padBot="20rpx">
    <view class="product_message">
        <My_GreyRectangleForm title="产品名" required>
            <van-field autosize model:value="{{ fprodname }}" data-name="fprodname" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fprodname}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
        </My_GreyRectangleForm>

        <My_GreyRectangleForm title="产品编码" required>
            <van-field autosize model:value="{{ fprodnum }}" data-name="fprodnum" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fprodnum}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
        </My_GreyRectangleForm>

        <My_GreyRectangleForm title="产品图" required>
            <My_UploadFiles id="UploadFiles" fileList="{{attinfos}}" upType="productImage" UploadShow="{{true}}" maxCount="3" tagents_productid="{{tagents_productid}}" previewSize="65px" bindimageChange="imageChange"></My_UploadFiles>
        </My_GreyRectangleForm>

        <My_GreyRectangleForm title="标签">
            <view class="input_text_tips">
                <My_inputPromptd show="{{errTips.showSaleprod}}" text="多种产品标签请以“空格”分隔"></My_inputPromptd>
            </view>
            <van-field autosize model:value="{{ showSaleprod }}" data-name="showSaleprod" input-class="input-class" bind:focus='inputFocus' bindblur='inputBlur' placeholder="点击填写" border="{{ false }}" />
        </My_GreyRectangleForm>

        <My_GreyRectangleForm title="说明">
            <van-field autosize model:value="{{ fintroduction }}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
        </My_GreyRectangleForm>

        <My_GreyRectangleForm title="产品上架">
            <van-switch style="position: absolute; margin-left: -110rpx; margin-top: 10rpx;" checked="{{ checked }}" bind:change="switchChange" />
        </My_GreyRectangleForm>

    </view>
</My_GeneralTemplate>

<!-- 提交按钮 -->
<view class="submit_but">
    <van-button bindtap="submit" custom-class="custom-class" round color="linear-gradient(180deg, #82E0E9 0%, #4BBECF 100%);">保存</van-button>
</view>