crm_second_opening_mini/components/selectProduct/index.wxml

1 line
3.0 KiB
Plaintext

<view class="data-v-07b00d04"><uni-popup vue-id="4b94a43b-1" type="bottom" background-color="#fff" data-ref="popup" class="data-v-07b00d04 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup_title data-v-07b00d04">添加产品</view><view class="searbox data-v-07b00d04"><image class="searchimg data-v-07b00d04" src="{{BASE_IMG_URL+'search.png'}}" mode></image><input class="selfinput data-v-07b00d04" type="text" placeholder="输入产品编号/名称搜索" data-event-opts="{{[['input',[['queryList',['$event']]]]]}}" bindinput="__e"/></view><scroll-view class="scrollbox data-v-07b00d04" scroll-y="{{true}}" lower-threshold="30"><view class="pop_list data-v-07b00d04"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="pop_li data-v-07b00d04"><view class="pop_li_top data-v-07b00d04"><view class="pop_title data-v-07b00d04">{{item.name}}</view><view class="pop_num data-v-07b00d04">{{item.num}}</view></view><view data-event-opts="{{[['tap',[['changeSelect',[index]]]]]}}" class="pop_info data-v-07b00d04" catchtap="__e"><view class="pop_radio data-v-07b00d04"><radio color="#03AA96" checked="{{item.select}}" class="data-v-07b00d04"></radio></view><image class="infoimg data-v-07b00d04" src="{{item.img?item.img:BASE_IMG_URL+'img/index-4.png'}}" mode></image><view class="pop_info_cen data-v-07b00d04"><view class="pop_info_text data-v-07b00d04">{{"规格:"+item.unit}}</view><view class="pop_info_text data-v-07b00d04">{{"最低价:"+(item.min_price?item.min_price:0)}}</view><view class="pop_info_text data-v-07b00d04">{{"销售价:¥"+item.price}}</view><block wx:if="{{showNumber}}"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="pop_bottom data-v-07b00d04" catchtap="__e">数量<view class="conright data-v-07b00d04"><uni-number-box vue-id="{{('4b94a43b-2-'+index)+','+('4b94a43b-1')}}" min="{{1}}" value="{{item.number}}" data-event-opts="{{[['^change',[['changeNumber',['$event',index]]]],['^input',[['__set_model',['$0','number','$event',[]],[[['list','',index]]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-07b00d04" bind:__l="__l"></uni-number-box></view></view></block></view></view></view></block><block wx:if="{{$root.g0==0}}"><u-empty vue-id="{{('4b94a43b-3')+','+('4b94a43b-1')}}" text="暂无更多" class="data-v-07b00d04" bind:__l="__l"></u-empty></block></view></scroll-view><view class="popup_bottom data-v-07b00d04"><view class="pp_left_box data-v-07b00d04"><view class="pp_left data-v-07b00d04"><radio color="#03aa96" checked="{{isAll}}" data-event-opts="{{[['tap',[['selectAll',['$event']]]]]}}" bindtap="__e" class="data-v-07b00d04"></radio>全选</view><view class="selectnum data-v-07b00d04">{{"已选"+$root.g1+"项"}}</view></view><view class="pp_right data-v-07b00d04"><view data-event-opts="{{[['tap',[['closePopup',['$event']]]]]}}" class="right_btn remove data-v-07b00d04" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['sureSelectData',['$event']]]]]}}" class="right_btn sure data-v-07b00d04" bindtap="__e">确定</view></view></view></uni-popup></view>