(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/info/myarticle"],{"1f98":function(t,n,i){"use strict";i.d(n,"b",(function(){return e})),i.d(n,"c",(function(){return s})),i.d(n,"a",(function(){return o}));var o={uniPopup:function(){return i.e("components/uni-popup/uni-popup").then(i.bind(null,"1808"))}},e=function(){var t=this.$createElement,n=(this._self._c,0==this.showwz&&0==this.lx?{"Authori-zation":this.AuthoriZation}:null);this.$mp.data=Object.assign({},{$root:{a0:n}})},s=[]},2547:function(t,n,i){"use strict";(function(t,n){var o=i("4ea4");i("d1cd");o(i("66fd"));var e=o(i("46e4"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(e.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},"280d":function(t,n,i){},"46e4":function(t,n,i){"use strict";i.r(n);var o=i("1f98"),e=i("e929");for(var s in e)["default"].indexOf(s)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(s);i("9f25");var a=i("f0c5"),u=Object(a["a"])(e["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports},"5f10":function(t,n,i){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i("5adf"),e=i("1d73"),s=i("cd04"),a={components:{jinEdit:function(){i.e("components/jin-edit/jin-edit").then(function(){return resolve(i("6ccd"))}.bind(null,i)).catch(i.oe)}},data:function(){return{lx:0,AuthoriZation:"",id:0,title:"",author:"",image_input:"",content:"",synopsis:"",product:"",productlist:[],page:1,limit:10,loadType:"more",keyworld:"",showwz:0}},onLoad:function(n){n.id&&(this.showwz=1,this.id=n.id,this.loadData()),n.type&&(this.lx=n.type),console.log(this.product),this.AuthoriZation="Bearer "+t.getStorageSync("token")},onShow:function(){},onReachBottom:function(){},onReady:function(){},methods:{editOk:function(t){this.content=t.html,console.log(this.content)},getProduct:function(){var t=this;"noMore"!=t.loadType&&"loading"!=t.loadType&&(t.loadType="loading",(0,e.getProducts)({page:t.page,limit:t.limit,keyword:t.keyworld}).then((function(n){var i=n.data;t.productlist=t.productlist.concat(i),t.page++,i.length==t.limit?t.loadType="more":t.loadType="noMore"})))},loadData:function(){var t=this;(0,s.my_detail)({},this.id).then((function(n){var i=n.data;t.title=i.news.title,t.author=i.news.author,t.image_input=i.news.image_input[0],t.synopsis=i.news.synopsis,t.content=i.news.content,t.showwz=0}))},spxq:function(t){var n=this;(0,e.goodsDetail)({},t).then((function(t){var i=t.data;n.product=i.storeInfo,console.log(i)}))},scImgMian:function(){if(0==this.lx){var t=this;(0,o.upload)({file:""}).then((function(n){console.log(n,"e"),t.image_input=n[0].url})).catch((function(t){}))}},clickSearch:function(){this.page=1,this.limit=10,this.loadType="more",this.getProduct()},open:function(){0==this.lx&&this.$refs.choose.open()},close:function(){this.$refs.choose.close()},xuanzhe:function(t){this.product=t,console.log(this.product,"123456"),this.$refs.choose.close()},submit:function(n){var i=this,o=this;this.$refs.set.release(!0),setTimeout((function(){return o.title?o.author?o.image_input?o.synopsis?o.content?void(0,s.add_article)({type:n,id:o.id,title:o.title,author:o.author,image_input:o.image_input,synopsis:o.synopsis,share_title:o.title,share_synopsis:o.synopsis,share_images:o.image_input,content:o.content,product_id:0}).then((function(i){0==n?t.navigateTo({url:"/pages/user/creation?id=0"}):t.navigateTo({url:"/pages/user/creation?id=2"})})):i.$api.msg("请输入文章内容"):i.$api.msg("请输入文章简介"):i.$api.msg("请输入文章头图"):i.$api.msg("请输入文章作者"):i.$api.msg("请输入文章标题")}),10)}}};n.default=a}).call(this,i("543d")["default"])},"9f25":function(t,n,i){"use strict";var o=i("280d"),e=i.n(o);e.a},e929:function(t,n,i){"use strict";i.r(n);var o=i("5f10"),e=i.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){i.d(n,t,(function(){return o[t]}))}(s);n["default"]=e.a}},[["2547","common/runtime","common/vendor"]]]);