public
1
public/mp-weixin/bundle_b/pages/city/city.js
Normal file
8
public/mp-weixin/bundle_b/pages/city/city.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "选择城市",
|
||||
"usingComponents": {
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"u-loading": "/components/uview-ui/components/u-loading/u-loading",
|
||||
"loading-view": "/components/loading-view/loading-view"
|
||||
}
|
||||
}
|
||||
1
public/mp-weixin/bundle_b/pages/city/city.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="city data-v-4ad4431b"><view class="city-title xs data-v-4ad4431b">当前定位城市</view><view class="city-current bg-white flex row-between data-v-4ad4431b"><view class="data-v-4ad4431b"><u-icon vue-id="3792189e-1" name="map-fill" size="34" class="data-v-4ad4431b" bind:__l="__l"></u-icon><block wx:if="{{!isLoading}}"><text class="m-l-8 nr data-v-4ad4431b">{{cityInfo.name||'城市'}}</text></block><block wx:else><text class="m-l-8 nr data-v-4ad4431b">定位中...</text></block></view><view data-event-opts="{{[['tap',[['reLocationFunc',['$event']]]]]}}" class="reselect nr flex data-v-4ad4431b" bindtap="__e"><block wx:if="{{isLoading}}"><u-loading vue-id="3792189e-2" mode="flower" color="#528FFF" size="28" class="data-v-4ad4431b" bind:__l="__l"></u-loading></block><text class="m-l-8 data-v-4ad4431b">重新定位</text></view></view><block wx:if="{{$root.g0}}"><view class="city-title xs data-v-4ad4431b">历史浏览城市</view></block><view class="city-list bg-white data-v-4ad4431b"><block wx:for="{{historyList}}" wx:for-item="hisItem" wx:for-index="hisIndex" wx:key="hisIndex"><block class="data-v-4ad4431b"><view data-event-opts="{{[['tap',[['chooseCity',['$0'],[[['historyList','',hisIndex]]]]]]]}}" class="city-list-item line-1 nr data-v-4ad4431b" bindtap="__e">{{hisItem.name}}</view></block></block></view><view class="city-title xs data-v-4ad4431b">热门城市</view><view class="city-list bg-white data-v-4ad4431b"><block wx:for="{{hotList}}" wx:for-item="hotItem" wx:for-index="hotIndex" wx:key="hotIndex"><block class="data-v-4ad4431b"><view data-event-opts="{{[['tap',[['chooseCity',['$0'],[[['hotList','',hotIndex]]]]]]]}}" class="city-list-item line-1 nr data-v-4ad4431b" bindtap="__e">{{hotItem.name}}</view></block></block></view><block wx:for="{{cityList}}" wx:for-item="cityItem" wx:for-index="cityIndex" wx:key="cityIndex"><view class="data-v-4ad4431b"><view class="city-title anchor xs data-v-4ad4431b">{{cityIndex}}</view><view class="city-list bg-white data-v-4ad4431b"><block wx:for="{{cityItem}}" wx:for-item="cityItem2" wx:for-index="cityIndex2" wx:key="cityIndex2"><block class="data-v-4ad4431b"><view data-event-opts="{{[['tap',[['chooseCity',['$0'],[[['cityList','',cityIndex],['','',cityIndex2]]]]]]]}}" class="city-list-item line-1 nr data-v-4ad4431b" bindtap="__e">{{''+cityItem2.name+''}}</view></block></block></view></view></block><view data-event-opts="{{[['touchstart',[['onTouchMove',['$event']]]],['touchmove',[['onTouchMove',['$event']]]],['touchend',[['onTouchStop',['$event']]]],['touchcancel',[['onTouchStop',['$event']]]]]}}" class="city-bar__sidebar data-v-4ad4431b" catchtouchstart="__e" catchtouchmove="__e" catchtouchend="__e" catchtouchcancel="__e"><block wx:for="{{labelList}}" wx:for-item="barItem" wx:for-index="barIndex" wx:key="barIndex"><view class="city-bar__index data-v-4ad4431b" style="{{'color:'+(touchmoveIndex===barIndex?'#528FFF':'')+';'}}">{{''+barItem+''}}</view></block></view><block wx:if="{{touchmove&&labelList[touchmoveIndex+'']}}"><view class="city-list-alert data-v-4ad4431b"><text class="data-v-4ad4431b">{{labelList[touchmoveIndex]}}</text></view></block><block wx:if="{{isFirstLoading}}"><loading-view vue-id="3792189e-3" class="data-v-4ad4431b" bind:__l="__l"></loading-view></block></view>
|
||||
1
public/mp-weixin/bundle_b/pages/city/city.wxss
Normal file
@ -0,0 +1 @@
|
||||
.city.data-v-4ad4431b{padding:12rpx 0}.city-title.data-v-4ad4431b{color:#aaa;padding:12rpx 34rpx}.city .city-current.data-v-4ad4431b{color:#575757;padding:0 36rpx}.city .city-current .reselect.data-v-4ad4431b{color:#528fff;padding:26rpx 10rpx}.city-list.data-v-4ad4431b{color:#575757;padding:0 40rpx;display:flex;flex-wrap:wrap}.city-list-item.data-v-4ad4431b{width:25%;height:96rpx;line-height:96rpx;padding-left:34rpx}.city-bar__sidebar.data-v-4ad4431b{position:fixed;top:50%;right:0;display:flex;flex-direction:column;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;user-select:none;z-index:99}.city-bar__index.data-v-4ad4431b{font-weight:500;padding:8rpx 18rpx;font-size:22rpx;line-height:1}.city-list-alert.data-v-4ad4431b{position:fixed;width:120rpx;height:120rpx;right:90rpx;top:50%;margin-top:-60rpx;border-radius:24rpx;font-size:50rpx;color:#fff;background-color:rgba(0,0,0,.65);display:flex;justify-content:center;align-items:center;padding:0;z-index:9999999}.city-list-alert text.data-v-4ad4431b{line-height:50rpx}
|
||||
@ -0,0 +1,16 @@
|
||||
{
|
||||
"navigationBarTitleText": "内容详情",
|
||||
"usingComponents": {
|
||||
"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",
|
||||
"u-loading": "/components/uview-ui/components/u-loading/u-loading",
|
||||
"community-comment-list": "/components/community-comment-list/community-comment-list",
|
||||
"u-action-sheet": "/components/uview-ui/components/u-action-sheet/u-action-sheet",
|
||||
"u-modal": "/components/uview-ui/components/u-modal/u-modal",
|
||||
"community-goods": "/components/community-goods/community-goods",
|
||||
"community-shop": "/components/community-shop/community-shop",
|
||||
"community-comment": "/components/community-comment/community-comment",
|
||||
"loading-view": "/components/loading-view/loading-view"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
wx.createComponent({
|
||||
generic:true,
|
||||
props: {leftList:{type:null}},
|
||||
render: function(){}
|
||||
})
|
||||
@ -0,0 +1,11 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"community_search-u-waterfall-left": "/bundle_b/pages/community_search/community_search-u-waterfall-left",
|
||||
"community_search-u-waterfall-right": "/bundle_b/pages/community_search/community_search-u-waterfall-right",
|
||||
"u-search": "/components/uview-ui/components/u-search/u-search",
|
||||
"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="09aacd3e-4" width="336rpx" type="waterfall" list="{{leftList}}" bind:__l="__l"></community-list></view>
|
||||
@ -0,0 +1 @@
|
||||
@import "./community_search.wxss"
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
wx.createComponent({
|
||||
generic:true,
|
||||
props: {rightList:{type:null}},
|
||||
render: function(){}
|
||||
})
|
||||
@ -0,0 +1,11 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"community_search-u-waterfall-left": "/bundle_b/pages/community_search/community_search-u-waterfall-left",
|
||||
"community_search-u-waterfall-right": "/bundle_b/pages/community_search/community_search-u-waterfall-right",
|
||||
"u-search": "/components/uview-ui/components/u-search/u-search",
|
||||
"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="09aacd3e-5" width="336rpx" type="waterfall" list="{{rightList}}" bind:__l="__l"></community-list></view>
|
||||
@ -0,0 +1 @@
|
||||
@import "./community_search.wxss"
|
||||
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/community_search/community_search"],{"0653":function(t,e,n){},"26b4":function(t,e,n){"use strict";var i=n("0653"),o=n.n(i);o.a},"29dd":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={uSearch:function(){return n.e("components/uview-ui/components/u-search/u-search").then(n.bind(null,"79b4"))},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"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.hotList.length),i=t.historyList.length,o=t.goodsList.length;t._isMounted||(t.e0=function(e){t.showHistory=!0}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:i,g2:o}})},r=[]},"2efd":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("3712");i(n("3240"));var o=i(n("d13a"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},d13a:function(t,e,n){"use strict";n.r(e);var i=n("29dd"),o=n("e2ee");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("26b4");var s=n("828b"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},e2ee:function(t,e,n){"use strict";n.r(e);var i=n("ee21"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},ee21:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7ca3")),r=n("6440"),s=n("8f59"),c=n("0aec"),a=i(n("8462"));function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var f={mixins:[a.default],data:function(){return{upOption:{auto:!1,empty:{icon:"/static/images/news_null.png",tip:"暂无种草文章"}},keyword:"",sortConfig:{goodsType:"double",priceSort:"",saleSort:""},goodsList:[],showHistory:!1,hotList:[],historyList:[]}},watch:{keyword:function(t,e){t||this.id||(this.showHistory=!0)},showHistory:function(t){t&&this.getSearchpageFun()},"sortConfig.saleSort":function(){this.onSearch()},"sortConfig.priceSort":function(){this.onSearch()}},onLoad:function(e){var n=this;this.onSearch=(0,c.trottle)(this.onSearch,500,this),this.init(e),t.$on("changeItem",(function(t){var e=n.goodsList.findIndex((function(e){return e.id==t.id}));-1!=e&&(n.$refs.uWaterfall.modify(t.id,"like",t.like),n.$refs.uWaterfall.modify(t.id,"is_like",t.is_like))}))},onUnload:function(){t.$off("changeItem")},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,s.mapGetters)(["sysInfo"])),methods:{downCallback:function(){this.onRefresh()},upCallback:function(t){var e=this,n=t.num,i=t.size,o=(this.goodsList,this.keyword),s=this.sortConfig,c=s.priceSort,a=s.saleSort,u={page_size:i,page_no:n,platform_cate_id:1==this.type?this.id:"",brand_id:0==this.type?this.id:"",keyword:o,sort_by_price:c,sort_by_sales:a};(0,r.getCommunityArticleLists)(u).then((function(n){var i=n.data;1==t.num&&(e.goodsList=[]);var o=i.list,r=o.length,s=!!i.more;e.goodsList=e.goodsList.concat(o),e.mescroll.endSuccess(r,s)})).catch((function(){e.mescroll.endErr()}))},onChange:function(t){this.keyword=t.value},clearSearchFun:function(){var t=this;(0,r.apiCommunityClearSearchHistory)().then((function(e){1==e.code&&t.getSearchpageFun()}))},init:function(e){var n=this,i=this.$Route.query,o=i.id,r=i.name,s=i.type;this.type=s,o?(t.setNavigationBarTitle({title:r}),this.id=o,this.$nextTick((function(){n.onRefresh()}))):(t.setNavigationBarTitle({title:"种草搜索"}),this.showHistory=!0)},getSearchpageFun:function(){var t=this;(0,r.getCommunitySearchHistory)().then((function(e){if(1==e.code){var n=e.data,i=n.history,o=n.topic;t.hotList=o,t.historyList=i}}))},onClear:function(){this.id&&this.onRefresh()},onSearch:function(){var t=this;this.showHistory=!1,this.$nextTick((function(){t.onRefresh()}))},onRefresh:function(){this.goodsList=[],this.mescroll.resetUpScroll()},onChangeKeyword:function(t){this.keyword=t,this.showHistory=!1,this.onRefresh()}}};e.default=f}).call(this,n("df3c")["default"])}},[["2efd","common/runtime","common/vendor"]]]);
|
||||
@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "搜索",
|
||||
"usingComponents": {
|
||||
"community_search-u-waterfall-left": "/bundle_b/pages/community_search/community_search-u-waterfall-left",
|
||||
"community_search-u-waterfall-right": "/bundle_b/pages/community_search/community_search-u-waterfall-right",
|
||||
"u-search": "/components/uview-ui/components/u-search/u-search",
|
||||
"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 class="goods-search flex-col"><view class="header-wrap"><view class="search"><u-search vue-id="09aacd3e-1" focus="{{showHistory}}" bg-color="#F4F4F4" value="{{keyword}}" data-event-opts="{{[['^focus',[['e0']]],['^search',[['onSearch']]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" bind:focus="__e" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view></view><view hidden="{{!(showHistory)}}" class="search-content bg-white"><scroll-view style="height:100%;" scroll-y="{{true}}"><block wx:if="{{$root.g0}}"><view class="search-words"><view class="title">热门搜索</view><view class="words flex flex-wrap"><block wx:for="{{hotList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><navigator hover-class="none" url="{{'/bundle_b/pages/community_topic/community_topic?id='+item.id+'&name='+item.name}}"><view class="item br60 m-r-20 m-b-20 lighter sm line-1">{{''+item.name+''}}</view></navigator></block></block></view></view></block><block wx:if="{{$root.g1}}"><view class="search-words"><view class="title flex row-between"><view>历史搜索</view><view data-event-opts="{{[['tap',[['clearSearchFun',['$event']]]]]}}" class="xs muted m-r-20" style="padding:10rpx 20rpx;" bindtap="__e">清空</view></view><view class="words flex flex-wrap"><block wx:for="{{historyList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['onChangeKeyword',['$0'],[[['historyList','',index]]]]]]]}}" class="item br60 m-r-20 m-b-20 lighter sm line-1" bindtap="__e">{{item+''}}</view></block></view></view></block></scroll-view></view><view class="content"><mescroll-uni class="vue-ref" vue-id="09aacd3e-2" up="{{upOption}}" down="{{({auto:false})}}" fixed="{{false}}" 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']}}"><block wx:if="{{$root.g2}}"><view class="goods-list"><u-waterfall generic:scoped-slots-left="community_search-u-waterfall-left" data-vue-generic="scoped" generic:scoped-slots-right="community_search-u-waterfall-right" bind:input="__e" class="vue-ref" vue-id="{{('09aacd3e-3')+','+('09aacd3e-2')}}" add-time="{{20}}" data-ref="uWaterfall" value="{{goodsList}}" data-event-opts="{{[['^input',[['__set_model',['','goodsList','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['right','left']}}"></u-waterfall></view></block></mescroll-uni></view></view>
|
||||
@ -0,0 +1 @@
|
||||
page{height:100%;padding:0}.goods-search{height:100%;position:relative}.goods-search .header-wrap{position:relative;z-index:999}.goods-search .header-wrap .search{box-shadow:0 3px 6px rgba(0,0,0,.03);position:relative;z-index:1}.goods-search .search-content{position:absolute;width:100%;height:100%;padding-top:100rpx;z-index:100}.goods-search .search-content .search-words{padding-left:24rpx;padding-bottom:20rpx}.goods-search .search-content .search-words .title{padding:26rpx 0}.goods-search .search-content .search-words .words .item{line-height:52rpx;height:52rpx;padding:0 24rpx;background-color:#f5f5f5}.goods-search .content{flex:1;min-height:0}.goods-search .content .goods-list{overflow:hidden}
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
wx.createComponent({
|
||||
generic:true,
|
||||
props: {leftList:{type:null}},
|
||||
render: function(){}
|
||||
})
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"community_topic-u-waterfall-left": "/bundle_b/pages/community_topic/community_topic-u-waterfall-left",
|
||||
"community_topic-u-waterfall-right": "/bundle_b/pages/community_topic/community_topic-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view style="padding:0 9rpx 0 30rpx;"><community-list vue-id="67743aca-2" width="336rpx" type="waterfall" list="{{leftList}}" bind:__l="__l"></community-list></view>
|
||||
@ -0,0 +1 @@
|
||||
@import "./community_topic.wxss"
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
wx.createComponent({
|
||||
generic:true,
|
||||
props: {rightList:{type:null}},
|
||||
render: function(){}
|
||||
})
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"community_topic-u-waterfall-left": "/bundle_b/pages/community_topic/community_topic-u-waterfall-left",
|
||||
"community_topic-u-waterfall-right": "/bundle_b/pages/community_topic/community_topic-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view style="padding:0 30rpx 0 9rpx;"><community-list vue-id="67743aca-3" width="336rpx" type="waterfall" list="{{rightList}}" bind:__l="__l"></community-list></view>
|
||||
@ -0,0 +1 @@
|
||||
@import "./community_topic.wxss"
|
||||
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/community_topic/community_topic"],{"22b9":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("3712");i(n("3240"));var o=i(n("3a1d"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"37d8":function(t,e,n){"use strict";n.r(e);var i=n("3b06"),o=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"]=o.a},"3a1d":function(t,e,n){"use strict";n.r(e);var i=n("b9ac"),o=n("37d8");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("5797");var u=n("828b"),c=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},"3b06":function(t,e,n){"use strict";var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("af34")),a=n("6440"),u={data:function(){return{topicId:"",topicName:"",sortHot:!0,sortNew:!1,lists:[],click:0,page:1,more:1,pageSize:10}},onLoad:function(){var t=this.$Route.query;this.topicId=t.id||"",this.topicName=t.name||""},onShow:function(){this.getCommunityTopic()},onReachBottom:function(){console.log("触底"),this.more&&this.getCommunityTopic()},methods:{handleSortHot:function(){this.sortHot=!this.sortHot,this.page=1,this.getCommunityTopic()},handleSortNew:function(){this.sortNew=!this.sortNew,this.page=1,this.getCommunityTopic()},getCommunityTopic:function(){var t=this;(0,a.getCommunityTopicArticle)({topic_id:this.topicId,sort_hot:this.sortHot?"desc":"asc",sort_new:this.sortNew?"desc":"asc",page_no:this.page,page_size:this.pageSize}).then((function(e){1==t.page&&("uWaterfall"in t.$refs&&t.$refs.uWaterfall.clear(),t.lists=[]),1===e.data.more&&(t.page+=1),t.click=e.data.click,t.more=e.data.lists.more,setTimeout((function(){t.lists=[].concat((0,o.default)(t.lists),(0,o.default)(e.data.lists.list))}),0)}))}}};e.default=u},5797:function(t,e,n){"use strict";var i=n("97e3"),o=n.n(i);o.a},"97e3":function(t,e,n){},b9ac:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={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"))},uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))}},o=function(){var t=this.$createElement,e=(this._self._c,this.lists.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]}},[["22b9","common/runtime","common/vendor"]]]);
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"community_topic-u-waterfall-left": "/bundle_b/pages/community_topic/community_topic-u-waterfall-left",
|
||||
"community_topic-u-waterfall-right": "/bundle_b/pages/community_topic/community_topic-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="topic"><view class="header flex row-between"><view class="normal lg bold">{{"# "+topicName}}</view><view class="flex"><image src="/bundle_b/static/icon_see.png"></image><text class="lighter sm m-l-10">{{click}}</text></view></view><view class="menu flex"><view data-event-opts="{{[['tap',[['handleSortHot',['$event']]]]]}}" class="{{['menu--item',(sortHot)?'active':'']}}" bindtap="__e">最热</view><view data-event-opts="{{[['tap',[['handleSortNew',['$event']]]]]}}" class="{{['menu--item',(sortNew)?'active':'']}}" bindtap="__e">最新</view></view><view><block wx:if="{{$root.g0}}"><view><u-waterfall generic:scoped-slots-left="community_topic-u-waterfall-left" data-vue-generic="scoped" generic:scoped-slots-right="community_topic-u-waterfall-right" bind:input="__e" class="vue-ref" vue-id="67743aca-1" add-time="{{200}}" data-ref="uWaterfall" value="{{lists}}" data-event-opts="{{[['^input',[['__set_model',['','lists','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['right','left']}}"></u-waterfall></view></block><block wx:else><view class="p-t-60"><view class="flex row-center m-t-40"><u-image vue-id="67743aca-4" width="300" height="300" src="/bundle_b/static/works_null.png" bind:__l="__l"></u-image></view><view class="text-center muted m-t-40"> 暂无话题文章~ </view></view></block></view></view>
|
||||
@ -0,0 +1 @@
|
||||
page{background-color:#fff}.topic .header{padding:40rpx 40rpx 30rpx 30rpx;border-top:1px solid #f6f6f6;border-bottom:1px solid #f6f6f6}.topic .header image{width:42rpx;height:42rpx}.topic .menu{padding:0 30rpx}.topic .menu--item{margin:20rpx 0;font-size:28rpx;color:#999;margin-right:50rpx}.topic .menu .active{color:#ff2c3c;font-weight:500}
|
||||
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/community_user/community_user"],{"0503":function(n,t,e){"use strict";e.r(t);var o=e("56da"),u=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);t["default"]=u.a},"16a6":function(n,t,e){"use strict";(function(n,t){var o=e("47a9");e("3712");o(e("3240"));var u=o(e("78d0"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(u.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"56da":function(n,t,e){"use strict";(function(n){var o=e("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=o(e("7eb4")),i=o(e("ee10")),a=e("6440"),r={components:{CommunityLike:function(){e.e("bundle_b/pages/community_user/components/community-like").then(function(){return resolve(e("c090"))}.bind(null,e)).catch(e.oe)},CommunityWorks:function(){e.e("bundle_b/pages/community_user/components/community-works").then(function(){return resolve(e("23a1"))}.bind(null,e)).catch(e.oe)}},data:function(){return{isFirstLoading:!0,worksNum:0,likeNum:0,navStyle:{backBg:.4,backgroundBg:0,backColor:"rgba(256,256,256,1)"},active:0,userId:"",showFollowTips:!1,showTips:!1,userInfo:{id:"",sn:"",nickname:"",avatar:"",image:"",signature:"",follow:0,fans:0,like:0,is_self:0,is_follow:0}}},computed:{background:function(){var n=this.userInfo.image;return n?{"background-image":"url(".concat(n,")")}:{}}},onLoad:function(){var n=this.$Route.query;this.userId=n.id},onShow:function(){0==this.active?this.worksNum+=1:1==this.active&&(this.likeNum+=1),this.initCommunityUserCenter()},onUnload:function(){n.$off("changeItem")},onPageScroll:function(t){var e=n.upx2px(500),o=t.scrollTop,u=o/e;this.navStyle.backgroundBg=u,this.navStyle.backBg=.4*(.5-u),this.navStyle.backColor=u<.5?"rgba(256,256,256,"+2*(.5-u)+")":"rgba(0,0,0,"+2*(u-.5)+")"},onReachBottom:function(){console.log("触底"),0==this.active?this.worksNum+=1:1==this.active&&(this.likeNum+=1)},methods:{changeTabs:function(n){this.active=n},handleShare:function(){},initCommunityUserCenter:function(){var n=this;(0,a.getCommunityUserCenter)({user_id:this.userId}).then((function(t){n.userInfo=t.data,setTimeout((function(){n.isFirstLoading=!1}),600)}))},handleCommunityFollow:function(n){var t=this;(0,a.apiCommunityFollow)({follow_id:this.userId,status:n}).then((function(n){1===n.code&&t.initCommunityUserCenter(),t.$toast({title:n.msg})}))}},onShareAppMessage:function(){var n=this;return(0,i.default)(u.default.mark((function t(){return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",{title:"".concat(n.userInfo.nickname,",TA的内容超级棒"),path:"/bundle_b/pages/community_user/community_user?id="+n.userId});case 1:case"end":return t.stop()}}),t)})))()}};t.default=r}).call(this,e("df3c")["default"])},"6aa0":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return o}));var o={uNavbar:function(){return e.e("components/uview-ui/components/u-navbar/u-navbar").then(e.bind(null,"816a"))},uImage:function(){return e.e("components/uview-ui/components/u-image/u-image").then(e.bind(null,"28a8"))},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"))},loadingView:function(){return e.e("components/loading-view/loading-view").then(e.bind(null,"dc350"))},uModal:function(){return e.e("components/uview-ui/components/u-modal/u-modal").then(e.bind(null,"37df"))}},u=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__get_style([n.background])),o={background:"rgba(256,256,256, "+n.navStyle.backgroundBg+")"};n._isMounted||(n.e0=function(t){n.showFollowTips=!0}),n.$mp.data=Object.assign({},{$root:{s0:e,a0:o}})},i=[]},"78d0":function(n,t,e){"use strict";e.r(t);var o=e("6aa0"),u=e("0503");for(var i in u)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(i);e("86e0");var a=e("828b"),r=Object(a["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},"86e0":function(n,t,e){"use strict";var o=e("efef"),u=e.n(o);u.a},efef:function(n,t,e){}},[["16a6","common/runtime","common/vendor"]]]);
|
||||
@ -0,0 +1,13 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"u-navbar": "/components/uview-ui/components/u-navbar/u-navbar",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"tabs": "/components/tabs/tabs",
|
||||
"tab": "/components/tab/tab",
|
||||
"loading-view": "/components/loading-view/loading-view",
|
||||
"u-modal": "/components/uview-ui/components/u-modal/u-modal",
|
||||
"community-like": "/bundle_b/pages/community_user/components/community-like",
|
||||
"community-works": "/bundle_b/pages/community_user/components/community-works"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="user" style="{{$root.s0}}"><u-navbar vue-id="3c2282de-1" id="navbar" border-bottom="{{false}}" background="{{$root.a0}}" back-bg="{{'rgba(0,0,0,'+navStyle.backBg+')'}}" back-icon-color="{{navStyle.backColor}}" immersive="{{false}}" bind:__l="__l"></u-navbar><view class="header"><view class="user_info flex row-between"><view class="flex"><view class="user-avatar flex row-center"><u-image vue-id="3c2282de-2" src="{{userInfo.avatar}}" width="106" height="106" borderRadius="50%" bind:__l="__l"></u-image></view><view class="m-l-30"><view class="user-name xxl white bold line-1">{{userInfo.nickname}}</view><view class="user-id m-t-14 xs white">{{"会员ID: "+userInfo.sn}}</view></view></view><block wx:if="{{userInfo.is_self}}"><navigator url="/bundle_b/pages/community_user_profile/community_user_profile" hover-class="none"><image class="user-setting" src="/bundle_b/static/icon_my_setting.png"></image></navigator></block></view><view class="user-intro line-3 white sm">{{''+(userInfo.signature||'暂无简介~')+''}}</view><view class="user-footer flex"><view class="user-statistics"><view class="user-statistics--item"><view class="xl bold">{{userInfo.follow}}</view><view class="sm">关注</view></view><view class="user-statistics--item"><view class="xl bold">{{userInfo.fans}}</view><view class="sm">粉丝</view></view><view class="user-statistics--item"><view class="xl bold">{{userInfo.like}}</view><view class="sm">获赞</view></view></view><view class="user-operation flex"><navigator url="/bundle_b/pages/published_works/published_works" hover-class="none"><block wx:if="{{userInfo.is_self}}"><button class="btn-primary br60 xs white"><image src="/bundle_b/static/icon_publish.png"></image><text class="m-l-6">发布</text></button></block></navigator><block wx:if="{{userInfo.is_self==0&&userInfo.is_follow==0}}"><button data-event-opts="{{[['tap',[['handleCommunityFollow',[1]]]]]}}" class="btn-primary br60 xs white" bindtap="__e"><image src="/bundle_b/static/icon_follow.png"></image><text class="m-l-6">关注</text></button></block><block wx:if="{{userInfo.is_self==0&&userInfo.is_follow==1}}"><button data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="followed-btn br60 xs primary bold" bindtap="__e">已关注</button></block><button class="flex-col col--center" open-type="share" hover-class="none" data-event-opts="{{[['tap',[['handleShare',['$event']]]]]}}" bindtap="__e"><image class="share" src="/bundle_b/static/icon_share.png"></image></button></view></view></view><view class="main"><view class="nav-title"><tabs vue-id="3c2282de-3" current="{{active}}" bgColor="transparent" stickyBgColor="transparent" height="100" fontSize="34" is-scroll="{{false}}" width="400rpx" borderRadius="20rpx 20rpx 0 0" data-event-opts="{{[['^change',[['changeTabs']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('3c2282de-4')+','+('3c2282de-3')}}" name="作品" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{!isFirstLoading}}"><community-works class="vue-ref" vue-id="{{('3c2282de-5')+','+('3c2282de-4')}}" worksNum="{{worksNum}}" i="{{0}}" index="{{active}}" userId="{{userId}}" data-ref="mescoll1" bind:__l="__l"></community-works></block></tab><tab vue-id="{{('3c2282de-6')+','+('3c2282de-3')}}" name="赞过" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{!isFirstLoading}}"><community-like class="vue-ref" vue-id="{{('3c2282de-7')+','+('3c2282de-6')}}" likeNum="{{likeNum}}" i="{{1}}" index="{{active}}" userId="{{userId}}" data-ref="mescoll2" bind:__l="__l"></community-like></block></tab></tabs></view></view><block wx:if="{{isFirstLoading}}"><loading-view vue-id="3c2282de-8" bind:__l="__l"></loading-view></block><u-modal vue-id="3c2282de-9" show-cancel-button="{{true}}" comfirm-text="取消关注" cancelText="再想想" confirm-color="{{colorConfig.primary}}" show-title="{{false}}" value="{{showFollowTips}}" data-event-opts="{{[['^confirm',[['handleCommunityFollow',[0]]]],['^input',[['__set_model',['','showFollowTips','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex-col col-center tips-dialog" style="padding-top:40rpx;"><image class="icon-lg" src="/static/images/icon_warning.png"></image><view style="margin:30rpx 0;">确认取消关注?</view></view></u-modal></view>
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
wx.createComponent({
|
||||
generic:true,
|
||||
props: {leftList:{type:null}},
|
||||
render: function(){}
|
||||
})
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"community-like-u-waterfall-left": "/bundle_b/pages/community_user/components/community-like-u-waterfall-left",
|
||||
"community-like-u-waterfall-right": "/bundle_b/pages/community_user/components/community-like-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view style="padding:0 9rpx 0 30rpx;"><community-list vue-id="19b84f09-2" 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": {
|
||||
"community-like-u-waterfall-left": "/bundle_b/pages/community_user/components/community-like-u-waterfall-left",
|
||||
"community-like-u-waterfall-right": "/bundle_b/pages/community_user/components/community-like-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view style="padding:0 30rpx 0 9rpx;"><community-list vue-id="19b84f09-3" width="336rpx" type="waterfall" list="{{rightList}}" bind:__l="__l"></community-list></view>
|
||||
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/community_user/components/community-like"],{"3f3f":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={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"))},uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))}},u=function(){var t=this.$createElement,e=(this._self._c,this.lists.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]},"45f2":function(t,e,n){"use strict";n.r(e);var i=n("a758"),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},a758: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("af34")),a=n("6440"),o={name:"community-like",props:{userId:{type:Number},likeNum:{type:Number}},data:function(){return{lists:[],page:1,more:1,pageSize:10}},watch:{likeNum:{handler:function(t){this.more&&this.getCommunityLike()},immediate:!0}},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.remove(t.id)}))},methods:{getCommunityLike:function(){var t=this;(0,a.getCommunityLikeLists)({user_id:this.userId,page_no:this.page,page_size:this.pageSize}).then((function(e){1==e.code?(1==t.page&&("uWaterfall"in t.$refs&&t.$refs.uWaterfall.clear(),t.lists=[]),1===e.data.more&&(t.page+=1),t.more=e.data.more,setTimeout((function(){t.lists=[].concat((0,u.default)(t.lists),(0,u.default)(e.data.list))}),0)):t.$toast({title:e.msg})}))}}};e.default=o}).call(this,n("df3c")["default"])},c090:function(t,e,n){"use strict";n.r(e);var i=n("3f3f"),u=n("45f2");for(var a in u)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(a);var o=n("828b"),r=Object(o["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=r.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'bundle_b/pages/community_user/components/community-like-create-component',
|
||||
{
|
||||
'bundle_b/pages/community_user/components/community-like-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("c090"))
|
||||
})
|
||||
},
|
||||
[['bundle_b/pages/community_user/components/community-like-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"community-like-u-waterfall-left": "/bundle_b/pages/community_user/components/community-like-u-waterfall-left",
|
||||
"community-like-u-waterfall-right": "/bundle_b/pages/community_user/components/community-like-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view><block wx:if="{{$root.g0}}"><view><u-waterfall generic:scoped-slots-left="community-like-u-waterfall-left" data-vue-generic="scoped" generic:scoped-slots-right="community-like-u-waterfall-right" bind:input="__e" class="vue-ref" vue-id="19b84f09-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></view></block><block wx:else><view class="p-t-60"><view class="flex row-center m-t-40"><u-image vue-id="19b84f09-4" width="300" height="300" src="/bundle_b/static/like_null.png" bind:__l="__l"></u-image></view><view class="text-center muted m-t-40"> 暂未点赞过作品哦~ </view></view></block></view>
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
wx.createComponent({
|
||||
generic:true,
|
||||
props: {leftList:{type:null}},
|
||||
render: function(){}
|
||||
})
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"community-works-u-waterfall-left": "/bundle_b/pages/community_user/components/community-works-u-waterfall-left",
|
||||
"community-works-u-waterfall-right": "/bundle_b/pages/community_user/components/community-works-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view style="padding:0 9rpx 0 30rpx;"><community-list vue-id="c749eacc-2" width="336rpx" type="works" 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": {
|
||||
"community-works-u-waterfall-left": "/bundle_b/pages/community_user/components/community-works-u-waterfall-left",
|
||||
"community-works-u-waterfall-right": "/bundle_b/pages/community_user/components/community-works-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view style="padding:0 30rpx 0 9rpx;"><community-list vue-id="c749eacc-3" width="336rpx" type="works" list="{{rightList}}" bind:__l="__l"></community-list></view>
|
||||
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/community_user/components/community-works"],{"23a1":function(t,e,n){"use strict";n.r(e);var i=n("25c2"),u=n("302b");for(var a in u)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(a);var o=n("828b"),r=Object(o["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=r.exports},"25c2":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={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"))},uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))}},u=function(){var t=this.$createElement,e=(this._self._c,this.lists.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]},"302b":function(t,e,n){"use strict";n.r(e);var i=n("4ff4"),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},"4ff4":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("af34")),a=n("6440"),o={name:"community-works",props:{userId:{type:Number},worksNum:{type:Number}},data:function(){return{lists:[],page:1,more:1,pageSize:10}},watch:{worksNum:{handler:function(t){this.more&&this.getCommunityWorks()},immediate:!0}},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))}))},methods:{getCommunityWorks:function(){var t=this;(0,a.getCommunityWorksLists)({user_id:this.userId,page_no:this.page,page_size:this.pageSize}).then((function(e){1==e.code?(1==t.page&&("uWaterfall"in t.$refs&&t.$refs.uWaterfall.clear(),t.lists=[]),1===e.data.more&&(t.page+=1),t.more=e.data.more,setTimeout((function(){t.lists=[].concat((0,u.default)(t.lists),(0,u.default)(e.data.list))}),0)):t.$toast({title:e.msg})}))}}};e.default=o}).call(this,n("df3c")["default"])}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'bundle_b/pages/community_user/components/community-works-create-component',
|
||||
{
|
||||
'bundle_b/pages/community_user/components/community-works-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("23a1"))
|
||||
})
|
||||
},
|
||||
[['bundle_b/pages/community_user/components/community-works-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"community-works-u-waterfall-left": "/bundle_b/pages/community_user/components/community-works-u-waterfall-left",
|
||||
"community-works-u-waterfall-right": "/bundle_b/pages/community_user/components/community-works-u-waterfall-right",
|
||||
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
|
||||
"community-list": "/components/community-list/community-list",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view><block wx:if="{{$root.g0}}"><view><u-waterfall generic:scoped-slots-left="community-works-u-waterfall-left" data-vue-generic="scoped" generic:scoped-slots-right="community-works-u-waterfall-right" bind:input="__e" class="vue-ref" vue-id="c749eacc-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></view></block><block wx:else><view class="p-t-60"><view class="flex row-center m-t-40"><u-image vue-id="c749eacc-4" width="300" height="300" src="/bundle_b/static/works_null.png" bind:__l="__l"></u-image></view><view class="text-center muted m-t-40"> 暂未发布作品哦~ </view></view></block></view>
|
||||
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/community_user_profile/community_user_profile"],{"0a6b":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={uUpload:function(){return n.e("components/uview-ui/components/u-upload/u-upload").then(n.bind(null,"55a9"))},uIcon:function(){return n.e("components/uview-ui/components/u-icon/u-icon").then(n.bind(null,"8f08"))}},o=function(){var t=this.$createElement,e=(this._self._c,{token:this.token,version:this.version});this.$mp.data=Object.assign({},{$root:{a0:e}})},r=[]},19168:function(t,e,n){},"3e44":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("3712");i(n("3240"));var o=i(n("f200"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},4687:function(t,e,n){"use strict";n.r(e);var i=n("cd82"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},cd82:function(t,e,n){"use strict";var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7ca3")),r=i(n("31f5")),a=n("a381"),u=(n("0aec"),n("6440"));function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var f={data:function(){return{action:"",token:"",version:a.version,formData:{signature:"",image:""}}},computed:{fileList:function(){var t=this.formData.image;return t?[{url:t}]:[]}},onLoad:function(){this.action=a.baseURL+"/api/file/formimage",this.token=r.default.getters.token,this.initCommunitySetting()},methods:{initCommunitySetting:function(){var t=this;(0,u.getCommunitySetting)().then((function(e){Object.keys(t.formData).map((function(n){t.$set(t.formData,n,e.data[n])}))}))},change:function(t){this.$toast({title:JSON.parse(t.data).msg}),1==JSON.parse(t.data).code&&(this.formData.image=JSON.parse(t.data).data.uri)},remove:function(t){this.formData.image=""},onSubmit:function(){var t=this;(0,u.apiCommunitySetSetting)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.formData)).then((function(e){t.$toast({title:e.msg}),setTimeout((function(){return t.$Router.back()}),500)}))}}};e.default=f},d2f1:function(t,e,n){"use strict";var i=n("19168"),o=n.n(i);o.a},f200:function(t,e,n){"use strict";n.r(e);var i=n("0a6b"),o=n("4687");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("d2f1");var a=n("828b"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=u.exports}},[["3e44","common/runtime","common/vendor"]]]);
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "设置",
|
||||
"usingComponents": {
|
||||
"u-upload": "/components/uview-ui/components/u-upload/u-upload",
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="user-profile"><view class="form bg-white m-t-20"><view class="form--item bb"><view class="label normal nr">签名</view><view class="flex-1"><input type="text" placeholder="请输入个性签名" data-event-opts="{{[['input',[['__set_model',['$0','signature','$event',[]],['formData']]]]]}}" value="{{formData.signature}}" bindinput="__e"/></view></view><view class="form--item"><view class="label normal nr">背景</view><view class="flex-1"><u-upload class="vue-ref" vue-id="4cc2a21e-1" action="{{action}}" header="{{$root.a0}}" deletable="{{true}}" max-count="{{1}}" custom-btn="{{true}}" width="{{264}}" height="{{200}}" file-list="{{fileList}}" show-progress="{{false}}" data-ref="upload" data-event-opts="{{[['^onChange',[['change']]],['^onRemove',[['remove']]]]}}" bind:onChange="__e" bind:onRemove="__e" bind:__l="__l" vue-slots="{{['addBtn']}}"><view class="uplader-upload" slot="addBtn" hover-class="slot-btn__hover" hover-stay-time="150"><u-icon vue-id="{{('4cc2a21e-2')+','+('4cc2a21e-1')}}" size="48" color="#dcdee0" name="camera" bind:__l="__l"></u-icon><view class="xs m-t-10"> 上传背景图 </view></view></u-upload></view></view></view><view class="footer"><button data-event-opts="{{[['tap',[['onSubmit',['$event']]]]]}}" class="bg-primary br60 white lg" bindtap="__e">确定</button></view></view>
|
||||
@ -0,0 +1 @@
|
||||
.user-profile .bb{border-bottom:1px solid #f2f2f2}.user-profile .form{padding-left:24rpx}.user-profile .form--item{display:flex;padding:30rpx 0}.user-profile .form--item .label{width:100rpx}.user-profile .uplader-upload{position:relative;width:264rpx;height:200rpx;padding-top:40rpx;text-align:center;margin:11rpx;border:2px dashed #e5e5e5;background-color:#fff}.user-profile .uplader-upload > view{color:#bbb}.user-profile .footer{padding:50rpx 26rpx}
|
||||
1
public/mp-weixin/bundle_b/pages/live_room/live_room.js
Normal file
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/live_room/live_room"],{"316f":function(e,t,n){"use strict";n.r(t);var i=n("9967"),a=n("4648");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);var o=n("828b"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=u.exports},4648:function(e,t,n){"use strict";n.r(t);var i=n("a391"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},9967:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var i={liveItem:function(){return n.e("components/live-item/live-item").then(n.bind(null,"0ede"))}},a=function(){var e=this.$createElement;this._self._c},r=[]},a391:function(e,t,n){"use strict";var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7eb4")),r=i(n("ee10")),o=i(n("8462")),u=n("fcc3"),c={mixins:[o.default],data:function(){return{upOption:{auto:!1,empty:{icon:"/static/images/goods_null.png",tip:"暂无数据~"}},liveLists:[]}},onShareAppMessage:function(){var e=this.appConfig.share;return{title:e.mnp_share_title,path:"/bundle_b/pages/live-room/live-room?invite_code="+this.inviteCode}},methods:{downCallback:function(){var e=this;return(0,r.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.mescroll.resetUpScroll();case 1:case"end":return t.stop()}}),t)})))()},onReflesh:function(){this.liveLists=[],this.mescroll.resetUpScroll()},upCallback:function(e){var t=this,n=e.num,i=e.size;(0,u.getLiveLists)({page_no:n,page_size:i}).then((function(n){if(1==n.code){var i=n.data.list,a=i.length,r=!!n.data.more;1==e.num&&(t.liveLists=[]),t.liveLists=t.liveLists.concat(i),t.mescroll.endSuccess(a,r)}})).catch((function(e){t.mescroll.endErr()}))}}};t.default=c},cd58:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("3712");i(n("3240"));var a=i(n("316f"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["cd58","common/runtime","common/vendor"]]]);
|
||||
6
public/mp-weixin/bundle_b/pages/live_room/live_room.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "直播间",
|
||||
"usingComponents": {
|
||||
"live-item": "/components/live-item/live-item"
|
||||
}
|
||||
}
|
||||
1
public/mp-weixin/bundle_b/pages/live_room/live_room.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="live-room"><mescroll-body class="vue-ref" vue-id="3f652740-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="p-20 flex flex-wrap" style="margin:0 -8rpx;"><block wx:for="{{liveLists}}" wx:for-item="live" wx:for-index="index" wx:key="id"><block wx:if="{{live.live_status==101}}"><view class="m-b-20 p-l-8 p-r-8" style="width:100%;"><live-item vue-id="{{('3f652740-2-'+index)+','+('3f652740-1')}}" data="{{live}}" bind:__l="__l"></live-item></view></block><block wx:else><view class="m-b-20 p-l-8 p-r-8" style="width:50%;"><live-item vue-id="{{('3f652740-3-'+index)+','+('3f652740-1')}}" data="{{live}}" bind:__l="__l"></live-item></view></block></block></view></mescroll-body></view>
|
||||
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/nearby_shops/nearby_shops"],{"01c9":function(t,e,n){"use strict";n.r(e);var o=n("56dc"),r=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e["default"]=r.a},"4b06":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return o}));var o={uIcon:function(){return n.e("components/uview-ui/components/u-icon/u-icon").then(n.bind(null,"8f08"))},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}})},c=[]},"56dc":function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7eb4")),c=o(n("7ca3")),i=o(n("ee10")),u=n("8f59"),s=o(n("8462")),a=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}var d={mixins:[s.default],data:function(){return{shopList:[],shopCategory:[],keyword:"",active:-1,upOption:{auto:!1,empty:{icon:"/static/images/goods_null.png",tip:"暂无数据~"}},hotGoods:[]}},onShow:function(){this.getHomeFun(),this.cityInfo&&this.mescroll.resetUpScroll()},methods:{downCallback:function(){var t=this;return(0,i.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,i.default)(r.default.mark((function e(){var n,o,c;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getHome)({city_id:t.cityInfo.id});case 2:n=e.sent,o=n.code,c=n.data,1==o&&(t.hotGoods=c.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,c=this.active,i=this.shopCategory,u=-1==c?"":i[c].id;(0,a.getNearbyShops)({page_no:n,page_size:o,name:r,shop_cate_id:u,city_id:this.cityInfo.id}).then((function(n){if(1==n.code){var o=n.data.list,r=o.length,c=!!n.data.more;1==t.num&&(e.shopList=[]),e.shopList=e.shopList.concat(o),e.mescroll.endSuccess(r,c)}})).catch((function(t){e.mescroll.endErr()}))},getShopCategoryFun:function(){var t=this;return(0,i.default)(r.default.mark((function e(){var n,o,c;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,a.getShopCategory)();case 2:n=e.sent,o=n.code,c=n.data,1==o&&(t.shopCategory=c);case 6:case"end":return e.stop()}}),e)})))()}},computed:function(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,c.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}({},(0,u.mapGetters)(["cityInfo"]))};e.default=d},"687e":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("3712");o(n("3240"));var r=o(n("7898"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},7898:function(t,e,n){"use strict";n.r(e);var o=n("4b06"),r=n("01c9");for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);n("7976");var i=n("828b"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=u.exports},7976:function(t,e,n){"use strict";var o=n("fc40"),r=n.n(o);r.a},fc40:function(t,e,n){}},[["687e","common/runtime","common/vendor"]]]);
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "附近店铺",
|
||||
"usingComponents": {
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="shop-street"><block wx:if="{{appConfig.shop_street_hide}}"><mescroll-body class="vue-ref" vue-id="78b74d44-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 bg-white flex flex-1 flex row"><block wx:if="{{appConfig.is_open_nearby}}"><router-link class="m-l-16 flex black row-center" vue-id="{{('78b74d44-2')+','+('78b74d44-1')}}" to="/bundle_b/pages/city/city" bind:__l="__l" vue-slots="{{['default']}}"><text class="m-r-6">{{cityInfo.name||"选择"}}</text><u-icon vue-id="{{('78b74d44-3')+','+('78b74d44-2')}}" name="arrow-down" size="24" color="#000000" bind:__l="__l"></u-icon></router-link></block><view class="flex-1"><u-search vue-id="{{('78b74d44-4')+','+('78b74d44-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></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="{{('78b74d44-5')+','+('78b74d44-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="{{('78b74d44-6-'+index)+','+('78b74d44-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="{{('78b74d44-7-'+index)+','+('78b74d44-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="78b74d44-8" type="one" list="{{hotGoods}}" bind:__l="__l"></goods-list></view></block></view></block></view>
|
||||
@ -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}
|
||||
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/published_works/components/goods"],{"06eb":function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7eb4")),o=i(n("ee10")),r=i(n("af34")),c=n("6440"),u=i(n("8462")),s=i(n("8628")),l={mixins:[u.default,s.default],props:{value:{type:[Object,Array]}},data:function(){return{keyword:"",hideRight:!0,height:"",upOption:{empty:{icon:"/static/images/goods_null.png",tip:"暂无商品!",fixed:!0,top:"0"}},tabsList:[{label:"全部",type:"all"},{label:"已购宝贝",type:"buy"}],currentTabs:0,lists:[],selectData:[]}},computed:{getCurrentSelect:function(){var e=this;return function(t){return e.selectData.filter((function(e){return e.goods_id==t.goods_id||e.id==t.goods_id})).length?"/bundle_b/static/icon_select.png":"/bundle_b/static/icon_unselect.png"}}},watch:{value:{handler:function(e){console.log(e),this.selectData=e},immediate:!0}},methods:{handleCancel:function(){this.keyword="",this.mescroll.resetUpScroll()},changeTabs:function(t){this.currentTabs=t,e.showLoading({title:"加载中"}),this.mescroll.resetUpScroll()},selectCurrentGoods:function(e){var t=this.selectData.findIndex((function(t){return t.goods_id==e.goods_id||t.id==e.goods_id}));-1===t?this.selectData=[].concat((0,r.default)(this.selectData),[e]):this.selectData.splice(t,1),this.$emit("change",this.selectData)},upCallback:function(t){var n=this;return(0,o.default)(a.default.mark((function i(){var o,u,s;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:o=n.currentTabs,u=t.num,s=t.size,(0,c.getCommunityGoods)({keyword:n.keyword,type:n.tabsList[o].type,page_no:u,page_size:s}).then((function(t){e.hideLoading(),(1==u||n.keyword)&&(n.lists=[]);var i=!!t.data.more;n.lists=[].concat((0,r.default)(n.lists),(0,r.default)(t.data.list)),n.mescroll.endSuccess(t.data.list.length,i)})).catch((function(t){n.mescroll.endErr(),e.hideLoading()}));case 4:case"end":return i.stop()}}),i)})))()}}};t.default=l}).call(this,n("df3c")["default"])},"9aae":function(e,t,n){},a85d:function(e,t,n){"use strict";var i=n("9aae"),a=n.n(i);a.a},abda:function(e,t,n){"use strict";n.r(t);var i=n("06eb"),a=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"]=a.a},cf36:function(e,t,n){"use strict";n.r(t);var i=n("d0fa"),a=n("abda");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("a85d");var r=n("828b"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"2ba04066",null,!1,i["a"],void 0);t["default"]=c.exports},d0fa:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uSearch:function(){return n.e("components/uview-ui/components/u-search/u-search").then(n.bind(null,"79b4"))},mescrollUni:function(){return Promise.all([n.e("common/vendor"),n.e("components/mescroll-uni/mescroll-uni")]).then(n.bind(null,"8293"))},uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))},priceFormat:function(){return n.e("components/price-format/price-format").then(n.bind(null,"1738"))}},a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.lists,(function(t,n){var i=e.__get_orig(t),a=e.getCurrentSelect(t);return{$orig:i,m0:a}})));e._isMounted||(e.e0=function(t){e.hideRight=!1},e.e1=function(t){e.hideRight=!0},e.e2=function(t){return e.mescroll.resetUpScroll()}),e.$mp.data=Object.assign({},{$root:{l0:n}})},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'bundle_b/pages/published_works/components/goods-create-component',
|
||||
{
|
||||
'bundle_b/pages/published_works/components/goods-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("cf36"))
|
||||
})
|
||||
},
|
||||
[['bundle_b/pages/published_works/components/goods-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,9 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-search": "/components/uview-ui/components/u-search/u-search",
|
||||
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"price-format": "/components/price-format/price-format"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="goods-box data-v-2ba04066"><view class="search data-v-2ba04066"><u-search vue-id="e51a32d8-1" hideRight="{{true}}" show-action="{{true}}" action-text="取消" animation="{{true}}" placeholder="请输入搜索内容" height="64" value="{{keyword}}" data-event-opts="{{[['^focus',[['e0']]],['^blur',[['e1']]],['^custom',[['handleCancel']]],['^change',[['e2']]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" bind:focus="__e" bind:blur="__e" bind:custom="__e" bind:change="__e" bind:input="__e" class="data-v-2ba04066" bind:__l="__l"></u-search></view><view class="tab-control data-v-2ba04066"><block wx:for="{{tabsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeTabs',[index]]]]]}}" class="{{['data-v-2ba04066',(currentTabs==index)?'active':'']}}" bindtap="__e">{{item.label}}</view></block></view><mescroll-uni vue-id="e51a32d8-2" top="0" height="620rpx" 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" class="data-v-2ba04066 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{$root.l0}}" wx:for-item="goodsItem" wx:for-index="index" wx:key="index"><block class="data-v-2ba04066"><view data-event-opts="{{[['tap',[['selectCurrentGoods',['$0'],[[['lists','',index]]]]]]]}}" class="goods-item flex row-between data-v-2ba04066" bindtap="__e"><u-image vue-id="{{('e51a32d8-3-'+index)+','+('e51a32d8-2')}}" src="{{goodsItem.$orig.image}}" width="160" height="160" class="data-v-2ba04066" bind:__l="__l"></u-image><view class="m-l-20 flex-1 data-v-2ba04066"><view class="goods-name line-1 m-b-12 nr normal data-v-2ba04066">{{goodsItem.$orig.goods_name}}</view><view class="m-b-16 muted sm data-v-2ba04066">{{goodsItem.$orig.shop_name}}</view><price-format vue-id="{{('e51a32d8-4-'+index)+','+('e51a32d8-2')}}" subscript-size="{{32}}" first-size="{{32}}" second-size="{{32}}" price="{{goodsItem.$orig.goods_price}}" color="{{colorConfig.primary}}" class="data-v-2ba04066" bind:__l="__l"></price-format></view><image src="{{goodsItem.m0}}" class="data-v-2ba04066"></image></view></block></block></mescroll-uni></view>
|
||||
@ -0,0 +1 @@
|
||||
.goods-box.data-v-2ba04066{width:100%;height:700rpx}.goods-box .search.data-v-2ba04066{width:100%;height:90rpx}.goods-box .tab-control.data-v-2ba04066{border-top:1px solid #f6f6f6;border-bottom:1px solid #f6f6f6}.goods-box .tab-control view.data-v-2ba04066{width:200rpx;height:90rpx;text-align:center;line-height:90rpx;display:inline-block;color:#333;transition:all .2s}.goods-box .tab-control .active.data-v-2ba04066{color:#ff2c3c}.goods-box .goods-item.data-v-2ba04066{padding:20rpx;border-bottom:1px solid #f6f6f6}.goods-box .goods-item .goods-name.data-v-2ba04066{width:460rpx}.goods-box .goods-item image.data-v-2ba04066{width:34rpx;height:34rpx}
|
||||
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/published_works/components/recommend"],{"0f16":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={name:"recommend",components:{Goods:function(){Promise.all([e.e("common/vendor"),e.e("bundle_b/pages/published_works/components/goods")]).then(function(){return resolve(e("cf36"))}.bind(null,e)).catch(e.oe)},Shop:function(){Promise.all([e.e("common/vendor"),e.e("bundle_b/pages/published_works/components/shop")]).then(function(){return resolve(e("f98f"))}.bind(null,e)).catch(e.oe)}},props:{value:{type:Boolean},goods:{type:[Object,Array]},shop:{type:[Object,Array]}},data:function(){return{list:[{name:"宝贝"},{name:"店铺"}],active:0,goodsData:[],shopData:[],isAsync:!0}},computed:{show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},watch:{goods:function(t){this.active=0,this.goodsData=t,console.log(this.goodsData)},shop:function(t){this.active=1,this.shopData=t}},methods:{changeTabs:function(t){if(0!=this.goodsData.length||0!=this.shopData.length)return this.$toast({title:"不能同时选择宝贝/店铺"});this.isAsync=!1,this.active=t,this.isAsync=!0},handleGoods:function(t){this.goodsData=t},handleShop:function(t){this.shopData=t},confirm:function(){0==this.active?this.$emit("change",{type:0,data:this.goodsData}):this.$emit("change",{type:1,data:this.shopData}),this.$emit("input",!1)}}};n.default=o},"34c4":function(t,n,e){},"371c":function(t,n,e){"use strict";e.r(n);var o=e("0f16"),s=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=s.a},b497:function(t,n,e){"use strict";e.d(n,"b",(function(){return s})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={uPopup:function(){return e.e("components/uview-ui/components/u-popup/u-popup").then(e.bind(null,"b12c"))},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"))}},s=function(){var t=this.$createElement;this._self._c},i=[]},e7be:function(t,n,e){"use strict";e.r(n);var o=e("b497"),s=e("371c");for(var i in s)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return s[t]}))}(i);e("ecae");var a=e("828b"),c=Object(a["a"])(s["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},ecae:function(t,n,e){"use strict";var o=e("34c4"),s=e.n(o);s.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'bundle_b/pages/published_works/components/recommend-create-component',
|
||||
{
|
||||
'bundle_b/pages/published_works/components/recommend-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("e7be"))
|
||||
})
|
||||
},
|
||||
[['bundle_b/pages/published_works/components/recommend-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
|
||||
"tabs": "/components/tabs/tabs",
|
||||
"tab": "/components/tab/tab",
|
||||
"goods": "/bundle_b/pages/published_works/components/goods",
|
||||
"shop": "/bundle_b/pages/published_works/components/shop"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<u-popup bind:input="__e" vue-id="1746c224-1" mode="bottom" closeable="{{true}}" border-radius="14" safe-area-inset-bottom="{{true}}" duration="{{100}}" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="content-wrapper"><tabs vue-id="{{('1746c224-2')+','+('1746c224-1')}}" current="{{active}}" height="100" is-scroll="{{false}}" width="400rpx" showBar="{{false}}" async="{{isAsync}}" data-event-opts="{{[['^change',[['changeTabs']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('1746c224-3')+','+('1746c224-2')}}" name="宝贝" bind:__l="__l" vue-slots="{{['default']}}"><goods vue-id="{{('1746c224-4')+','+('1746c224-3')}}" i="{{0}}" index="{{active}}" value="{{goodsData}}" data-event-opts="{{[['^change',[['handleGoods']]],['^input',[['__set_model',['','goodsData','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></goods></tab><tab vue-id="{{('1746c224-5')+','+('1746c224-2')}}" name="店铺" bind:__l="__l" vue-slots="{{['default']}}"><shop vue-id="{{('1746c224-6')+','+('1746c224-5')}}" i="{{1}}" index="{{active}}" value="{{shopData}}" data-event-opts="{{[['^change',[['handleShop']]],['^input',[['__set_model',['','shopData','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></shop></tab></tabs></view><view class="recommend-footer flex"><button data-event-opts="{{[['tap',[['confirm',['$event']]]]]}}" class="white br60 bg-primary btn" bindtap="__e">确认</button></view></u-popup>
|
||||
@ -0,0 +1 @@
|
||||
.bb{border-bottom:1px solid #f6f6f6}.content-wrapper{height:900rpx}.recommend-footer{width:100%;height:100rpx;padding:0 30rpx;box-shadow:0 -4rpx 10rpx rgba(0,0,0,.1)}.recommend-footer .btn{width:100%;height:82rpx;font-size:32rpx;line-height:82rpx}
|
||||
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/published_works/components/shop"],{"0f89":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("7eb4")),c=i(n("ee10")),u=i(n("af34")),r=n("6440"),o=i(n("8462")),s=i(n("8628")),l={mixins:[o.default,s.default],props:{value:{type:[Object,Array]}},data:function(){return{keyword:"",hideRight:!0,height:"",upOption:{empty:{icon:"/static/images/goods_null.png",tip:"暂无店铺 ",fixed:!0,top:"200rpx"}},tabsList:[{label:"全部",type:"all"},{label:"已购店铺",type:"buy"}],currentTabs:0,lists:[],selectData:[]}},computed:{getCurrentSelect:function(){var t=this;return function(e){return t.selectData.filter((function(t){return t.id==e.id})).length?"/bundle_b/static/icon_select.png":"/bundle_b/static/icon_unselect.png"}}},watch:{value:function(t){this.selectData=t}},methods:{handleCancel:function(){this.keyword="",this.mescroll.resetUpScroll()},changeTabs:function(e){this.currentTabs=e,t.showLoading({title:"加载中"}),this.mescroll.resetUpScroll()},selectCurrentGoods:function(t){var e=this.selectData.findIndex((function(e){return e.id==t.id}));-1===e?this.selectData=[].concat((0,u.default)(this.selectData),[t]):this.selectData.splice(e,1),this.$emit("change",this.selectData)},upCallback:function(e){var n=this;return(0,c.default)(a.default.mark((function i(){var c,o,s;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:c=n.currentTabs,o=e.num,s=e.size,(0,r.getCommunityShop)({keyword:n.keyword,type:n.tabsList[c].type,page_no:o,page_size:s}).then((function(e){t.hideLoading(),(1==o||n.keyword)&&(n.lists=[]);var i=!!e.data.more;n.lists=[].concat((0,u.default)(n.lists),(0,u.default)(e.data.list)),n.mescroll.endSuccess(e.data.list.length,i)})).catch((function(e){n.mescroll.endErr(),t.hideLoading()}));case 4:case"end":return i.stop()}}),i)})))()}}};e.default=l}).call(this,n("df3c")["default"])},"1a73":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var i={uSearch:function(){return n.e("components/uview-ui/components/u-search/u-search").then(n.bind(null,"79b4"))},mescrollUni:function(){return Promise.all([n.e("common/vendor"),n.e("components/mescroll-uni/mescroll-uni")]).then(n.bind(null,"8293"))},uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.lists,(function(e,n){var i=t.__get_orig(e),a=t.getCurrentSelect(e);return{$orig:i,m0:a}})));t._isMounted||(t.e0=function(e){t.hideRight=!1},t.e1=function(e){t.hideRight=!0},t.e2=function(e){return t.mescroll.resetUpScroll()}),t.$mp.data=Object.assign({},{$root:{l0:n}})},c=[]},"9d04":function(t,e,n){"use strict";n.r(e);var i=n("0f89"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},ca26:function(t,e,n){},f4db:function(t,e,n){"use strict";var i=n("ca26"),a=n.n(i);a.a},f98f:function(t,e,n){"use strict";n.r(e);var i=n("1a73"),a=n("9d04");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("f4db");var u=n("828b"),r=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"0e801e61",null,!1,i["a"],void 0);e["default"]=r.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'bundle_b/pages/published_works/components/shop-create-component',
|
||||
{
|
||||
'bundle_b/pages/published_works/components/shop-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("f98f"))
|
||||
})
|
||||
},
|
||||
[['bundle_b/pages/published_works/components/shop-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,8 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-search": "/components/uview-ui/components/u-search/u-search",
|
||||
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="goods-box data-v-0e801e61"><view class="search data-v-0e801e61"><u-search vue-id="00409c08-1" hideRight="{{true}}" show-action="{{true}}" action-text="取消" animation="{{true}}" placeholder="请输入搜索内容" height="64" value="{{keyword}}" data-event-opts="{{[['^focus',[['e0']]],['^blur',[['e1']]],['^custom',[['handleCancel']]],['^change',[['e2']]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" bind:focus="__e" bind:blur="__e" bind:custom="__e" bind:change="__e" bind:input="__e" class="data-v-0e801e61" bind:__l="__l"></u-search></view><view class="tab-control data-v-0e801e61"><block wx:for="{{tabsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeTabs',[index]]]]]}}" class="{{['data-v-0e801e61',(currentTabs==index)?'active':'']}}" bindtap="__e">{{item.label}}</view></block></view><mescroll-uni vue-id="00409c08-2" top="0" height="620rpx" 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" class="data-v-0e801e61 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{$root.l0}}" wx:for-item="shopItem" wx:for-index="index" wx:key="index"><block class="data-v-0e801e61"><view data-event-opts="{{[['tap',[['selectCurrentGoods',['$0'],[[['lists','',index]]]]]]]}}" class="goods-item flex row-between data-v-0e801e61" bindtap="__e"><u-image vue-id="{{('00409c08-3-'+index)+','+('00409c08-2')}}" src="{{shopItem.$orig.logo}}" width="160" height="160" class="data-v-0e801e61" bind:__l="__l"></u-image><view class="m-l-20 flex-1 data-v-0e801e61"><view class="goods-name line-1 m-b-12 nr normal data-v-0e801e61">{{shopItem.$orig.name}}</view></view><image src="{{shopItem.m0}}" class="data-v-0e801e61"></image></view></block></block></mescroll-uni></view>
|
||||
@ -0,0 +1 @@
|
||||
.goods-box.data-v-0e801e61{width:100%;height:700rpx}.goods-box .search.data-v-0e801e61{width:100%;height:90rpx}.goods-box .tab-control.data-v-0e801e61{border-top:1px solid #f6f6f6;border-bottom:1px solid #f6f6f6}.goods-box .tab-control view.data-v-0e801e61{width:200rpx;height:90rpx;text-align:center;line-height:90rpx;display:inline-block;color:#333;transition:all .2s}.goods-box .tab-control .active.data-v-0e801e61{color:#ff2c3c}.goods-box .goods-item.data-v-0e801e61{padding:20rpx;border-bottom:1px solid #f6f6f6}.goods-box .goods-item .goods-name.data-v-0e801e61{width:460rpx}.goods-box .goods-item image.data-v-0e801e61{width:34rpx;height:34rpx}
|
||||
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle_b/pages/published_works/components/topic"],{"229a":function(n,e,t){"use strict";t.r(e);var u=t("c391"),i=t.n(u);for(var o in u)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return u[n]}))}(o);e["default"]=i.a},8600:function(n,e,t){"use strict";t.r(e);var u=t("f6ff"),i=t("229a");for(var o in i)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(o);t("f3f4");var c=t("828b"),r=Object(c["a"])(i["default"],u["b"],u["c"],!1,null,"43ded059",null,!1,u["a"],void 0);e["default"]=r.exports},c391:function(n,e,t){"use strict";var u=t("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=u(t("7eb4")),o=u(t("ee10")),c=t("6440"),r=u(t("8462")),a=u(t("8628")),s={mixins:[r.default,a.default],name:"topic",props:{value:{type:Boolean}},data:function(){return{keyword:"",hideRight:!0,menuCurrentIndex:0,topicData:[]}},computed:{show:{get:function(){return this.value},set:function(n){this.$emit("input",n)}}},methods:{handleCancel:function(){this.keyword="",this.mescroll.resetUpScroll()},selectMenu:function(n){this.menuCurrentIndex=n},selectTopic:function(n){this.$emit("input",!1),this.$emit("change",n)},unSelectTopic:function(){this.$emit("input",!1),this.$emit("change","")},upCallback:function(n){var e=this;return(0,o.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:(0,c.getCommunityTopicLists)({name:e.keyword}).then((function(n){e.topicData=n.data,e.mescroll.endSuccess(10,0)})).catch((function(n){e.mescroll.endErr()}));case 1:case"end":return n.stop()}}),n)})))()}}};e.default=s},d016:function(n,e,t){},f3f4:function(n,e,t){"use strict";var u=t("d016"),i=t.n(u);i.a},f6ff:function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return o})),t.d(e,"a",(function(){return u}));var u={uPopup:function(){return t.e("components/uview-ui/components/u-popup/u-popup").then(t.bind(null,"b12c"))},uSticky:function(){return t.e("components/uview-ui/components/u-sticky/u-sticky").then(t.bind(null,"fb61"))},uSearch:function(){return t.e("components/uview-ui/components/u-search/u-search").then(t.bind(null,"79b4"))},mescrollUni:function(){return Promise.all([t.e("common/vendor"),t.e("components/mescroll-uni/mescroll-uni")]).then(t.bind(null,"8293"))},uImage:function(){return t.e("components/uview-ui/components/u-image/u-image").then(t.bind(null,"28a8"))}},i=function(){var n=this,e=n.$createElement;n._self._c;n._isMounted||(n.e0=function(e){n.hideRight=!1},n.e1=function(e){n.hideRight=!0},n.e2=function(e){return n.mescroll.resetUpScroll()})},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'bundle_b/pages/published_works/components/topic-create-component',
|
||||
{
|
||||
'bundle_b/pages/published_works/components/topic-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("8600"))
|
||||
})
|
||||
},
|
||||
[['bundle_b/pages/published_works/components/topic-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
|
||||
"u-sticky": "/components/uview-ui/components/u-sticky/u-sticky",
|
||||
"u-search": "/components/uview-ui/components/u-search/u-search",
|
||||
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<u-popup bind:input="__e" vue-id="4a40705b-1" mode="bottom" closeable="{{true}}" border-radius="14" safe-area-inset-bottom="{{true}}" duration="{{100}}" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" class="data-v-43ded059" bind:__l="__l" vue-slots="{{['default']}}"><view class="content-wrapper data-v-43ded059"><u-sticky vue-id="{{('4a40705b-2')+','+('4a40705b-1')}}" class="data-v-43ded059" bind:__l="__l" vue-slots="{{['default']}}"><view class="sticky data-v-43ded059"><view class="sticky-title xl normal bold data-v-43ded059">话题</view><u-search vue-id="{{('4a40705b-3')+','+('4a40705b-2')}}" hideRight="{{true}}" show-action="{{true}}" action-text="取消" animation="{{true}}" placeholder="请输入搜索内容" height="64" value="{{keyword}}" data-event-opts="{{[['^focus',[['e0']]],['^blur',[['e1']]],['^custom',[['handleCancel']]],['^change',[['e2']]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" bind:focus="__e" bind:blur="__e" bind:custom="__e" bind:change="__e" bind:input="__e" class="data-v-43ded059" bind:__l="__l"></u-search></view></u-sticky><view class="container data-v-43ded059"><scroll-view class="left-menu data-v-43ded059" scroll-y="true"><block wx:for="{{topicData}}" wx:for-item="menuItem" wx:for-index="menuIndex" wx:key="menuIndex"><block class="data-v-43ded059"><view data-event-opts="{{[['tap',[['selectMenu',[menuIndex]]]]]}}" class="{{['submenu','normal','data-v-43ded059',(menuIndex===menuCurrentIndex)?'active':'']}}" bindtap="__e">{{menuItem.name}}</view></block></block></scroll-view><view class="right-content data-v-43ded059"><mescroll-uni vue-id="{{('4a40705b-4')+','+('4a40705b-1')}}" top="0" height="712rpx" bgColor="#f5f5f5" 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" class="data-v-43ded059 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="tags data-v-43ded059"><view data-event-opts="{{[['tap',[['unSelectTopic',['$event']]]]]}}" class="tags-item flex data-v-43ded059" bindtap="__e"><u-image vue-id="{{('4a40705b-5')+','+('4a40705b-4')}}" width="120" height="120" src="/bundle_b/static/icon_unselect_tags.png" borderRadius="50%" class="data-v-43ded059" bind:__l="__l"></u-image><text class="m-l-16 nr bold normal data-v-43ded059">不添加任何话题</text></view><block wx:if="{{topicData[menuCurrentIndex]}}"><block wx:for="{{topicData[menuCurrentIndex].topic}}" wx:for-item="topicItem" wx:for-index="topicIndex" wx:key="topicIndex"><block class="data-v-43ded059"><view data-event-opts="{{[['tap',[['selectTopic',['$0'],[[['topicData.'+menuCurrentIndex+'.topic','',topicIndex]]]]]]]}}" class="tags-item flex data-v-43ded059" bindtap="__e"><image src="{{topicItem.image}}" mode="aspectFill" class="data-v-43ded059"></image><view class="m-l-16 data-v-43ded059"><view class="nr bold normal data-v-43ded059">{{topicItem.name}}</view><view class="m-t-10 xxs muted data-v-43ded059">{{topicItem.click+"人在看"}}</view></view></view></block></block></block></view></mescroll-uni></view></view></view></u-popup>
|
||||
@ -0,0 +1 @@
|
||||
.bb.data-v-43ded059{border-bottom:1px solid #f6f6f6}.content-wrapper.data-v-43ded059{height:900rpx}.content-wrapper .sticky.data-v-43ded059{width:100vw}.content-wrapper .sticky-title.data-v-43ded059{padding:24rpx 0;text-align:center}.content-wrapper .container.data-v-43ded059{height:712rpx;display:flex}.content-wrapper .container .left-menu.data-v-43ded059{width:160rpx}.content-wrapper .container .left-menu .submenu.data-v-43ded059{height:90rpx;line-height:90rpx;text-align:center;font-size:26rpx}.content-wrapper .container .left-menu .active.data-v-43ded059{font-weight:500;color:#ff2c3c;position:relative;background-color:rgba(255,44,60,.1)}.content-wrapper .container .left-menu .active.data-v-43ded059::before{content:"";width:6rpx;height:30rpx;position:absolute;left:10rpx;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background-color:#ff2c3c}.content-wrapper .container .right-content.data-v-43ded059{width:100%}.content-wrapper .container .right-content .tags.data-v-43ded059{padding:20rpx}.content-wrapper .container .right-content .tags .tags-item.data-v-43ded059{margin-bottom:30rpx}.content-wrapper .container .right-content .tags image.data-v-43ded059{width:120rpx;height:120rpx;border-radius:50%;position:relative}.content-wrapper .container .right-content .tags image.data-v-43ded059::after{content:"";color:#fff;font-size:50rpx;font-weight:500;text-align:center;line-height:120rpx;width:120rpx;height:120rpx;position:absolute;border-radius:50%;left:0;top:0;background:rgba(0,0,0,.1) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAhFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8g2+bRAAAAK3RSTlMAA/mqgAkGpayC2Ll4HA31y17dmIVrSjnpLCjEv5WRViXx4c+0n2ZaPhWMseGLQgAAAZxJREFUOMu9lFlygzAQRCVAYgmLF2xjg8H7krn//TIaIoSACvlIpf9eTXtA7UbMlrhB9e5xDdGBcTYUZw9wwGNc4wvRnzQGOKmNMUT8IBxIrHDSGOOHeYC9cO8AOKdukhZo3E4ZlziIeIc7ADgnBAPjunt5wg3igk1pgZONMbqIR0ItriRZkuGzdky2yEWExiUTiuwnb3FwER0e9NE6pV7govwrLixcLb9EdGgS1An99I6bZlTRxitkDorcTk89BNqYz28MaKNsPM8L4wr9q9hDEboq7pwgf4j+oe9dbITxRCMoNmrEk2JTTI3INY4acfhtI6TViCxh/O8a4SOupxa2jegmkhqhcdSI1G7Evm/kJMFyik1qfKr0BVdsb6TYYvOKR8S7VbFl2P5LZwBwYwRSrNKvFIZNG9kNZqQ/WBh3yq5c9p1mCTPSaSafbdnVitJ3tQrEK2Hgpf0zn+xGiMu4ERRb2wiKDSV1I1r810bwHxtRpOZoo0aMr1bCBnElLY99tWqsEYPBQnPBvey7+zFp3EdwZEbvEm6p7fkCu9hDQmJuCXQAAAAASUVORK5CYII=) no-repeat 50%;background-size:40rpx}
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "发布文章",
|
||||
"usingComponents": {
|
||||
"u-upload": "/components/uview-ui/components/u-upload/u-upload",
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"recommend": "/bundle_b/pages/published_works/components/recommend",
|
||||
"topic": "/bundle_b/pages/published_works/components/topic"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="container" style="{{'padding-bottom:'+(pageHeight+'px')+';'}}"><view class="main"><view class="uploader-container flex wrap"><u-upload class="vue-ref" vue-id="21f4d79a-1" action="{{action}}" header="{{$root.a0}}" deletable="{{true}}" max-count="{{9}}" multiple="{{true}}" custom-btn="{{true}}" width="{{160}}" height="{{160}}" fileList="{{fileList}}" show-progress="{{false}}" data-ref="upload" data-event-opts="{{[['^onChange',[['change']]],['^onRemove',[['remove']]]]}}" bind:onChange="__e" bind:onRemove="__e" bind:__l="__l" vue-slots="{{['addBtn']}}"><view class="uplader-upload" slot="addBtn" hover-class="slot-btn__hover" hover-stay-time="150"><u-icon vue-id="{{('21f4d79a-2')+','+('21f4d79a-1')}}" size="56" color="#b1b1b1" name="camera" bind:__l="__l"></u-icon></view></u-upload></view><view class="content"><textarea id maxlength="999" placeholder="说说你的购物体验和心得,我们都很期待呢~" disable-default-padding="{{true}}" show-confirm-bar="{{false}}" data-event-opts="{{[['focus',[['handleFocus',['$event']]]],['blur',[['e0',['$event']]]],['input',[['__set_model',['$0','content','$event',[]],['formData']]]]]}}" value="{{formData.content}}" bindfocus="__e" bindblur="__e" bindinput="__e"></textarea><view class="muted text-right">{{''+$root.g0+'/999'}}</view></view><view data-event-opts="{{[['tap',[['showRecommend',['$event']]]]]}}" class="item flex row-between recommend" bindtap="__e"><view class="flex nr normal"><image class="image m-r-10" src="/bundle_b/static/icon_recommend.png"></image><block wx:if="{{$root.g1}}"><text>宝贝/店铺</text></block><block wx:if="{{$root.g2!==0}}"><text>店铺</text></block><block wx:if="{{$root.g3!==0}}"><text>宝贝</text></block></view><view class="nr flex"><block wx:if="{{$root.g4}}"><text class="muted m-r-10">选择购买过的商品</text></block><block wx:if="{{$root.g5!==0}}"><block wx:for="{{formData.goods}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{index<=2}}"><u-image class="m-l-6" vue-id="{{'21f4d79a-3-'+index}}" src="{{item.image}}" width="58" height="58" bind:__l="__l"></u-image></block></block></block></block><block wx:if="{{$root.g6!==0}}"><block wx:for="{{formData.shop}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{index<=2}}"><u-image class="m-l-6" vue-id="{{'21f4d79a-4-'+index}}" src="{{item.logo}}" width="58" height="58" bind:__l="__l"></u-image></block></block></block></block><u-icon class="m-l-10" vue-id="21f4d79a-5" name="arrow-right" size="22" color="#707070" bind:__l="__l"></u-icon></view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item flex row-between topic" bindtap="__e"><view class="flex nr normal"><image class="image m-r-10" src="/bundle_b/static/icon_topic.png"></image><text>话题</text></view><view class="nr flex"><block wx:if="{{formData.topic_id}}"><view class="tags primary-tags m-r-10"><text>{{"#"+formData.topic_id.name}}</text></view></block><u-icon vue-id="21f4d79a-6" name="arrow-right" size="22" color="#707070" bind:__l="__l"></u-icon></view></view><view hidden="{{!(!formData.topic_id)}}" class="tags m-t-10 gary-tags"><block wx:for="{{recommendTopic}}" wx:for-item="topicItem" wx:for-index="__i0__" wx:key="id"><block><text data-event-opts="{{[['tap',[['handleTopic',['$0'],[[['recommendTopic','id',topicItem.id]]]]]]]}}" bindtap="__e">{{"#"+topicItem.name}}</text></block></block></view></view><view class="footer"><button data-event-opts="{{[['tap',[['onSubmit',['$event']]]]]}}" class="br60 white btn lg" bindtap="__e">{{!formData.id?'发布':'编辑'}}</button></view><recommend vue-id="21f4d79a-7" shop="{{formData.shop}}" goods="{{formData.goods}}" value="{{showRecommendPopup}}" data-event-opts="{{[['^change',[['handleRecommend']]],['^input',[['__set_model',['','showRecommendPopup','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></recommend><topic bind:change="__e" bind:input="__e" vue-id="21f4d79a-8" value="{{showTopicPopup}}" data-event-opts="{{[['^change',[['handleTopic']]],['^input',[['__set_model',['','showTopicPopup','$event',[]]]]]]}}" bind:__l="__l"></topic></view>
|
||||
@ -0,0 +1 @@
|
||||
page{background-color:#fff}.container .main{padding:20rpx;background-color:#fff}.container .main .uploader-container .uplader-upload{position:relative;width:160rpx;height:160rpx;line-height:160rpx;text-align:center;margin:11rpx;border:2px solid #f0f0f0;border-radius:14rpx;background-color:#f0f0f0}.container .main .uploader-container .uplader-upload > view{color:#b1b1b1}.container .main .content{padding:20rpx;margin:10rpx 0;border-radius:10rpx}.container .main .content textarea{width:100%;min-height:230rpx}.container .main .item{height:88rpx}.container .main .item .image{width:40rpx;height:40rpx}.container .main .recommend{border-bottom:1px solid #f2f2f2}.container .main .tags text{display:inline-block;margin-bottom:10rpx;margin-right:20rpx;border-radius:26rpx;padding:8rpx 24rpx}.container .main .primary-tags text{color:#ff2c3c;margin-bottom:0;background:rgba(255,44,60,.1)}.container .main .gary-tags text{color:#666;background:#f4f4f4}.container .footer{left:0;bottom:50rpx;width:100%;padding:0 24rpx;position:fixed}.container .footer .btn{height:84rpx;line-height:84rpx;background-color:rgba(255,44,60,.8)}
|
||||
BIN
public/mp-weixin/bundle_b/static/.DS_Store
vendored
Normal file
BIN
public/mp-weixin/bundle_b/static/community_user_bg.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_audit_fail.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_follow.png
Normal file
|
After Width: | Height: | Size: 574 B |
BIN
public/mp-weixin/bundle_b/static/icon_forward.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_my_setting.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_publish.png
Normal file
|
After Width: | Height: | Size: 866 B |
BIN
public/mp-weixin/bundle_b/static/icon_recommend.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_see.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_select.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_share.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_tags.png
Normal file
|
After Width: | Height: | Size: 668 B |
BIN
public/mp-weixin/bundle_b/static/icon_topic.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_under_review.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
public/mp-weixin/bundle_b/static/icon_unselect.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |