Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
a8434c92
Commit
a8434c92
authored
May 12, 2020
by
程南
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服配置
parent
414ce063
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
4 deletions
+40
-4
app.json
src/app.json
+4
-0
index.js
src/config/index.js
+2
-2
productDetail.js
src/pages/productDetail/productDetail.js
+31
-1
project.config.json
src/project.config.json
+1
-1
wxService.js
src/utils/wxService.js
+2
-0
No files found.
src/app.json
View file @
a8434c92
...
...
@@ -147,6 +147,10 @@
"contactPlugin"
:
{
"version"
:
"1.3.0"
,
"provider"
:
"wx104a1a20c3f81ec2"
},
"live-player-plugin"
:
{
"version"
:
"1.0.9"
,
"provider"
:
"wx2b03c6e691cd7370"
}
},
"permission"
:
{
...
...
src/config/index.js
View file @
a8434c92
...
...
@@ -6,7 +6,7 @@
// 修改 BRANCH_ID 为对应的商户id
// app.js 中brandId 修改为对应
const
PROJECT_ENV
=
'
test
'
// 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
const
PROJECT_ENV
=
'
prod
'
// 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
//仅生产环境时 配置 :
//3001 3001 , wx313ec36b710125d4 有直播
//2006 泰华 , wx40fec8944623c8b3 有直播 //门户 wx833d5ece112fc3fd
...
...
@@ -26,7 +26,7 @@ const PROJECT_ENV = 'test' // 生产 prod, 开发 dev, 测试 test , 测试门
//2002 巴黎贝甜 wx21968cb3a486d4ab
//2014 包小姐与鞋先生 wxa00302e2f53dd9c5
const
BRANCH_ID
=
1002
const
BRANCH_ID
=
3001
const
isMall
=
true
// const needMock = '' //
...
...
src/pages/productDetail/productDetail.js
View file @
a8434c92
...
...
@@ -171,7 +171,37 @@ wxService.page({
this
.
getProInfo
()
this
.
getOpenStatus
()
this
.
data
.
currentShareContent
=
null
this
.
data
.
currentShareContent
=
null
;
this
.
setUDeskInfo
();
},
//设置uDeskinfo
setUDeskInfo
()
{
const
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
if
(
baseUserInfo
)
{
let
cellphones
=
[];
this
.
data
.
udesk
.
nick_name
=
baseUserInfo
.
member
.
name
;
this
.
data
.
udesk
.
avatar
=
app
.
globalData
.
userInfo
.
avatarUrl
;
let
customer_info
=
{
cellphones
:
[],
};
customer_info
.
cellphones
=
[[
""
,
baseUserInfo
.
member
.
mobile
]];
this
.
data
.
udesk
.
customer_info
=
JSON
.
stringify
(
customer_info
);
this
.
setData
({
udesk
:
this
.
data
.
udesk
});
}
else
{
this
.
setData
({
udesk
:
{
nick_name
:
app
.
globalData
.
userInfo
?
app
.
globalData
.
userInfo
.
memberId
:
'游客'
,
avatar
:
app
.
globalData
.
userInfo
?
app
.
globalData
.
userInfo
.
avatarUrl
:
''
,
cellphones
:
[],
}
})
}
},
//获取商品详情
...
...
src/project.config.json
View file @
a8434c92
...
...
@@ -13,7 +13,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
ac09792264c49b5c
"
,
"appid"
:
"wx
313ec36b710125d4
"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
src/utils/wxService.js
View file @
a8434c92
...
...
@@ -618,6 +618,8 @@ class WXService extends Http {
//默认
config
.
data
.
loading
=
true
;
config
.
data
.
udesk
=
{};
const
CONFIG_PAPGE
=
{
onLoad
:
function
(...
args
)
{
const
page
=
this
...
...
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