Commit 00cb5bf1 by honghong

客服热线

parent dc5e58b6
......@@ -3,6 +3,12 @@ import {
} from '@/utils/request.js'
// 查询系统配置列表
const configGet = (params) =>{
return ApiHttp('/xinrenli/config/list',params,'GET')
}
// 新增用户反馈
const addUserFeedback = (params) => {
return ApiHttp('/xinrenli/userFeedback', params, 'POST')
......@@ -29,6 +35,7 @@ const addInviterPOST = (params) =>{
return ApiHttp('/xinrenli/Inviter',params,'POST')
}
export {
configGet,
addUserFeedback,
couponListGet,
queryInviteListGet,
......
......@@ -130,7 +130,9 @@
import {
loginUserInfo
} from '@/api/user.js'
import {
mapGetters
} from 'vuex'
import freeAudio from '@/components/chengpeng-audio/free-audio.vue'
import recordCom from '@/components/record/record.vue'
export default {
......@@ -211,7 +213,9 @@
mounted() {
this.$refs.form.setRules(this.rules);
},
computed: {
...mapGetters(['userInfo'])
},
watch: {
detailData: {
handler(newVal, oldVal) {
......@@ -219,7 +223,6 @@
if (newVal) {
that.formInfo = that.detailData
} else {
console.log('金')
that.resetForm()
}
},
......@@ -244,10 +247,6 @@
}
that.inite()
that.upDateUserInfoMount()
// that.$set(that.formInfo,'linkman',that.userInfo.user.linkMan)
// that.$set(that.formInfo,'phone',that.userInfo.user.mobile)
// that.$set(that.formInfo,'title',that.userInfo.user.company)
// that.$set(that.formInfo,'repairAddress',that.userInfo.user.address)
},
methods: {
upDateUserInfoMount() {
......
......@@ -42,8 +42,8 @@
</view>
<view class="serve d-flex j-sa ">
<button @click="close" class="serve_btn d-flex flex-column a-center" open-type="contact" show-message-card
session-from send-message-path send-message-title>
<button @click="close" class="serve_btn d-flex flex-column a-center" open-type="contact"
show-message-card session-from send-message-path send-message-title>
<!-- <image src="../../static/font/online_serve.png" mode=""></image> -->
<image src="../../static/font/online_serve.png" mode=""></image>
<view class="mt-1 font">在线客服</view>
......@@ -116,6 +116,9 @@
import {
updateUserMsg
} from '@/api/system/index.js'
import {
configGet
} from '@/api/my/index.js'
export default {
data() {
return {
......@@ -159,6 +162,7 @@
uploadUrl: apiBaseConfig.upload,
headImgUrl: '',
showPopup: false, //选择联系方式的弹窗
connectPhone: '17717504500', //联系人电话
};
},
onLoad() {
......@@ -180,6 +184,7 @@
}
let mobile = uni.getStorageSync('mobile')
that.mobile = mobile
that.getPhoneList()
},
methods: {
...mapMutations(['upDateUserInfoMount']),
......@@ -253,16 +258,22 @@
}
},
async getPhoneList() {
const data_back = await configGet()
const {
code,
rows
} = data_back
if (code == 200) {
this.connectPhone = rows[0].hotline
}
},
handleCallPhone() {
let phone = '17717504500'
this.showPopup = false
uni.makePhoneCall({
phoneNumber: phone,
success: function() {
this.showPopup = false
},
fail() {
this.showPopup = false
}
phoneNumber: this.connectPhone,
success: function() {},
fail() {}
})
},
open() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment