|
@ -21,10 +21,9 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
|
|
|
mapState |
|
|
|
|
|
} from 'vuex' |
|
|
|
|
|
export default { |
|
|
|
|
|
|
|
|
import {mapState} from 'vuex' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
show: false, |
|
|
show: false, |
|
@ -81,13 +80,14 @@ |
|
|
}, |
|
|
}, |
|
|
// 拨打电话 |
|
|
// 拨打电话 |
|
|
confirm() { |
|
|
confirm() { |
|
|
|
|
|
var that = this; |
|
|
this.show = false |
|
|
this.show = false |
|
|
// console.log('拨打电话', phone) |
|
|
|
|
|
|
|
|
console.log('拨打电话', that.customerPhone) |
|
|
const res = uni.getSystemInfoSync(); |
|
|
const res = uni.getSystemInfoSync(); |
|
|
// ios系统默认有个模态框 |
|
|
// ios系统默认有个模态框 |
|
|
if (res.platform == 'ios') { |
|
|
if (res.platform == 'ios') { |
|
|
uni.makePhoneCall({ |
|
|
uni.makePhoneCall({ |
|
|
phoneNumber: this.customerPhone, |
|
|
|
|
|
|
|
|
phoneNumber: that.customerPhone, |
|
|
success() { |
|
|
success() { |
|
|
console.log('ios拨打成功'); |
|
|
console.log('ios拨打成功'); |
|
|
}, |
|
|
}, |
|
@ -102,7 +102,7 @@ |
|
|
success: function(res) { |
|
|
success: function(res) { |
|
|
if (res.tapIndex == 1) { |
|
|
if (res.tapIndex == 1) { |
|
|
uni.makePhoneCall({ |
|
|
uni.makePhoneCall({ |
|
|
phoneNumber: phone, |
|
|
|
|
|
|
|
|
phoneNumber: that.customerPhone, |
|
|
success() { |
|
|
success() { |
|
|
console.log('安卓拨打成功'); |
|
|
console.log('安卓拨打成功'); |
|
|
}, |
|
|
}, |
|
|