Initial commit: queue workspace
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/discoverWaterfall/WaterfallsFlow"],{"2d1b":function(t,i,e){"use strict";e.d(i,"b",(function(){return s})),e.d(i,"c",(function(){return l})),e.d(i,"a",(function(){}));var s=function(){var t=this.$createElement,i=(this._self._c,this.leftList.length),e=this.rightList.length;this.$mp.data=Object.assign({},{$root:{g0:i,g1:e}})},l=[]},"831d":function(t,i,e){"use strict";e.r(i);var s=e("2d1b"),l=e("de41");for(var n in l)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return l[t]}))}(n);e("987d");var h=e("828b"),a=Object(h["a"])(l["default"],s["b"],s["c"],!1,null,"0ea224ea",null,!1,s["a"],void 0);i["default"]=a.exports},"987d":function(t,i,e){"use strict";var s=e("cc1e"),l=e.n(s);l.a},cc1e:function(t,i,e){},dd9d:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e("769c"),e("4d38");var s={components:{WaterfallsFlowItem:function(){e.e("components/discoverWaterfall/WaterfallsFlowItem").then(function(){return resolve(e("c952"))}.bind(null,e)).catch(e.oe)}},props:{wfList:{type:Array,require:!0},type:{type:Number,default:0},updateNum:{type:Number,default:10},border:{type:Boolean,default:!1},isSelf:{type:Boolean,default:!1}},data:function(){return{allList:[],leftList:[],rightList:[],mark:0,boxHeight:[]}},watch:{wfList:{handler:function(t,i){var e=this;(!this.wfList.length||this.wfList.length===this.updateNum&&this.wfList.length<=this.allList.length)&&(this.allList=[],this.leftList=[],this.rightList=[],this.boxHeight=[],this.mark=0),this.wfList.length&&(this.allList=this.wfList,this.leftList=[],this.rightList=[],this.boxHeight=[],this.allList.forEach((function(t,i){(e.allList.length<3||e.allList.length<=7&&e.allList.length-i>1||e.allList.length>7&&e.allList.length-i>2)&&(i%2?e.rightList.push(t):e.leftList.push(t))})),this.allList.length<3?this.mark=this.allList.length+1:this.allList.length<=7?this.mark=this.allList.length-1:this.mark=this.allList.length-2,this.mark<this.allList.length&&this.waterFall())},immediate:!0,deep:!0},mounted:function(){},mark:function(){var t=this.allList.length;this.mark<t&&0!==this.mark&&this.boxHeight.length&&this.waterFall()}},methods:{waterFall:function(){var t=this.mark;if(0==t)this.leftList.push(this.allList[t]),this.getViewHeight(0);else if(1==t)this.rightList.push(this.allList[t]),this.getViewHeight(1);else{if(this.boxHeight.length){var i=this.boxHeight[0]>this.boxHeight[1]?1:0;i?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t])}else this.rightList.length<this.leftList.length?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t]);this.getViewHeight()}},getViewHeight:function(){var i=this;this.$nextTick((function(){setTimeout((function(){t.createSelectorQuery().in(i).select("#right").boundingClientRect((function(e){e&&(i.boxHeight[1]=e.height),t.createSelectorQuery().in(i).select("#left").boundingClientRect((function(t){t&&(i.boxHeight[0]=t.height),i.mark=i.mark+1})).exec()})).exec()}),100)}))},itemTap:function(i){if(1==i.content_type)t.navigateTo({url:"/pages/discover/discoverDetails/index?id="+i.id});else{this.isSelf?t.navigateTo({url:"/pages/discover/discoverVideo/index?id="+i.id+"&relation_id="+i.relation_id}):t.navigateTo({url:"/pages/discover/discoverVideo/index?id="+i.id})}}}};i.default=s}).call(this,e("df3c")["default"])},de41:function(t,i,e){"use strict";e.r(i);var s=e("dd9d"),l=e.n(s);for(var n in s)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(n);i["default"]=l.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/discoverWaterfall/WaterfallsFlow-create-component',
|
||||
{
|
||||
'components/discoverWaterfall/WaterfallsFlow-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("831d"))
|
||||
})
|
||||
},
|
||||
[['components/discoverWaterfall/WaterfallsFlow-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"waterfalls-flow-item": "/components/discoverWaterfall/WaterfallsFlowItem"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-0ea224ea','wf-page wf-page'+type]}}"><view class="data-v-0ea224ea"><block wx:if="{{$root.g0}}"><view id="left" class="data-v-0ea224ea"><block wx:for="{{leftList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['itemTap',['$0'],[[['leftList','',index]]]]]]]}}" class="wf-item data-v-0ea224ea" bindtap="__e"><waterfalls-flow-item vue-id="{{'07d9a016-1-'+index}}" item="{{item}}" border="{{border}}" class="data-v-0ea224ea" bind:__l="__l"></waterfalls-flow-item></view></block></view></block></view><view class="data-v-0ea224ea"><block wx:if="{{$root.g1}}"><view id="right" class="data-v-0ea224ea"><block wx:for="{{rightList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['itemTap',['$0'],[[['rightList','',index]]]]]]]}}" class="wf-item data-v-0ea224ea" bindtap="__e"><waterfalls-flow-item vue-id="{{'07d9a016-2-'+index}}" item="{{item}}" border="{{border}}" class="data-v-0ea224ea" bind:__l="__l"></waterfalls-flow-item></view></block></view></block></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
.wf-page.data-v-0ea224ea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px}.wf-item.data-v-0ea224ea{width:calc((100vw - 2 * 10px - 10px) / 2);padding-bottom:10px}.wf-page1 .wf-item.data-v-0ea224ea{margin-top:20rpx;background-color:#fff;border-radius:20rpx;padding-bottom:0}
|
||||
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/discoverWaterfall/WaterfallsFlowItem"],{6277:function(e,t,n){"use strict";n.r(t);var i=n("b73c"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},a02c:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={easyLoadimage:function(){return n.e("components/easy-loadimage/easy-loadimage").then(n.bind(null,"94dd"))}},r=function(){var e=this.$createElement,t=(this._self._c,1==this.item.content_type?this.item.slider_image.length:null),n=[0,-1,-2].includes(this.item.is_verify);this.$mp.data=Object.assign({},{$root:{g0:t,g1:n}})},o=[]},b73c:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("7ca3")),o=n("eb8a"),a=n("8f59"),c=n("4d38");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var s={components:{easyLoadimage:function(){n.e("components/easy-loadimage/easy-loadimage").then(function(){return resolve(n("94dd"))}.bind(null,n)).catch(n.oe)}},props:{item:{type:Object,require:!0},border:{type:Boolean,default:!1}},inject:["flowLike"],data:function(){return{domain:c.HTTP_REQUEST_URL}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,a.mapGetters)(["isLogin","uid"])),methods:{toUser:function(){e.navigateTo({url:"/pages/discover/discoverUser/index?id="+this.item.relation_id})},contentLike:function(){var e=this;if(!this.isLogin)return this.$util.Tips({title:"请登录"});var t=1==this.item.is_like?0:1,n=this;(0,o.communityLikeApi)(this.item.id,{status:t}).then((function(e){n.flowLike({id:n.item.id,status:t})})).catch((function(t){return e.$util.Tips({title:t})}))}}};t.default=s}).call(this,n("df3c")["default"])},c952:function(e,t,n){"use strict";n.r(t);var i=n("a02c"),r=n("6277");for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("e1ea");var a=n("828b"),c=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"65c0134e",null,!1,i["a"],void 0);t["default"]=c.exports},e1ea:function(e,t,n){"use strict";var i=n("ffd5"),r=n.n(i);r.a},ffd5:function(e,t,n){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/discoverWaterfall/WaterfallsFlowItem-create-component',
|
||||
{
|
||||
'components/discoverWaterfall/WaterfallsFlowItem-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("c952"))
|
||||
})
|
||||
},
|
||||
[['components/discoverWaterfall/WaterfallsFlowItem-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"easy-loadimage": "/components/easy-loadimage/easy-loadimage"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="wf-item-page wf-page0 data-v-65c0134e"><view class="pictrue relative data-v-65c0134e"><easy-loadimage vue-id="82e8b67a-1" mode="widthFix" image-src="{{item.image}}" width="100%" borderRadius="16rpx 16rpx 0 0" class="data-v-65c0134e" bind:__l="__l"></easy-loadimage><block wx:if="{{item.content_type==2}}"><view class="player flex-center data-v-65c0134e"><text class="iconfont icon-ic_right2 fs-20 data-v-65c0134e"></text></view></block><block wx:if="{{item.content_type==1}}"><view class="w-60 h-36 rd-4rpx flex-center fs-22 text--w111-fff pic-number data-v-65c0134e">{{$root.g0+"图"}}</view></block><block wx:if="{{$root.g1}}"><view class="abs-lt w-full h-full flex-col flex-center text--w111-fff shenhe data-v-65c0134e"><text hidden="{{!(item.is_verify==0)}}" class="fs-28 data-v-65c0134e">正在审核</text><text hidden="{{!(item.is_verify==0)}}" class="fs-24 pt-22 data-v-65c0134e">通过后将展示在列表</text><text hidden="{{!(item.is_verify==-1)}}" class="fs-28 data-v-65c0134e">审核未通过</text><text hidden="{{!(item.is_verify==-1)}}" class="fs-24 pt-22 data-v-65c0134e">查看未通过原因</text><text hidden="{{!(item.is_verify==-2)}}" class="fs-28 data-v-65c0134e">强制下架</text><text hidden="{{!(item.is_verify==-2)}}" class="fs-24 pt-22 data-v-65c0134e">查看下架原因</text></view></block></view><view class="{{['info_box','data-v-65c0134e',(border)?'box-border':'']}}"><view class="w-full lh-40rpx fs-28 line2 data-v-65c0134e">{{item.title}}</view><view class="pt-22 fs-22 text--w111-999 flex-between-center data-v-65c0134e"><view data-event-opts="{{[['tap',[['toUser',['$event']]]]]}}" class="flex-y-center data-v-65c0134e" catchtap="__e"><image class="w-34 h-34 rd-50-p111- data-v-65c0134e" src="{{item.author_image||'/static/images/f.png'}}"></image><text class="pl-8 w-180 line1 data-v-65c0134e">{{item.author||'用户已注销'}}</text></view><view data-event-opts="{{[['tap',[['contentLike',['$event']]]]]}}" class="{{['flex-y-center','data-v-65c0134e',(item.is_like)?'text-red':'']}}" catchtap="__e"><text class="{{['iconfont','fs-24','data-v-65c0134e',item.is_like?'icon-icon_Like_2':'icon-ic_Like']}}"></text><text class="pl-10 data-v-65c0134e">{{item.like_num}}</text></view></view></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
.wf-item-page.data-v-65c0134e{background:#fff;overflow:hidden;border-radius:20rpx}.pictrue.data-v-65c0134e{max-height:500rpx;overflow-y:hidden}.info_box.data-v-65c0134e{padding:24rpx;border-radius:0 0 24rpx 24rpx;background-color:#fff}.box-border.data-v-65c0134e{border:1rpx solid #eee}.text-red.data-v-65c0134e{color:#e93323}.player.data-v-65c0134e{position:absolute;top:20rpx;right:20rpx;width:40rpx;height:40rpx;border-radius:50%;background-color:rgba(51,51,51,.5);color:#fff}.shenhe.data-v-65c0134e{background-color:rgba(0,0,0,.4)}.pic-number.data-v-65c0134e{position:absolute;right:16rpx;bottom:16rpx;background:hsla(0,0%,40%,.5)}
|
||||
Reference in New Issue
Block a user