1 line
4.3 KiB
JavaScript
1 line
4.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["community-community-plate"],{4179:function(t,n,e){"use strict";e.r(n);var a=e("c1b7"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},"476d":function(t,n,e){"use strict";e.r(n);var a=e("8389"),o=e("4179");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("a9b6");var r=e("828b"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"4a316758",null,!1,a["a"],void 0);n["default"]=s.exports},5272:function(t,n,e){var a=e("c86c");n=a(!1),n.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.bk_box[data-v-4a316758]{background-color:#fff;padding:%?30?%}.bkspan_span[data-v-4a316758]{border:%?1?% solid #b6b6b6;color:#878787;font-size:%?28?%;margin:%?8?% %?7?%;border-radius:%?35?%;text-align:center;padding:%?5?% %?20?%;display:inline-block}.bkspan[data-v-4a316758]{display:flex;flex-wrap:wrap}.zhuige-base-button[data-v-4a316758]{display:flex;align-items:center;justify-content:center;width:100%;padding:%?40?% 0;z-index:3}.zhuige-base-button uni-view[data-v-4a316758]{width:%?360?%;text-align:center;height:%?96?%;line-height:%?96?%;border-radius:%?96?%;font-size:%?32?%;font-weight:400;color:#fff;background:#db384c}.borred[data-v-4a316758]{border:%?1?% solid #db384c;color:#db384c}',""]),t.exports=n},"699c":function(t,n,e){var a=e("5272");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("967d").default;o("1f779aea",a,!0,{sourceMap:!1,shadowMode:!1})},8389:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",[e("v-uni-view",{staticClass:"bk_box"},[e("v-uni-view",{staticClass:"bkspan"},[t._l(t.CategoryList,(function(n,a){return[e("v-uni-view",{key:a+"_0",attrs:{id:n.story_category_id,name:n.story_category_name},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.ChoosePlate(n)}}},[e("v-uni-view",{class:"bkspan_span "+(n.story_category_id==t.storyCategoryId?"borred":"")},[t._v(t._s(n.story_category_name))])],1)]}))],2)],1),e("v-uni-view",{staticClass:"zhuige-base-button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.AddPlate.apply(void 0,arguments)}}},[e("v-uni-view",[t._v(t._s(t.__("确定")))])],1)],1)},o=[]},a9b6:function(t,n,e){"use strict";var a=e("699c"),o=e.n(a);o.a},c1b7:function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("8f59"),o={data:function(){return{CategoryList:[],storyCategoryId:0,storyCategory:{}}},computed:(0,a.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),onLoad:function(t){uni.setNavigationBarTitle({title:this.__("板块")}),t.storyCategoryId&&this.setData({storyCategoryId:t.storyCategoryId}),this.GetCategoryList()},methods:{GetCategoryList:function(){var t=this;t.$.request({url:t.Config.URL.sns.category_lists,data:{},success:function(n,e,a,o){200==e&&n.items.length>0&&(t.CategoryList=n.items)}})},ChoosePlate:function(t){console.log(t),this.setData({storyCategory:t,storyCategoryId:t.story_category_id}),console.log(this.storyCategoryId)},AddPlate:function(){var t=this;t.$.backpage(1,(function(){var n={storyCategory:t.storyCategory};t.notice.postNotificationName("RefreshPlate",n)}))}}};n.default=o}}]); |