Files
anmo/server/public/mobile/assets/bundle-pages-contact_service-index.66b6bd86.js
2025-08-21 16:38:20 +08:00

2 lines
3.4 KiB
JavaScript

import{d as e,a as s,l as a,o as l,e as t,w as r,f as u,h as c,q as n,g as i,t as o,i as f,F as p,br as d,bs as _,aE as x,aA as y,aI as m,r as v,b as h,j as k,k as g}from"./index-d0750414.js";import{_ as w}from"./u-image.ff8bf742.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.a5146a33.js";const b=j(e({__name:"index",setup(e){const{getImageUrl:j}=s(),b=s(),C=a({business_time:"",enterprise_id:"",kefu_link:"",name:"",phone:"",qr_code:"",remarks:"",service_phone:"",way:""}),q=async()=>{y("长按图片保存")},I=()=>{C.value.service_phone?m({phoneNumber:C.value.service_phone,success(e){console.log(e)},fail(e){console.log(e)}}):y("请在后台配置客服电话号码")},A=()=>{C.value.kefu_link?window.open(C.value.kefu_link,"_self"):y("请在后台配置企业微信客服")};return(async()=>{const e=await d();C.value=e[_[x()]]})(),(e,s)=>{const a=v(h("u-image"),w),d=k,_=g;return l(),t(d,{class:"service pt-20"},{default:r(()=>[u(d,{class:"service-contain"},{default:r(()=>[u(d,{class:"header-image"},{default:r(()=>[u(a,{src:c(j)("/resource/image/shopapi/default/service.png"),width:"100rpx",height:"100rpx",shape:"circle",style:{"margin-top":"-50rpx"},class:"circle"},null,8,["src"])]),_:1}),1==C.value.way?(l(),n(p,{key:0},[C.value.remarks?(l(),t(d,{key:0,class:"lg mt-[40rpx] flex justify-center"},{default:r(()=>[i(o(C.value.remarks),1)]),_:1})):f("",!0),u(d,{class:"code flex justify-center"},{default:r(()=>[u(a,{src:C.value.qr_code,width:"320rpx",height:"320rpx","border-radius":"20"},null,8,["src"])]),_:1}),C.value.phone?(l(),t(d,{key:1,class:"mt-[20rpx] mb-[20rpx] xs muted flex justify-center"},{default:r(()=>[i(" 客服电话:"+o(C.value.phone),1)]),_:1})):f("",!0),C.value.business_time?(l(),t(d,{key:2,class:"xs mt-[20rpx] muted mb-[20rpx] flex justify-center"},{default:r(()=>[i(" 服务时间: "+o(C.value.business_time),1)]),_:1})):f("",!0)],64)):f("",!0),1!=C.value.way?(l(),n(p,{key:1},[u(d,{class:"flex lg justify-center mt-[40rpx]"},{default:r(()=>[i(o(c(b).config.shop_name),1)]),_:1}),u(d,{class:"code flex justify-center"},{default:r(()=>[u(a,{src:c(b).config.shop_logo,width:"320rpx",height:"320rpx","border-radius":"20"},null,8,["src"])]),_:1})],64)):f("",!0),2==C.value.way?(l(),n(p,{key:2},[C.value.phone?(l(),t(d,{key:0,class:"mt-[40rpx] flex justify-center"},{default:r(()=>[u(d,{style:{"text-align":"center"}},{default:r(()=>[u(d,null,{default:r(()=>[i(" 拨打客服热线 ")]),_:1}),u(d,{style:{"text-decoration":"underline"},onClick:I},{default:r(()=>[i(o(C.value.service_phone),1)]),_:1})]),_:1})]),_:1})):f("",!0)],64)):f("",!0)]),_:1}),4==C.value.way?(l(),t(d,{key:0,class:"pt-[20rpx]"})):(l(),t(d,{key:1,class:"pt-[20rpx]"},{default:r(()=>[1==C.value.way?(l(),t(d,{key:0,class:"rounded-[20rpx] copy-btn flex justify-center items-center text-white lg",onClick:q},{default:r(()=>[u(_,{class:""},{default:r(()=>[i("保存二维码")]),_:1})]),_:1})):f("",!0),2==C.value.way?(l(),t(d,{key:1,class:"rounded-[20rpx] copy-btn flex justify-center items-center text-white lg",onClick:I},{default:r(()=>[u(_,{class:""},{default:r(()=>[i("拨打电话")]),_:1})]),_:1})):f("",!0),3==C.value.way?(l(),t(d,{key:2,class:"rounded-[20rpx] copy-btn flex justify-center items-center text-white lg",onClick:A},{default:r(()=>[u(_,{class:""},{default:r(()=>[i("联系企业微信客服")]),_:1})]),_:1})):f("",!0)]),_:1}))]),_:1})}}}),[["__scopeId","data-v-f8c09fc7"]]);export{b as default};