yuminge-app/yun-min-program-plugin-master/packageF/storeManagement/editGoodsCatgory/editGoodsCatgory.wxml

50 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--packageF/storeManagement/editGoodsCatgory/editGoodsCatgory.wxml-->
<view class="parentName" wx:if="{{parentId && parentData.level >= 1}}">
上级分类:{{parentData.name}}
</view>
<van-field model:value="{{display_order}}" placeholder="请输入分类排序">
<view class="sort" slot="label">排序:</view>
</van-field>
<view class="cell">
<van-field model:value="{{name}}" placeholder="请输入分类名称">
<view class="categoryName" slot="label">
<i class="iconfont icon-fontclass-xinghao"></i>
分类名称:</view>
</van-field>
<view class="categoryImage">
<view class="categoryImage-title">分类图片:</view>
<yz-uploader bind:updateImages="updateGoodsImg" fileSrc="{{thumb_src}}" customStyle="width:130rpx;height:130rpx;border:1rpx dashed #ccc;"
customBoxStyle="padding:0;margin-top:29rpx;" max_count="{{1}}">
</yz-uploader>
<view class="categoryImage-tips">建议尺寸100*100px,或者正方形图片</view>
</view>
</view>
<view class="cell">
<van-cell>
<view slot="title">是否推荐:</view>
<van-switch checked="{{is_home}}" size="40rpx" active-value="{{1}}" inactive-value="{{0}}" inactive-color="#bebebe" active-color="#f15353" data-name="is_home"
bindchange="switchChange"></van-switch>
</van-cell>
<van-cell>
<view slot="title">是否显示:</view>
<van-switch checked="{{enabled}}" size="40rpx" active-value="{{1}}" inactive-value="{{0}}" inactive-color="#bebebe" active-color="#f15353" data-name="enabled"
bindchange="switchChange"></van-switch>
</van-cell>
</view>
<view class="bottom-btn" bindtap="sureEdit">
确认
</view>