shopDetail.cb3f3ec86ce0801c1bd1.min.js 17 KB

1
  1. webpackJsonp([35,45],{5:function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=a(10),o=i(s),n=a(4);e.default={data:function(){return{}},mounted:function(){this.getUserInfo()},props:["signinUp","headTitle","goBack"],computed:(0,o.default)({},(0,n.mapState)(["userInfo"])),methods:(0,o.default)({},(0,n.mapActions)(["getUserInfo"]))}},6:function(t,e,a){e=t.exports=a(2)(),e.push([t.id,"#head_top[data-v-cec0c0c0]{background-color:#3190e8;position:fixed;z-index:100;left:0;top:0;width:100%;height:1.95rem}.head_goback[data-v-cec0c0c0]{left:.4rem;width:.6rem;height:1rem;line-height:2.2rem;margin-left:.4rem}.head_login[data-v-cec0c0c0]{right:.55rem;font-size:.65rem;color:#fff;position:absolute;top:50%;transform:translateY(-50%)}.head_login .login_span[data-v-cec0c0c0]{color:#fff}.head_login .user_avatar[data-v-cec0c0c0]{fill:#fff;width:.8rem;height:.8rem}.title_head[data-v-cec0c0c0]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:50%;color:#fff;text-align:center}.title_head .title_text[data-v-cec0c0c0]{font-size:.8rem;color:#fff;text-align:center;font-weight:700}","",{version:3,sources:["/./src/components/header/head.vue"],names:[],mappings:"AACA,2BAA2B,yBAAyB,eAAe,YAAY,OAAO,MAAM,WAAW,cAAc,CACpH,AACD,8BAA8B,WAAY,YAAY,YAAY,mBAAmB,iBAAiB,CACrG,AACD,6BAA6B,aAAc,iBAAiB,WAAW,kBAAkB,QAAQ,AAAkE,0BAA0B,CAC5L,AACD,yCAAyC,UAAU,CAClD,AACD,0CAA0C,UAAU,YAAY,YAAY,CAC3E,AACD,6BAA6B,kBAAkB,QAAQ,SAAS,AAA4E,+BAAgC,UAAU,WAAW,iBAAiB,CACjN,AACD,yCAAyC,gBAAgB,WAAW,kBAAkB,eAAgB,CACrG",file:"head.vue",sourcesContent:["\n#head_top[data-v-cec0c0c0]{background-color:#3190e8;position:fixed;z-index:100;left:0;top:0;width:100%;height:1.95rem\n}\n.head_goback[data-v-cec0c0c0]{left:0.4rem;width:.6rem;height:1rem;line-height:2.2rem;margin-left:.4rem\n}\n.head_login[data-v-cec0c0c0]{right:0.55rem;font-size:.65rem;color:#fff;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)\n}\n.head_login .login_span[data-v-cec0c0c0]{color:#fff\n}\n.head_login .user_avatar[data-v-cec0c0c0]{fill:#fff;width:.8rem;height:.8rem\n}\n.title_head[data-v-cec0c0c0]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:50%;color:#fff;text-align:center\n}\n.title_head .title_text[data-v-cec0c0c0]{font-size:.8rem;color:#fff;text-align:center;font-weight:bold\n}\n"],sourceRoot:"webpack://"}])},7:function(t,e,a){var i=a(6);"string"==typeof i&&(i=[[t.id,i,""]]);a(3)(i,{});i.locals&&(t.exports=i.locals)},8:function(t,e,a){a(7);var i=a(1)(a(5),a(9),"data-v-cec0c0c0",null);t.exports=i.exports},9:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header",{attrs:{id:"head_top"}},[t._t("logo"),t._v(" "),t._t("search"),t._v(" "),t.goBack?a("section",{staticClass:"head_goback",on:{click:function(e){t.$router.go(-1)}}},[a("svg",{attrs:{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[a("polyline",{staticStyle:{fill:"none",stroke:"rgb(255,255,255)","stroke-width":"2"},attrs:{points:"12,18 4,9 12,0"}})])]):t._e(),t._v(" "),t.signinUp?a("router-link",{staticClass:"head_login",attrs:{to:t.userInfo?"/profile":"/login"}},[t.userInfo?a("svg",{staticClass:"user_avatar"},[a("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#user"}})]):a("span",{staticClass:"login_span"},[t._v("登录|注册")])]):t._e(),t._v(" "),t.headTitle?a("section",{staticClass:"title_head ellipsis"},[a("span",{staticClass:"title_text"},[t._v(t._s(t.headTitle))])]):t._e(),t._v(" "),t._t("edit"),t._v(" "),t._t("msite-title"),t._v(" "),t._t("changecity"),t._v(" "),t._t("changeLogin")],2)},staticRenderFns:[]}},18:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getImgPath=e.loadMore=void 0;var i=a(27);a(17),e.loadMore={directives:{"load-more":{bind:function(t,e){var a=window.screen.height,s=void 0,o=void 0,n=void 0,r=void 0,c=void 0,A=void 0,l=void 0,d=void 0,p=t.attributes.type&&t.attributes.type.value,_=2;2==p?(l=t,d=t.children[0]):(l=document.body,d=t),t.addEventListener("touchstart",function(){s=d.clientHeight,2==p&&(s=s),o=t.offsetTop,n=(0,i.getStyle)(t,"paddingBottom"),r=(0,i.getStyle)(t,"marginBottom")},!1),t.addEventListener("touchmove",function(){m()},!1),t.addEventListener("touchend",function(){A=l.scrollTop,f()},!1);var f=function t(){c=requestAnimationFrame(function(){l.scrollTop!=A?(A=l.scrollTop,t()):(cancelAnimationFrame(c),s=d.clientHeight,m())})},m=function(){l.scrollTop+a>=s+o+n+r-_&&e.value()}}}}},e.getImgPath={methods:{getImgPath:function(t){var e=void 0;if(!t)return"//elm.cangdu.org/img/default.jpg";e=t.indexOf("jpeg")!==-1?".jpeg":".png";var a="/"+t.substr(0,1)+"/"+t.substr(1,2)+"/"+t.substr(3)+e;return"https://fuss10.elemecdn.com"+a}}}},163:function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=a(10),o=i(s),n=a(8),r=i(n),c=a(4),A=a(18),l=a(17);e.default={data:function(){return{licenseImg:null,showlicenseImg:!1,imgBaseUrl:l.imgBaseUrl}},mounted:function(){},computed:(0,o.default)({},(0,c.mapState)(["shopDetail"])),components:{headTop:r.default},mixins:[A.getImgPath],methods:{showLicenseImg:function(t){this.licenseImg=t,this.showlicenseImg=!0}}}},262:function(t,e,a){e=t.exports=a(2)(),e.push([t.id,".rating_page[data-v-ca49b092]{position:absolute;top:0;left:0;right:0;bottom:0;padding-top:1.95rem;background-color:#ebebeb;z-index:18}.activities_container[data-v-ca49b092]{background-color:#fff;margin:.4rem 0;padding-bottom:.6rem}.activities_container header[data-v-ca49b092]{font-size:.75rem;color:#333;line-height:1.8rem;padding-left:.6rem;border-bottom:1px solid #f1f1f1;margin-bottom:.3rem}.activities_container .actibities_ul[data-v-ca49b092]{padding:0 .6rem}.activities_container .actibities_ul li[data-v-ca49b092]{margin-bottom:.2rem}.activities_container .actibities_ul li span[data-v-ca49b092]:first-of-type{font-size:.45rem;color:#fff;padding:.1rem;border:1px;border-radius:.1rem;margin-right:.2rem}.activities_container .actibities_ul li span[data-v-ca49b092]:nth-of-type(2){font-size:.55rem;color:#666}.shop_status_container[data-v-ca49b092]{background-color:#fff;margin-bottom:.4rem}.shop_status_container .shop_status_header[data-v-ca49b092]{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;line-height:1.8rem;padding:0 .6rem;border-bottom:.025rem solid #f1f1f1}.shop_status_container .shop_status_header .shop_detail_title[data-v-ca49b092]{font-size:.75rem;color:#333}.shop_status_container .shop_status_header .identification_detail[data-v-ca49b092]{font-size:.7rem;color:#bbb;vertical-align:middle}.shop_status_container .shop_status_header svg[data-v-ca49b092]{width:.6rem;height:.6rem;vertical-align:middle}.shop_status_container .shop_statu_detail[data-v-ca49b092]{display:-ms-flexbox;display:flex;padding:.6rem}.shop_status_container .shop_statu_detail svg[data-v-ca49b092]{width:2rem;height:2rem;margin-right:.6rem}.shop_status_container .shop_statu_detail .check_date span[data-v-ca49b092]{font-size:.55rem;color:#666}.shop_status_container .shop_statu_detail .check_date .shop_status_well[data-v-ca49b092]{color:#7ed321}.shop_status_container .shop_statu_detail .check_date .shop_status_bad[data-v-ca49b092]{color:red}.shop_status_info[data-v-ca49b092]{background-color:#fff;margin-bottom:.4rem}.shop_status_info header[data-v-ca49b092]{line-height:1.8rem;padding:0 .6rem;font-size:.75rem;color:#333;border-bottom:.025rem solid #f1f1f1}.shop_status_info p[data-v-ca49b092]{font-size:.6rem;color:#666;padding:.7rem .6rem .7rem 0;margin-left:.6rem;border-bottom:.025rem solid #f5f5f5}.shop_status_info span[data-v-ca49b092]{color:#666}.shop_status_info p[data-v-ca49b092]:nth-of-type(4),.shop_status_info p[data-v-ca49b092]:nth-of-type(5){display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.license_container[data-v-ca49b092]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);z-index:101}.license_container img[data-v-ca49b092]{width:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.fade-enter-active[data-v-ca49b092],.fade-leave-active[data-v-ca49b092]{transition:opacity .5s}.fade-enter[data-v-ca49b092],.fade-leave-active[data-v-ca49b092]{opacity:0}.router-slid-enter-active[data-v-ca49b092],.router-slid-leave-active[data-v-ca49b092]{transition:all .4s}.router-slid-enter[data-v-ca49b092],.router-slid-leave-active[data-v-ca49b092]{transform:translate3d(2rem,0,0);opacity:0}","",{version:3,sources:["/./src/page/shop/children/shopDetail.vue"],names:[],mappings:"AACA,8BAA8B,kBAAkB,MAAM,OAAO,QAAQ,SAAS,oBAAoB,yBAAyB,UAAU,CACpI,AACD,uCAAuC,sBAAsB,eAAe,oBAAoB,CAC/F,AACD,8CAA8C,iBAAiB,WAAW,mBAAmB,mBAAmB,gCAAgC,mBAAmB,CAClK,AACD,sDAAsD,eAAe,CACpE,AACD,yDAAyD,mBAAmB,CAC3E,AACD,4EAA6E,iBAAiB,WAAW,cAAc,WAAW,oBAAqB,kBAAkB,CACxK,AACD,6EAA6E,iBAAiB,UAAU,CACvG,AACD,wCAAwC,sBAAsB,mBAAmB,CAChF,AACD,4DAAqG,oBAAoB,aAAa,AAA+D,sBAAsB,8BAA8B,AAAoD,sBAAsB,mBAAmB,mBAAmB,gBAAgB,mCAAoC,CAC5Z,AACD,+EAA+E,iBAAiB,UAAU,CACzG,AACD,mFAAmF,gBAAgB,WAAW,qBAAqB,CAClI,AACD,gEAAgE,YAAY,aAAa,qBAAqB,CAC7G,AACD,2DAAoG,oBAAoB,aAAa,aAAa,CACjJ,AACD,+DAA+D,WAAW,YAAY,kBAAkB,CACvG,AACD,4EAA4E,iBAAiB,UAAU,CACtG,AACD,yFAAyF,aAAa,CACrG,AACD,wFAAwF,SAAS,CAChG,AACD,mCAAmC,sBAAsB,mBAAmB,CAC3E,AACD,0CAA0C,mBAAmB,gBAAgB,iBAAiB,WAAW,mCAAoC,CAC5I,AACD,qCAAqC,gBAAgB,WAAW,4BAA4B,kBAAkB,mCAAoC,CACjJ,AACD,wCAAwC,UAAU,CACjD,AACD,wGAAiJ,oBAAoB,aAAa,AAA+D,sBAAsB,6BAA6B,CACnS,AACD,oCAAoC,eAAe,MAAM,OAAO,QAAQ,SAAS,gCAAiC,WAAW,CAC5H,AACD,wCAAwC,WAAW,kBAAkB,QAAQ,SAAS,AAA4E,8BAA+B,CAChM,AACD,wEAAuG,sBAAsB,CAC5H,AACD,iEAAiE,SAAS,CACzE,AACD,sFAAiH,kBAAkB,CAClI,AACD,+EAAyH,gCAAkC,SAAS,CACnK",file:"shopDetail.vue",sourcesContent:["\n.rating_page[data-v-ca49b092]{position:absolute;top:0;left:0;right:0;bottom:0;padding-top:1.95rem;background-color:#ebebeb;z-index:18\n}\n.activities_container[data-v-ca49b092]{background-color:#fff;margin:.4rem 0;padding-bottom:.6rem\n}\n.activities_container header[data-v-ca49b092]{font-size:.75rem;color:#333;line-height:1.8rem;padding-left:.6rem;border-bottom:1px solid #f1f1f1;margin-bottom:.3rem\n}\n.activities_container .actibities_ul[data-v-ca49b092]{padding:0 .6rem\n}\n.activities_container .actibities_ul li[data-v-ca49b092]{margin-bottom:.2rem\n}\n.activities_container .actibities_ul li span[data-v-ca49b092]:nth-of-type(1){font-size:.45rem;color:#fff;padding:.1rem;border:1px;border-radius:0.1rem;margin-right:.2rem\n}\n.activities_container .actibities_ul li span[data-v-ca49b092]:nth-of-type(2){font-size:.55rem;color:#666\n}\n.shop_status_container[data-v-ca49b092]{background-color:#fff;margin-bottom:.4rem\n}\n.shop_status_container .shop_status_header[data-v-ca49b092]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:1.8rem;padding:0 .6rem;border-bottom:0.025rem solid #f1f1f1\n}\n.shop_status_container .shop_status_header .shop_detail_title[data-v-ca49b092]{font-size:.75rem;color:#333\n}\n.shop_status_container .shop_status_header .identification_detail[data-v-ca49b092]{font-size:.7rem;color:#bbb;vertical-align:middle\n}\n.shop_status_container .shop_status_header svg[data-v-ca49b092]{width:.6rem;height:.6rem;vertical-align:middle\n}\n.shop_status_container .shop_statu_detail[data-v-ca49b092]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.6rem\n}\n.shop_status_container .shop_statu_detail svg[data-v-ca49b092]{width:2rem;height:2rem;margin-right:.6rem\n}\n.shop_status_container .shop_statu_detail .check_date span[data-v-ca49b092]{font-size:.55rem;color:#666\n}\n.shop_status_container .shop_statu_detail .check_date .shop_status_well[data-v-ca49b092]{color:#7ed321\n}\n.shop_status_container .shop_statu_detail .check_date .shop_status_bad[data-v-ca49b092]{color:red\n}\n.shop_status_info[data-v-ca49b092]{background-color:#fff;margin-bottom:.4rem\n}\n.shop_status_info header[data-v-ca49b092]{line-height:1.8rem;padding:0 .6rem;font-size:.75rem;color:#333;border-bottom:0.025rem solid #f1f1f1\n}\n.shop_status_info p[data-v-ca49b092]{font-size:.6rem;color:#666;padding:.7rem .6rem .7rem 0;margin-left:.6rem;border-bottom:0.025rem solid #f5f5f5\n}\n.shop_status_info span[data-v-ca49b092]{color:#666\n}\n.shop_status_info p[data-v-ca49b092]:nth-of-type(4),.shop_status_info p[data-v-ca49b092]:nth-of-type(5){display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between\n}\n.license_container[data-v-ca49b092]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);z-index:101\n}\n.license_container img[data-v-ca49b092]{width:100%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%)\n}\n.fade-enter-active[data-v-ca49b092],.fade-leave-active[data-v-ca49b092]{-webkit-transition:opacity .5s;transition:opacity .5s\n}\n.fade-enter[data-v-ca49b092],.fade-leave-active[data-v-ca49b092]{opacity:0\n}\n.router-slid-enter-active[data-v-ca49b092],.router-slid-leave-active[data-v-ca49b092]{-webkit-transition:all .4s;transition:all .4s\n}\n.router-slid-enter[data-v-ca49b092],.router-slid-leave-active[data-v-ca49b092]{-webkit-transform:translate3d(2rem, 0, 0);transform:translate3d(2rem, 0, 0);opacity:0\n}\n"],sourceRoot:"webpack://"}])},311:function(t,e,a){var i=a(262);"string"==typeof i&&(i=[[t.id,i,""]]);a(3)(i,{});i.locals&&(t.exports=i.locals)},385:function(t,e,a){a(311);var i=a(1)(a(163),a(434),"data-v-ca49b092",null);t.exports=i.exports},434:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"rating_page"},[a("head-top",{attrs:{"head-title":"商家详情","go-back":"true"}}),t._v(" "),a("section",{staticClass:"activities_container"},[a("header",[t._v("活动与属性")]),t._v(" "),a("ul",{staticClass:"actibities_ul"},t._l(t.shopDetail.activities,function(e){return a("li",{key:e.id},[a("span",{style:{backgroundColor:"#"+e.icon_color}},[t._v(t._s(e.icon_name))]),t._v(" "),a("span",[t._v(t._s(e.description)+"(APP专享)")])])})),t._v(" "),a("ul",{staticClass:"actibities_ul"},t._l(t.shopDetail.supports,function(e){return a("li",{key:e.id},[a("span",{style:{backgroundColor:"#"+e.icon_color}},[t._v(t._s(e.icon_name))]),t._v(" "),a("span",[t._v(t._s(e.description)+"(APP专享)")])])}))]),t._v(" "),a("section",{staticClass:"shop_status_container"},[a("router-link",{staticClass:"shop_status_header",attrs:{to:"/shop/shopDetail/shopSafe"}},[a("span",{staticClass:"shop_detail_title"},[t._v("食品监督安全公示")]),t._v(" "),a("div",[a("span",{staticClass:"identification_detail"},[t._v("企业认证详情")]),t._v(" "),a("svg",{staticClass:"description_arrow",attrs:{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[a("path",{attrs:{d:"M0 0 L8 7 L0 14",stroke:"#bbb","stroke-width":"1.5",fill:"none"}})])])]),t._v(" "),a("section",{staticClass:"shop_statu_detail"},[a("div",[1==t.shopDetail.status?a("svg",{staticClass:"shop_status"},[a("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#res-well"}})]):a("svg",{staticClass:"res-well"},[a("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#res-bad"}})])]),t._v(" "),a("div",{staticClass:"check_date"},[a("p",[a("span",[t._v("监督检查结果:")]),t._v(" "),1==t.shopDetail.status?a("span",{staticClass:"shop_status_well"},[t._v("良好")]):a("span",{staticClass:"shop_status_bad"},[t._v("差")])]),t._v(" "),a("p",[a("span",[t._v("检查日期:")]),t._v(" "),a("span",[t._v(t._s(t.shopDetail.identification.identificate_date&&t.shopDetail.identification.identificate_date.split("T")[0]))])])])])],1),t._v(" "),a("section",{staticClass:"shop_status_info"},[a("header",[t._v("商家信息")]),t._v(" "),a("p",[t._v(t._s(t.shopDetail.name))]),t._v(" "),a("p",[t._v("地址:"+t._s(t.shopDetail.address))]),t._v(" "),a("p",[t._v("营业时间:["+t._s(t.shopDetail.opening_hours[0])+"]")]),t._v(" "),a("p",{on:{click:function(e){t.showLicenseImg(t.shopDetail.license.business_license_image)}}},[a("span",[t._v("营业执照")]),t._v(" "),a("svg",{staticClass:"description_arrow",attrs:{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[a("path",{attrs:{d:"M0 0 L8 7 L0 14",stroke:"#bbb","stroke-width":"1.5",fill:"none"}})])]),t._v(" "),a("p",{on:{click:function(e){t.showLicenseImg(t.shopDetail.license.catering_service_license_image)}}},[a("span",[t._v("餐饮服务许可证")]),t._v(" "),a("svg",{staticClass:"description_arrow",attrs:{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[a("path",{attrs:{d:"M0 0 L8 7 L0 14",stroke:"#bbb","stroke-width":"1.5",fill:"none"}})])])]),t._v(" "),a("transition",{attrs:{name:"fade"}},[t.showlicenseImg?a("section",{staticClass:"license_container",on:{click:function(e){t.showlicenseImg=!1}}},[a("img",{attrs:{src:t.imgBaseUrl+t.licenseImg}})]):t._e()]),t._v(" "),a("transition",{attrs:{name:"router-slid",mode:"out-in"}},[a("router-view")],1)],1)},staticRenderFns:[]}}});