Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat_lung
Project
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
hanpeng
wechat_lung
Commits
5c3e051c
Commit
5c3e051c
authored
Dec 03, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'切换到正式环境'
parent
496f9b4d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
44 deletions
+44
-44
freeChat.js
freeChat/javaScript/freeChat.js
+5
-5
myOrder.js
freeChat/javaScript/myOrder.js
+3
-3
rukou.js
freeChat/javaScript/rukou.js
+8
-8
freeChat.js
wechat_lung_chat/javaScript/freeChat.js
+13
-13
imgConsultChat.js
wechat_lung_chat/javaScript/imgConsultChat.js
+9
-9
myOrder.js
wechat_lung_chat/javaScript/myOrder.js
+6
-6
No files found.
freeChat/javaScript/freeChat.js
View file @
5c3e051c
...
...
@@ -116,7 +116,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getPmdOrderInfo
:
function
()
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/trade/pmdConsultOrder/listValidOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/pmdConsultOrder/listValidOrder'
,
type
:
'post'
,
contentType
:
"application/json"
,
async
:
false
,
...
...
@@ -143,7 +143,7 @@ define(['zepto', 'medtap'], function($, medtap) {
talkRelation
:
function
()
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRelation'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRelation'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -176,7 +176,7 @@ define(['zepto', 'medtap'], function($, medtap) {
sendMsg
:
function
(
num
,
content
)
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talk'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talk'
,
type
:
'post'
,
async
:
false
,
headers
:
medtap
.
getHeaders
(),
...
...
@@ -202,7 +202,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getTalkRecord
:
function
()
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRecord'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRecord'
,
type
:
'get'
,
async
:
false
,
headers
:
medtap
.
getHeaders
(),
...
...
@@ -391,7 +391,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRecord/refresh'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRecord/refresh'
,
type
:
'get'
,
async
:
false
,
headers
:
medtap
.
getHeaders
(),
...
...
freeChat/javaScript/myOrder.js
View file @
5c3e051c
...
...
@@ -17,10 +17,10 @@ define(['zepto', 'medtap'], function($, medtap) {
var
requestUrl
=
''
;
switch
(
type
)
{
case
'TWZX'
:
requestUrl
=
'https://
testdevgw
.medtap.cn/trade/imageConsultOrder/listOrder'
;
requestUrl
=
'https://
gateway
.medtap.cn/trade/imageConsultOrder/listOrder'
;
break
;
case
'PMD'
:
requestUrl
=
'https://
testdevgw
.medtap.cn/trade/pmdConsultOrder/listOrder'
;
requestUrl
=
'https://
gateway
.medtap.cn/trade/pmdConsultOrder/listOrder'
;
break
;
default
:
break
;
...
...
@@ -146,7 +146,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getConsultList
:
function
()
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/trade/consult/listOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/consult/listOrder'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
freeChat/javaScript/rukou.js
View file @
5c3e051c
...
...
@@ -174,7 +174,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getPmdOrderInfo
:
function
()
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/trade/pmdConsultOrder/listValidOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/pmdConsultOrder/listValidOrder'
,
type
:
'post'
,
contentType
:
"application/json"
,
async
:
false
,
...
...
@@ -201,7 +201,7 @@ define(['zepto', 'medtap'], function($, medtap) {
talkRelation
:
function
()
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRelation'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRelation'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -234,7 +234,7 @@ define(['zepto', 'medtap'], function($, medtap) {
sendMsg
:
function
(
num
,
content
)
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talk'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talk'
,
type
:
'post'
,
async
:
false
,
headers
:
medtap
.
getHeaders
(),
...
...
@@ -262,7 +262,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getTalkRecord
:
function
()
{
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRecord'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRecord'
,
type
:
'get'
,
async
:
false
,
headers
:
medtap
.
getHeaders
(),
...
...
@@ -460,7 +460,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRecord/refresh'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRecord/refresh'
,
type
:
'get'
,
async
:
false
,
headers
:
medtap
.
getHeaders
(),
...
...
@@ -559,7 +559,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getImgConsultNumber
:
function
(){
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/trade/imageConsultOrder/countOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/imageConsultOrder/countOrder'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -591,7 +591,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getConsultNumber
:
function
(){
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/trade/consult/countOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/consult/countOrder'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -622,7 +622,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getPmdNumber
:
function
(){
medtap
.
jzz
(
1
);
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/trade/pmdConsultOrder/countOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/pmdConsultOrder/countOrder'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_chat/javaScript/freeChat.js
View file @
5c3e051c
...
...
@@ -90,14 +90,14 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
//跳转至医生主页
$
(
'.doctor_profile'
).
unbind
().
bind
(
'click'
,
function
(){
medtap
.
pushWindow
(
'https://review-formal.iplusmed.com/wechatForLungCancer/
dev
/wechat_lung_push_doctor/pages/doctorHomePage.html?doctorId='
+
chat
.
doctorId
+
'&wechatId='
+
medtap
.
getRequest
(
'wechatId'
));
medtap
.
pushWindow
(
'https://review-formal.iplusmed.com/wechatForLungCancer/
prd
/wechat_lung_push_doctor/pages/doctorHomePage.html?doctorId='
+
chat
.
doctorId
+
'&wechatId='
+
medtap
.
getRequest
(
'wechatId'
));
});
},
//绑定,获取聊天关系
talkRelation
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRelation'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRelation'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -135,7 +135,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
// 获取门票
getWechatTicket
:
function
()
{
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/wechat/lung/fetchWechatTicket'
,
url
:
'https://
gateway
.medtap.cn/wechat/lung/fetchWechatTicket'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -205,7 +205,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
//上传图片
upLoadImg
:
function
(
serverId
,
localId
)
{
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/common/uploadWechatFile'
,
url
:
'https://
gateway
.medtap.cn/common/uploadWechatFile'
,
type
:
'POST'
,
async
:
true
,
data
:
{
...
...
@@ -231,7 +231,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
sendMsg
:
function
(
num
,
content
)
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talk'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talk'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -268,7 +268,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
getTalkRecord
:
function
()
{
//medtap.loading(1);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRecord'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRecord'
,
type
:
'get'
,
async
:
false
,
data
:
{
...
...
@@ -522,7 +522,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
id
=
chat
.
minId
;
}
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRecord/refresh'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRecord/refresh'
,
type
:
'get'
,
async
:
false
,
data
:
{
...
...
@@ -899,7 +899,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
getAttention
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/user/friend/getAttention'
,
url
:
'https://
gateway
.medtap.cn/user/friend/getAttention'
,
type
:
'get'
,
async
:
false
,
data
:
{
...
...
@@ -922,7 +922,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
localStorage
.
wxLungToken
=
''
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/user/auth/token'
,
url
:
'https://
gateway
.medtap.cn/user/auth/token'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -947,7 +947,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
getDoctorDetail
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/doctor/getDoctorDetail'
,
url
:
'https://
gateway
.medtap.cn/doctor/getDoctorDetail'
,
type
:
'get'
,
async
:
false
,
data
:
{
...
...
@@ -985,7 +985,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
getImgConsultNumber
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/trade/imageConsultOrder/countOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/imageConsultOrder/countOrder'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -1017,7 +1017,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
getConsultNumber
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/trade/consult/countOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/consult/countOrder'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -1049,7 +1049,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
getPmdConsultNumber
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/trade/pmdConsultOrder/countOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/pmdConsultOrder/countOrder'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_chat/javaScript/imgConsultChat.js
View file @
5c3e051c
...
...
@@ -100,7 +100,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
// 获取门票
getWechatTicket
:
function
()
{
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/wechat/lung/fetchWechatTicket'
,
url
:
'https://
gateway
.medtap.cn/wechat/lung/fetchWechatTicket'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -172,7 +172,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
upLoadImg
:
function
(
serverId
,
localId
)
{
// console.log('执行上传图片')
$
.
ajax
({
url
:
'https://
testdevgw
.medtap.cn/common/uploadWechatFile'
,
url
:
'https://
gateway
.medtap.cn/common/uploadWechatFile'
,
type
:
'POST'
,
async
:
true
,
data
:
{
...
...
@@ -206,7 +206,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
getPmdOrderInfo
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/trade/pmdConsultOrder/listValidOrder'
,
url
:
'https://
gateway
.medtap.cn/trade/pmdConsultOrder/listValidOrder'
,
type
:
'post'
,
contentType
:
'application/json'
,
async
:
false
,
...
...
@@ -234,7 +234,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
getOrderDetail
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/trade/order/getOrderByOrderSn'
,
url
:
'https://
gateway
.medtap.cn/trade/order/getOrderByOrderSn'
,
type
:
'get'
,
data
:
{
orderSn
:
medtap
.
getRequest
(
'orderSn'
)
...
...
@@ -307,7 +307,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
talkRelation
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRelation'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRelation'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -340,7 +340,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
sendMsg
:
function
(
num
,
content
)
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talk'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talk'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -368,7 +368,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
//获取消息列表
getTalkRecord
:
function
()
{
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRecord'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRecord'
,
type
:
'get'
,
async
:
false
,
data
:
{
...
...
@@ -528,7 +528,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
}
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/operation/talk/talkRecord/refresh'
,
url
:
'https://
gateway
.medtap.cn/operation/talk/talkRecord/refresh'
,
type
:
'get'
,
async
:
false
,
data
:
{
...
...
@@ -652,7 +652,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
localStorage
.
wxLungToken
=
''
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/user/auth/token'
,
url
:
'https://
gateway
.medtap.cn/user/auth/token'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_chat/javaScript/myOrder.js
View file @
5c3e051c
...
...
@@ -13,13 +13,13 @@ define(['zepto', 'medtap'], function($, medtap) {
var
requestUrl
=
''
;
switch
(
type
)
{
case
'TWZX'
:
requestUrl
=
'https://
testdevgw
.medtap.cn/trade/imageConsultOrder/listOrder'
;
requestUrl
=
'https://
gateway
.medtap.cn/trade/imageConsultOrder/listOrder'
;
break
;
case
'DHZX'
:
requestUrl
=
'https://
testdevgw
.medtap.cn/trade/consult/listOrder'
;
requestUrl
=
'https://
gateway
.medtap.cn/trade/consult/listOrder'
;
break
;
case
'PMD'
:
requestUrl
=
'https://
testdevgw
.medtap.cn/trade/pmdConsultOrder/listOrder'
;
requestUrl
=
'https://
gateway
.medtap.cn/trade/pmdConsultOrder/listOrder'
;
break
;
default
:
break
;
...
...
@@ -142,7 +142,7 @@ define(['zepto', 'medtap'], function($, medtap) {
localStorage
.
wxLungToken
=
''
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/user/auth/token'
,
url
:
'https://
gateway
.medtap.cn/user/auth/token'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -167,7 +167,7 @@ define(['zepto', 'medtap'], function($, medtap) {
checkUser
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/wechat/user/getWechatUser'
,
url
:
'https://
gateway
.medtap.cn/wechat/user/getWechatUser'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -187,7 +187,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getUserDetail
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
testdevgw
.medtap.cn/user/getUserDetail'
,
url
:
'https://
gateway
.medtap.cn/user/getUserDetail'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
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