Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
68c004c206e8607b8af8c68ca854b6eb140bdbd1
1 parent
3261080c
客服配置
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
apps/home/controllers/orderDetail.js
apps/passport/controllers/bind.js
apps/passport/controllers/reg.js
apps/home/controllers/orderDetail.js
View file @
68c004c
...
...
@@ -6,15 +6,20 @@
'use strict'
;
const
helpers
=
global
.
yoho
.
helpers
;
const
_
=
require
(
'lodash'
);
const
headerModel
=
require
(
'../../../doraemon/models/header'
);
// 头部model
const
orderDetailModel
=
require
(
'../models/orderDetail'
);
const
orderDetailData
=
(
req
,
res
,
next
)
=>
{
let
uid
=
req
.
user
.
uid
;
let
orderCode
=
req
.
query
.
order_code
;
let
serviceUrl
=
_
.
get
(
req
.
app
.
locals
.
wap
,
'clientService.new'
,
false
)
?
helpers
.
urlFormat
(
'/service/im'
)
:
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='
;
orderDetailModel
.
orderDetailData
(
uid
,
orderCode
).
then
(
result
=>
{
result
.
serviceUrl
=
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='
;
result
.
serviceUrl
=
serviceUrl
;
res
.
render
(
'orderDetail'
,
{
module
:
'home'
,
page
:
'order-detail'
,
...
...
apps/passport/controllers/bind.js
View file @
68c004c
...
...
@@ -32,6 +32,9 @@ const bind = {
let
openId
=
req
.
query
.
openId
;
let
sourceType
=
req
.
query
.
sourceType
;
let
serviceUrl
=
_
.
get
(
req
.
app
.
locals
.
wap
,
'clientService.new'
,
false
)
?
helpers
.
urlFormat
(
'/service/im'
)
:
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='
;
res
.
render
(
'bind/index'
,
{
bindIndex
:
true
,
// js标识
...
...
@@ -44,7 +47,7 @@ const bind = {
openId
:
openId
,
// openId
areaCode
:
'+86'
,
// 默认区号
countrys
:
RegService
.
getAreaData
(),
// 国别码
serviceUrl
:
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='
,
// 在线客服
serviceUrl
:
serviceUrl
,
// 在线客服
module
:
'passport'
,
page
:
'bind'
,
title
:
'绑定手机号'
...
...
apps/passport/controllers/reg.js
View file @
68c004c
...
...
@@ -182,6 +182,10 @@ let codeAction = (req, res, next) => {
});
}
let
serviceUrl
=
_
.
get
(
req
.
app
.
locals
.
wap
,
'clientService.new'
,
false
)
?
helpers
.
urlFormat
(
'/service/im'
)
:
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='
;
res
.
render
(
'reg/code'
,
{
page
:
'code'
,
title
:
'注册-验证码'
,
...
...
@@ -191,7 +195,7 @@ let codeAction = (req, res, next) => {
areaCode
:
area
,
// 默认的区号
phoneNum
:
mobile
,
// 手机号
token
:
token
,
// 访问令牌
serviceUrl
:
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='
// 在线客服
serviceUrl
:
serviceUrl
// 在线客服
});
};
...
...
Please
register
or
login
to post a comment