Files
2026-04-05 10:48:38 +08:00

1 line
15 KiB
Plaintext
Executable File

<page-meta page-style="{{themeColor}}" class="data-v-46dabf0c"></page-meta><view class="content data-v-46dabf0c"><view class="head-wrap data-v-46dabf0c"><view class="search-wrap uni-flex uni-row data-v-46dabf0c"><view class="flex-item input-wrap data-v-46dabf0c"><input class="uni-input data-v-46dabf0c" maxlength="50" placeholder="请输入您要搜索的商品" data-event-opts="{{[['confirm',[['search']]],['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindconfirm="__e" bindinput="__e"/><text data-event-opts="{{[['tap',[['search']]]]}}" class="iconfont icon-sousuo3 data-v-46dabf0c" catchtap="__e"></text></view><view data-event-opts="{{[['tap',[['changeListStyle']]]]}}" class="{{['iconfont','data-v-46dabf0c',(isList)?'icon-apps':'',(!isList)?'icon-list':'']}}" bindtap="__e"></view></view><view class="sort-wrap data-v-46dabf0c"><view data-event-opts="{{[['tap',[['sortTabClick',['']]]]]}}" class="{{['comprehensive-wrap','data-v-46dabf0c',(orderType==='')?'color-base-text':'']}}" bindtap="__e"><text class="{{['data-v-46dabf0c',(orderType==='')?'color-base-text':'']}}">综合</text></view><view data-event-opts="{{[['tap',[['sortTabClick',['sale_num']]]]]}}" class="{{['data-v-46dabf0c',(orderType==='sale_num')?'color-base-text':'']}}" bindtap="__e">销量</view><view data-event-opts="{{[['tap',[['sortTabClick',['discount_price']]]]]}}" class="price-wrap data-v-46dabf0c" bindtap="__e"><text class="{{['data-v-46dabf0c',(orderType==='discount_price')?'color-base-text':'']}}">价格</text><view class="iconfont-wrap data-v-46dabf0c"><view class="{{['iconfont','icon-iconangledown-copy','asc','data-v-46dabf0c',(priceOrder==='asc'&&orderType==='discount_price')?'color-base-text':'']}}"></view><view class="{{['iconfont','icon-iconangledown','desc','data-v-46dabf0c',(priceOrder==='desc'&&orderType==='discount_price')?'color-base-text':'']}}"></view></view></view><view class="{{['screen-wrap','data-v-46dabf0c',(orderType==='screen')?'color-base-text':'']}}"><text data-event-opts="{{[['tap',[['sortTabClick',['screen']]]]]}}" bindtap="__e" class="data-v-46dabf0c">筛选</text><view data-event-opts="{{[['tap',[['sortTabClick',['screen']]]]]}}" class="iconfont-wrap data-v-46dabf0c" bindtap="__e"><view class="iconfont icon-shaixuan color-tip data-v-46dabf0c"></view></view></view></view></view><mescroll-uni vue-id="36971996-1" top="180" data-ref="mescroll" data-event-opts="{{[['^getData',[['getGoodsList']]]]}}" bind:getData="__e" class="data-v-46dabf0c vue-ref" bind:__l="__l" vue-slots="{{['list']}}"><view slot="list" class="data-v-46dabf0c"><view class="{{['goods-list','single-column','data-v-46dabf0c',(isList)?'show':'']}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['goodsList','',index]]]]]]]}}" class="goods-item margin-bottom data-v-46dabf0c" bindtap="__e"><view class="goods-img data-v-46dabf0c"><image src="{{item.m0}}" mode="widthFix" data-event-opts="{{[['error',[['imgError',[index]]]]]}}" binderror="__e" class="data-v-46dabf0c"></image><block wx:if="{{item.m1!=''}}"><view class="color-base-bg goods-tag data-v-46dabf0c">{{item.m2}}</view></block><block wx:if="{{item.$orig.goods_stock<=0}}"><view class="sell-out data-v-46dabf0c"><text class="iconfont icon-shuqing data-v-46dabf0c"></text></view></block></view><view class="info-wrap data-v-46dabf0c"><view class="name-wrap data-v-46dabf0c"><view class="{{['goods-name','data-v-46dabf0c',[(config.nameLineMode=='single')?'using-hidden':''],[(config.nameLineMode=='multiple')?'multi-hidden':'']]}}">{{''+item.$orig.goods_name+''}}</view></view><view class="lineheight-clear data-v-46dabf0c"><view class="discount-price data-v-46dabf0c"><text class="unit price-style small data-v-46dabf0c">{{$root.m3}}</text><text class="price price-style large data-v-46dabf0c">{{item.g0[0]}}</text><text class="unit price-style small data-v-46dabf0c">{{"."+item.g1[1]}}</text></view><block wx:if="{{item.m4}}"><view class="member-price-tag data-v-46dabf0c"><image src="{{item.g2}}" mode="widthFix" class="data-v-46dabf0c"></image></view></block><block wx:else><block wx:if="{{item.$orig.promotion_type==1}}"><view class="member-price-tag data-v-46dabf0c"><image src="{{item.g3}}" mode="widthFix" class="data-v-46dabf0c"></image></view></block></block></view><view class="pro-info data-v-46dabf0c"><block wx:if="{{item.m5}}"><view class="delete-price color-tip price-font data-v-46dabf0c"><text class="unit data-v-46dabf0c">{{item.m6}}</text><text class="data-v-46dabf0c">{{item.m7}}</text></view></block><view class="block-wrap data-v-46dabf0c"><block wx:if="{{item.$orig.sale_show}}"><view class="sale color-tip data-v-46dabf0c">{{"已售"+item.$orig.sale_num+(item.$orig.unit?item.$orig.unit:'件')}}</view></block></view><block wx:if="{{config.control&&item.$orig.is_virtual==0}}"><view class="cart-action-wrap data-v-46dabf0c"><block wx:if="{{config.style=='icon-cart'}}"><view class="cart shopping-cart-btn iconfont icon-gouwuche click-wrap data-v-46dabf0c" style="{{'color:'+(config.theme=='diy'?config.textColor:'')+';'+('border-color:'+(config.theme=='diy'?config.textColor:'')+';')}}" id="{{'goods-'+item.$orig.id}}" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" catchtap="__e"><view class="click-event data-v-46dabf0c"></view></view></block><block wx:else><block wx:if="{{config.style=='icon-add'}}"><view class="cart plus-sign-btn iconfont icon-add1 click-wrap data-v-46dabf0c" style="{{'color:'+(config.theme=='diy'?config.textColor:'')+';'+('border-color:'+(config.theme=='diy'?config.textColor:'')+';')}}" id="{{'goods-'+item.$orig.id}}" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" catchtap="__e"><view class="click-event data-v-46dabf0c"></view></view></block><block wx:else><block wx:if="{{config.style=='button'}}"><view class="cart buy-btn click-wrap data-v-46dabf0c" style="{{'background-color:'+(config.theme=='diy'?config.bgColor:'')+';'+('color:'+(config.theme=='diy'?config.textColor:'')+';')+('font-weight:'+(config.theme=='diy'?config.fontWeight?'bold':'normal':'')+';')+('padding:'+(config.theme=='diy'?'12rpx '+config.padding*2+'rpx':'')+';')}}" id="{{'goods-'+item.$orig.id}}" data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" catchtap="__e">{{''+config.text+''}}<view class="click-event data-v-46dabf0c"></view></view></block><block wx:else><block wx:if="{{config.style=='icon-diy'}}"><view class="icon-diy click-wrap data-v-46dabf0c" style="{{'color:'+(config.theme=='diy'?config.textColor:'')+';'}}" id="{{'goods-'+item.$orig.id}}" data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" catchtap="__e"><view class="click-event data-v-46dabf0c"></view><diy-icon vue-id="{{('36971996-2-'+index)+','+('36971996-1')}}" icon="{{config.iconDiy.icon}}" value="{{config.iconDiy.style?config.iconDiy.style:null}}" class="data-v-46dabf0c" bind:__l="__l"></diy-icon></view></block></block></block></block></view></block></view></view></view></block></view><view class="{{['goods-list','double-column','data-v-46dabf0c',(!isList)?'show':'']}}"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['goodsList','',index]]]]]]]}}" class="goods-item margin-bottom data-v-46dabf0c" style="{{'left:'+(listPosition[index]?listPosition[index].left:'')+';'+('top:'+(listPosition[index]?listPosition[index].top:'')+';')}}" bindtap="__e"><view class="goods-img data-v-46dabf0c"><image src="{{item.m8}}" mode="widthFix" data-event-opts="{{[['error',[['imgError',[index]]]]]}}" binderror="__e" class="data-v-46dabf0c"></image><block wx:if="{{item.m9!=''}}"><view class="color-base-bg goods-tag data-v-46dabf0c">{{item.m10}}</view></block><block wx:if="{{item.$orig.stock<=0}}"><view class="sell-out data-v-46dabf0c"><text class="iconfont icon-shuqing data-v-46dabf0c"></text></view></block></view><view class="info-wrap data-v-46dabf0c"><view class="{{['goods-name','data-v-46dabf0c',[(config.nameLineMode=='single')?'using-hidden':''],[(config.nameLineMode=='multiple')?'multi-hidden':'']]}}">{{''+item.$orig.goods_name+''}}</view><view class="lineheight-clear data-v-46dabf0c"><view class="discount-price data-v-46dabf0c"><text class="unit price-style small data-v-46dabf0c">{{$root.m11}}</text><text class="price price-style large data-v-46dabf0c">{{item.g4[0]}}</text><text class="unit price-style small data-v-46dabf0c">{{"."+item.g5[1]}}</text></view><block wx:if="{{item.m12}}"><view class="member-price-tag data-v-46dabf0c"><image src="{{item.g6}}" mode="widthFix" class="data-v-46dabf0c"></image></view></block><block wx:else><block wx:if="{{item.$orig.promotion_type==1}}"><view class="member-price-tag data-v-46dabf0c"><image src="{{item.g7}}" mode="widthFix" class="data-v-46dabf0c"></image></view></block></block><block wx:if="{{item.m13}}"><view class="delete-price color-tip price-font data-v-46dabf0c"><text class="unit data-v-46dabf0c">{{item.m14}}</text><text class="data-v-46dabf0c">{{item.m15}}</text></view></block></view><view class="pro-info data-v-46dabf0c"><view class="block-wrap data-v-46dabf0c"><block wx:if="{{item.$orig.sale_show}}"><view class="sale color-tip data-v-46dabf0c">{{"已售"+item.$orig.sale_num+(item.$orig.unit?item.$orig.unit:'件')}}</view></block></view><block wx:if="{{config.control&&item.$orig.is_virtual==0}}"><view class="cart-action-wrap data-v-46dabf0c"><block wx:if="{{config.style=='icon-cart'}}"><view class="cart shopping-cart-btn iconfont icon-gouwuche click-wrap data-v-46dabf0c" style="{{'color:'+(config.theme=='diy'?config.textColor:'')+';'+('border-color:'+(config.theme=='diy'?config.textColor:'')+';')}}" id="{{'goods-'+item.$orig.id}}" data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" catchtap="__e"><view class="click-event data-v-46dabf0c"></view></view></block><block wx:else><block wx:if="{{config.style=='icon-add'}}"><view class="cart plus-sign-btn iconfont icon-add1 click-wrap data-v-46dabf0c" style="{{'color:'+(config.theme=='diy'?config.textColor:'')+';'+('border-color:'+(config.theme=='diy'?config.textColor:'')+';')}}" id="{{'goods-'+item.$orig.id}}" data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" catchtap="__e"><view class="click-event data-v-46dabf0c"></view></view></block><block wx:else><block wx:if="{{config.style=='button'}}"><view class="cart buy-btn click-wrap data-v-46dabf0c" style="{{'background-color:'+(config.theme=='diy'?config.bgColor:'')+';'+('color:'+(config.theme=='diy'?config.textColor:'')+';')+('font-weight:'+(config.theme=='diy'?config.fontWeight?'bold':'normal':'')+';')+('padding:'+(config.theme=='diy'?'12rpx '+config.padding*2+'rpx':'')+';')}}" id="{{'goods-'+item.$orig.id}}" data-event-opts="{{[['tap',[['e6',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" catchtap="__e">{{''+config.text+''}}<view class="click-event data-v-46dabf0c"></view></view></block><block wx:else><block wx:if="{{config.style=='icon-diy'}}"><view class="icon-diy click-wrap data-v-46dabf0c" style="{{'color:'+(config.theme=='diy'?config.textColor:'')+';'}}" id="{{'goods-'+item.$orig.id}}" data-event-opts="{{[['tap',[['e7',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" catchtap="__e"><view class="click-event data-v-46dabf0c"></view><diy-icon vue-id="{{('36971996-3-'+index)+','+('36971996-1')}}" icon="{{config.iconDiy.icon}}" value="{{config.iconDiy.style?config.iconDiy.style:null}}" class="data-v-46dabf0c" bind:__l="__l"></diy-icon></view></block></block></block></block></view></block></view></view></view></block></view><block wx:if="{{$root.g8}}"><view class="data-v-46dabf0c"><ns-empty vue-id="{{('36971996-4')+','+('36971996-1')}}" text="暂无商品" class="data-v-46dabf0c" bind:__l="__l"></ns-empty></view></block></view></mescroll-uni><ns-goods-sku-index bind:addCart="__e" vue-id="36971996-5" data-ref="goodsSkuIndex" data-event-opts="{{[['^addCart',[['addCart']]]]}}" class="data-v-46dabf0c vue-ref" bind:__l="__l"></ns-goods-sku-index><uni-drawer class="screen-wrap data-v-46dabf0c" vue-id="36971996-6" visible="{{showScreen}}" mode="right" data-event-opts="{{[['^close',[['e8']]]]}}" bind:close="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="title color-tip data-v-46dabf0c">筛选</view><scroll-view scroll-y="{{true}}" class="data-v-46dabf0c"><view class="item-wrap data-v-46dabf0c"><view class="label data-v-46dabf0c"><text class="data-v-46dabf0c">是否包邮</text></view><view class="list data-v-46dabf0c"><view data-event-opts="{{[['tap',[['e9',['$event']]]]]}}" class="list-wrap data-v-46dabf0c" bindtap="__e"><text class="{{['data-v-46dabf0c',(isFreeShipping)?'color-base-text':'']}}">包邮</text></view></view></view><view class="item-wrap data-v-46dabf0c"><view class="label data-v-46dabf0c"><text class="data-v-46dabf0c">价格区间(元)</text></view><view class="price-wrap data-v-46dabf0c"><input class="uni-input data-v-46dabf0c" type="digit" placeholder="最低价" data-event-opts="{{[['input',[['__set_model',['','minPrice','$event',[]]]]]]}}" value="{{minPrice}}" bindinput="__e"/><view class="h-line data-v-46dabf0c"></view><input class="uni-input data-v-46dabf0c" type="digit" placeholder="最高价" data-event-opts="{{[['input',[['__set_model',['','maxPrice','$event',[]]]]]]}}" value="{{maxPrice}}" bindinput="__e"/></view></view><block wx:if="{{$root.g9>0}}"><view class="item-wrap data-v-46dabf0c"><view class="label data-v-46dabf0c"><text class="data-v-46dabf0c">品牌</text></view><view class="list data-v-46dabf0c"><block wx:for="{{brandList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['e10',['$event']]]]]}}" data-event-params="{{({item})}}" class="list-wrap data-v-46dabf0c" bindtap="__e"><text class="{{['data-v-46dabf0c',(item.brand_id==brandId)?'color-base-text':'']}}">{{item.brand_name}}</text></view></block></view></view></block><view class="category-list-wrap data-v-46dabf0c"><text class="first data-v-46dabf0c">全部分类</text><view class="class-box data-v-46dabf0c"><view data-event-opts="{{[['tap',[['selectedCategory',['']]]]]}}" class="list-wrap data-v-46dabf0c" bindtap="__e"><text class="{{['data-v-46dabf0c',(!categoryId)?'selected':'',(!categoryId)?'color-base-text':'']}}">全部</text></view><block wx:for="{{categoryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['selectedCategory',['$0'],[[['categoryList','',index,'category_id']]]]]]]}}" class="list-wrap data-v-46dabf0c" bindtap="__e"><text class="{{['data-v-46dabf0c',(item.category_id==categoryId)?'selected':'',(item.category_id==categoryId)?'color-base-text':'']}}">{{item.category_name}}</text></view></block></view></view></scroll-view><view class="{{['footer','data-v-46dabf0c',(isIphoneX)?'safe-area':'']}}"><button class="footer-box data-v-46dabf0c" type="default" data-event-opts="{{[['tap',[['resetData',['$event']]]]]}}" bindtap="__e">重置</button><button class="footer-box1 data-v-46dabf0c" type="primary" data-event-opts="{{[['tap',[['screenData',['$event']]]]]}}" bindtap="__e">确定</button></view></uni-drawer><hover-nav vue-id="36971996-7" class="data-v-46dabf0c" bind:__l="__l"></hover-nav><loading-cover vue-id="36971996-8" data-ref="loadingCover" class="data-v-46dabf0c vue-ref" bind:__l="__l"></loading-cover><privacy-popup vue-id="36971996-9" data-ref="privacyPopup" class="data-v-46dabf0c vue-ref" bind:__l="__l"></privacy-popup></view>