1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d76a98a"],{"082e":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,'#commentDetails a[data-v-5751170f]{color:#000}#commentDetails .all[data-v-5751170f]{background:#fff}#commentDetails #callback[data-v-5751170f]{position:fixed;bottom:0;width:100%;background:#fff;padding:.625rem 0}#commentDetails #callback input[data-v-5751170f]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;border:.0625rem solid #919191;border-radius:.3125rem;line-height:1.875rem;padding-left:.3125rem;margin-left:.3125rem}#commentDetails #callback button[data-v-5751170f]{border:.0625rem solid #dd191d;border-radius:.3125rem;background:#e84e40;color:#fff}#commentDetails #callback .share-btn[data-v-5751170f],#commentDetails #callback button[data-v-5751170f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1.875rem;margin:0 .625rem}#commentDetails #callback .share-btn[data-v-5751170f]{text-align:center;color:#6c6b6b}#commentDetails .userimg[data-v-5751170f]{border-radius:50%;overflow:hidden;width:2.5rem;margin-right:.625rem}#commentDetails .userimg img[data-v-5751170f]{display:block;width:100%}#commentDetails .zp .append-class[data-v-5751170f]{white-space:nowrap;word-break:break-all;color:#e84e40}#commentDetails .spaet[data-v-5751170f]{color:#919191;-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;text-align:right}#commentDetails .pj[data-v-5751170f]{border-bottom:.0625rem solid #e8e8e8;background:#fff;padding:.625rem 0;margin:0 1rem}#commentDetails .pj p[data-v-5751170f]{text-align:left;margin-top:.625rem;line-height:1.5rem;font-size:.875rem}#commentDetails .pj img[data-v-5751170f]{width:100%}#commentDetails .pj .name[data-v-5751170f]{font-size:.875rem;text-align:left}#commentDetails .pj .name .level-name[data-v-5751170f]{color:#8c8c8c;margin-top:.3rem}#commentDetails .pj .pjImgs[data-v-5751170f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#commentDetails .pj .pjImgs .pjImgWrapper[data-v-5751170f]{height:2.8rem;padding:.15rem}#commentDetails .pj .pjImgs .pjImgWrapper img[data-v-5751170f]{width:2.5rem;height:2.5rem}#commentDetails .pjgoods[data-v-5751170f]{padding:.625rem 0;background:#fff}#commentDetails .goods[data-v-5751170f]:after{content:"";display:block;clear:both}#commentDetails .goods[data-v-5751170f]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fafafa}#commentDetails .goods .img[data-v-5751170f]{width:6rem;height:6rem;padding:.875rem;display:inline-block}#commentDetails .goods .img img[data-v-5751170f]{width:100%}#commentDetails .goods .warp[data-v-5751170f]{width:70%;padding-top:.625rem;padding-right:1rem;display:inline-block}#commentDetails .goods .warp .inner[data-v-5751170f]{width:70%;float:left;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:left}#commentDetails .goods .warp .inner .name[data-v-5751170f]{text-align:left;color:#333;margin-bottom:.625rem;font-size:.875rem}#commentDetails .goods .warp .price[data-v-5751170f]{width:30%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:right;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;padding-right:.25rem}#commentDetails .goods .warp .price p[data-v-5751170f]{margin-top:0}#commentDetails .goods .product_price[data-v-5751170f]{margin-bottom:.625rem;font-size:.875rem}#commentDetails .goods .option[data-v-5751170f]{color:#8c8c8c;font-size:.75rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#commentDetails .goods .option2[data-v-5751170f]{color:#e84e40;font-size:.875rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:100%}#commentDetails .goods .option2 font[data-v-5751170f]{float:left}#commentDetails .allpl[data-v-5751170f]{margin-top:.625rem;margin-bottom:3.125rem;background:#fff;padding:.625rem}#commentDetails .allpl .tilse[data-v-5751170f]{text-align:left;line-height:2rem;border-bottom:.0625rem solid #e8e8e8}#commentDetails .allpl .pjhf[data-v-5751170f]{padding:.625rem 0}#commentDetails .allpl .pjhf .pjtime[data-v-5751170f]{color:#919191;-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;text-align:left}#commentDetails .allpl .pjhf span[data-v-5751170f]{padding:.0625rem .625rem;border:.0625rem solid #bfcbd9;border-radius:.8125rem}#commentDetails .allpl .othepj[data-v-5751170f]{background:#efedf5;padding-left:1.875rem;padding-right:.625rem}.item-pic[data-v-5751170f]{padding:.75rem 0 0 0}.pcStyle .comment-footer[data-v-5751170f]{left:auto}.pj-img[data-v-5751170f]{width:4.375rem;height:4.375rem;margin:0 .5rem .5rem 0;border-radius:.25rem;-o-object-fit:cover;object-fit:cover}.pic[data-v-5751170f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.pic .pic-flex[data-v-5751170f]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.comm-all[data-v-5751170f]{background-color:#fff;border-radius:.5rem;padding:.75rem;margin:.5rem .75rem 0 .75rem}.comm-all .comm-user .avatar[data-v-5751170f]{width:2.5rem;height:2.5rem;border-radius:50%;margin:0 .25rem 0 0}.comm-all .comm-user .user-wrap[data-v-5751170f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.comm-all .comm-user .user-wrap .title[data-v-5751170f]{text-align:left}.comm-all .comm-user .user-wrap .title h3[data-v-5751170f]{font-size:.875rem;font-weight:700;line-height:1.25rem;color:#333}.comm-all .comm-user .user-wrap .title h4[data-v-5751170f]{font-size:.75rem;font-weight:400;line-height:1.0625rem;color:#666}.comm-all .comm-user .user-wrap .user-time[data-v-5751170f]{font-size:.75rem;font-weight:400;line-height:1.0625rem;color:#999}.comm-all .comment[data-v-5751170f]{font-size:.875rem;line-height:1.25rem;color:#333}.comm-all .append-flex[data-v-5751170f],.comm-all .comment[data-v-5751170f]{padding:.75rem 0 .5rem 0;text-align:left}.comm-all .comment-box[data-v-5751170f]{color:#333;word-break:break-all;word-wrap:break-word}.comm-all .comment-append[data-v-5751170f],.comm-all .comment-box[data-v-5751170f]{font-size:.875rem;font-weight:400;line-height:1.25rem;text-align:left;display:inline}.comm-all .comment-append[data-v-5751170f]{color:#e32323}.comm-all .goods-rate[data-v-5751170f]{padding:.75rem 0}.comm-all .goods-rate .rate[data-v-5751170f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.comm-all .goods-rate .option-right[data-v-5751170f],.comm-all .goods-rate .rate h4[data-v-5751170f]{font-size:.75rem;font-weight:400;line-height:1.0625rem;color:#999}.comm-all .goods-rate .option-right[data-v-5751170f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.comm-all .goods-rate .option-right .total[data-v-5751170f]{padding:0 0 0 .1875rem}.comm-all .goods-wrap[data-v-5751170f]{background-color:#f5f5f5;border-radius:2px}.comm-all .goods-wrap .info-wrap[data-v-5751170f]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .75rem 0 0}.comm-all .goods-wrap .info-wrap h4[data-v-5751170f]{width:70%;font-size:.8125rem;font-weight:400;line-height:1.1875rem;color:#666;text-align:left}.comm-all .goods-wrap .info-wrap h5[data-v-5751170f]{font-size:.8125rem;font-weight:700;line-height:1.1875rem;color:#333}.comm-all .goods-wrap .images[data-v-5751170f]{width:2.1875rem;height:2.1875rem;margin:0 .5rem 0 0;border-radius:.125rem 0 0 .125rem}.comm-padding[data-v-5751170f]{padding:.75rem .75rem 0 .75rem}.comment-main[data-v-5751170f]{background-color:#fff;border-radius:.5rem;padding:.75rem;margin:.5rem .75rem 0 .75rem}.comment-main h3[data-v-5751170f]{text-align:left;font-size:.875rem;font-weight:700;line-height:1.25rem;color:#333;padding:0 0 .75rem 0;border-bottom:.0625rem solid #e7e7e7}.comment-main h3 span[data-v-5751170f]{vertical-align:baseline}.comment-main .comment-list .comment-item[data-v-5751170f]{padding:.75rem 0 0 0}.comment-main .comment-list .comment-item .img[data-v-5751170f]{margin:0 .25rem 0 0}.comment-main .comment-list .comment-item .img[data-v-5751170f],.comment-main .comment-list .comment-item .img img[data-v-5751170f]{width:1.375rem;border-radius:50%;height:1.375rem}.comment-main .comment-list .comment-item .comment-wrap[data-v-5751170f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.comment-main .comment-list .comment-item .comment-wrap .wrap-left .wrap-name[data-v-5751170f]{width:60%;font-size:.8125rem;font-weight:400;line-height:1.1875rem}.comment-main .comment-list .comment-item .comment-wrap .wrap-left .wrap-name .wrap-merchant[data-v-5751170f]{font-size:.625rem;font-weight:400;line-height:.875rem;color:#fff;padding:.125rem .25rem;border-radius:.125rem;background-color:#ccc;margin:0 0 0 8px}.comment-main .comment-list .comment-item .comment-wrap .wrap-left .wrap-name h4[data-v-5751170f]{padding:0 .0625rem 0 0;color:#666;text-align:left}.comment-main .comment-list .comment-item .comment-wrap .wrap-left .wrap-name .name-padding[data-v-5751170f]{padding:.0625rem 0 0 0}.comment-main .comment-list .comment-item .comment-wrap .wrap-left .wrap-name span[data-v-5751170f]{color:#f15353}.comment-main .comment-list .comment-item .comment-wrap .wrap-left h5[data-v-5751170f]{font-size:.75rem;font-weight:400;line-height:1.1875rem;color:#666;text-align:right}.comment-main .comment-list .comment-item .comment-wrap .comment-desc[data-v-5751170f]{font-size:.8125rem;font-weight:400;line-height:1.1875rem;color:#333;text-align:left;padding:.625rem 0 0 0}.comment-footer[data-v-5751170f]{width:23.4375rem;background-color:#fff;position:fixed;left:0;bottom:0;padding:.3125rem .75rem}.comment-footer .share[data-v-5751170f]{padding:0 1.25rem 0 0}.comment-footer .share .icon-material_share[data-v-5751170f]{font-size:1.25rem}.comment-footer .share p[data-v-5751170f]:last-child{font-size:.625rem;font-weight:400;line-height:1.0625rem;color:#333}.comment-footer .comment-btn[data-v-5751170f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;height:2.5rem;position:relative}.comment-footer .comment-btn input[data-v-5751170f]{width:100%;background:#f5f5f5;border:none;border-radius:1.3125rem;padding:0 0 0 .75rem}.comment-footer .comment-btn div[data-v-5751170f]{line-height:2.5rem;font-size:.9375rem;font-weight:400;color:#fff;padding:0 1.25rem;border-radius:1.3125rem;background-color:var(--themeBaseColor);position:absolute;right:0;top:0}',""]),e.exports=t},"7884c":function(e,t,a){var o=a("082e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=a("499e").default;i("1a8ce0f6",o,!0,{sourceMap:!1,shadowMode:!1})},"7eac":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"commentDetails"}},[a("c-title",{attrs:{hide:!1,text:"评价详情"}}),a("div",{staticClass:"comm-all",class:!e.append||e.append instanceof Array?"":"comm-padding"},[a("div",{staticClass:"comm-user flex-a-c"},[a("img",{staticClass:"avatar",attrs:{src:e.commentInfo.head_img_url}}),a("div",{staticClass:"user-wrap flex-a-c flex-j-sb"},[a("div",{staticClass:"title"},[a("h3",[e._v(e._s(e.commentInfo.nick_name))]),a("h4",[e._v(e._s(e.commentInfo.level_name))])]),a("div",{staticClass:"user-time"},[e._v(e._s(e.commentInfo.created_at))])])]),e.commentInfo.content?a("div",{staticClass:"comment"},[e._v(e._s(e.commentInfo.content))]):a("div",{staticClass:"comment"},[e._v("此用户没有填写评价")]),e.images&&e.images.length>0?a("div",{staticClass:"pic"},[a("viewer",{staticClass:"flex pic-flex",attrs:{images:e.images}},e._l(e.images,(function(e,t){return a("img",{key:t,staticClass:"pj-img",attrs:{src:e}})})),0)],1):e._e(),a("div",{staticClass:"goods-rate flex-a-c",on:{click:function(t){return e.toGoods(e.has_one_order_goods.goods_id)}}},[a("div",{staticClass:"rate flex-a-c"},[a("h4",[e._v("评分:")]),a("van-rate",{attrs:{readonly:"",size:12,color:"var(--themeBaseColor)"},model:{value:e.commentInfo.level,callback:function(t){e.$set(e.commentInfo,"level",t)},expression:"commentInfo.level"}})],1),e.has_one_order_goods?a("div",{staticClass:"option-right flex-a-c"},[e.has_one_order_goods.goods_option_title?a("div",[e._v("规格: "+e._s(e.has_one_order_goods.goods_option_title)+",")]):e._e(),a("div",{staticClass:"option total"},[e._v("X"+e._s(e.has_one_order_goods.total))])]):e._e()]),e.has_one_order_goods?a("div",{staticClass:"goods-wrap flex",on:{click:function(t){return e.toGoods(e.has_one_order_goods.goods_id)}}},[a("img",{staticClass:"images",attrs:{src:e.has_one_order_goods.thumb}}),a("div",{staticClass:"info-wrap flex-a-c flex-j-sb"},[a("h4",{staticClass:"ell"},[e._v(e._s(e.has_one_order_goods.title))]),a("h5",[e._v(e._s(e.$i18n.t("money"))+" "+e._s(e.has_one_order_goods.price))])])]):e._e(),!e.append||e.append instanceof Array?e._e():a("div",[a("div",{staticClass:"append-flex"},[e.append.diff_date.value>0?a("div",{staticClass:"comment-append"},[e._v(e._s(e.append.diff_date.value)+e._s(e.append.diff_date.sku)+"追评:")]):a("div",{staticClass:"comment-append"},[e._v("追评:")]),a("div",{staticClass:"comment-box"},[e._v(" "+e._s(e.append.content))])]),e.append.images&&e.append.images.length>0?a("div",{staticClass:"pic"},[a("viewer",{attrs:{images:e.append.images}},e._l(e.append.images,(function(e,t){return a("img",{key:t,staticClass:"pj-img",attrs:{src:e}})})),0)],1):e._e()])]),e.has_many_reply.length>0?a("div",{staticClass:"comment-main"},[a("h3",[e._v("全部评论·"),a("span",[e._v(e._s(e.has_many_reply.length))])]),a("div",{staticClass:"comment-list"},[a("div",{staticClass:"comment-item flex"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.commentInfo.head_img_url}})]),a("div",{staticClass:"comment-wrap "},[a("div",{staticClass:"wrap-left flex-a-c flex-j-sb"},[a("div",{staticClass:"wrap-name flex"},[a("h4",[e._v(e._s(e.commentInfo.nick_name)+" ")])]),a("h5",[e._v(e._s(e.commentInfo.created_at))])]),e.commentInfo.content?a("div",{staticClass:"comment-desc",on:{click:e.submitReplyForComment}},[e._v(e._s(e.commentInfo.content))]):a("div",{staticClass:"comment-desc",on:{click:e.submitReplyForComment}},[e._v("此用户没有填写评价")])])]),e.has_many_reply.length>0?e._l(e.has_many_reply,(function(t,o){return a("div",{key:o,staticClass:"comment-item flex"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.head_img_url}})]),a("div",{staticClass:"comment-wrap"},[a("div",{staticClass:"wrap-left flex-a-c flex-j-sb"},[a("div",{staticClass:"wrap-name flex"},[a("h4",[e._v(e._s(t.nick_name))]),a("span",{directives:[{name:"show",rawName:"v-show",value:0===t.is_shop,expression:"item.is_shop === 0"}]},[e._v(" 回复 ")]),a("div",{directives:[{name:"show",rawName:"v-show",value:1===t.is_shop,expression:"item.is_shop === 1"}],staticClass:"wrap-merchant"},[e._v("商家回复")]),a("h4",{directives:[{name:"show",rawName:"v-show",value:0===t.is_shop,expression:"item.is_shop === 0"}],staticClass:"name-padding"},[e._v(e._s(t.reply_name))])]),a("h5",[e._v(e._s(t.created_at))])]),t.content?a("div",{staticClass:"comment-desc",on:{click:function(a){return e.replyToSomeOne(t)}}},[e._v(e._s(t.content))]):a("div",{staticClass:"comment-desc",on:{click:function(a){return e.replyToSomeOne(t)}}},[e._v("此用户没有填写评价")]),t.images&&t.images.length>0?a("div",{staticClass:"pic item-pic"},[a("viewer",{staticClass:"flex pic-flex",attrs:{images:t.images}},e._l(t.images,(function(e,t){return a("img",{key:t,staticClass:"pj-img",attrs:{src:e}})})),0)],1):e._e()])])})):e._e()],2)]):e._e(),a("div",{staticClass:"comment-footer flex-a-c"},[a("div",{staticClass:"share",on:{click:e.showShareOverlay}},[a("p",{staticClass:"iconfont icon-material_share"}),a("p",[e._v("分享")])]),a("div",{staticClass:"comment-btn flex"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.reply_content,expression:"reply_content"}],attrs:{type:"",placeholder:e.reply_placeholder},domProps:{value:e.reply_content},on:{input:function(t){t.target.composing||(e.reply_content=t.target.value)}}}),a("div",{on:{click:e.submitReply}},[e._v("提交")])])]),a("div",{staticStyle:{height:"60px"}}),a("yz-wechat-share-img",{model:{value:e.isShowShare,callback:function(t){e.isShowShare=t},expression:"isShowShare"}})],1)},i=[],m=(a("14d9"),a("6968")),r=a("2b57"),n={data:function(){return{toi:this.fun.getKeyByI(),append:null,reply:null,comment_id:"",has_many_reply:[],has_one_order_goods:null,reply_placeholder:"回复@昵称:",reply_one:"",reply_type:1,images:[],worker_score:null,isShowShare:!1,commentInfo:{}}},methods:{getNetData:function(e){var t=this,a=this;$http.get("goods.comment.get-order-goods-comment",{order_id:this.$route.params.order_id,goods_id:this.$route.params.goods_id,comment_id:this.$route.params.comment_id,order_goods_id:this.$route.params.order_goods_id,uid:this.$route.params.uid},"正在获取...").then((function(e){if(1==e.result){var o=e.data;t.commentInfo=e.data,t.append=o.append,t.reply=o.reply,t.has_one_order_goods=o.has_one_order_goods,t.has_many_reply=o.has_many_reply,t.comment_id=o.id,t.images=o.images,t.worker_score=o.has_one_live_install_comment||{},t.worker_score.worker_name=o.another_name?o.another_name.worker_name:""}else a.$dialog.alert({message:e.msg})}),(function(e){}))},replyToSomeOne:function(e){this.reply_type=2,this.reply_one=e,this.reply_placeholder="回复@昵称:"+e.nick_name},submitReplyForComment:function(){this.reply_type=1,this.reply_placeholder="回复@昵称:主评论"},submitReply:function(){var e,t=this;if(this.fun.isTextEmpty(this.reply_content))return this.$toast("请输入回复内容"),!1;e=1==this.reply_type?this.comment_id:this.reply_one.id,$http.get("goods.comment.reply-comment",{id:e,order_goods_id:this.commentInfo.order_goods_id,content:this.reply_content},"正在回复").then((function(e){if(1==e.result){var a=e.data;a.is_shop=0,t.reply_content="",t.has_many_reply.push(a),t.$toast(e.msg)}else t.$dialog.alert({message:e.msg})}),(function(e){}))},toGoods:function(e){this.$router.push(this.fun.getUrl("goods",{id:e}))},showShareOverlay:function(){this.isShowShare=!0},initData:function(){this.content="",this.created_at="",this.append="",this.reply="",this.images="",this.level="",this.nick_name="",this.level_name="",this.has_one_order_goods="",this.has_many_reply="",this.comment_id="",this.toi=this.fun.getKeyByI(),this.getNetData(),this.reply_placeholder="回复@昵称:主评论"}},activated:function(){this.initData()},components:{cTitle:m["a"],yzWechatShareImg:r["a"]}},s=n,l=s,d=(a("bea6"),a("2877")),c=Object(d["a"])(l,o,i,!1,null,"5751170f",null);t["default"]=c.exports},bea6:function(e,t,a){"use strict";a("7884c")}}]); |