You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/public/assets/index.88bc1a11.js

2 lines
858 B

11 months ago
import{y as t,z as s,o,c as e,w as a,a as i,A as n,e as r,V as c,i as p}from"./index-ae8bbb19.js";import{_ as f}from"./_plugin-vue_export-helper.1b428a4d.js";const d=f({props:{},data:()=>({isShow:!1,setting:{}}),async created(){this.isShow=await t.isShowCustomerBtn(),this.setting=await t.item(s.CUSTOMER.value,!0)},methods:{handleContact(){const{setting:t}=this;if("wxqykf"==t.provider){if(!t.config.wxqykf.url||!t.config.wxqykf.corpId)return void this.$toast("客服链接和企业ID不能为空");window.open(t.config.wxqykf.url)}}}},[["render",function(t,s,f,d,l,w){const h=c,u=p;return l.isShow?(o(),e(u,{key:0},{default:a((()=>[i(h,{class:"btn-normal","open-type":"mpwxkf"==l.setting.provider?"contact":"",onClick:s[0]||(s[0]=t=>w.handleContact())},{default:a((()=>[n(t.$slots,"default")])),_:3},8,["open-type"])])),_:3})):r("",!0)}]]);export{d as C};