community-comment.js 2.6 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/community-comment/community-comment"],{"9e88":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uMask:function(){return e.e("components/uview-ui/components/u-mask/u-mask").then(e.bind(null,"2b77"))}},o=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){t.show=!1},t.e1=function(n){t.show=!1})},u=[]},a4c5:function(t,n,e){},baa7:function(t,n,e){"use strict";var i=e("a4c5"),o=e.n(i);o.a},c1e4:function(t,n,e){"use strict";e.r(n);var i=e("ccfb"),o=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},ccfb:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("af79"),o=e("c93f"),u={name:"community-comment",props:{value:{type:Boolean},communityId:{type:[Number,String]},pid:{type:[String,Number]},placeholder:{type:[String,Number],default:"发表你的想法吧..."}},data:function(){return{isFocus:!1,height:"",content:""}},computed:{commentPlaceholder:function(){return this.placeholder},show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},mounted:function(){this.handleComment=(0,o.trottle)(this.handleComment,500,this)},methods:{handleFocus:function(t){this.isFocus=!0,"pages/community/community"==(0,o.currentPage)().route?this.height=t.detail.height-54:this.height=t.detail.height},handleBlur:function(){this.isFocus=!1},handleComment:function(){var t=this;if(!this.isLogin)return this.$Router.push("/pages/login/login");(0,i.apiCommunityCommentAdd)({article_id:this.communityId,pid:this.pid,comment:this.content}).then((function(n){t.$toast({title:n.msg}),1==n.code&&(t.show=!1,t.$emit("change",n.data),t.content="")}))}}};n.default=u},ee47:function(t,n,e){"use strict";e.r(n);var i=e("9e88"),o=e("c1e4");for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("baa7");var c=e("f0c5"),a=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"3eeeb468",null,!1,i["a"],void 0);n["default"]=a.exports}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/community-comment/community-comment-create-component',
  4. {
  5. 'components/community-comment/community-comment-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("ee47"))
  7. })
  8. },
  9. [['components/community-comment/community-comment-create-component']]
  10. ]);