| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-artificial_service-artificial_service"],{"02a1":function(e,t,i){"use strict";var a=i("dad1"),n=i.n(a);n.a},"0b52":function(e,t,i){var a=i("1475");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("967d").default;n("347b4076",a,!0,{sourceMap:!1,shadowMode:!1})},1475:function(e,t,i){var a=i("c86c"),n=i("2ec5"),o=i("8d6b");t=a(!1);var r=n(o);t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-f4ab88aa]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.header-image[data-v-f4ab88aa]{display:flex;justify-content:center}.header-image .circle[data-v-f4ab88aa]{border-radius:50%;border:%?6?% solid #fff}.service[data-v-f4ab88aa]{width:100vw;height:100vh;background-image:url("+r+");background-size:100% auto;overflow:hidden}.service-contain[data-v-f4ab88aa]{width:%?620?%;margin:%?140?% auto;margin-bottom:%?40?%;padding-bottom:%?80?%;border-radius:10px;background-color:#fff}.service-contain .code[data-v-f4ab88aa]{border-radius:%?20?%;padding-top:%?60?%}.service-contain .phone[data-v-f4ab88aa]{padding:0 %?20?%;text-decoration:underline}.copy-btn[data-v-f4ab88aa]{margin:0 %?80?%;height:%?88?%;background:#000722}",""]),e.exports=t},"1bd4":function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("2634")),o=a(i("2fdc")),r=a(i("9b1b"));i("c9b5"),i("bf0f"),i("ab80");i("7398");var s=i("dc70"),c=i("8f59"),u=a(i("32e8")),d={name:"Service",mixins:[u.default],data:function(){return{serviceData:{},showPhoneCall:!1,content:"即将打电话给",loading:!0,logo:"",shop_name:""}},methods:{getServiceConfigDataFun:function(){var e=this;(0,s.apiServiceConfig)().then((function(t){e.serviceData=t,setTimeout((function(){e.loading=!1}),100)})).catch((function(t){e.loading=!1}))},downloadCode:function(){var e=this;uni.downloadFile({url:this.ServiceConfig.qr_code,success:function(t){200==t.statusCode&&(e.tempFilePath=t.tempFilePath)}})},saveCode:function(){this.$toast({title:"长按图片保存"})},showTelTips:function(){this.showPhoneCall=!0,this.content="即将打电话给"+this.ServiceConfig.phone},onCall:function(){uni.makePhoneCall({phoneNumber:this.ServiceConfig.phone.toString()})}},computed:(0,r.default)((0,r.default)({},(0,c.mapGetters)(["isLogin","ServiceConfig","appConfig"])),(0,c.mapActions)(["getsetserviceConfig"])),onLoad:function(){var e=this;return(0,o.default)((0,n.default)().mark((function t(){var i,a,o;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.appConfig,a=i.shop_name,o=i.logo,e.shop_name=a,e.logo=o,e.getServiceConfigDataFun(),t.next=6,e.getsetserviceConfig();case 6:case"end":return t.stop()}}),t)})))()}};t.default=d},"25e3":function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa");var a={data:function(){return{}},props:{bgColor:{type:String,default:"#fff"},size:{type:[Number,String],default:60}}};t.default=a},"2ec5":function(e,t,i){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"32e8":function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("aa9c");var n=a(i("9b1b")),o=i("8f59"),r={data:function(){},computed:(0,n.default)({},(0,o.mapGetters)(["ServiceConfig"])),methods:{goService:function(){console.log(this.ServiceConfig,"ServiceConfig");switch(+this.ServiceConfig.way){case 1:this.$Router.push({path:"/bundle/pages/artificial_service/artificial_service"});break;case 2:if(!this.ServiceConfig.phone)return this.$toast({title:"请在后台配置客服电话号码"});uni.makePhoneCall({phoneNumber:this.ServiceConfig.phone,success:function(e){},fail:function(e){}});break;case 3:this.$Router.push({path:"/bundle/pages/service/service",query:{goods_id:this.goods_id,type:"normal"}});break;case 4:if(!this.ServiceConfig.kefu_link)return this.$toast({title:"请在后台配置企业微信客服"});window.open(this.ServiceConfig.kefu_link,"_self");break;default:break}}}},s=r;t.default=s},"3fe4":function(e,t,i){"use strict";i.r(t);var a=i("c6c3"),n=i("7de6");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("e0d4");var r=i("828b"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"f4ab88aa",null,!1,a["a"],void 0);t["default"]=s.exports},"566d":function(e,t,i){"use strict";i.r(t);var a=i("907d"),n=i("d2f6");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("02a1");var r=i("828b"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"29ea2fe6",null,!1,a["a"],void 0);t["default"]=s.exports},5782:function(e,t,i){"use strict";i.r(t);var a=i("f383"),n=i("e55b");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("c1a4");var r=i("828b"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"b26e371e",null,!1,a["a"],void 0);t["default"]=s.exports},"5cd1":function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-29ea2fe6]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.u-image[data-v-29ea2fe6]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-29ea2fe6]{width:100%;height:100%}.u-image__loading[data-v-29ea2fe6], .u-image__error[data-v-29ea2fe6]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#909399;font-size:%?46?%}",""]),e.exports=t},"7de6":function(e,t,i){"use strict";i.r(t);var a=i("1bd4"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},"8d6b":function(e,t,i){e.exports=i.p+"bundle/static/images/service_bg.jpg"},"907d":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var a={uIcon:i("1340").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"u-image",style:[e.wrapStyle,e.backgroundStyle],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick.apply(void 0,arguments)}}},[e.isError?e._e():i("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==e.shape?"50%":e.$u.addUnit(e.borderRadius)},attrs:{src:e.src,mode:e.mode,"lazy-load":e.lazyLoad,"show-menu-by-longpress":e.showMenuByLongpress},on:{error:function(t){arguments[0]=t=e.$handleEvent(t),e.onErrorHandler.apply(void 0,arguments)},load:function(t){arguments[0]=t=e.$handleEvent(t),e.onLoadHandler.apply(void 0,arguments)}}}),e.showLoading&&e.loading?i("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==e.shape?"50%":e.$u.addUnit(e.borderRadius),backgroundColor:this.bgColor}},[e.$slots.loading?e._t("loading"):i("u-icon",{attrs:{name:e.loadingIcon,width:e.width,height:e.height}})],2):e._e(),e.showError&&e.isError&&!e.loading?i("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==e.shape?"50%":e.$u.addUnit(e.borderRadius)}},[e.$slots.error?e._t("error"):i("u-icon",{attrs:{name:e.errorIcon,width:e.width,height:e.height}})],2):e._e()],1)},o=[]},a91c:function(e,t,i){var a=i("e979");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("967d").default;n("3dc394de",a,!0,{sourceMap:!1,shadowMode:!1})},c1a4:function(e,t,i){"use strict";var a=i("a91c"),n=i.n(a);n.a},c5ec:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa");var a={name:"u-image",props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler:function(e){e?this.isError=!1:(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle:function(){var e={};return e.width=this.$u.addUnit(this.width),e.height=this.$u.addUnit(this.height),e.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),e.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(e.opacity=this.opacity,e.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),e}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(e){this.loading=!1,this.isError=!0,this.$emit("error",e)},onLoadHandler:function(){var e=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){e.durationTime=e.duration,e.opacity=1,setTimeout((function(){e.removeBgColor()}),e.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};t.default=a},c6c3:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var a={uImage:i("566d").default,uModal:i("e709").default,loadingView:i("5782").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{class:e.themeName},[i("v-uni-view",{staticClass:"service"},[i("v-uni-view",{staticClass:"service-contain"},[i("v-uni-view",{staticClass:"header-image"},[i("u-image",{staticClass:"circle",staticStyle:{"margin-top":"-50rpx"},attrs:{src:e.$getImageUri("/resource/image/shopapi/default/service.png"),width:"100rpx",height:"100rpx",shape:"circle"}})],1),e.ServiceConfig.remarks&&1==e.ServiceConfig.way?i("v-uni-view",{staticClass:"flex lg m-t-40 row-center"},[e._v(e._s(e.ServiceConfig.remarks))]):e._e(),1==e.ServiceConfig.way?i("v-uni-view",{staticClass:"flex code row-center"},[i("u-image",{attrs:{src:e.ServiceConfig.qr_code,width:"320rpx",height:"320rpx","border-radius":"20"}})],1):e._e(),e.ServiceConfig.phone&&1==e.ServiceConfig.way?i("v-uni-view",{staticClass:"m-t-20 m-b-20 flex row-center xs muted"},[e._v("客服电话:"+e._s(e.ServiceConfig.phone))]):e._e(),e.ServiceConfig.business_time&&1==e.ServiceConfig.way?i("v-uni-view",{staticClass:"flex row-center xs m-t-20 muted m-b-20"},[e._v("服务时间: "+e._s(e.ServiceConfig.business_time))]):e._e(),1!=e.ServiceConfig.way?[i("v-uni-view",{staticClass:"flex lg row-center m-t-40"},[e._v(e._s(e.shop_name))]),i("v-uni-view",{staticClass:"flex code row-center"},[i("u-image",{attrs:{src:e.logo,width:"200rpx",height:"200rpx","border-radius":"20"}})],1)]:e._e(),e.ServiceConfig.phone&&2==e.ServiceConfig.way?i("v-uni-view",{staticClass:"m-t-40 flex row-center"},[i("v-uni-view",{staticStyle:{"text-align":"center"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goService.apply(void 0,arguments)}}},[i("v-uni-view",[e._v("拨打客服热线")]),i("v-uni-view",{staticStyle:{"text-decoration":"underline"}},[e._v(e._s(e.ServiceConfig.phone))])],1)],1):e._e()],2),1==e.ServiceConfig.way?i("v-uni-view",{staticClass:"p-t-20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.saveCode.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"br20 copy-btn flex row-center white lg"},[i("v-uni-text",{staticClass:"m-l-20"},[e._v("保存二维码")])],1)],1):e._e(),2==e.ServiceConfig.way?i("v-uni-view",{staticClass:"p-t-20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goService.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"br20 copy-btn flex row-center white lg"},[i("v-uni-text",{staticClass:"m-l-20"},[e._v("拨打电话")])],1)],1):e._e(),3==e.ServiceConfig.way?i("v-uni-view",{staticClass:"p-t-20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goService.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"copy-btn br20 flex row-center white lg"},[i("v-uni-text",{staticClass:"m-l-20"},[e._v("联系系统客服")])],1)],1):e._e(),4==e.ServiceConfig.way?i("v-uni-view",{staticClass:"p-t-20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goService.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"copy-btn flex row-center white lg br20"},[i("v-uni-text",{staticClass:"m-l-20"},[e._v("联系企业微信客服")])],1)],1):e._e(),5==e.ServiceConfig.way?i("v-uni-view",{staticClass:"p-t-20"}):e._e()],1),i("u-modal",{attrs:{content:e.content,"show-cancel-button":!0,"confirm-text":"呼叫","confirm-color":e.themeColor},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onCall.apply(void 0,arguments)}},model:{value:e.showPhoneCall,callback:function(t){e.showPhoneCall=t},expression:"showPhoneCall"}}),e.loading?i("loading-view"):e._e()],1)},o=[]},d2f6:function(e,t,i){"use strict";i.r(t);var a=i("c5ec"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},dad1:function(e,t,i){var a=i("5cd1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("967d").default;n("58fd5abf",a,!0,{sourceMap:!1,shadowMode:!1})},e0d4:function(e,t,i){"use strict";var a=i("0b52"),n=i.n(a);n.a},e55b:function(e,t,i){"use strict";i.r(t);var a=i("25e3"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},e979:function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,".loading[data-v-b26e371e]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999;display:flex;justify-content:center;align-items:center}",""]),e.exports=t},f383:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var a={uLoading:i("527f").default},n=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"loading",style:{"background-color":this.bgColor}},[t("u-loading",{attrs:{size:this.size,mode:"flower"}})],1)},o=[]}}]);
|