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 lines
8.9 KiB

<view class="u-wrap data-v-2ef78559"><view style="width:100%;position:fixed;background:#fff;z-index:99;" class="data-v-2ef78559"><button size="default" type="default" hover-class="is-hover" data-event-opts="{{[['tap',[['inputDialogToggle',['add']]]]]}}" bindtap="__e" class="data-v-2ef78559">添加分类</button></view><view class="card-list data-v-2ef78559"><view class="_ul data-v-2ef78559"><block wx:for="{{indexList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickList',['$0'],[[['indexList','',index]]]]]]]}}" bindtap="__e" class="_li data-v-2ef78559"><view class="name data-v-2ef78559"><text class="data-v-2ef78559">{{item.categoryName}}</text><block wx:if="{{item.categoryName!='默认分类'}}"><u-icon vue-id="{{'5eabac53-1-'+index}}" name="edit-pen-fill" size="22" data-event-opts="{{[['^tap',[['inputDialogToggle',['edit','$0'],[[['indexList','',index]]]]]]]}}" catch:tap="__e" class="data-v-2ef78559" bind:__l="__l"></u-icon></block></view><button data-event-opts="{{[['tap',[['goGategoryLow',['$0'],[[['indexList','',index,'id']]]]]]]}}" class="bj-btn data-v-2ef78559" catchtap="__e">编辑规格</button></view></block></view></view><u-modal vue-id="5eabac53-2" show="{{show}}" title="删除" content="是否确认删除此分类?" showCancelButton="true" data-event-opts="{{[['^cancel',[['e0']]],['^confirm',[['delItemModal']]]]}}" bind:cancel="__e" bind:confirm="__e" class="data-v-2ef78559" bind:__l="__l"></u-modal><uni-popup vue-id="5eabac53-3" type="dialog" data-ref="inputDialog" class="data-v-2ef78559 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog vue-id="{{('5eabac53-4')+','+('5eabac53-3')}}" mode="input" title="{{dialogTit}}" value="{{inputVal}}" placeholder="请输入名称" data-ref="inputClose" data-event-opts="{{[['^confirm',[['dialogInputConfirm']]],['^close',[['dialogClose']]]]}}" bind:confirm="__e" bind:close="__e" class="data-v-2ef78559 vue-ref" bind:__l="__l"></uni-popup-dialog></uni-popup><uni-popup vue-id="5eabac53-5" type="dialog" data-ref="delDialog" class="data-v-2ef78559 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="type-popup data-v-2ef78559" style="width:100%;margin-bottom:0;border-radius:10px;height:650rpx;"><view style="height:120rpx;font-size:36rpx;font-weight:bold;line-height:120rpx;text-align:center;" class="data-v-2ef78559"> 编辑分类 </view><view style="height:80rpx;font-size:28rpx;line-height:80rpx;text-align:center;" class="data-v-2ef78559"> 请在下方输入框中输入分类名 </view><view style="width:90%;margin:40rpx auto 0;" class="data-v-2ef78559"> 分类名称: <uni-easyinput vue-id="{{('5eabac53-6')+','+('5eabac53-5')}}" type="text" placeholder="请输入规格值" value="{{inputVal}}" data-event-opts="{{[['^blur',[['handleBlur']]],['^input',[['__set_model',['','inputVal','$event',[]]]]]]}}" bind:blur="__e" bind:input="__e" class="data-v-2ef78559" bind:__l="__l"></uni-easyinput></view><view style="width:90%;margin:40rpx auto 0;" class="data-v-2ef78559"> 排序:<uni-easyinput vue-id="{{('5eabac53-7')+','+('5eabac53-5')}}" type="text" placeholder="可设置排序" value="{{sortTextEdit}}" data-event-opts="{{[['^blur',[['handleBlurSort']]],['^input',[['__set_model',['','sortTextEdit','$event',[]]]]]]}}" bind:blur="__e" bind:input="__e" class="data-v-2ef78559" bind:__l="__l"></uni-easyinput></view><view style="width:100%;height:90rpx;line-height:90rpx;text-align:center;border-radius:0;color:#fff;display:flex;position:absolute;bottom:0;" class="data-v-2ef78559"><block wx:if="{{inputVal!='默认分类'}}"><view data-event-opts="{{[['tap',[['dialogDel',['$event']]]]]}}" style="flex:1;background:linear-gradient(90deg, #60F3FF, #088FEB);" bindtap="__e" class="data-v-2ef78559">删除</view></block><view data-event-opts="{{[['tap',[['dialogInputConfirm',['$event']]]]]}}" style="flex:1;background:linear-gradient(90deg, #FF9797, #FFC1E0);" bindtap="__e" class="data-v-2ef78559">确认</view></view></view></uni-popup><uni-popup vue-id="5eabac53-8" background-color="#fff" data-ref="addTypeDialog" class="data-v-2ef78559 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="add-popup-content data-v-2ef78559"><view class="add-popup-title data-v-2ef78559"><text class="data-v-2ef78559">新增分类</text><uni-icons style="height:40rpx;line-height:40rpx;position:absolute !important;bottom:0;right:30rpx;" vue-id="{{('5eabac53-9')+','+('5eabac53-8')}}" type="closeempty" color="red" size="16" data-event-opts="{{[['^tap',[['close']]]]}}" bind:tap="__e" class="data-v-2ef78559" bind:__l="__l"></uni-icons></view><view class="add-popup-container data-v-2ef78559"><view class="data-v-2ef78559"><text style="color:red;font-size:22rpx;" class="data-v-2ef78559">*您可以点击默认项快捷添加分类,如没有想要的快捷项,可以手动输入</text></view><input style="width:100%;border:1px solid #eee;height:80rpx;padding-left:20rpx;margin:20rpx 0;font-size:25rpx;line-height:80rpx;" type="text" placeholder="请输入分类名称" data-event-opts="{{[['input',[['__set_model',['','typeText','$event',[]]]]]]}}" value="{{typeText}}" bindinput="__e" class="data-v-2ef78559"/><input style="width:100%;border:1px solid #eee;height:80rpx;padding-left:20rpx;margin:20rpx 0;font-size:25rpx;line-height:80rpx;" type="text" placeholder="可设置分类排序" data-event-opts="{{[['input',[['__set_model',['','sortText','$event',[]]]]]]}}" value="{{sortText}}" bindinput="__e" class="data-v-2ef78559"/><view class="_ul data-v-2ef78559"><block wx:for="{{defaultList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="_li data-v-2ef78559"><view class="title-fur data-v-2ef78559"><view class="name data-v-2ef78559">{{item.name}}</view><u-icon vue-id="{{('5eabac53-10-'+index)+','+('5eabac53-8')}}" size="20" name="plus" color="#5fd9ee" data-event-opts="{{[['^tap',[['toggle',[index]]]]]}}" bind:tap="__e" class="data-v-2ef78559" bind:__l="__l"></u-icon></view><view class="content-fur data-v-2ef78559"><block wx:for="{{item.list}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['addMultipleType',['$0','$1',index1],[[['defaultList','',index]],[['defaultList','',index],['list','',index1,'value']]]]]]]}}" class="{{['content-low','data-v-2ef78559',item1.checked?'checked':'']}}" catchtap="__e">{{item1.value}}</view></block></view></view></block></view><view class="add-popup-bottom data-v-2ef78559"><view data-event-opts="{{[['tap',[['dialogInputConfirm',['$0'],['typeText']]]]]}}" class="add-popup-btn data-v-2ef78559" bindtap="__e">确认</view></view></view></view></uni-popup><uni-popup vue-id="5eabac53-11" background-color="#fff" data-ref="carPopup" class="data-v-2ef78559 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content data-v-2ef78559" style="height:auto !important;"><view style="font-size:36rpx;font-weight:bold;text-align:center;" class="data-v-2ef78559">提示</view><block wx:if="{{goodsList!=''}}"><view style="width:100%;font-weight:bold;text-align:center;font-size:28rpx;margin:20rpx 0;" class="data-v-2ef78559">{{'“'+goodsList[0].productName+'”分类下有以下库存,确认继续删除吗?'}}</view></block><view class="tui-order-item boxbg data-v-2ef78559"><view style="display:flex;border-bottom:1px solid #eee;height:50rpx;line-height:50rpx;" class="data-v-2ef78559"><view style="width:70%;text-align:center;border-right:1px solid #eee;" class="data-v-2ef78559">商品规格</view><view style="width:29%;text-align:center;" class="data-v-2ef78559">数量</view></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="shop-box data-v-2ef78559" style="position:relative;"><view style="height:50rpx;line-height:50rpx;" class="data-v-2ef78559"><view style="width:70%;text-align:center;border-right:1px solid #eee;float:left;height:50rpx;overflow:hidden;" class="data-v-2ef78559">{{''+item.f0+''}}</view><view style="width:29%;text-align:center;float:left;" class="data-v-2ef78559">{{''+item.$orig.stockCount+''}}</view></view></view></block></view><view class="popup-bottom data-v-2ef78559"><view class="popup-bottom-left data-v-2ef78559"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="bottom-btn data-v-2ef78559" style="background:linear-gradient(90deg, #FF9797, #FFC1E0);" bindtap="__e">再想想</view></view><view class="popup-bottom-right data-v-2ef78559"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bottom-btn data-v-2ef78559" bindtap="__e">确认删除</view></view></view></view></uni-popup><uni-popup vue-id="5eabac53-12" type="dialog" data-ref="addDialog" class="data-v-2ef78559 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog vue-id="{{('5eabac53-13')+','+('5eabac53-12')}}" mode="input" title="请输入规格名" value="{{specVal}}" placeholder="请输入规格名称" data-ref="addClose" data-event-opts="{{[['^confirm',[['addSpec']]],['^close',[['dialogClose']]]]}}" bind:confirm="__e" bind:close="__e" class="data-v-2ef78559 vue-ref" bind:__l="__l"></uni-popup-dialog></uni-popup></view>