commodityManage.wxml 4.6 KB

1
  1. <view class="data-v-43683496"><block wx:if="{{!batch}}"><view class="top-tab-search data-v-43683496"><view class="search data-v-43683496"><u--input vue-id="0ce6f769-1" placeholder="搜索商品名称" shape="circle" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" value="{{keywords}}" data-event-opts="{{[['^change',[['search']]],['^input',[['__set_model',['','keywords','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-43683496" bind:__l="__l"></u--input><view data-event-opts="{{[['tap',[['openPopup',['$event']]]]]}}" class="screen data-v-43683496" bindtap="__e">筛选<image class="screen-icon data-v-43683496" src="../../static/mine/334.png" mode></image></view></view><view class="tab data-v-43683496"><view class="top-tab data-v-43683496"><view data-event-opts="{{[['tap',[['tabSwitch',['']]]]]}}" class="{{['tab','data-v-43683496',(follow=='')?'commodity':'']}}" bindtap="__e">全部</view><view data-event-opts="{{[['tap',[['tabSwitch',['normal']]]]]}}" class="{{['tab','data-v-43683496',(follow=='normal')?'commodity':'']}}" bindtap="__e">已上架</view><view data-event-opts="{{[['tap',[['tabSwitch',['down']]]]]}}" class="{{['tab','data-v-43683496',(follow=='down')?'commodity':'']}}" bindtap="__e">已下架</view></view></view></view></block><view class="page data-v-43683496"><u-checkbox-group vue-id="0ce6f769-2" placement="column" value="{{selectedGoods}}" data-event-opts="{{[['^change',[['checkboxChange']]],['^input',[['__set_model',['','selectedGoods','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-43683496" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view class="data-v-43683496"><view class="list data-v-43683496"><block wx:if="{{batch}}"><view class="radio data-v-43683496"><u-checkbox vue-id="{{('0ce6f769-3-'+__i0__)+','+('0ce6f769-2')}}" name="{{item.id}}" shape="circle" color="#f83224" activeColor="#f83224" disabled="{{item.status=='down'}}" class="data-v-43683496" bind:__l="__l"></u-checkbox></view></block><goods-information vue-id="{{('0ce6f769-4-'+__i0__)+','+('0ce6f769-2')}}" batch="{{batch}}" productAndCommodity="commodity" status="{{status}}" itemInfo="{{item}}" data-event-opts="{{[['^openDiscountsPopup',[['openDiscountsPopup']]],['^toDetail',[['toDetail']]],['^deleteGoods',[['deleteGoods']]],['^addAndRemove',[['addAndRemove']]],['^cancelDiscount',[['cancelDiscount']]]]}}" bind:openDiscountsPopup="__e" bind:toDetail="__e" bind:deleteGoods="__e" bind:addAndRemove="__e" bind:cancelDiscount="__e" class="data-v-43683496" bind:__l="__l"></goods-information></view></view></block></u-checkbox-group></view><block wx:if="{{!batch}}"><view class="footer data-v-43683496"><view data-event-opts="{{[['tap',[['batchDiscount',['$event']]]]]}}" class="batch data-v-43683496" bindtap="__e">批量打折</view><button data-event-opts="{{[['tap',[['toPlatform',['$event']]]]]}}" class="btn-1 data-v-43683496" bindtap="__e">上架平台商品</button></view></block><block wx:else><view class="footer data-v-43683496"><view data-event-opts="{{[['tap',[['allSelect',['$event']]]]]}}" class="batch data-v-43683496" bindtap="__e"><radio style="transform:scale(0.7);" checked="{{value}}" color="#f83224" activeBackgroundColor="#f83224" class="data-v-43683496"></radio>全选</view><view data-event-opts="{{[['tap',[['cancelBatchDiscount',['$event']]]]]}}" style="font-size:26rpx;margin-left:20rpx;color:rgba(54, 54, 54, 0.5);" bindtap="__e" class="data-v-43683496">取消打折</view><button data-event-opts="{{[['tap',[['wantDiscount',['$event']]]]]}}" class="btn data-v-43683496" bindtap="__e">我要打折</button></view></block><screen-popup vue-id="0ce6f769-5" show="{{show}}" follow="{{follow}}" data-event-opts="{{[['^close',[['close']]]]}}" bind:close="__e" class="data-v-43683496" bind:__l="__l"></screen-popup><discounts-popup vue-id="0ce6f769-6" show="{{discountsShow}}" selectGoodsInformation="{{selectGoodsInformation}}" data-event-opts="{{[['^close',[['closeDiscountsPopup']]]]}}" bind:close="__e" class="data-v-43683496" bind:__l="__l"></discounts-popup><batch-discount-popup vue-id="0ce6f769-7" show="{{batchPopup}}" selectGoodsInformation="{{selectGoodsInformation}}" data-event-opts="{{[['^close',[['closeDiscountsPopup']]]]}}" bind:close="__e" class="data-v-43683496" bind:__l="__l"></batch-discount-popup><agree-popup vue-id="0ce6f769-8" agreeShow="{{agreeShow}}" title="{{title}}" data-event-opts="{{[['^close',[['closeDelete']]]]}}" bind:close="__e" class="data-v-43683496" bind:__l="__l"></agree-popup><u-toast vue-id="0ce6f769-9" data-ref="uToast" class="data-v-43683496 vue-ref" bind:__l="__l"></u-toast></view>