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
6c752c52
Commit
6c752c52
authored
May 17, 2023
by
hxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微客服
parent
f7fc9d97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/api/wxContact.js
+3
-2
src/pages/contact/index.vue
+3
-1
No files found.
src/api/wxContact.js
View file @
6c752c52
import
{
requestGET
}
from
"@/utils/request.js"
;
// 添加商品
export
function
getWxContact
()
{
return
requestGET
(
`
${
process
.
env
.
OLSHOP_URL
}
/shop/get_shop_customer_service_config`
);
export
function
getWxContact
(
{
shopCode
}
)
{
return
requestGET
(
`
${
process
.
env
.
OLSHOP_URL
}
/shop/get_shop_customer_service_config
?shopCode=
${
shopCode
}
`
);
}
\ No newline at end of file
src/pages/contact/index.vue
View file @
6c752c52
...
...
@@ -33,6 +33,7 @@
<
script
>
import
{
getUserLocation
}
from
"../../utils/wxIndex.js"
;
import
{
getWxContact
}
from
"@/api/wxContact.js"
;
import
{
getStoreInfo
}
from
"@/utils/mayi"
;
import
pathToNavigation
from
'@/utils/pathToNavigation'
const
app
=
getApp
();
const
{
log
}
=
app
;
...
...
@@ -61,7 +62,8 @@ export default {
});
},
onShow
()
{
getWxContact
().
then
(
res
=>
{
const
{
offlineShopCode
}
=
getStoreInfo
();
getWxContact
({
shopCode
:
offlineShopCode
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
const
result
=
res
.
data
.
data
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