webpackjsonp([77],{"2v2m":function(e,t,a){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var r=a("wg71"),i=a.n(r);for(var s in r)"default"!==s&&function(e){a.d(t,e,function(){return r[e]})}(s);var o=a("hzul"),n=!1;var l=function(e){n||a("tvls")},p=a("x4nt")(i.a,o.a,!1,l,null,null);p.options.__file="pages/personal/sharehome.vue",t.default=p.exports},hzul:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createelement,r=e._self._c||t;return r("div",{staticclass:"share-home-wrapper"},[r("top",{attrs:{searchtext:"搜索"}}),r("div",{staticclass:"header"},[e._v("发布晒家分享")]),r("div",{staticclass:"order-info"},[r("span",{staticclass:"item"},[e._v("订单号:"),r("samp",[e._v(e._s(e.storderid))])])]),r("div",{staticclass:"layout"},[r("div",{staticclass:"share-content"},[r("div",{staticclass:"order-detail"},[r("el-carousel",{attrs:{"indicator-position":"outside"},on:{change:e.changecarousel}},e._l(e.ordergoodsmsglist,function(t,i){return r("el-carousel-item",{key:i},[r("a",{staticclass:"goods-item",attrs:{target:"_blank"}},[r("imgs",{attrs:{imagepath:t.imagepath&&t.imagepath.imagepath,defaultpath:a("zop7")}}),r("p",{staticclass:"goodsname ellipsis"},[e._v(e._s(t.goodsname))])],1)])})),r("span",{staticclass:"pagenation-index"},[e._v(e._s(e.index+"/"+e.ordergoodsmsglist.length))])],1),r("div",{staticclass:"share-detail"},[r("div",{staticclass:"item"},[r("label",{staticclass:"label"},[e._v("分享内容")]),r("textarea",{directives:[{name:"model",rawname:"v-model",value:e.sharedesc,expression:"sharedesc"}],staticclass:"sharecontent",attrs:{placeholder:"商品是否给力?快分享您的购物心得吧~"},domprops:{value:e.sharedesc},on:{input:function(t){t.target.composing||(e.sharedesc=t.target.value)}}})]),r("div",{staticclass:"item"},[r("label",{staticclass:"label"},[e._v("上传美图")]),r("div",{staticclass:"image-list"},[r("el-upload",{attrs:{action:e.actionurl,"list-type":"picture-card","on-preview":e.handlepicturecardpreview,"on-remove":e.handleremove,"on-success":e.handleavatarsuccess}},[r("i",{staticclass:"el-icon-plus"})])],1)])])]),r("div",{staticclass:"layout commit",on:{click:e.commitshare}},[r("button",{staticclass:"commitbutton",attrs:{type:"primary"}},[e._v("提交")])])]),r("foot")],1)};r._withstripped=!0;var i={render:r,staticrenderfns:[]};t.a=i},rtvf:function(e,t,a){(e.exports=a("utlt")(!1)).push([e.i,".share-home-wrapper .search-box{border-bottom:2px solid #e60012}.share-home-wrapper .header{padding:16px 0;margin-top:8px;font-size:16px;color:#000;text-align:center;font-weight:700}.share-home-wrapper .order-info{margin-bottom:20px;font-size:12px;color:#a4a4a4;text-align:center}.share-home-wrapper .order-info>.item{padding:0 10px}.share-home-wrapper .order-info>.item>samp{color:#000}.share-home-wrapper .share-content{padding:30px;margin-bottom:40px;background:#fff}.share-home-wrapper .share-content .order-detail,.share-home-wrapper .share-content .share-detail{display:inline-block;vertical-align:top}.share-home-wrapper .share-content .order-detail{width:280px;height:280px;margin-right:60px;text-align:center;position:relative}.share-home-wrapper .share-content .order-detail .el-carousel__arrow{display:block;width:30px;height:30px;font-size:14px;border-radius:50%}.share-home-wrapper .share-content .order-detail .el-carousel__indicators{display:none}.share-home-wrapper .share-content .order-detail .goods-item{position:relative}.share-home-wrapper .share-content .order-detail .goods-item .goodsname{width:260px;padding:8px 10px;font-size:12px;color:#fff;position:absolute;bottom:0;background:rgba(0,0,0,.6)}.share-home-wrapper .share-content .order-detail .pagenation-index{display:inline-block;width:auto;min-width:44px;height:20px;line-height:20px;font-size:12px;color:#333;opacity:.6;background:#fff;border-radius:12px;position:absolute;top:7px;right:7px;z-index:99}.share-home-wrapper .share-content .share-detail .item{margin-bottom:30px}.share-home-wrapper .share-content .share-detail .item .label{display:inline-block;width:120px;padding:10px 0;color:#8a8a8a}.share-home-wrapper .share-content .share-detail .item .sharecontent{display:inline-block;width:530px;height:120px;padding:16px;border:1px solid #cfcfcf;border-radius:2px;vertical-align:top;resize:none;outline:none}.share-home-wrapper .share-content .share-detail .item .image-list{display:inline-block;max-width:600px;margin-left:-12px;vertical-align:top}.share-home-wrapper .share-content .share-detail .item .image-list>div{display:inline-block}.share-home-wrapper .share-content .share-detail .item .image-list>div .el-upload--picture-card,.share-home-wrapper .share-content .share-detail .item .image-list>div .el-upload-list__item{width:180px;height:100px;line-height:98px;margin-bottom:12px;margin-left:12px}.share-home-wrapper .share-content .share-detail .item .image-list>div .el-upload--picture-card i{font-size:22px}.share-home-wrapper .share-content .share-detail .item .image-list>div .el-upload-list__item-preview,.share-home-wrapper .share-content .share-detail .item .image-list>div .el-upload-list__item-status-label{display:none}.share-home-wrapper .share-content .share-detail .item .image-list>div .el-upload-list__item-delete{margin-left:0}.share-home-wrapper .share-content .share-detail .item .image-list>div .el-icon-delete2{position:absolute;top:8px;right:7px;font-size:16px}.share-home-wrapper .share-content .share-detail .item .image-list>div .is-uploading{width:180px;height:100px}.share-home-wrapper .share-content .share-detail .item .image-list>div .el-progress.el-progress--circle{display:block!important;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);bottom:auto;width:90px}.share-home-wrapper .share-content .share-detail .item .image-list>div .el-progress.el-progress--circle .el-progress-circle{width:90px!important;height:90px!important}.share-home-wrapper .commit{text-align:right;margin-bottom:50px}.share-home-wrapper .commit .commitbutton{width:260px;height:46px;font-size:18px}",""])},tvls:function(e,t,a){var r=a("rtvf");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("fiqi")("eda171f8",r,!1,{sourcemap:!1})},wg71:function(e,t,a){"use strict";object.defineproperty(t,"__esmodule",{value:!0});var r=p(a("4yfn")),i=p(a("xikd")),s=p(a("gp9p")),o=p(a("gcxn")),n=p(a("psvj")),l=a("9rma");function p(e){return e&&e.__esmodule?e:{default:e}}t.default={layout:"content",data:function(){return{dialogimageurl:"",dialogvisible:!1,actionurl:n.default.uploadbaseurl+"/apps",index:1,ordergoodsmsglist:[],sharedesc:null,picids:[]}},computed:{orderid:function(){return this.$route.query.orderid},storderid:function(){return this.$route.query.storderid}},methods:(0,r.default)({},(0,l.mapactions)({getlistordergoodsmsgbyorderid:"sharedecoration/getlistordergoodsmsgbyorderid",submitsharedata:"sharedecoration/submitsharedata"}),{handleremove:function(e,t){},handlepicturecardpreview:function(e){this.dialogimageurl=e.url,this.dialogvisible=!0},handleavatarsuccess:function(e,t){if(e.success){var a=e.returntargets[0].fileid;this.picids.push(a)}else this.$message.error("上传图片失败!")},changecarousel:function(e){this.index=e+1},commitshare:function(){var e=this;this.sharedesc?this.picids&&this.picids.length?this.submitsharedata([this.orderid,this.sharedesc,this.picids]).then(function(t){if(t.success)return e.$router.push({path:"/personal/myorder"}),void e.$message.success("分享成功!");e.$message.error("分享失败!")}).catch(function(t){t&&e.$message.error(t)}):this.$message.error("请选择分享图片"):this.$message.error("请输入分享内容")}}),mounted:function(){var e=this;this.getlistordergoodsmsgbyorderid(this.orderid).then(function(t){e.ordergoodsmsglist=t}).catch(function(t){t&&e.$message.error(t)})},components:{top:i.default,foot:s.default,imgs:o.default}}},zop7:function(e,t,a){e.exports=a.p+"img/p5.97eeb52.jpeg"}});