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,6 @@
wx.createComponent({
generic:true,
props: {leftList:{type:null}},
render: function(){}
})

View File

@ -0,0 +1,9 @@
{
"component": true,
"usingComponents": {
"goods-column-u-waterfall-left": "/components/goods-column/goods-column-u-waterfall-left",
"goods-column-u-waterfall-right": "/components/goods-column/goods-column-u-waterfall-right",
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
"goods-list": "/components/goods-list/goods-list"
}
}

View File

@ -0,0 +1 @@
<view style="padding:0 9rpx 0 30rpx;" class="data-v-45cf7f38"><goods-list vue-id="5262923c-3" width="336rpx" type="waterfall" list="{{leftList}}" class="data-v-45cf7f38" bind:__l="__l"></goods-list></view>

View File

@ -0,0 +1 @@
@import "./goods-column.wxss"

View File

@ -0,0 +1,6 @@
wx.createComponent({
generic:true,
props: {rightList:{type:null}},
render: function(){}
})

View File

@ -0,0 +1,9 @@
{
"component": true,
"usingComponents": {
"goods-column-u-waterfall-left": "/components/goods-column/goods-column-u-waterfall-left",
"goods-column-u-waterfall-right": "/components/goods-column/goods-column-u-waterfall-right",
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
"goods-list": "/components/goods-list/goods-list"
}
}

View File

@ -0,0 +1 @@
<view style="padding:0 30rpx 0 9rpx;" class="data-v-45cf7f38"><goods-list vue-id="5262923c-4" width="336rpx" type="waterfall" list="{{rightList}}" class="data-v-45cf7f38" bind:__l="__l"></goods-list></view>

View File

@ -0,0 +1 @@
@import "./goods-column.wxss"

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/goods-column/goods-column"],{"08a9":function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("7eb4")),u=o(n("ee10")),s=o(n("8462")),i=n("c2cb"),c={mixins:[s.default],props:{autoGetData:{type:Boolean,default:!0}},data:function(){return{goodsList:[],active:0,columnList:[],upOption:{auto:!1,empty:{icon:"/static/images/goods_null.png",tip:"暂无商品"},toTop:{bottom:"300rpx"}},downOption:{use:!1,isLock:!0},hasData:!0}},mounted:function(){this.autoGetData&&this.getData()},methods:{getData:function(){var t=this;return(0,u.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getGoodsColumnFun();case 2:t.$refs.uWaterfall&&t.$refs.uWaterfall.clear(),t.mescroll.resetUpScroll();case 4:case"end":return e.stop()}}),e)})))()},changeActive:function(t){this.active=t,this.$refs.uWaterfall.clear(),this.mescroll.resetUpScroll()},upCallback:function(t){var e=this,n=this.columnList,o=this.active,a=t.num,u=t.size;if(n.length){var s=n[o].id;(0,i.getGoodsListColumn)({page_size:u,page_no:a,column_id:s}).then((function(n){var o=n.data,a=o.lists,u=a.length,s=!!o.more;1==t.num&&(e.goodsList=[]),e.goodsList=e.goodsList.concat(a),e.mescroll.endSuccess(u,s)}))}},getGoodsColumnFun:function(){var t=this;return(0,u.default)(a.default.mark((function e(){var n,o,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,i.getGoodsColumn)();case 2:n=e.sent,o=n.data,u=n.code,1==u&&(t.columnList=o,t.hasData=!!o.length);case 6:case"end":return e.stop()}}),e)})))()}}};e.default=c},"6f3c":function(t,e,n){"use strict";var o=n("bf43"),a=n.n(o);a.a},"9c62":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var o={uWaterfall:function(){return n.e("components/uview-ui/components/u-waterfall/u-waterfall").then(n.bind(null,"b072"))},goodsList:function(){return n.e("components/goods-list/goods-list").then(n.bind(null,"877a"))}},a=function(){var t=this.$createElement;this._self._c},u=[]},ae6e:function(t,e,n){"use strict";n.r(e);var o=n("9c62"),a=n("af73");for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);n("6f3c");var s=n("828b"),i=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"45cf7f38",null,!1,o["a"],void 0);e["default"]=i.exports},af73:function(t,e,n){"use strict";n.r(e);var o=n("08a9"),a=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=a.a},bf43:function(t,e,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/goods-column/goods-column-create-component',
{
'components/goods-column/goods-column-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("ae6e"))
})
},
[['components/goods-column/goods-column-create-component']]
]);

View File

@ -0,0 +1,9 @@
{
"component": true,
"usingComponents": {
"goods-column-u-waterfall-left": "/components/goods-column/goods-column-u-waterfall-left",
"goods-column-u-waterfall-right": "/components/goods-column/goods-column-u-waterfall-right",
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
"goods-list": "/components/goods-list/goods-list"
}
}

View File

@ -0,0 +1 @@
<block wx:if="{{hasData}}"><mescroll-body vue-id="5262923c-1" up="{{upOption}}" down="{{downOption}}" data-ref="mescrollRef" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" class="data-v-45cf7f38 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="goods-column data-v-45cf7f38"><scroll-view scroll-x="true" class="data-v-45cf7f38"><view class="column-wrap data-v-45cf7f38"><block wx:for="{{columnList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeActive',[index]]]]]}}" class="item flex-col m-r-50 muted data-v-45cf7f38" bindtap="__e"><view class="{{['xxl','normal','title','data-v-45cf7f38',(active==index)?'bold':'']}}">{{item.name}}</view><view class="{{['m-t-8','xs','text-center','data-v-45cf7f38',(active==index)?'normal':'']}}">{{item.remark}}</view><block wx:if="{{active==index}}"><view class="line br60 data-v-45cf7f38"></view></block></view></block></view></scroll-view></view><view class="goods data-v-45cf7f38"><u-waterfall generic:scoped-slots-left="goods-column-u-waterfall-left" data-vue-generic="scoped" generic:scoped-slots-right="goods-column-u-waterfall-right" bind:input="__e" vue-id="{{('5262923c-2')+','+('5262923c-1')}}" add-time="{{20}}" data-ref="uWaterfall" value="{{goodsList}}" data-event-opts="{{[['^input',[['__set_model',['','goodsList','$event',[]]]]]]}}" class="data-v-45cf7f38 vue-ref" bind:__l="__l" vue-slots="{{['right','left']}}"></u-waterfall></view></mescroll-body></block>

View File

@ -0,0 +1 @@
.goods-column .column-wrap.data-v-45cf7f38{display:inline-block;white-space:nowrap;padding:30rpx}.goods-column .column-wrap .item.data-v-45cf7f38{display:inline-block;position:relative;overflow:hidden}.goods-column .column-wrap .item .title.data-v-45cf7f38{position:relative;z-index:1}.goods-column .column-wrap .item .line.data-v-45cf7f38{position:absolute;top:32rpx;left:0;width:144rpx;height:12rpx;background:linear-gradient(90deg,#ff2c3c,rgba(255,44,60,0))}