zs 1 year ago
parent
commit
71dce43f2d
2 changed files with 5 additions and 3 deletions
  1. 3 2
      pagesHome/car/index.vue
  2. 2 1
      unpackage/dist/dev/mp-weixin/pagesHome/car/index.js

+ 3 - 2
pagesHome/car/index.vue

@@ -8,7 +8,8 @@
 							:autoplay="false" indicatorStyle="right: 20px" radius="0">
 							<template #indicator>
 								<view class="indicator-num">
-									<text class="indicator-num__text">{{ currentNum + 1 }}/{{ info.file?.length }}</text>
+									<text
+										class="indicator-num__text">{{ currentNum + 1 }}/{{ info.file?.length }}</text>
 								</view>
 							</template>
 						</u-swiper>
@@ -287,7 +288,7 @@
 	// 联系卖家
 	const toChat = (item) => {
 		uni.makePhoneCall({
-			phoneNumber: item?.shop || '110',
+			phoneNumber: shop.value?.tel,
 			success: function () {
 				console.log('拨打电话成功');
 			},

+ 2 - 1
unpackage/dist/dev/mp-weixin/pagesHome/car/index.js

@@ -99,8 +99,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
       });
     };
     const toChat = (item) => {
+      var _a2;
       common_vendor.index.makePhoneCall({
-        phoneNumber: (item == null ? void 0 : item.shop) || "110",
+        phoneNumber: (_a2 = shop.value) == null ? void 0 : _a2.tel,
         success: function() {
           console.log("拨打电话成功");
         },