Browse Source

联系客服

master
chenkun 8 months ago
parent
commit
975b308f41
2 changed files with 16 additions and 1 deletions
  1. +6
    -0
      api/api.js
  2. +10
    -1
      components/config/customerServicePopup.vue

+ 6
- 0
api/api.js View File

@ -285,6 +285,12 @@ const config = {
method: 'POST', method: 'POST',
auth: true, auth: true,
}, },
// 获取客服联系电话
customUser: {
url: '/user/custom',
method: 'get',
auth: true,
},
} }


+ 10
- 1
components/config/customerServicePopup.vue View File

@ -25,6 +25,7 @@
data() { data() {
return { return {
show: false, show: false,
phone:'',
} }
}, },
@ -59,7 +60,15 @@
} }
} }
}, },
mounted() {
this.getCustomPhone()
},
methods: { methods: {
getCustomPhone(){
this.$api('customUser', {}, res => {
this.phone = res.result.phone
})
},
open() { open() {
this.show = true this.show = true
}, },
@ -69,7 +78,7 @@
// //
confirm() { confirm() {
this.show = false this.show = false
let phone = "13575038513"; //
let phone = this.phone; //
// console.log('', phone) // console.log('', phone)
const res = uni.getSystemInfoSync(); const res = uni.getSystemInfoSync();
// ios // ios


Loading…
Cancel
Save