public
This commit is contained in:
1
public/mp-weixin/pages/community/community.js
Normal file
1
public/mp-weixin/pages/community/community.js
Normal file
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/community/community"],{"2fa3":function(n,e,t){"use strict";(function(n,e){var o=t("47a9");t("3712");o(t("3240"));var a=o(t("943d"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(a.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"75f8":function(n,e,t){"use strict";var o=t("bf13"),a=t.n(o);a.a},"7bb8":function(n,e,t){"use strict";t.d(e,"b",(function(){return a})),t.d(e,"c",(function(){return u})),t.d(e,"a",(function(){return o}));var o={tabbar:function(){return Promise.all([t.e("common/vendor"),t.e("components/tabbar/tabbar")]).then(t.bind(null,"f8dc"))}},a=function(){var n=this.$createElement;this._self._c},u=[]},"943d":function(n,e,t){"use strict";t.r(e);var o=t("7bb8"),a=t("dad6");for(var u in a)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return a[n]}))}(u);t("75f8");var c=t("828b"),r=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports},aa95:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={components:{LikeHeader:function(){Promise.all([t.e("common/vendor"),t.e("pages/community/components/like-header")]).then(function(){return resolve(t("efd8"))}.bind(null,t)).catch(t.oe)},Explore:function(){Promise.all([t.e("common/vendor"),t.e("pages/community/components/explore")]).then(function(){return resolve(t("f2bf"))}.bind(null,t)).catch(t.oe)},Follow:function(){Promise.all([t.e("common/vendor"),t.e("pages/community/components/follow")]).then(function(){return resolve(t("323d"))}.bind(null,t)).catch(t.oe)}},data:function(){return{currentNav:1,communityShareItem:{}}},onUnload:function(){n.$off("changeItem"),n.$off("hasNew")},onShareAppMessage:function(){return{path:"/pages/community/community"}},methods:{handleNav:function(n){this.currentNav=Number(n)},handleShare:function(n){this.communityShareItem=n}}};e.default=o}).call(this,t("df3c")["default"])},bf13:function(n,e,t){},dad6:function(n,e,t){"use strict";t.r(e);var o=t("aa95"),a=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=a.a}},[["2fa3","common/runtime","common/vendor"]]]);
|
||||
9
public/mp-weixin/pages/community/community.json
Normal file
9
public/mp-weixin/pages/community/community.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "种草",
|
||||
"usingComponents": {
|
||||
"tabbar": "/components/tabbar/tabbar",
|
||||
"like-header": "/pages/community/components/like-header",
|
||||
"explore": "/pages/community/components/explore",
|
||||
"follow": "/pages/community/components/follow"
|
||||
}
|
||||
}
|
||||
1
public/mp-weixin/pages/community/community.wxml
Normal file
1
public/mp-weixin/pages/community/community.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="community"><block wx:if="{{appConfig.is_open_community}}"><like-header vue-id="58d24f6c-1" current="{{currentNav}}" data-event-opts="{{[['^change',[['handleNav']]]]}}" bind:change="__e" bind:__l="__l"></like-header><view class="container"><follow data-custom-hidden="{{!(currentNav===0)}}" vue-id="58d24f6c-2" active="{{currentNav}}" data-event-opts="{{[['^share',[['handleShare']]]]}}" bind:share="__e" bind:__l="__l"></follow><explore data-custom-hidden="{{!(currentNav===1)}}" vue-id="58d24f6c-3" active="{{currentNav}}" bind:__l="__l"></explore></view></block><block wx:else><view class="community-empty flex-col col-center row-center"><image class="img-null" src="/static/images/follow_null.png"></image><view class="muted mt20">当前页面暂无内容~</view></view></block><tabbar vue-id="58d24f6c-4" bind:__l="__l"></tabbar></view>
|
||||
1
public/mp-weixin/pages/community/community.wxss
Normal file
1
public/mp-weixin/pages/community/community.wxss
Normal file
@ -0,0 +1 @@
|
||||
page{padding:0}.community{display:flex;height:calc(100vh - 0px);overflow:hidden;flex-direction:column}.community-empty{height:calc(100vh - 0px)}.community .container{flex:1;min-height:0;overflow:scroll}
|
||||
10
public/mp-weixin/pages/community/components/explore.js
Normal file
10
public/mp-weixin/pages/community/components/explore.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/community/components/explore"],{"09ff":function(n,t,e){"use strict";e.r(t);var o=e("b724"),i=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(c);t["default"]=i.a},7544:function(n,t,e){},b724:function(n,t,e){"use strict";var o=e("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(e("af34")),c=e("6440"),u={components:{Lists:function(){Promise.all([e.e("common/vendor"),e.e("pages/community/components/lists")]).then(function(){return resolve(e("38d6"))}.bind(null,e)).catch(e.oe)}},data:function(){return{tabList:[{name:"全部",id:""}],current:0}},created:function(){this.initRecommendTopic()},methods:{initMescroll:function(n){this.isInit=!0,this.mescroll=n},handleCancel:function(){this.keyword=""},changeTabs:function(n){this.current=n},initRecommendTopic:function(){var n=this;(0,c.getCommunityCate)().then((function(t){1===t.code?n.tabList=[{name:"全部",id:""}].concat((0,i.default)(t.data)):n.$toast({title:t.msg})}))}}};t.default=u},cb23:function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){return o}));var o={uSearch:function(){return e.e("components/uview-ui/components/u-search/u-search").then(e.bind(null,"79b4"))},tabs:function(){return Promise.all([e.e("common/vendor"),e.e("components/tabs/tabs")]).then(e.bind(null,"ffae"))},tab:function(){return e.e("components/tab/tab").then(e.bind(null,"9777"))}},i=function(){var n=this.$createElement;this._self._c},c=[]},d665:function(n,t,e){"use strict";var o=e("7544"),i=e.n(o);i.a},f2bf:function(n,t,e){"use strict";e.r(t);var o=e("cb23"),i=e("09ff");for(var c in i)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(c);e("d665");var u=e("828b"),a=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"e699194a",null,!1,o["a"],void 0);t["default"]=a.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages/community/components/explore-create-component',
|
||||
{
|
||||
'pages/community/components/explore-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("f2bf"))
|
||||
})
|
||||
},
|
||||
[['pages/community/components/explore-create-component']]
|
||||
]);
|
||||
9
public/mp-weixin/pages/community/components/explore.json
Normal file
9
public/mp-weixin/pages/community/components/explore.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-search": "/components/uview-ui/components/u-search/u-search",
|
||||
"tabs": "/components/tabs/tabs",
|
||||
"tab": "/components/tab/tab",
|
||||
"lists": "/pages/community/components/lists"
|
||||
}
|
||||
}
|
||||
1
public/mp-weixin/pages/community/components/explore.wxml
Normal file
1
public/mp-weixin/pages/community/components/explore.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="explore data-v-e699194a"><view class="data-v-e699194a"><router-link vue-id="09b6b8ad-1" to="{{({path:'/bundle_b/pages/community_search/community_search'})}}" class="data-v-e699194a" bind:__l="__l" vue-slots="{{['default']}}"><u-search vue-id="{{('09b6b8ad-2')+','+('09b6b8ad-1')}}" disabled="{{true}}" placeholder="请输入搜索内容" height="64" class="data-v-e699194a" bind:__l="__l"></u-search></router-link></view><view class="content data-v-e699194a"><tabs vue-id="09b6b8ad-3" current="{{current}}" height="100" data-event-opts="{{[['^change',[['changeTabs']]]]}}" bind:change="__e" class="data-v-e699194a" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{tabList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><tab vue-id="{{('09b6b8ad-4-'+index)+','+('09b6b8ad-3')}}" name="{{item.name}}" class="data-v-e699194a" bind:__l="__l" vue-slots="{{['default']}}"><lists vue-id="{{('09b6b8ad-5-'+index)+','+('09b6b8ad-4-'+index)}}" cateId="{{item.id}}" i="{{index}}" index="{{current}}" class="data-v-e699194a" bind:__l="__l"></lists></tab></block></tabs></view></view>
|
||||
1
public/mp-weixin/pages/community/components/explore.wxss
Normal file
1
public/mp-weixin/pages/community/components/explore.wxss
Normal file
@ -0,0 +1 @@
|
||||
.explore .content.data-v-e699194a{height:calc(100vh - 92px - 0px);overflow:hidden}
|
||||
10
public/mp-weixin/pages/community/components/follow.js
Normal file
10
public/mp-weixin/pages/community/components/follow.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/community/components/follow"],{"2a37":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return o}));var o={mescrollUni:function(){return Promise.all([e.e("common/vendor"),e.e("components/mescroll-uni/mescroll-uni")]).then(e.bind(null,"8293"))},uImage:function(){return e.e("components/uview-ui/components/u-image/u-image").then(e.bind(null,"28a8"))},productSwiper:function(){return e.e("components/product-swiper/product-swiper").then(e.bind(null,"c85e"))},uIcon:function(){return e.e("components/uview-ui/components/u-icon/u-icon").then(e.bind(null,"8f08"))},communityGoods:function(){return e.e("components/community-goods/community-goods").then(e.bind(null,"c46b"))},communityShop:function(){return e.e("components/community-shop/community-shop").then(e.bind(null,"aa96"))},communityCommentPopup:function(){return e.e("components/community-comment-popup/community-comment-popup").then(e.bind(null,"e890"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.lists,(function(n,e){var o=t.__get_orig(n),i=n.goods_data.length,s=i?n.goods_data.length:null,c=n.shop_data.length,u=c?n.shop_data.length:null;return{$orig:o,g0:i,g1:s,g2:c,g3:u}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},s=[]},"323d":function(t,n,e){"use strict";e.r(n);var o=e("2a37"),i=e("5191");for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e("ad3a");var c=e("828b"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"f9fcac5a",null,!1,o["a"],void 0);n["default"]=u.exports},5191:function(t,n,e){"use strict";e.r(n);var o=e("b8e4"),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},"9fec":function(t,n,e){},ad3a:function(t,n,e){"use strict";var o=e("9fec"),i=e.n(o);i.a},b8e4:function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("7eb4")),s=o(e("af34")),c=o(e("ee10")),u=e("6440"),l=e("0aec"),a=o(e("8462")),r=o(e("8628")),h={mixins:[a.default,r.default],props:{active:{type:Number}},data:function(){return{height:"",canReset:!0,isLikes:!1,communityId:"",upOption:{empty:{icon:"/static/images/follow_null.png",tip:"暂未关注任何种草官哦~",fixed:!0,top:"200rpx"}},lists:[],show:!1,showGoodsPopup:!1,showShopPopup:!1,showTips:!1,showComment:!1}},watch:{active:function(){t.$emit("hasNew",0),this.mescroll.resetUpScroll()}},created:function(){var n=this;this.handleCommunityLike=(0,l.debounce)(this.handleCommunityLike,100),t.getSystemInfo({success:function(t){n.height=t.windowHeight-46+"px"}})},methods:{initMescroll:function(t){this.isInit=!0,this.mescroll=t},upCallback:function(t){var n=this;return(0,c.default)(i.default.mark((function e(){var o,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n.current,o=t.num,c=t.size,(0,u.getCommunityFollow)({page_no:o,page_size:c}).then((function(t){1==o&&(n.lists=[]);var e=!!t.data.more;t.data.list=n.handleContent(t.data.list),n.lists=[].concat((0,s.default)(n.lists),(0,s.default)(t.data.list)),n.mescroll.endSuccess(t.data.list.length,e)})).catch((function(t){n.mescroll.endErr()}));case 4:case"end":return e.stop()}}),e)})))()},handleOpenGoods:function(t){this.communityId=t,this.showGoodsPopup=!0},handleOpenShop:function(t){this.communityId=t,this.showShopPopup=!0},handleContent:function(t){return t.filter((function(t){if(t.content.indexOf("\n")>-1){var n=t.content.split("\n");n.length>=3?(t.show=!0,n[0].length>=25||n[1].length>=25||n[2].length,t.beforeContent=t.content.slice(0,n[0].length+n[1].length+n[2].length-10)):t.content.length>=70&&(t.show=!0,t.beforeContent=t.content.slice(0,70))}else t.content.length>=70&&(t.show=!0,t.beforeContent=t.content.slice(0,70));return!0}))},handleShowContent:function(t){this.$set(this.lists[t],"show",!1)},handleShare:function(t){this.$emit("share",t)},handleCommunityLike:function(n,e){var o=this;switch(n){case 0:this.$set(e,"like",e.like+1),this.$set(e,"is_like",1);break;case 1:this.$set(e,"like",e.like-1),this.$set(e,"is_like",0);break}(0,u.apiCommunityCommentLike)({id:e.id,status:n?0:1,type:1}).then((function(i){if(1===i.code)t.$emit("changeItem",{like:e.like,is_like:e.is_like,id:e.id});else{switch(n){case 0:o.$set(e,"like",e.like-1),o.$set(e,"is_like",0);break;case 1:o.$set(e,"like",e.like+1),o.$set(e,"is_like",1);break}o.$toast({title:i.msg})}}))},handleOpenComment:function(t){this.communityId=t,this.showComment=!0}}};n.default=h}).call(this,e("df3c")["default"])}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages/community/components/follow-create-component',
|
||||
{
|
||||
'pages/community/components/follow-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("323d"))
|
||||
})
|
||||
},
|
||||
[['pages/community/components/follow-create-component']]
|
||||
]);
|
||||
12
public/mp-weixin/pages/community/components/follow.json
Normal file
12
public/mp-weixin/pages/community/components/follow.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"product-swiper": "/components/product-swiper/product-swiper",
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"community-goods": "/components/community-goods/community-goods",
|
||||
"community-shop": "/components/community-shop/community-shop",
|
||||
"community-comment-popup": "/components/community-comment-popup/community-comment-popup"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
1
public/mp-weixin/pages/community/components/follow.wxml
Normal file
1
public/mp-weixin/pages/community/components/follow.wxml
Normal file
File diff suppressed because one or more lines are too long
1
public/mp-weixin/pages/community/components/follow.wxss
Normal file
1
public/mp-weixin/pages/community/components/follow.wxss
Normal file
File diff suppressed because one or more lines are too long
10
public/mp-weixin/pages/community/components/like-header.js
Normal file
10
public/mp-weixin/pages/community/components/like-header.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/community/components/like-header"],{"1b56":function(e,t,n){"use strict";n.r(t);var r=n("8f58"),u=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=u.a},"3a6a":function(e,t,n){"use strict";var r=n("b994"),u=n.n(r);u.a},"8f58":function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=r(n("7ca3")),o=n("8f59");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var i={name:"like-header",props:{current:{type:Number,default:1}},data:function(){return{hasNew:!1}},created:function(){var t=this;e.$on("hasNew",(function(e){t.hasNew=e}))},methods:{changeNav:function(e){if(!this.isLogin)return this.$Router.push("/pages/login/login");this.$emit("change",e)}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,o.mapGetters)(["userInfo"]))};t.default=i}).call(this,n("df3c")["default"])},b1a8:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var r={uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))},uIcon:function(){return n.e("components/uview-ui/components/u-icon/u-icon").then(n.bind(null,"8f08"))}},u=function(){var e=this.$createElement;this._self._c},o=[]},b994:function(e,t,n){},efd8:function(e,t,n){"use strict";n.r(t);var r=n("b1a8"),u=n("1b56");for(var o in u)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(o);n("3a6a");var c=n("828b"),i=Object(c["a"])(u["default"],r["b"],r["c"],!1,null,"8cd342a4",null,!1,r["a"],void 0);t["default"]=i.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages/community/components/like-header-create-component',
|
||||
{
|
||||
'pages/community/components/like-header-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("efd8"))
|
||||
})
|
||||
},
|
||||
[['pages/community/components/like-header-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="header flex row-between data-v-8cd342a4"><router-link class="photo data-v-8cd342a4" vue-id="fe6eea86-1" to="/bundle_b/pages/published_works/published_works" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('fe6eea86-2')+','+('fe6eea86-1')}}" src="/static/images/icon_photo.png" width="60" height="60" borderRadius="50%" class="data-v-8cd342a4" bind:__l="__l"></u-image></router-link><view class="mainnav flex data-v-8cd342a4"><view data-event-opts="{{[['tap',[['changeNav',[0]]]]]}}" class="{{['mainnav--item','data-v-8cd342a4',(current===0)?'active':'']}}" bindtap="__e"><text class="data-v-8cd342a4">关注</text><block wx:if="{{hasNew}}"><text class="new data-v-8cd342a4"></text></block></view><view data-event-opts="{{[['tap',[['changeNav',[1]]]]]}}" class="{{['mainnav--item','data-v-8cd342a4',(current===1)?'active':'']}}" bindtap="__e"><text class="data-v-8cd342a4">发现</text></view></view><view class="user flex row-right data-v-8cd342a4"><router-link vue-id="fe6eea86-3" to="/bundle_b/pages/community_search/community_search" class="data-v-8cd342a4" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{current==0}}"><u-icon class="m-r-20 data-v-8cd342a4" vue-id="{{('fe6eea86-4')+','+('fe6eea86-3')}}" name="search" size="34" bind:__l="__l"></u-icon></block></router-link><router-link vue-id="fe6eea86-5" to="/bundle_b/pages/community_user/community_user" class="data-v-8cd342a4" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('fe6eea86-6')+','+('fe6eea86-5')}}" src="{{userInfo.avatar?userInfo.avatar:'/static/images/portrait_empty.png'}}" width="60" height="60" borderRadius="50%" class="data-v-8cd342a4" bind:__l="__l"></u-image></router-link></view></view>
|
||||
@ -0,0 +1 @@
|
||||
.header.data-v-8cd342a4{padding:16rpx 24rpx;background-color:#fff}.header .photo.data-v-8cd342a4{width:120rpx}.header .mainnav--item.data-v-8cd342a4{width:120rpx;font-size:32rpx;font-weight:500;text-align:center;color:#bbb;transition:all .2s linear}.header .mainnav--item .new.data-v-8cd342a4{width:10rpx;height:10rpx;border-radius:50%;display:inline-block;margin-bottom:24rpx;background-color:#ff2c3c}.header .mainnav .active.data-v-8cd342a4{color:#000}.header .user.data-v-8cd342a4{width:120rpx}
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
wx.createComponent({
|
||||
generic:true,
|
||||
props: {leftList:{type:null}},
|
||||
render: function(){}
|
||||
})
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"lists-u-waterfall-left": "/pages/community/components/lists-u-waterfall-left",
|
||||
"lists-u-waterfall-right": "/pages/community/components/lists-u-waterfall-right",
|
||||
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view style="padding:0 9rpx 0 30rpx;"><community-list vue-id="4c55152a-3" width="336rpx" type="waterfall" list="{{leftList}}" bind:__l="__l"></community-list></view>
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
wx.createComponent({
|
||||
generic:true,
|
||||
props: {rightList:{type:null}},
|
||||
render: function(){}
|
||||
})
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"lists-u-waterfall-left": "/pages/community/components/lists-u-waterfall-left",
|
||||
"lists-u-waterfall-right": "/pages/community/components/lists-u-waterfall-right",
|
||||
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view style="padding:0 30rpx 0 9rpx;"><community-list vue-id="4c55152a-4" width="336rpx" type="waterfall" list="{{rightList}}" bind:__l="__l"></community-list></view>
|
||||
10
public/mp-weixin/pages/community/components/lists.js
Normal file
10
public/mp-weixin/pages/community/components/lists.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/community/components/lists"],{2180:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=i(n("7eb4")),a=i(n("af34")),l=i(n("ee10")),o=n("6440"),r=(n("0aec"),i(n("8462"))),s=i(n("8628")),c={mixins:[r.default,s.default],props:{cateId:{type:[String,Number]}},data:function(){return{height:"",upOption:{empty:{icon:"/static/images/news_null.png",tip:"暂无任何内容...",fixed:!0,top:"0"}},lists:[]}},mounted:function(){var e=this;t.$on("changeItem",(function(t){var n=e.lists.findIndex((function(e){return e.id==t.id}));-1!=n&&(e.$refs.uWaterfall.modify(t.id,"like",t.like),e.$refs.uWaterfall.modify(t.id,"is_like",t.is_like))})),t.getSystemInfo({success:function(t){e.height=t.windowHeight-46+"px"}})},methods:{upCallback:function(e){var n=this;return(0,l.default)(u.default.mark((function i(){var l,r;return u.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:l=e.num,r=e.size,(0,o.getCommunityArticleLists)({cate_id:n.cateId,page_no:l,page_size:r}).then((function(e){1==l&&(n.$refs.uWaterfall.clear(),n.lists=[]);var i=!!e.data.more;t.$emit("hasNew",e.data.has_new),setTimeout((function(){n.lists=[].concat((0,a.default)(n.lists),(0,a.default)(e.data.list))}),0),n.mescroll.endSuccess(e.data.list.length,i)}));case 3:case"end":return i.stop()}}),i)})))()}}};e.default=c}).call(this,n("df3c")["default"])},"38d6":function(t,e,n){"use strict";n.r(e);var i=n("64d0"),u=n("7b74");for(var a in u)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(a);var l=n("828b"),o=Object(l["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=o.exports},"64d0":function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={mescrollUni:function(){return Promise.all([n.e("common/vendor"),n.e("components/mescroll-uni/mescroll-uni")]).then(n.bind(null,"8293"))},uWaterfall:function(){return n.e("components/uview-ui/components/u-waterfall/u-waterfall").then(n.bind(null,"b072"))},communityList:function(){return n.e("components/community-list/community-list").then(n.bind(null,"7481"))}},u=function(){var t=this.$createElement;this._self._c},a=[]},"7b74":function(t,e,n){"use strict";n.r(e);var i=n("2180"),u=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=u.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages/community/components/lists-create-component',
|
||||
{
|
||||
'pages/community/components/lists-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("38d6"))
|
||||
})
|
||||
},
|
||||
[['pages/community/components/lists-create-component']]
|
||||
]);
|
||||
10
public/mp-weixin/pages/community/components/lists.json
Normal file
10
public/mp-weixin/pages/community/components/lists.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"lists-u-waterfall-left": "/pages/community/components/lists-u-waterfall-left",
|
||||
"lists-u-waterfall-right": "/pages/community/components/lists-u-waterfall-right",
|
||||
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
1
public/mp-weixin/pages/community/components/lists.wxml
Normal file
1
public/mp-weixin/pages/community/components/lists.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view><mescroll-uni class="vue-ref" vue-id="4c55152a-1" top="0" bottom="200rpx" height="{{height}}" down="{{downOption}}" 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']}}"><u-waterfall generic:scoped-slots-left="lists-u-waterfall-left" data-vue-generic="scoped" generic:scoped-slots-right="lists-u-waterfall-right" bind:input="__e" class="vue-ref" vue-id="{{('4c55152a-2')+','+('4c55152a-1')}}" add-time="{{50}}" data-ref="uWaterfall" value="{{lists}}" data-event-opts="{{[['^input',[['__set_model',['','lists','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['right','left']}}"></u-waterfall></mescroll-uni></view>
|
||||
Reference in New Issue
Block a user