Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli-app
Commits
00cb5bf1
Commit
00cb5bf1
authored
Apr 21, 2023
by
honghong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服热线
parent
dc5e58b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
17 deletions
+34
-17
api/my/index.js
+7
-0
components/form.vue
+6
-7
pages/my/index.vue
+21
-10
No files found.
api/my/index.js
View file @
00cb5bf1
...
@@ -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
,
...
...
components/form.vue
View file @
00cb5bf1
...
@@ -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
()
{
...
...
pages/my/index.vue
View file @
00cb5bf1
...
@@ -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
>
s
how-message-card
s
ession-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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment