73 lines
3.1 KiB
Plaintext
73 lines
3.1 KiB
Plaintext
<cu-custom isBack="{{true}}">
|
|
<view slot="content">商品类目添加</view>
|
|
</cu-custom>
|
|
<view class="flex justify-center align-center" style="width:100%;flex-direction:column;">
|
|
<!-- 类目名称 -->
|
|
<view class="cu-form-group margin-top-xs" style="width:95%;">
|
|
<view class="title">
|
|
<text class="text-gray">类目名称</text><text class="iconfont icon-star-red margin-left-xs"></text>
|
|
</view>
|
|
<input placeholder="请输入类目名称" bindinput="inputWatch" data-model="catalogName"></input>
|
|
</view>
|
|
<!-- 类目排序 -->
|
|
<view class="cu-form-group" style="width:95%;">
|
|
<view class="title">
|
|
<text class="text-gray">类目排序</text><text class="iconfont icon-star-red margin-left-xs"></text>
|
|
</view>
|
|
<input placeholder="请输入类目排序" bindinput="inputWatch" type="number" data-model="catalogOrder"></input>
|
|
</view>
|
|
<!-- 类型 -->
|
|
<!-- <view class="cu-form-group" style="width:95%;">
|
|
<view class="title">
|
|
<text class="text-gray">类型</text><text class="iconfont icon-star-red margin-left-xs"></text>
|
|
</view>
|
|
<view>
|
|
<view class="cu-capsule radius" wx:for="{{typeList}}" wx:key="index" bindtap="doSelType" data-item="{{item}}">
|
|
<view class="cu-tag {{item.isSel ? 'bg-red':'bg-grey'}}">
|
|
<text class="{{item.isSel ? 'cuIcon-squarecheck':'cuIcon-square'}}"></text>
|
|
</view>
|
|
<view class="cu-tag {{item.isSel? 'line-red':'line-black'}}" data-item="{{item}}" data-index="{{index}}">
|
|
{{item.name}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
<!-- 类目Logo -->
|
|
<view class="cu-bar bg-white margin-top" style="width:95%;">
|
|
<view class="action">
|
|
<text class="text-gray">类目Logo</text>
|
|
</view>
|
|
<view class="action">
|
|
{{catalogLogoPhotos.length}}/1
|
|
</view>
|
|
</view>
|
|
<view class="cu-form-group" style="width:95%;">
|
|
<view class="grid col-3 grid-square flex-sub">
|
|
<view class="bg-img" wx:for="{{catalogLogoPhotos}}" wx:key="index" bindtap="ViewLicImg"
|
|
data-url="{{catalogLogoPhotos[index].path}}">
|
|
<image src='{{catalogLogoPhotos[index].path}}' mode='aspectFill'></image>
|
|
<view class="cu-tag bg-red" catchtap="DelLogoP" data-index="{{index}}">
|
|
<text class="cuIcon-close"></text>
|
|
</view>
|
|
</view>
|
|
<view class="solids" bindtap="ChooseLogoP" wx:if="{{catalogLogoPhotos.length<1}}">
|
|
<text class="cuIcon-cameraadd"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 类目说明 -->
|
|
<view class="cu-bar bg-white margin-top-xs" style="width:95%;">
|
|
<view class="action">
|
|
<text class="text-gray">类目描述</text>
|
|
</view>
|
|
</view>
|
|
<view class="bg-white" style="width:95%;">
|
|
<view class="cu-form-group">
|
|
<textarea class="border-line padding-left-xs padding-right-xs margin-left-xs margin-right-xs" maxlength="-1"
|
|
bindinput="catalogInput" placeholder="请输入类目描述"></textarea>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="padding-xs foot bg-white">
|
|
<button class="cu-btn bg-blue" style="width:100%" bindtap="doAdd">马上添加</button>
|
|
</view> |