This commit is contained in:
2026-04-14 17:38:46 +08:00
commit b71e6d6bae
2848 changed files with 237896 additions and 0 deletions

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/cate-two/cate-two"],{"0674":function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7eb4")),i=o(n("7ca3")),a=o(n("af34")),s=o(n("ee10")),c=n("c2cb"),u=n("8f59"),f=n("f4fb");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var l={name:"cate-two",props:{cateList:{type:Array,default:function(){return[]}}},data:function(){return{selectIndex:0,cateTwoList:[],goodsList:[],sortConfig:{goodsType:"double",priceSort:"",saleSort:""},status:f.loadingType.LOADING,hasData:!0}},methods:{changeActive:function(t){this.selectIndex=t},getListByLevelOneFun:function(){var t=this;return(0,s.default)(r.default.mark((function e(){var n,o,i,a,s,u;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.selectIndex,o=t.cateList,o.length){e.next=3;break}return e.abrupt("return");case 3:return i=o[n].id,e.next=6,(0,c.getListByLevelOne)({id:i});case 6:a=e.sent,s=a.code,u=a.data,1==s&&(t.cateTwoList=u);case 10:case"end":return e.stop()}}),e)})))()},getGoodsListFun:function(){var t=this,e=this.page,n=this.cateList,o=this.status,r=this.selectIndex,i=this.goodsList,s=this.sortConfig,u=s.priceSort,d=s.saleSort;if(n.length){var l=n[r].id;o!=f.loadingType.FINISHED&&4!=this.appConfig.cate_style&&(0,c.getGoodsList)({page_no:e,platform_cate_id:l,sort_by_price:u,sort_by_sales:d}).then((function(e){if(1==e.code){var n=e.data,o=n.more,r=n.lists;if(i.push.apply(i,(0,a.default)(r)),t.page++,o||(t.status=f.loadingType.FINISHED),i.length<=0)return void(t.status=f.loadingType.EMPTY)}else t.status=f.loadingType.ERROR}))}},onRefresh:function(){this.status=f.loadingType.LOADING,this.page=1,this.goodsList=[],this.getGoodsListFun()}},watch:{selectIndex:function(){1==this.appConfig.cate_style?this.onRefresh():this.getListByLevelOneFun()},cateList:{immediate:!0,handler:function(t){this.hasData=!!t.length,1==this.appConfig.cate_style?this.onRefresh():this.getListByLevelOneFun()}},"sortConfig.saleSort":function(){this.onRefresh()},"sortConfig.priceSort":function(){this.onRefresh()}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,u.mapGetters)(["appConfig"]))};e.default=l},"17d6":function(t,e,n){},"24b7":function(t,e,n){"use strict";var o=n("17d6"),r=n.n(o);r.a},f3dd:function(t,e,n){"use strict";n.r(e);var o=n("0674"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},f42f:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={adSwipers:function(){return n.e("components/ad-swipers/ad-swipers").then(n.bind(null,"0791"))},uIcon:function(){return n.e("components/uview-ui/components/u-icon/u-icon").then(n.bind(null,"8f08"))},uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))},sortNav:function(){return n.e("components/sort-nav/sort-nav").then(n.bind(null,"c8b5"))},priceFormat:function(){return n.e("components/price-format/price-format").then(n.bind(null,"1738"))},loadingFooter:function(){return n.e("components/loading-footer/loading-footer").then(n.bind(null,"b48b"))}},r=function(){var t=this,e=t.$createElement,n=(t._self._c,4==t.appConfig.cate_style?t.__map(t.cateTwoList,(function(e,n){var o=t.__get_orig(e),r={path:"/pages/goods_search/goods_search",query:{id:e.id,name:e.name,type:1}},i=t.__map(e.children,(function(e,n){var o=t.__get_orig(e),r={path:"/pages/goods_search/goods_search",query:{id:e.id,name:e.name,type:1}};return{$orig:o,a1:r}}));return{$orig:o,a0:r,l0:i}})):null);t.$mp.data=Object.assign({},{$root:{l1:n}})},i=[]},fa8c:function(t,e,n){"use strict";n.r(e);var o=n("f42f"),r=n("f3dd");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("24b7");var a=n("828b"),s=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"763e3e61",null,!1,o["a"],void 0);e["default"]=s.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/cate-two/cate-two-create-component',
{
'components/cate-two/cate-two-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("fa8c"))
})
},
[['components/cate-two/cate-two-create-component']]
]);

View File

@ -0,0 +1,11 @@
{
"usingComponents": {
"ad-swipers": "/components/ad-swipers/ad-swipers",
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
"u-image": "/components/uview-ui/components/u-image/u-image",
"sort-nav": "/components/sort-nav/sort-nav",
"price-format": "/components/price-format/price-format",
"loading-footer": "/components/loading-footer/loading-footer"
},
"component": true
}

View File

@ -0,0 +1 @@
<view class="cate-two flex data-v-763e3e61" style="height:100%;"><view class="aside bg-white data-v-763e3e61"><scroll-view style="height:100%;" scroll-y="true" scroll-with-animation="true" class="data-v-763e3e61"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-763e3e61"><view data-event-opts="{{[['tap',[['changeActive',[index]]]]]}}" class="{{['data-v-763e3e61','one-item sm '+(index==selectIndex?'active':'')]}}" bindtap="__e"><text class="name data-v-763e3e61">{{item.name}}</text><block wx:if="{{index==selectIndex}}"><view class="active-line bg-primary data-v-763e3e61"></view></block></view></block></block></scroll-view></view><view class="main bg-body data-v-763e3e61"><scroll-view style="height:100%;" scroll-y="true" scroll-with-animation="true" data-event-opts="{{[['scrolltolower',[['getGoodsListFun',['$event']]]]]}}" bindscrolltolower="__e" class="data-v-763e3e61"><view class="main-wrap data-v-763e3e61"><ad-swipers vue-id="040ef07c-1" pid="{{11}}" height="200rpx" previous-margin="0" padding="0 0 20rpx" radius="10rpx" class="data-v-763e3e61" bind:__l="__l"></ad-swipers><block wx:if="{{appConfig.cate_style==4}}"><view class="cate-two data-v-763e3e61"><block wx:for="{{$root.l1}}" wx:for-item="sitem" wx:for-index="sindex" wx:key="sindex"><view class="two-item bg-white m-b-20 data-v-763e3e61"><router-link vue-id="{{'040ef07c-2-'+sindex}}" to="{{sitem.a0}}" class="data-v-763e3e61" bind:__l="__l" vue-slots="{{['default']}}"><view class="title flex row-between data-v-763e3e61"><text class="name bold sm data-v-763e3e61">{{sitem.$orig.name}}</text><u-icon vue-id="{{('040ef07c-3-'+sindex)+','+('040ef07c-2-'+sindex)}}" name="arrow-right" class="data-v-763e3e61" bind:__l="__l"></u-icon></view></router-link><view class="three-list flex flex-wrap data-v-763e3e61"><block wx:for="{{sitem.l0}}" wx:for-item="titem" wx:for-index="tindex" wx:key="tindex"><router-link class="three-item data-v-763e3e61" vue-id="{{'040ef07c-4-'+sindex+'-'+tindex}}" to="{{titem.a1}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex-col col-center m-b-20 data-v-763e3e61"><u-image vue-id="{{('040ef07c-5-'+sindex+'-'+tindex)+','+('040ef07c-4-'+sindex+'-'+tindex)}}" mode="aspectFit" width="150rpx" height="150rpx" src="{{titem.$orig.image}}" class="data-v-763e3e61" bind:__l="__l"></u-image><view class="text m-t-20 xs data-v-763e3e61">{{titem.$orig.name}}</view></view></router-link></block></view></view></block></view></block><block wx:if="{{appConfig.cate_style==1&&hasData}}"><view class="goods data-v-763e3e61"><view class="sort-nav-wrap data-v-763e3e61"><sort-nav bind:input="__e" vue-id="040ef07c-6" show-type="{{false}}" value="{{sortConfig}}" data-event-opts="{{[['^input',[['__set_model',['','sortConfig','$event',[]]]]]]}}" class="data-v-763e3e61" bind:__l="__l"></sort-nav></view><view class="goods data-v-763e3e61"><view class="goods-list data-v-763e3e61"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><router-link vue-id="{{'040ef07c-7-'+index}}" to="{{'/pages/goods_details/goods_details?id='+item.id}}" class="data-v-763e3e61" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex item bg-white m-t-20 data-v-763e3e61"><u-image vue-id="{{('040ef07c-8-'+index)+','+('040ef07c-7-'+index)}}" width="200rpx" height="200rpx" border-radius="14rpx" src="{{item.image}}" class="data-v-763e3e61" bind:__l="__l"></u-image><view class="flex-1 m-l-20 m-r-10 data-v-763e3e61"><view class="line-2 data-v-763e3e61">{{item.name}}</view><view class="muted data-v-763e3e61"><text class="xxs data-v-763e3e61">原价</text><price-format vue-id="{{('040ef07c-9-'+index)+','+('040ef07c-7-'+index)}}" subscript-size="{{22}}" first-size="{{22}}" second-size="{{22}}" price="{{item.market_price}}" class="data-v-763e3e61" bind:__l="__l"></price-format></view><view class="primary mt10 data-v-763e3e61"><price-format vue-id="{{('040ef07c-10-'+index)+','+('040ef07c-7-'+index)}}" price="{{item.min_price}}" subscript-size="{{22}}" first-size="{{34}}" second-size="{{26}}" class="data-v-763e3e61" bind:__l="__l"></price-format></view></view></view></router-link></block></view><loading-footer vue-id="040ef07c-11" status="{{status}}" slot-empty="{{true}}" class="data-v-763e3e61" bind:__l="__l" vue-slots="{{['empty']}}"><view class="flex-col col-center data-v-763e3e61" style="padding:200rpx 0 0;" slot="empty"><image class="img-null data-v-763e3e61" src="/static/images/goods_null.png"></image><text class="lighter sm data-v-763e3e61">暂无商品</text></view></loading-footer></view></view></block></view></scroll-view></view></view>

View File

@ -0,0 +1 @@
.cate-two .aside.data-v-763e3e61{width:180rpx;flex:none;height:100%}.cate-two .aside .one-item.data-v-763e3e61{position:relative;text-align:center;padding:26rpx 10rpx}.cate-two .aside .one-item.active.data-v-763e3e61{color:#ff2c3c;font-size:26rpx;font-weight:700}.cate-two .aside .one-item .active-line.data-v-763e3e61{position:absolute;width:6rpx;height:30rpx;left:4rpx;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cate-two .main.data-v-763e3e61{height:100%;flex:1}.cate-two .main .main-wrap.data-v-763e3e61{position:relative;padding:20rpx 20rpx 0}.cate-two .main .main-wrap .two-item.data-v-763e3e61{border-radius:10rpx}.cate-two .main .main-wrap .two-item .title.data-v-763e3e61{height:90rpx;padding:0 20rpx}.cate-two .main .main-wrap .two-item .title .line.data-v-763e3e61{width:40rpx;height:1px;background-color:#bbb}.cate-two .main .main-wrap .two-item .three-list.data-v-763e3e61{align-items:flex-start;padding:0 10rpx}.cate-two .main .main-wrap .two-item .three-list .three-item.data-v-763e3e61{width:33%}.cate-two .main .main-wrap .two-item .three-list .three-item .text.data-v-763e3e61{text-align:center}.cate-two .main .goods .item.data-v-763e3e61{border-radius:14rpx}