shish 3 vuotta sitten
vanhempi
commit
004d1c584f
2 muutettua tiedostoa jossa 4 lisäystä ja 8 poistoa
  1. 2 4
      ghsApp/src/utils/util.js
  2. 2 4
      hdApp/src/utils/util.js

+ 2 - 4
ghsApp/src/utils/util.js

@@ -301,9 +301,7 @@ export const isLogin = () => {
 
 export async function callUp(mobile){
 	//#ifdef MP-WEIXIN
-	uni.makePhoneCall({
-		phoneNumber: mobile
-	});
+	uni.makePhoneCall({phoneNumber: mobile})
 	//#endif
 	//#ifdef APP-PLUS
 	let env = uni.getSystemInfoSync().platform
@@ -317,7 +315,7 @@ export async function callUp(mobile){
 			return
 		}
 	}
-	plus.device.dial(mobile, true);
+	uni.makePhoneCall({phoneNumber: mobile})
 	//#endif
 }
 

+ 2 - 4
hdApp/src/utils/util.js

@@ -426,9 +426,7 @@ export const noStockRemind = () =>{
 
 export async function callUp(mobile){
 	//#ifdef MP-WEIXIN
-	uni.makePhoneCall({
-		phoneNumber: mobile
-	});
+	uni.makePhoneCall({phoneNumber: mobile})
 	//#endif
 	//#ifdef APP-PLUS
 	let env = uni.getSystemInfoSync().platform
@@ -442,7 +440,7 @@ export async function callUp(mobile){
 			return
 		}
 	}
-	plus.device.dial(mobile, true);
+	uni.makePhoneCall({phoneNumber: mobile})
 	//#endif
 }