Initial commit: queue workspace

Made-with: Cursor
This commit is contained in:
apple
2026-03-21 02:55:24 +08:00
commit 78de918c37
12388 changed files with 1840126 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/discover/discoverTopic/index"],{"09f8":function(t,n,i){"use strict";i.r(n);var e=i("2893"),o=i.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(a);n["default"]=o.a},"0d54":function(t,n,i){"use strict";i.r(n);var e=i("b3c1"),o=i("09f8");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(n,t,(function(){return o[t]}))}(a);i("b1a9");var c=i("828b"),s=Object(c["a"])(o["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=s.exports},2893:function(t,n,i){"use strict";(function(t){var e=i("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(i("89cc")),a=i("eb8a"),c={data:function(){return{tabActive:0,scrollStatus:!1,contentList:[],loading:!1,params:{page:1,limit:20,topic_id:"",keyword:"",is_interest:0,order:2},topicName:"",count:1}},components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)},waterfallsFlow:function(){i.e("components/discoverWaterfall/WaterfallsFlow").then(function(){return resolve(i("831d"))}.bind(null,i)).catch(i.oe)}},mixins:[o.default],computed:{navStyle:function(){return{backgroundColor:this.scrollStatus?"#fff":"transparent"}}},provide:function(){return{flowLike:this.flowLike}},onPageScroll:function(n){n.scrollTop>50?this.scrollStatus=!0:n.scrollTop<50&&(this.scrollStatus=!1),t.$emit("scroll")},onLoad:function(t){this.params.topic_id=t.id||"",this.topicName=t.name||"",this.getList(),this.getCount()},methods:{createTo:function(){t.navigateTo({url:"/pages/discover/discoverCreate/index?topic_name="+this.topicName})},changeTab:function(t){this.tabActive=t,this.params.order=0==t?2:1,this.loading=!1,this.params.page=1,this.contentList=[],this.getList()},getList:function(){var t=this;this.loading||(this.loading=!0,(0,a.communityListApi)(this.params).then((function(n){var i=n.data,e=i.length<t.params.limit;t.contentList=t.contentList.concat(i),t.params.page++,t.loading=e})))},getCount:function(){var t=this;(0,a.communityTopicCountApi)(this.params.topic_id).then((function(n){t.count=n.data.count}))},flowLike:function(t){var n=this.contentList.findIndex((function(n){return t.id==n.id}));this.contentList[n].is_like=t.status,1==t.status?this.contentList[n].like_num++:this.contentList[n].like_num--}},onReachBottom:function(){this.getList()}};n.default=c}).call(this,i("df3c")["default"])},4205:function(t,n,i){},b1a9:function(t,n,i){"use strict";var e=i("4205"),o=i.n(e);o.a},b3c1:function(t,n,i){"use strict";i.d(n,"b",(function(){return e})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){}));var e=function(){var t=this.$createElement,n=(this._self._c,this.__get_style([this.navStyle]));this.$mp.data=Object.assign({},{$root:{s0:n}})},o=[]},dcc0:function(t,n,i){"use strict";(function(t,n){var e=i("47a9");i("f076");e(i("3240"));var o=e(i("0d54"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])}},[["dcc0","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "话题列表",
"navigationBarBackgroundColor": "#FFFFFF",
"usingComponents": {
"empty-page": "/components/emptyPage",
"waterfalls-flow": "/components/discoverWaterfall/WaterfallsFlow"
}
}

View File

@@ -0,0 +1 @@
<view style="{{(colorStyle)}}"><view class="w-full abs-lt gradient-box"></view><view class="topic-box relative z-10"><view class="flex-between-center"><view><view class="fs-34 fw-500"><text class="iconfont icon-ic_talk_2 fs-36"></text><text class="pl-8">{{topicName}}</text></view><view class="fs-24 lh-36rpx pt-20 text--w111-666">{{count+"篇内容"}}</view></view><view data-event-opts="{{[['tap',[['createTo']]]]}}" class="w-162 h-60 rd-30rpx flex-center fs-24 text--w111-3d b-e" bindtap="__e"><text class="iconfont icon-ic_edit fs-24"></text><text class="pl-8">去发布</text></view></view><view class="pb-26rpx bb-e"></view></view><view class="nav-box w-full h-100 pl-30 fs-30 text--w111-999 flex-y-center" style="{{$root.s0}}"><text data-event-opts="{{[['tap',[['changeTab',[0]]]]]}}" class="{{[(tabActive==0)?'tab-active':'']}}" bindtap="__e">最热</text><text data-event-opts="{{[['tap',[['changeTab',[1]]]]]}}" class="{{['ml-52',(tabActive==1)?'tab-active':'']}}" bindtap="__e">最新</text></view><view class="px-20"><waterfalls-flow vue-id="53f575ea-1" wfList="{{contentList}}" data-event-opts="{{[['^onFlowLike',[['flowLike']]]]}}" bind:onFlowLike="__e" bind:__l="__l"></waterfalls-flow></view><home vue-id="53f575ea-2" bind:__l="__l"></home></view>

View File

@@ -0,0 +1 @@
.gradient-box{height:260rpx;background:linear-gradient(180deg,#fff,#f5f5f5);z-index:2}.topic-box{padding:42rpx 32rpx 0}.nav-box{position:-webkit-sticky;position:sticky;left:0;top:0;z-index:10}.b-e{border:1rpx solid #eee}.bb-e{border-bottom:1rpx solid #eee}.tab-active{font-weight:500;color:#333;position:relative}.tab-active:after{content:"";position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:-14rpx;width:40rpx;height:5rpx;background:var(--view-theme);border-radius:4rpx}