Browse Source

调整排序,拨号增加降级方案

liyuan 1 week ago
parent
commit
3f200cf565
1 changed files with 15 additions and 9 deletions
  1. 15 9
      pages/home/insurancePolicy/index.vue

+ 15 - 9
pages/home/insurancePolicy/index.vue

@@ -18,18 +18,18 @@
 						</view>
 					</view>
           <view class="list-item">
+            <view style="font-weight: 800;color: #03803B;">
+              {{item.vehicleNumber||'暂无车牌'}}
+            </view>
+            <view class="">
+              轮胎规格:{{item.tyreSpecs||'-'}}
+            </view>
+          </view>
+          <view class="list-item">
             <view class="">
               车主电话: {{item.consumerPhone}}
             </view>
           </view>
-					<view class="list-item">
-						<view style="font-weight: 800;color: #03803B;">
-							{{item.vehicleNumber||'暂无车牌'}}
-						</view>
-						<view class="">
-							轮胎规格:{{item.tyreSpecs||'-'}}
-						</view>
-					</view>
           <view class="list-item">
             <view style="">
               店铺名称: {{item.storeName||'暂无数据'}}
@@ -106,7 +106,13 @@
         if (!tel) {
           return
         }
-        uni.makePhoneCall({phoneNumber: tel})
+        uni.makePhoneCall({
+          phoneNumber: tel,
+          fail: (err) => {
+            // 如果 uni.makePhoneCall 失败,降级方案
+            window.location.href = 'tel:' + tel;
+          }
+        })
       },
 			addDetails() {
 				uni.navigateTo({