1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-contact_offical-contact_offical"],{"0e6a":function(t,e,n){"use strict";n.r(e);var o=n("bec0"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"1de5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"259e":function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={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(t){t?this.isError=!1:(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle:function(){var t={};return t.width=this.$u.addUnit(this.width),t.height=this.$u.addUnit(this.height),t.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),t.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(t.opacity=this.opacity,t.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),t}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(){var t=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){t.durationTime=t.duration,t.opacity=1,setTimeout((function(){t.removeBgColor()}),t.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=o},"36a7":function(t,e,n){var o=n("8ca4");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("09550d9a",o,!0,{sourceMap:!1,shadowMode:!1})},"5c2f":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.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/* 行为相关颜色 */.u-image[data-v-5c6487b9]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-5c6487b9]{width:100%;height:100%}.u-image__loading[data-v-5c6487b9], .u-image__error[data-v-5c6487b9]{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?%}',""]),t.exports=e},"660b":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uIcon:n("4569").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-image",style:[t.wrapStyle,t.backgroundStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.isError?t._e():n("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)},attrs:{src:t.src,mode:t.mode,"lazy-load":t.lazyLoad},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrorHandler.apply(void 0,arguments)},load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadHandler.apply(void 0,arguments)}}}),t.showLoading&&t.loading?n("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius),backgroundColor:this.bgColor}},[t.$slots.loading?t._t("loading"):n("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})],2):t._e(),t.showError&&t.isError&&!t.loading?n("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)}},[t.$slots.error?t._t("error"):n("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},a=[]},7171:function(t,e,n){"use strict";n.r(e);var o=n("660b"),i=n("cb4c");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("7208");var r,c=n("f0c5"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"5c6487b9",null,!1,o["a"],r);e["default"]=s.exports},7208:function(t,e,n){"use strict";var o=n("774a"),i=n.n(o);i.a},"774a":function(t,e,n){var o=n("5c2f");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("28f9c44e",o,!0,{sourceMap:!1,shadowMode:!1})},"8ca4":function(t,e,n){var o=n("24fb"),i=n("1de5"),a=n("ddf4"),r=n("f310");e=o(!1);var c=i(a),s=i(r);e.push([t.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/* 行为相关颜色 */uni-page-body[data-v-5c475334]{padding:0}.contact-offical[data-v-5c475334]{min-height:100vh;background-image:url('+c+");background-position:50%;background-size:cover;background-repeat:no-repeat}.contact-offical.shop-contact[data-v-5c475334]{background-image:url("+s+")}.contact-offical.shop-contact .header .line[data-v-5c475334]{background:#3a67e4}.contact-offical .header[data-v-5c475334]{padding:%?80?% %?50?% 0}.contact-offical .header .line[data-v-5c475334]{height:%?25?%;background:#be000e;border-radius:%?20?%}.contact-offical .content[data-v-5c475334]{margin-top:%?-10?%}.contact-offical .content .content-view[data-v-5c475334]{width:%?620?%;padding:%?80?% %?20?% %?40?%}.contact-offical .content .phone-btn[data-v-5c475334]{padding:%?2?% %?19?%;border:1px solid #d7d7d7;border-radius:%?10?%}.contact-offical .content .copy-btn[data-v-5c475334]{background:linear-gradient(#12c96e,#0abd57 50.76%,#03b240);width:%?460?%;height:%?84?%;box-shadow:0 3px 6px rgba(0,0,0,.16)}",""]),t.exports=e},"8f66":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uImage:n("7171").default,uModal:n("211d").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.isShow,expression:"isShow"}],staticClass:"contact-offical",class:{"shop-contact":t.shopId}},[t.shopId?[n("v-uni-view",{staticClass:"header white"},[n("v-uni-view",{staticClass:"title font-size-50 text-center"},[t._v("店铺客服")]),n("v-uni-view",{staticClass:"line m-t-36"})],1),n("v-uni-view",{staticClass:"content flex-col col-center"},[n("v-uni-view",{staticClass:"content-view flex-col col-center bg-white text-center"},[n("v-uni-view",{staticClass:"flex col-center m-b-40 m-l-40",staticStyle:{"align-self":"flex-start"}},[n("u-image",{attrs:{width:"88rpx",height:"88rpx","border-radius":"50%",src:t.server.shop.logo}}),n("v-uni-view",{staticClass:"lg m-l-20"},[t._v(t._s(t.server.shop.name))])],1),n("u-image",{attrs:{width:"360rpx",height:"360rpx",src:t.server.config.image}}),t.server.config.wechat?n("v-uni-view",{staticClass:"flex row-center copy-btn white lg br60 m-t-50 m-b-40",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onCopy(t.server.config.wechat)}}},[t._v("复制去微信添加")]):t._e(),n("v-uni-view",{staticClass:"lighter xs"},[t._v("营业时间:"+t._s(t.server.config.business_time))]),n("v-uni-view",{staticClass:"xs lighter m-t-10 flex"},[t._v("客服电话:"+t._s(t.server.config.phone)),n("v-uni-view",{staticClass:"phone-btn m-l-30",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPhoneCall=!0}}},[t._v("拨打")])],1)],1)],1),n("u-modal",{attrs:{content:"即将打电话给"+t.server.config.phone,"show-cancel-button":!0,"confirm-text":"呼叫","confirm-color":t.colorConfig.primary},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onCall.apply(void 0,arguments)}},model:{value:t.showPhoneCall,callback:function(e){t.showPhoneCall=e},expression:"showPhoneCall"}})]:[n("v-uni-view",{staticClass:"header white"},[n("v-uni-view",{staticClass:"title font-size-50 text-center"},[t._v("平台客服")]),n("v-uni-view",{staticClass:"line m-t-36"})],1),n("v-uni-view",{staticClass:"content flex-col col-center"},[n("v-uni-view",{staticClass:"content-view flex-col col-center bg-white text-center"},[n("u-image",{attrs:{width:"360rpx",height:"360rpx",src:t.server.image}}),t.server.wechat?n("v-uni-view",{staticClass:"flex row-center copy-btn lg br60 white m-t-50 m-b-40",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onCopy(t.server.wechat)}}},[t._v("复制去微信添加")]):t._e(),n("v-uni-view",{staticClass:"lighter xs"},[t._v("营业时间:"+t._s(t.server.business_time))]),n("v-uni-view",{staticClass:"xs lighter m-t-10 flex"},[t._v("平台电话:"+t._s(t.server.phone)),n("v-uni-view",{staticClass:"phone-btn m-l-30",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPhoneCall=!0}}},[t._v("拨打")])],1)],1)],1),n("u-modal",{attrs:{content:"即将打电话给"+t.server.phone,"show-cancel-button":!0,"confirm-text":"呼叫","confirm-color":t.colorConfig.primary},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onCall.apply(void 0,arguments)}},model:{value:t.showPhoneCall,callback:function(e){t.showPhoneCall=e},expression:"showPhoneCall"}})]],2)},a=[]},b194:function(t,e,n){"use strict";var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getShopList=a,e.getShopCategory=r,e.getShopInfo=c,e.getShopGoodsCategory=s,e.changeShopFollow=u,e.shopApply=l,e.shopApplyRecord=d,e.shopApplyDetail=f,e.getTreaty=h,e.getShopService=p,e.getInvoiceSetting=v,e.apiInvoiceAdd=g,e.apiInvoiceEdit=m,e.apiInvoiceDetail=b,e.apiOrderInvoiceDetail=w;var i=o(n("b175"));n("357b");function a(t){return i.default.get("shop/getShopList",{params:t})}function r(){return i.default.get("shop_category/getList")}function c(t){return i.default.get("shop/getShopInfo",{params:t})}function s(t){return i.default.get("shop_goods_category/getShopGoodsCategory",{params:t})}function u(t){return i.default.post("shop_follow/changeStatus",t)}function l(t){return i.default.post("ShopApply/apply",t)}function d(t){return i.default.get("ShopApply/record",{params:t})}function f(t){return i.default.get("ShopApply/detail",{params:{id:t}})}function h(){return i.default.get("ShopApply/getTreaty")}function p(t){return i.default.get("setting/getShopCustomerService",{params:{shop_id:t}})}function v(t){return i.default.get("order_invoice/setting",{params:t})}function g(t){return i.default.post("order_invoice/add",t)}function m(t){return i.default.post("order_invoice/edit",t)}function b(t){return i.default.get("order_invoice/detail",{params:t})}function w(t){return i.default.get("order/invoice",{params:t})}},bec0:function(t,e,n){"use strict";var o=n("4ea4");n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var i=o(n("1da1")),a=n("6ab0"),r=n("b194"),c=n("357b"),s={name:"contactOffical",data:function(){return{server:{config:{},shop:{}},showPhoneCall:!1,shopId:0,isShow:!1}},onLoad:function(){this.shopId=Number(this.$Route.query.id),this.getServiceFun()},methods:{getServiceFun:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.shopId){e.next=6;break}return e.next=3,(0,r.getShopService)(t.shopId);case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,(0,a.getService)();case 8:e.t0=e.sent;case 9:n=e.t0,o=n.data,i=n.code,1==i&&(t.server=o,t.isShow=!0);case 13:case"end":return e.stop()}}),e)})))()},onCopy:function(t){(0,c.copy)(t)},onCall:function(){wx.makePhoneCall({phoneNumber:String(this.server.config&&this.server.config.phone||this.server.phone),success:function(t){console.log("成功",t)},fail:function(t){console.log("失败",t)}})}}};e.default=s},cb4c:function(t,e,n){"use strict";n.r(e);var o=n("259e"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},cda8:function(t,e,n){"use strict";n.r(e);var o=n("8f66"),i=n("0e6a");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("f0e9");var r,c=n("f0c5"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"5c475334",null,!1,o["a"],r);e["default"]=s.exports},ddf4:function(t,e,n){t.exports=n.p+"static/img/contact_official_bg.f71bce24.png"},f0e9:function(t,e,n){"use strict";var o=n("36a7"),i=n.n(o);i.a},f310:function(t,e,n){t.exports=n.p+"static/img/shop_official_bg.c12776e8.png"}}]); |