(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04e2500e"],{"0ac9":function(t,a,s){},"17e0":function(t,a,s){"use strict";s("0ac9")},4662:function(t,a,s){"use strict";s("68ef"),s("a71a"),s("9d70"),s("3743"),s("09fe"),s("4d75"),s("e3b3"),s("8270"),s("786d"),s("504b")},"4f26":function(t,a,s){"use strict";s("b680");var i=function(){var t=this,a=t._self._c;return a("div",{staticClass:"cmt"},[a("div",{staticClass:"score"},[a("div",{staticClass:"total"},[a("p",{staticClass:"num"},[t._v(t._s((t.shop_data.score/2).toFixed(1)))]),a("p",{staticClass:"text"},[t._v("综合评分")])]),a("div",{staticClass:"other"},[a("div",[a("span",[t._v("商品质量")]),a("van-rate",{attrs:{size:"16","allow-half":"",readonly:""},model:{value:t.quality_score,callback:function(a){t.quality_score=a},expression:"quality_score"}}),a("span",{staticStyle:{color:"#ffd21e"}},[t._v(t._s((t.shop_data.quality_score/2).toFixed(1)))])],1),a("div",[a("span",[t._v("商品质量")]),a("van-rate",{attrs:{size:"16","allow-half":"",readonly:""},model:{value:t.transit_score,callback:function(a){t.transit_score=a},expression:"transit_score"}}),a("span",{staticStyle:{color:"#ffd21e"}},[t._v(t._s((t.shop_data.transit_score/2).toFixed(1)))])],1)])]),a("van-list",{on:{load:t.getMsg}},t._l(t.list,(function(s){return a("div",{key:s.id,staticClass:"list"},[a("img",{staticClass:"logo",attrs:{src:s.headimage}}),a("div",{staticClass:"list_detail"},[a("div",{staticClass:"title"},[a("span",{staticClass:"name"},[t._v(" "+t._s(1==s.anonymous?"匿名":s.nickname)+" ")]),a("span",{staticClass:"time"},[t._v(t._s(s.time))])]),a("van-rate",{attrs:{size:"16",readonly:""},model:{value:s.total_score,callback:function(a){t.$set(s,"total_score",a)},expression:"item.total_score"}}),a("p",{staticClass:"content"},[t._v(t._s(s.content))]),a("div",{staticClass:"img",on:{click:function(a){return t.loadImg(s)}}},t._l(s.thb_pictures,(function(t,s){return a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"v"}],key:s})})),0),s.reply&&s.reply.t&&s.reply.c?a("div",{staticClass:"replyBox"},[a("div",{staticClass:"title"},[a("span",[t._v("掌柜回复")]),a("span",[t._v(t._s(s.reply.t))])]),a("div",{staticClass:"content"},[t._v(t._s(s.reply.c))])]):t._e()],1)])})),0)],1)},e=[],o=(s("4662"),s("28a2")),n=s("b85c"),r=(s("b64b"),s("99af"),{name:"OutShopCmt",props:{shop_data:Object},data:function(){return{accid:this.$route.query.accid,img_url:this.$store.state.img_url,page:0,list:[],count:10,loading:!1}},computed:{transit_score:function(){return this.trial((this.shop_data.transit_score/2).toFixed(1))},quality_score:function(){return this.trial((this.shop_data.quality_score/2).toFixed(1))}},methods:{trial:function(t){var a=t.substring(0,1),s=t.substring(t.indexOf(".")+1,t.indexOf(".")+2);return s>=0&&s<=2?parseFloat(a+".0"):s>=3&&s<=7?parseFloat(a+".5"):s>=8&&s<=9?parseFloat(a+1):void 0},getMsg:function(){var t=this;if(!(this.count<10||this.loading)){var a={appid:this.accid,shopid:this.$route.query.shopid,page:this.page};this.loading=!0,this.$postRequest("outshopcmt",a).then((function(a){if(t.loading=!1,500==a.data.info){var s=JSON.parse(a.data.msg);t.count=s.length,t.page++,t.list=t.list.concat(s);var i,e=Object(n["a"])(t.list);try{for(e.s();!(i=e.n()).done;){var o=i.value;o.total_score=o.score/2}}catch(r){e.e(r)}finally{e.f()}}else t.count=0,t.$toast(a.data.msg)})).catch((function(){t.loading=!1,t.count=0,t.$toast("数据加载失败")}))}},loadImg:function(t){Object(o["a"])(t.pictures)}}}),c=r,l=(s("17e0"),s("2877")),p=Object(l["a"])(c,i,e,!1,null,"76d1942f",null);a["a"]=p.exports},af9e:function(t,a,s){},afb7:function(t,a,s){"use strict";var i=function(){var t=this,a=t._self._c;return a("div",{staticClass:"container"},[a("div",{staticClass:"detail"},[a("div",{staticClass:"title"},[a("div",{staticClass:"address",on:{click:t.locationDetail}},[a("img",{attrs:{src:t.img_url+"wweb_8/images/shop_location.png"}}),a("div",{staticClass:"address_detail"},[t._v(" "+t._s(""===t.shop_data.address?"暂无定位信息":t.shop_data.address)+" ")]),a("div",{staticClass:"juli"},[t._v("距您约"+t._s(t.distance))])]),a("a",{staticClass:"call",attrs:{href:"tel:"+t.shop_data.telephone}},[a("img",{attrs:{src:t.img_url+"wweb_8/images/shop_17.png"}})])]),void 0!==t.shopAlbum?a("div",{staticClass:"img_list",on:{click:function(a){return t.shopInfoDetail(1,t.shop_data.imgs,"商家相册")}}},t._l(t.shopAlbum,(function(t,s){return a("img",{key:s,attrs:{src:t}})})),0):t._e()]),a("div",{staticClass:"label"},[a("p",[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url+"wweb_8/images/shop_openTime.png",expression:"img_url + 'wweb_8/images/shop_openTime.png'"}]}),t._v("营业时间 "),t._l(t.openTimeArr,(function(s,i){return a("span",{key:i,staticStyle:{color:"#8E8E8E","margin-left":"0.6em"}},[t._v(t._s(s.start)+"-"+t._s(s.end))])}))],2),a("div",{on:{click:function(a){return t.shopInfoDetail(2,t.shop_data.sanitarypics,"营业资质")}}},[a("span",[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url+"wweb_8/images/shop_aptitude.png",expression:"img_url + 'wweb_8/images/shop_aptitude.png'"}],staticClass:"markIcon",staticStyle:{width:"0.9em",height:"0.95em"}}),t._v("营业资质 ")]),t.hasAptitude?a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url+"wweb_8/images/yuan_jx3.png",expression:"img_url + 'wweb_8/images/yuan_jx3.png'"}]}):a("span",[t._v("暂未上传营业资质")])]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.shopService,expression:"shopService"}],staticClass:"shopMark"},[a("span",[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url+"wweb_8/images/shop_service.png",expression:"img_url + 'wweb_8/images/shop_service.png'"}],staticClass:"markIcon",staticStyle:{width:"0.9em",height:"0.95em"}}),t._v("商家服务 ")]),a("ul",["1"===t.shop_data.invoice?a("li",[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url+"wweb_8/images/shop/invoice.png",expression:"img_url + 'wweb_8/images/shop/invoice.png'"}],staticClass:"markSpan"}),t._v("可开发票 ")]):t._e(),t.shop_data.nextday_flag>="1"?a("li",[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url+"wweb_8/images/shop/nextday_flag.png",expression:"img_url + 'wweb_8/images/shop/nextday_flag.png'"}],staticClass:"markSpan"}),t._v("支持跨天预订 ")]):t._e(),"1"===t.shop_data.send_type?a("li",[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url+"wweb_8/images/shop/send_type.png",expression:"img_url + 'wweb_8/images/shop/send_type.png'"}],staticClass:"markSpan"}),t._v("支持到店自取 ")]):t._e(),"1"===t.shop_data.cash_flag?a("li",[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url+"wweb_8/images/shop/cash_flag.png",expression:"img_url + 'wweb_8/images/shop/cash_flag.png'"}],staticClass:"markSpan"}),t._v("支持货到付款 ")]):t._e()])])])])},e=[],o=s("5530"),n=s("b85c"),r=(s("fb6a"),s("b680"),s("e9c4"),s("b0c0"),s("14d9"),s("ff51")),c=s("af40"),l={name:"OutShopDetail",props:{shop_data:Object},data:function(){return{accid:this.$route.query.accid,img_url:this.$store.state.img_url,shipping:0,distance:"5.20m"}},computed:{shopAlbum:function(){var t=this.shop_data.imgs;return Array.isArray(t)&&t.length>0&&(t=t.slice(0,3)),t},hasAptitude:function(){var t=this.shop_data.sanitarypics;return!!(Array.isArray(t)&&t.length>0)},shopService:function(){var t=!0;return"1"!==this.shop_data.invoice&&this.shop_data.nextday_flag<"1"&&"1"!==this.shop_data.send_type&&"1"!==this.shop_data.cash_flag&&(t=!1),t},openTimeArr:function(){var t=[];return t=[{start:this.shop_data.from_time,end:this.shop_data.to_time}],""!=this.shop_data.rest_from&&""!=this.shop_data.rest_to&&(t.length=0,t=[{start:this.shop_data.from_time,end:this.shop_data.rest_from},{start:this.shop_data.rest_to,end:this.shop_data.to_time}]),t}},created:function(){var t=this;if(this.$getLocation().then((function(a){var s=Object(r["h"])(a,{lng:t.shop_data.longitude,lat:t.shop_data.latitude});s>=1e3?(s/=1e3,s=s.toFixed(1),t.distance=s+"km"):(s=parseInt(s),t.distance=s+"m")})).catch((function(){window.console.log("定位失败")})),this.info=JSON.stringify(this.info),this.shop_data.shipping_min>0){if(this.shipping=this.shop_data.shipping_min-this.shop_data.shipping_cut,this.shop_data.send_fee){var a,s=Object(n["a"])(this.shop_data.send_fee);try{for(s.s();!(a=s.n()).done;){var i=a.value;this.compareTime([i.from,i.to])&&(this.shipping=this.shop_data.shipping_min*parseFloat(i.rate)-this.shop_data.shipping_cut)}}catch(e){s.e(e)}finally{s.f()}}this.shipping<=0?this.shipping=0:this.shipping=parseFloat(this.shipping)}},methods:{compareTime:function(t){var a=new Date,s=new Date,i=new Date,e=t[0].split(":"),o=t[1].split(":");return s.setHours(e[0],e[1]),i.setHours(o[0],o[1]),s<a&&i>a},locationDetail:function(){Object(c["g"])(this.shop_data.longitude,this.shop_data.latitude,this.shop_data.name)},shopInfoDetail:function(t,a,s){2===t&&!1===this.hasAptitude||(sessionStorage.setItem("picItem",JSON.stringify(a)),this.$router.push({path:"/shopAlbum/".concat(s),query:Object(o["a"])({},this.$route.query)}))}}},p=l,h=(s("bf9b"),s("2877")),d=Object(h["a"])(p,i,e,!1,null,"21dcb517",null);a["a"]=d.exports},b8d8:function(t,a,s){"use strict";s.r(a);var i=function(){var t=this,a=t._self._c;return 0==t.loading?a("Loading"):1==t.loading?a("div",{staticClass:"container"},[a("van-tabs",{staticStyle:{height:"calc(100vh)"},attrs:{sticky:"",swipeable:"","lazy-render":"",color:"#fb4e44 !important","title-active-color":"#fb4e44 !important"},model:{value:t.active,callback:function(a){t.active=a},expression:"active"}},[a("van-tab",{attrs:{title:"评价("+t.shop_data.comment_count+")"}},[a("OutShopCmt",{attrs:{shop_data:t.shop_data}})],1),a("van-tab",{attrs:{title:"商家"}},[a("OutShopDetail",{attrs:{shop_data:t.shop_data}})],1)],1)],1):a("NoData")},e=[],o=(s("b64b"),s("b0c0"),s("4f26")),n=s("afb7"),r={name:"out_shop_label",components:{OutShopCmt:o["a"],OutShopDetail:n["a"]},data:function(){return{accid:this.$route.query.accid,shopid:this.$route.query.shopid,img_url:this.$store.state.img_url,loading:0,active:0,shop_data:"",cart_name:""}},created:function(){1==this.$route.params.active&&(this.active=1)},mounted:function(){this.$emit("goIndexData",{type:0}),this.cart_name="shopCart_"+this.accid+"_"+this.shopid,this.getMsg()},methods:{getMsg:function(){var t=this,a={appid:this.$route.query.accid,shopid:this.$route.query.shopid,userid:this.$store.state.userid,cur_userid:this.$store.state.userid,fetchtype:1,type:3};this.$postRequest("outshopprolist",a).then((function(a){if(500==a.data.info){var s=JSON.parse(a.data.msg);document.title=s.s.name+"-"+t.$store.state.app_info.site_name,t.loading=1,t.shop_data=s.s}else t.loading=2,t.$toast(a.data.msg)})).catch((function(a){console.log(a),t.loading=2,t.$toast("网络连接失败，请重试！")}))}}},c=r,l=(s("da6a"),s("2877")),p=Object(l["a"])(c,i,e,!1,null,"3ec10dbb",null);a["default"]=p.exports},bf9b:function(t,a,s){"use strict";s("db93")},da6a:function(t,a,s){"use strict";s("af9e")},db93:function(t,a,s){}}]);