Преглед изворни кода

Merge remote-tracking branch 'origin/master' into zhangtao

zhangtao пре 16 часа
родитељ
комит
866dafc433
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      src/subPack-film/order-detail/index.vue

+ 7 - 0
src/subPack-film/order-detail/index.vue

@@ -47,6 +47,13 @@ async function getData(orderNo: string) {
   }
 }
 function call() {
+  if (!orderInfo.value.phone) {
+    uni.showToast({
+      title: '暂无联系电话',
+      icon: 'none',
+    })
+    return
+  }
   uni.makePhoneCall({
     phoneNumber: orderInfo.value.phone,
   })