Browse Source

联系客服

master
chenkun 4 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',
auth: true,
},
// 获取客服联系电话
customUser: {
url: '/user/custom',
method: 'get',
auth: true,
},
}


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

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


Loading…
Cancel
Save