From 095d3e736af982e8903491333e3e4849e5f5dcf3 Mon Sep 17 00:00:00 2001 From: weiwei Date: Fri, 28 Mar 2025 19:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E7=B3=BB=E5=95=86=E5=AE=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=92=89=E9=92=89api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/detail.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pages/shop/detail.vue b/src/pages/shop/detail.vue index e133347..8c40f02 100644 --- a/src/pages/shop/detail.vue +++ b/src/pages/shop/detail.vue @@ -43,7 +43,10 @@ > {{ state.detail.phone }} - + 联系商家 @@ -145,7 +148,7 @@ import { reactive, nextTick, ref } from "vue" import { onLoad, onShow } from "@dcloudio/uni-app" import { isEmpty } from "radash" -import { hooks, router } from "@@/index" +import { router } from "@@/index" import { foodApi, merchantApi, payApi, shopApi } from "@@/api" import zSwiper from "@zebra-ui/swiper/components/z-swiper/z-swiper.vue" import zSwiperItem from "@zebra-ui/swiper/components/z-swiper-item/z-swiper-item.vue" @@ -269,7 +272,12 @@ const doPhone = () => { uni.showToast({ title: "该商户没有预留电话", icon: "none" }) return } - hooks.useMakePhoneCall(state.detail.phone) + ;(window as any).dd + .callPhone({ + phoneNum: state.detail.phone, + }) + .then((res) => {}) + .catch((err) => {}) } const getHeight = () => {