From 2b59af0281baa34c499370a142e0118c284b6231 Mon Sep 17 00:00:00 2001 From: chutingting Date: Tue, 16 Apr 2024 21:31:11 +0800 Subject: [PATCH] phone --- components/shop/shop.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/shop/shop.js b/components/shop/shop.js index a0d2f08..5689071 100644 --- a/components/shop/shop.js +++ b/components/shop/shop.js @@ -1,3 +1,4 @@ +const imgurl = require("../../utils/imgurl"); Component({ properties: { mallList: { @@ -7,6 +8,7 @@ Component({ }, data: { + teljpgUrl: imgurl.teljpg.url, list: [], // 广场、商户列表 mallNum: 0, // 适用商户数量 }, @@ -19,6 +21,12 @@ Component({ url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}&mallTenantId=${e.currentTarget.dataset.tenantid}` }) }, + phone: function (e) { + let that = this; + wx.makePhoneCall({ + phoneNumber: e.target.dataset.merchantlinkphone + }); + }, // 跳转资质页面 // goCertification(e) {