Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
程默
mayi-mp-shop
Commits
e772f27a
Commit
e772f27a
authored
Mar 21, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击客户卡片进入页面
parent
4a2f4719
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
src/pages/contact/index.vue
+17
-1
No files found.
src/pages/contact/index.vue
View file @
e772f27a
...
...
@@ -4,7 +4,7 @@
<img
src=
"https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/product/HCe2iRXHsP.png"
alt=
""
/>
</div>
<div
class=
"btn-wrap"
v-if=
"defaultContact == true"
>
<button
open-type=
"contact"
show-message-card
:send-message-title=
"wxConcatGoods.title"
:send-message-img=
"wxConcatGoods.img"
<button
open-type=
"contact"
@
contact=
"handleContact"
show-message-card
:send-message-title=
"wxConcatGoods.title"
:send-message-img=
"wxConcatGoods.img"
:send-message-path=
"wxConcatGoods.pathLink"
:session-from=
"sessionFrom"
>
<div
class=
"btn-main"
>
...
...
@@ -74,6 +74,22 @@ export default {
})
},
methods
:
{
handleContact
(
e
)
{
//TODO 商品详情页进入客服页面-进入客服聊天框-点击聊天页面的商品详情卡片进入小程序结果只是返回到了客户详情页面
console
.
log
(
e
,
'handleContact-e'
)
log
.
info
(
e
,
'handleContact-e'
)
let
errMsg
=
e
.
target
.
errMsg
;
if
(
errMsg
&&
errMsg
==
'enterContact:ok'
){
let
backPath
=
e
.
target
.
query
.
backpath
;
let
backParams
=
e
.
target
.
query
.
params
;
let
url
=
`
${
e
.
target
.
path
}
?from=
${
e
.
target
.
query
.
from
}
&backpath=
${
encodeURIComponent
(
backPath
)}
¶ms=
${
encodeURIComponent
(
backParams
)}
}`
;
wx
.
reLaunch
({
url
,
})
}
},
myOpeChat
()
{
log
.
info
(
'okokok'
,
this
.
result
.
whetherOpenCustomerUrl
,
this
.
result
.
whetherOpenCustomerSuiteId
);
if
(
this
.
result
.
whetherOpenCustomerService
==
0
)
{
...
...
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