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
050cc754
Commit
050cc754
authored
Nov 21, 2023
by
侯体倬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服逻辑优化
parent
5b84c7ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/pages/contact/index.vue
+8
-2
No files found.
src/pages/contact/index.vue
View file @
050cc754
...
@@ -41,6 +41,7 @@ const { log } = app;
...
@@ -41,6 +41,7 @@ const { log } = app;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
options
:
{},
sessionFrom
:
""
,
sessionFrom
:
""
,
defaultContact
:
null
,
defaultContact
:
null
,
result
:
null
,
result
:
null
,
...
@@ -48,6 +49,7 @@ export default {
...
@@ -48,6 +49,7 @@ export default {
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
options
=
options
;
if
(
options
.
wxConcatGoods
){
if
(
options
.
wxConcatGoods
){
let
wxConcatGoods
=
JSON
.
parse
(
options
.
wxConcatGoods
)
let
wxConcatGoods
=
JSON
.
parse
(
options
.
wxConcatGoods
)
wxConcatGoods
[
'pathLink'
]
=
pathToNavigation
.
toPageUrl
(
pathToNavigation
.
getUrlofLink
(
wxConcatGoods
),
pathToNavigation
.
getUrlofQuery
(
wxConcatGoods
));
wxConcatGoods
[
'pathLink'
]
=
pathToNavigation
.
toPageUrl
(
pathToNavigation
.
getUrlofLink
(
wxConcatGoods
),
pathToNavigation
.
getUrlofQuery
(
wxConcatGoods
));
...
@@ -62,8 +64,12 @@ export default {
...
@@ -62,8 +64,12 @@ export default {
});
});
},
},
onShow
()
{
onShow
()
{
const
{
offlineShopCode
}
=
getStoreInfo
();
let
shopCode
=
this
.
options
.
shopCode
;
getWxContact
({
shopCode
:
offlineShopCode
}).
then
(
res
=>
{
if
(
!
shopCode
)
{
const
{
offlineShopCode
}
=
getStoreInfo
();
shopCode
=
offlineShopCode
;
}
getWxContact
({
shopCode
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
const
result
=
res
.
data
.
data
const
result
=
res
.
data
.
data
if
(
result
.
whetherOpenCustomerChannel
==
0
)
{
if
(
result
.
whetherOpenCustomerChannel
==
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