Files
yshop-pro-uniapp/unpackage/dist/build/h5/assets/useService.a8b6e69d.js
2024-02-26 16:49:35 +08:00

2 lines
510 B
JavaScript

import{u as n}from"./useInterface.982c71ba.js";import{at as t}from"./index-9bec188e.js";const{toast:e,loading:o,hideLoading:r}=n(),i=()=>{let n={corpId:"",accountLink:""};return{getServiceData:async function(){try{o(),n=await t()}finally{r()}},openService:async function(){return Reflect.ownKeys(n).length<=0?e({title:"暂无客服~",icon:"error"}):n.corpId&&n.accountLink?function(n){return window.location.href=n.accountLink,Promise.resolve(!0)}(n):e({title:"暂无客服~",icon:"error"})}}};export{i as u};