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 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shop_street/shop_street"],{"49a7":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7eb4")),a=o(n("ee10")),i=o(n("7ca3")),s=n("8f59"),c=o(n("8462")),u=n("03a1"),l=n("c2cb");function f(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}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h={mixins:[c.default],data:function(){return{shopList:[],shopCategory:[],keyword:"",active:-1,upOption:{auto:!1,empty:{icon:"/static/images/goods_null.png",tip:"暂无数据~"}},hotGoods:[]}},onShow:function(){this.appConfig.shop_street_hide||(t.setNavigationBarTitle({title:"商品"}),this.getHomeFun()),this.getCartNum()},onShareAppMessage:function(){var t=this.appConfig.share;return{title:t.mnp_share_title,path:"pages/shop_street/shop_street?invite_code="+this.inviteCode}},methods:p(p({},(0,s.mapActions)(["getCartNum"])),{},{downCallback:function(){var t=this;return(0,a.default)(r.default.mark((function e(){return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getShopCategoryFun();case 2:t.mescroll.resetUpScroll();case 3:case"end":return e.stop()}}),e)})))()},getHomeFun:function(){var t=this;return(0,a.default)(r.default.mark((function e(){var n,o,a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getHome)();case 2:n=e.sent,o=n.code,a=n.data,1==o&&(t.hotGoods=a.hots);case 6:case"end":return e.stop()}}),e)})))()},onReflesh:function(){this.shopList=[],this.mescroll.resetUpScroll()},changeActive:function(t){this.active=t,this.onReflesh()},upCallback:function(t){var e=this,n=t.num,o=t.size,r=this.keyword,a=this.active,i=this.shopCategory,s=-1==a?"":i[a].id;(0,u.getShopList)({page_no:n,page_size:o,name:r,shop_cate_id:s}).then((function(n){if(1==n.code){var o=n.data.list,r=o.length,a=!!n.data.more;1==t.num&&(e.shopList=[]),e.shopList=e.shopList.concat(o),e.mescroll.endSuccess(r,a)}})).catch((function(t){e.mescroll.endErr()}))},getShopCategoryFun:function(){var t=this;return(0,a.default)(r.default.mark((function e(){var n,o,a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.getShopCategory)();case 2:n=e.sent,o=n.code,a=n.data,1==o&&(t.shopCategory=a);case 6:case"end":return e.stop()}}),e)})))()}})};e.default=h}).call(this,n("df3c")["default"])},"82fe":function(t,e,n){"use strict";n.r(e);var o=n("49a7"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},"884b":function(t,e,n){"use strict";var o=n("ed0b"),r=n.n(o);r.a},9388:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uSearch:function(){return n.e("components/uview-ui/components/u-search/u-search").then(n.bind(null,"79b4"))},uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))},shopItem:function(){return n.e("components/shop-item/shop-item").then(n.bind(null,"209e"))},goodsList:function(){return n.e("components/goods-list/goods-list").then(n.bind(null,"877a"))}},r=function(){var t=this.$createElement,e=(this._self._c,this.appConfig.shop_street_hide?null:this.hotGoods.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]},a970:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("3712");o(n("3240"));var r=o(n("b813"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},b813:function(t,e,n){"use strict";n.r(e);var o=n("9388"),r=n("82fe");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("884b");var i=n("828b"),s=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=s.exports},ed0b:function(t,e,n){}},[["a970","common/runtime","common/vendor"]]]);

View File

@ -0,0 +1,9 @@
{
"navigationBarTitleText": "店铺街",
"usingComponents": {
"u-search": "/components/uview-ui/components/u-search/u-search",
"u-image": "/components/uview-ui/components/u-image/u-image",
"shop-item": "/components/shop-item/shop-item",
"goods-list": "/components/goods-list/goods-list"
}
}

View File

@ -0,0 +1 @@
<view class="shop-street"><block wx:if="{{appConfig.shop_street_hide}}"><mescroll-body class="vue-ref" vue-id="53bba2a6-1" up="{{upOption}}" data-ref="mescrollRef" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="shop-street-content"><view class="search"><u-search vue-id="{{('53bba2a6-2')+','+('53bba2a6-1')}}" bg-color="#F4F4F4" placeholder="搜索关键词" value="{{keyword}}" data-event-opts="{{[['^search',[['onReflesh']]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view><scroll-view class="bg-white" scroll-x="{{true}}" scroll-with-animation="{{true}}"><view class="store-category p-t-20"><view data-event-opts="{{[['tap',[['changeActive',[-1]]]]]}}" class="category-item flex-col col-center" bindtap="__e"><view class="icon-wrap" style="{{'border-color:'+(active==-1?colorConfig.primary:'')+';'}}"><u-image vue-id="{{('53bba2a6-3')+','+('53bba2a6-1')}}" width="68rpx" height="68rpx" border-radius="60rpx" src="/static/images/icon_shop_cate.png" bind:__l="__l"></u-image></view><view class="{{['xs','m-t-10',(active==-1)?'primary':'']}}">全部</view></view><block wx:for="{{shopCategory}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeActive',[index]]]]]}}" class="category-item flex-col col-center" bindtap="__e"><view class="icon-wrap" style="{{'border-color:'+(active==index?colorConfig.primary:'')+';'}}"><u-image vue-id="{{('53bba2a6-4-'+index)+','+('53bba2a6-1')}}" width="68rpx" height="68rpx" border-radius="60rpx" src="{{item.image}}" bind:__l="__l"></u-image></view><view class="{{['xs','m-t-10',(active==index)?'primary':'']}}">{{item.name}}</view></view></block></view></scroll-view><view class="store-container"><block wx:for="{{shopList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="m-t-20"><shop-item vue-id="{{('53bba2a6-5-'+index)+','+('53bba2a6-1')}}" item="{{item}}" bind:__l="__l"></shop-item></view></block></view></view></mescroll-body></block><block wx:else><view><block wx:if="{{$root.g0}}"><view class="p-b-20"><goods-list vue-id="53bba2a6-6" type="one" list="{{hotGoods}}" bind:__l="__l"></goods-list></view></block></view></block></view>

View File

@ -0,0 +1 @@
.shop-street .store-category{white-space:nowrap;padding-bottom:10rpx}.shop-street .store-category .category-item{display:inline-flex;padding:0 30rpx}.shop-street .store-category .category-item .icon-wrap{border:1px solid transparent;border-radius:50%}.shop-street .store-container{padding:0 30rpx}