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>
<script>
import {
mapState
} from 'vuex'
export default {
import {mapState} from 'vuex'
export default {
data() {
return {
show: false,
@ -81,13 +80,14 @@
},
//
confirm() {
var that = this;
this.show = false
// console.log('', phone)
console.log('拨打电话', that.customerPhone)
const res = uni.getSystemInfoSync();
// ios
if (res.platform == 'ios') {
uni.makePhoneCall({
phoneNumber: this.customerPhone,
phoneNumber: that.customerPhone,
success() {
console.log('ios拨打成功');
},
@ -102,7 +102,7 @@
success: function(res) {
if (res.tapIndex == 1) {
uni.makePhoneCall({
phoneNumber: phone,
phoneNumber: that.customerPhone,
success() {
console.log('安卓拨打成功');
},


Loading…
Cancel
Save