(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-shop-detail"],{"2c7e":function(n,t,e){"use strict";e.r(t);var i=e("dce8"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},"3c9f":function(n,t,e){var i=e("c86c");t=i(!1),t.push([n.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.shop .shop-swiper[data-v-5d5963c5]{height:%?564?%}.shop .shop-box-title[data-v-5d5963c5]{line-height:%?110?%;height:%?110?%}.shop .shop-box-item[data-v-5d5963c5]{width:100%;height:%?388?%}.shop .shop-box-item uni-image[data-v-5d5963c5]{vertical-align:bottom;width:100%;height:100%}.shop .share-btn[data-v-5d5963c5]{right:%?30?%;bottom:%?30?%;height:%?42?%}',""]),n.exports=t},"57df":function(n,t,e){"use strict";var i=e("bc20"),a=e.n(i);a.a},8134:function(n,t,e){"use strict";e.r(t);var i=e("ee04"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},a1d9:function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){}));var i=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",{staticClass:"rel"},[e("v-uni-view",{staticClass:"abs",staticStyle:{"z-index":"99"},style:{top:n.statusBarHeight+"px"}},[n.isShare?e("v-uni-view",{class:[{"back-user-ios":n.configInfo.isIos},{"back-user-android":!n.configInfo.isIos}],on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.$util.goUrl({url:"/pages/service",openType:"reLaunch"})}}},[e("v-uni-view",{staticClass:"iconshouye iconfont"}),e("v-uni-view",{staticClass:"back-user_text"},[n._v("回到首页")])],1):n._e()],1),e("v-uni-view",{staticClass:"banner"},[e("v-uni-swiper",{staticClass:"banner-swiper",style:{background:n.playVideo&&!n.detail.video_vid?"#000":"#f4f6f8"},attrs:{autoplay:!n.playVideo,current:n.current},on:{change:function(t){arguments[0]=t=n.$handleEvent(t),n.handerSwiperChange.apply(void 0,arguments)},transition:function(t){arguments[0]=t=n.$handleEvent(t),n.swiperTransition.apply(void 0,arguments)}}},n._l(n.detail.images,(function(t,i){return e("v-uni-swiper-item",{key:i,on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.handerBannerClick(i)}}},[0==i&&n.detail.video_url?[n.playVideo?n._e():[e("v-uni-view",{staticClass:"banner-swiper c-base iconfont icontushucxuanzebofangtiaozhuan abs flex-center",staticStyle:{top:"0rpx","font-size":"80rpx","z-index":"9"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=n.$handleEvent(t),n.playCurrent.apply(void 0,arguments)}}}),e("v-uni-image",{staticClass:"banner-img",attrs:{mode:"aspectFill",src:t}})],n.playVideo&&!n.detail.video_vid?e("v-uni-view",{staticClass:"video-box"},[e("v-uni-video",{staticClass:"my-video",attrs:{id:"video_id",loop:!1,"enable-play-gesture":!0,"enable-progress-gesture":!1,src:n.detail.video_url,autoplay:n.playVideo},on:{play:function(t){arguments[0]=t=n.$handleEvent(t),n.onPlay.apply(void 0,arguments)},pause:function(t){arguments[0]=t=n.$handleEvent(t),n.onPause.apply(void 0,arguments)},ended:function(t){arguments[0]=t=n.$handleEvent(t),n.onEnded.apply(void 0,arguments)},timeupdate:function(t){arguments[0]=t=n.$handleEvent(t),n.onTimeUpdate.apply(void 0,arguments)},waiting:function(t){arguments[0]=t=n.$handleEvent(t),n.onWaiting.apply(void 0,arguments)},progress:function(t){arguments[0]=t=n.$handleEvent(t),n.onProgress.apply(void 0,arguments)},loadedmetadata:function(t){arguments[0]=t=n.$handleEvent(t),n.onLoadedMetaData.apply(void 0,arguments)}}})],1):n._e()]:e("v-uni-image",{staticClass:"banner-img",attrs:{mode:"aspectFill",src:t}})],2)})),1),!n.playVideo&&n.detail.images.length?e("v-uni-view",{staticClass:"banner-tagitem banner-tagitem_count"},[n._v(n._s(n.current+1)+"/"+n._s(n.detail.images.length))]):n._e()],1)],1)},a=[]},ad35:function(n,t,e){"use strict";e.r(t);var i=e("a1d9"),a=e("2c7e");for(var o in a)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(o);e("57df");var s=e("828b"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"510f511d",null,!1,i["a"],void 0);t["default"]=r.exports},b2cd:function(n,t,e){"use strict";e.r(t);var i=e("c0e3"),a=e("8134");for(var o in a)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(o);e("ec81");var s=e("828b"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"5d5963c5",null,!1,i["a"],void 0);t["default"]=r.exports},bc20:function(n,t,e){var i=e("d9ed");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var a=e("967d").default;a("1ef363fb",i,!0,{sourceMap:!1,shadowMode:!1})},c0e3:function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){}));var i=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.isLoad?e("v-uni-view",{staticClass:"shop"},[e("v-uni-view",{staticClass:"shop-swiper"},[e("shopBanner",{attrs:{detail:n.shopInfo,isShare:n.isShare}})],1),e("v-uni-view",[e("v-uni-view",{staticClass:"pd-lg fill-base flex-between rel",staticStyle:{"align-items":"flex-end"}},[e("v-uni-view",[e("v-uni-view",{staticClass:"f-sm-title text-bold c-black"},[n._v(n._s(n.shopInfo.name))]),e("v-uni-view",{staticClass:"pt-md c-warning",staticStyle:{"line-height":"1"}},[e("v-uni-text",{staticClass:"f-icontext"},[n._v("¥")]),e("v-uni-text",{staticClass:"f-sm-title text-bold"},[n._v(n._s(n.shopInfo.price))])],1)],1)],1),e("v-uni-view",{staticClass:"mt-md fill-base pl-lg pr-lg"},[e("v-uni-view",{staticClass:"f-mini-title c-black shop-box-title"},[n._v("商品详情")]),e("v-uni-view",{staticClass:"fill-base pt-lg pb-lg"},[e("parser",{attrs:{html:n.shopInfo.desc,"show-with-animation":!0,"lazy-load":!0},on:{linkpress:function(t){arguments[0]=t=n.$handleEvent(t),n.linkpress.apply(void 0,arguments)}}},[n._v("加载中...")])],1)],1)],1),e("v-uni-view",{staticClass:"space-max-footer"}),e("fix-bottom-button",{attrs:{text:[{type:"confirm",text:"联系平台"}],bgColor:"#fff"},on:{confirm:function(t){arguments[0]=t=n.$handleEvent(t),n.$util.goUrl({url:n.shopInfo.phone,openType:"call"})}}})],1):n._e()},a=[]},d9ed:function(n,t,e){var i=e("c86c");t=i(!1),t.push([n.i,".home-return-btn[data-v-510f511d]{margin-top:%?10?%;margin-left:%?24?%;width:%?60?%;height:%?60?%;border:none;background-color:rgba(0,0,0,.3)}.video-box[data-v-510f511d]{position:relative;width:100%;height:%?500?%}.my-video[data-v-510f511d]{position:absolute;left:0;top:0;width:100%;height:80%;align-items:center;margin-top:%?120?%}.banner[data-v-510f511d]{position:relative}.banner-swiper[data-v-510f511d]{width:%?750?%;height:%?564?%}.banner-img[data-v-510f511d]{width:100%;height:100%}.banner-taglist[data-v-510f511d]{display:flex;align-items:center;justify-content:center;position:absolute;bottom:%?32?%;width:100%}.banner-tagitem[data-v-510f511d]{display:flex;align-items:center;justify-content:center;width:%?90?%;height:%?42?%;border-radius:%?21?%;background:hsla(0,0%,100%,.8);color:#2b2b2b;font-size:%?22?%;margin-left:%?32?%}.banner-tagitem[data-v-510f511d]:nth-child(1){margin-left:0}.banner-tagitem_count[data-v-510f511d]{background:rgba(0,0,0,.5);color:#fff;position:absolute;bottom:%?32?%;right:%?32?%;z-index:10}.banner-tagitem_active[data-v-510f511d]{background:#19c865;color:#fff}",""]),n.exports=t},dce8:function(n,t,e){"use strict";e("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("64aa");var i=e("8f59"),a={props:{detail:{type:Object,default:function(){return{}}},isShare:{type:Boolean,default:function(){return!1}},setCurrent:{type:Number,default:function(){return 0}}},watch:{"detail.images":function(n,t){this.current=0}},data:function(){return{statusBarHeight:uni.getSystemInfoSync().statusBarHeight,videoContexts:{},playVideo:!1,current:0}},computed:(0,i.mapState)({primaryColor:function(n){return n.config.configInfo.primaryColor},subColor:function(n){return n.config.configInfo.subColor},configInfo:function(n){return n.config.configInfo},userInfo:function(n){return n.user.userInfo}}),created:function(){this.videoContexts=uni.createVideoContext("video_id",this)},methods:{handerSwiperChange:function(n){var t=n.detail.current;this.current=t,this.videoContexts.pause(),this.playVideo=!1},swiperTransition:function(n){},playCurrent:function(){this.videoContexts.play(),this.playVideo=!0},onPlay:function(n){},onPause:function(n){},onEnded:function(n){},onError:function(n){},onTimeUpdate:function(n){},onWaiting:function(n){},onProgress:function(n){},onLoadedMetaData:function(n){},handerBannerClick:function(n){var t=this.detail,e=t.image_url,i=t.video_url,a=void 0===i?"":i;0==n&&a?this.playVideo=!0:e&&this.$util.goUrl({openType:"web",url:e})},goBack:function(){uni.navigateBack({delta:1})}}};t.default=a},ec81:function(n,t,e){"use strict";var i=e("edf3"),a=e.n(i);a.a},edf3:function(n,t,e){var i=e("3c9f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var a=e("967d").default;a("3eaafb2f",i,!0,{sourceMap:!1,shadowMode:!1})},ee04:function(n,t,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(e("2634")),o=i(e("2fdc")),s=i(e("9b1b"));e("c223");var r=e("8f59"),c=i(e("99e9")),u=i(e("ad35")),d=i(e("cf61")),l={components:{parser:c.default,shopBanner:u.default},data:function(){return{isLoad:!1,options:{},shopInfo:{},isShare:!1}},computed:(0,r.mapState)({primaryColor:function(n){return n.config.configInfo.primaryColor},subColor:function(n){return n.config.configInfo.subColor},configInfo:function(n){return n.config.configInfo},userInfo:function(n){return n.user.userInfo},isGzhLogin:function(n){return n.user.isGzhLogin}}),onLoad:function(n){n.pid&&(this.isShare=!0),this.options=n,this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onShareAppMessage:function(){var n=this.userInfo.id,t=void 0===n?0:n,e=this.shopInfo,i=e.id,a=e.name,o=e.cover,s="/technician/pages/shop/detail?id=".concat(i,"&pid=").concat(t);return{title:a,imageUrl:o,path:s}},methods:(0,s.default)((0,s.default)({},(0,r.mapActions)(["getConfigInfo","getUserInfo"])),{},{initRefresh:function(){this.initIndex(!0)},initIndex:function(){var n=arguments,t=this;return(0,o.default)((0,a.default)().mark((function e(){var i,o,s,r,c,u;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=n.length>0&&void 0!==n[0]&&n[0],o=t.options.pid,s=void 0===o?0:o,r=t.isGzhLogin,c=t.userInfo.id,u=void 0===c?0:c,s&&!u&&(r?setTimeout((function(){t.getUserInfo()}),1e3):t.getUserInfo()),t.configInfo.id&&!i){e.next=8;break}return e.next=8,t.getConfigInfo();case 8:return e.next=10,t.goodsInfoCall();case 10:if(!t.$jweixin.isWechat()){e.next=14;break}return e.next=13,t.$jweixin.initJssdk();case 13:setTimeout((function(){t.toAppShare()}),1200);case 14:case"end":return e.stop()}}),e)})))()},goodsInfoCall:function(){var n=this;return(0,o.default)((0,a.default)().mark((function t(){var e;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n.$util.showLoading(),e=n.options.id,t.next=4,n.$api.technician.goodsInfo({id:e});case 4:n.shopInfo=t.sent,n.isLoad=!0,n.$util.hideAll();case 7:case"end":return t.stop()}}),t)})))()},swiperChange:function(n){},linkpress:function(n){},toAppShare:function(){var n=this,t=this.userInfo.id,e=void 0===t?0:t,i=this.shopInfo,a=i.id,o=i.name,s=i.cover,r=d.default.siteroot,c=r.split("/index.php")[0],u="".concat(c,"/h5/#/technician/pages/shop/detail?id=").concat(a,"&pid=").concat(e);this.$jweixin.wxReady((function(){n.$jweixin.showOptionMenu(),n.$jweixin.shareAppMessage(o,"",u,s),n.$jweixin.shareTimelineMessage(o,u,s)}))}})};t.default=l}}]);