Commit 00cb5bf1 by honghong

客服热线

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