chenkun 3 months ago
parent
commit
c0b6462576
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      components/config/customerServicePopup.vue

+ 7
- 7
components/config/customerServicePopup.vue View File

@ -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('安卓拨打成功');
}, },


Loading…
Cancel
Save