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
ec23b4e6
Commit
ec23b4e6
authored
Nov 22, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'测试crm修改'
parent
d7df2e16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
102 additions
and
44 deletions
+102
-44
discomfort.js
wechat_lung_questionnaire/javaScript/discomfort.js
+8
-4
discomfortGeneralPage.js
...at_lung_questionnaire/javaScript/discomfortGeneralPage.js
+7
-4
examination.js
wechat_lung_questionnaire/javaScript/examination.js
+7
-3
furtherConsultation.js
wechat_lung_questionnaire/javaScript/furtherConsultation.js
+5
-5
geneDetection.js
wechat_lung_questionnaire/javaScript/geneDetection.js
+9
-5
generalPage.js
wechat_lung_questionnaire/javaScript/generalPage.js
+8
-5
index.js
wechat_lung_questionnaire/javaScript/index.js
+4
-3
myQuestionnaireList.js
wechat_lung_questionnaire/javaScript/myQuestionnaireList.js
+5
-3
otherTreatment.js
wechat_lung_questionnaire/javaScript/otherTreatment.js
+7
-3
questionnaireDetails.js
wechat_lung_questionnaire/javaScript/questionnaireDetails.js
+0
-0
questionnaireWeight.js
wechat_lung_questionnaire/javaScript/questionnaireWeight.js
+3
-2
rukou.js
wechat_lung_questionnaire/javaScript/rukou.js
+2
-2
submitSuccessfully.js
wechat_lung_questionnaire/javaScript/submitSuccessfully.js
+3
-1
targetedTherapy.js
wechat_lung_questionnaire/javaScript/targetedTherapy.js
+8
-4
questionnaireDetails.html
wechat_lung_questionnaire/pages/questionnaireDetails.html
+26
-0
No files found.
wechat_lung_questionnaire/javaScript/discomfort.js
View file @
ec23b4e6
...
...
@@ -90,6 +90,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
$
(
'.next'
).
on
(
'tap'
,
function
(){
if
(
discomfort
.
flag
){
var
dataHas
=
{
"adminId"
:
discomfort
.
adminId
,
"questionId"
:
discomfort
.
questionId
,
"parentId"
:
discomfort
.
parentId
,
"answer"
:{
...
...
@@ -102,6 +103,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
discomfort
.
getNextQuestion
(
dataHas
)
}
else
{
var
dataNo
=
{
"adminId"
:
discomfort
.
adminId
,
"questionId"
:
discomfort
.
questionId
,
"parentId"
:
discomfort
.
parentId
,
"answer"
:{
...
...
@@ -134,13 +136,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
discomfort
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"followUpId"
:
discomfort
.
followUpId
,
"questionId"
:
discomfort
.
questionId
,
"adminId"
:
discomfort
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -274,7 +277,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getPreQuestion
:
function
(){
var
crm
=
discomfort
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -282,6 +285,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionId"
:
discomfort
.
questionId
,
"questionNo"
:
discomfort
.
questionNo
,
"followUpId"
:
discomfort
.
followUpId
,
"adminId"
:
discomfort
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -298,7 +302,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
var
crm
=
discomfort
.
adminId
==
''
?
''
:
'/crm'
console
.
log
(
discomfort
.
checks
)
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -377,7 +381,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
submitQuestionAnswer
:
function
(
data
){
var
crm
=
discomfort
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/completeQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/completeQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/javaScript/discomfortGeneralPage.js
View file @
ec23b4e6
...
...
@@ -224,6 +224,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
}
var
data
=
{
"adminId"
:
discomfortGeneralPage
.
adminId
,
"questionId"
:
discomfortGeneralPage
.
questionId
,
'parentId'
:
discomfortGeneralPage
.
parentId
,
"answer"
:{
...
...
@@ -319,13 +320,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
discomfortGeneralPage
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"followUpId"
:
discomfortGeneralPage
.
followUpId
,
"questionId"
:
discomfortGeneralPage
.
questionId
,
"adminId"
:
discomfortGeneralPage
.
adminId
,
},
success
:
function
(
res
)
{
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
...
...
@@ -348,7 +350,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getPreQuestion
:
function
(){
var
crm
=
discomfortGeneralPage
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -356,6 +358,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionId"
:
discomfortGeneralPage
.
questionId
,
"questionNo"
:
discomfortGeneralPage
.
questionNo
,
"followUpId"
:
discomfortGeneralPage
.
followUpId
,
"adminId"
:
discomfortGeneralPage
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -432,7 +435,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getNextQuestion
:
function
(
data
,
url
){
var
crm
=
discomfortGeneralPage
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -505,7 +508,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
submitQuestionAnswer
:
function
(
data
){
var
crm
=
discomfortGeneralPage
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/completeQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/completeQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/javaScript/examination.js
View file @
ec23b4e6
...
...
@@ -77,6 +77,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
if
(
examination
.
flag
){
console
.
log
(
examination
.
checks
)
var
dataHas
=
{
"adminId"
:
examination
.
adminId
,
"parentId"
:
examination
.
parentId
,
"questionId"
:
examination
.
questionId
,
"answer"
:{
...
...
@@ -90,6 +91,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
}
if
(
!
examination
.
flag
)
{
var
dataNo
=
{
"adminId"
:
examination
.
adminId
,
"parentId"
:
examination
.
parentId
,
"questionId"
:
examination
.
questionId
,
"answer"
:{
...
...
@@ -120,13 +122,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
examination
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"followUpId"
:
examination
.
followUpId
,
"questionId"
:
examination
.
questionId
,
"adminId"
:
examination
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -201,7 +204,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getPreQuestion
:
function
(){
var
crm
=
examination
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -209,6 +212,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionId"
:
examination
.
questionId
,
"questionNo"
:
examination
.
questionNo
,
"followUpId"
:
examination
.
followUpId
,
"adminId"
:
examination
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -229,7 +233,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
var
crm
=
examination
.
adminId
==
''
?
''
:
'/crm'
console
.
log
(
data
)
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/javaScript/furtherConsultation.js
View file @
ec23b4e6
...
...
@@ -164,7 +164,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
},
getWechatTicket
:
function
()
{
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/wechat/lung/fetchWechatTicket'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/lung/fetchWechatTicket'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -249,7 +249,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
//上传图片
upLoadImg
:
function
(
serverId
,
localId
)
{
$
.
ajax
({
url
:
'https://
gateway
.medtap.cn/common/uploadWechatFile'
,
url
:
'https://
testdevgw
.medtap.cn/common/uploadWechatFile'
,
type
:
'POST'
,
async
:
false
,
data
:
{
...
...
@@ -284,7 +284,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
furtherConsultation
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -334,7 +334,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getPreQuestion
:
function
(){
var
crm
=
furtherConsultation
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -357,7 +357,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getNextQuestion
:
function
(
data
){
var
crm
=
furtherConsultation
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/javaScript/geneDetection.js
View file @
ec23b4e6
...
...
@@ -74,6 +74,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
}
var
dataHas
=
{
"adminId"
:
geneDetection
.
adminId
,
"questionId"
:
geneDetection
.
questionId
,
"parentId"
:
geneDetection
.
parentId
,
"answer"
:{
...
...
@@ -89,6 +90,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
geneDetection
.
getNextQuestion
(
dataHas
)
}
else
{
var
dataNo
=
{
"adminId"
:
geneDetection
.
adminId
,
"questionId"
:
geneDetection
.
questionId
,
"parentId"
:
geneDetection
.
parentId
,
"answer"
:{
...
...
@@ -174,7 +176,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
},
getWechatTicket
:
function
()
{
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/wechat/lung/fetchWechatTicket'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/lung/fetchWechatTicket'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -258,7 +260,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
//上传图片
upLoadImg
:
function
(
serverId
,
localId
)
{
$
.
ajax
({
url
:
'https://
gateway
.medtap.cn/common/uploadWechatFile'
,
url
:
'https://
testdevgw
.medtap.cn/common/uploadWechatFile'
,
type
:
'POST'
,
async
:
false
,
data
:
{
...
...
@@ -291,13 +293,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
geneDetection
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"followUpId"
:
geneDetection
.
followUpId
,
"questionId"
:
geneDetection
.
questionId
,
"adminId"
:
geneDetection
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -346,7 +349,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getPreQuestion
:
function
(){
var
crm
=
geneDetection
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -354,6 +357,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionId"
:
geneDetection
.
questionId
,
"questionNo"
:
geneDetection
.
questionNo
,
"followUpId"
:
geneDetection
.
followUpId
,
"adminId"
:
geneDetection
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -395,7 +399,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getNextQuestion
:
function
(
data
,
url
){
var
crm
=
geneDetection
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/javaScript/generalPage.js
View file @
ec23b4e6
...
...
@@ -69,6 +69,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 获取用户填写的数据
generalPage
.
dataText
=
$
(
'#content_body_fill'
).
val
()
var
data
=
{
"adminId"
:
generalPage
.
adminId
,
"questionId"
:
generalPage
.
questionId
,
'parentId'
:
generalPage
.
parentId
,
"answer"
:{
...
...
@@ -91,7 +92,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
},
getWechatTicket
:
function
()
{
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/wechat/lung/fetchWechatTicket'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/lung/fetchWechatTicket'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -171,7 +172,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
//上传图片
upLoadImg
:
function
(
serverId
,
localId
)
{
$
.
ajax
({
url
:
'https://
gateway
.medtap.cn/common/uploadWechatFile'
,
url
:
'https://
testdevgw
.medtap.cn/common/uploadWechatFile'
,
type
:
'POST'
,
async
:
false
,
data
:
{
...
...
@@ -204,13 +205,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
generalPage
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"followUpId"
:
generalPage
.
followUpId
,
"questionId"
:
generalPage
.
questionId
,
"adminId"
:
generalPage
.
adminId
,
},
success
:
function
(
res
)
{
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
...
...
@@ -239,7 +241,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getPreQuestion
:
function
(){
var
crm
=
generalPage
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -247,6 +249,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionId"
:
generalPage
.
questionId
,
"questionNo"
:
generalPage
.
questionNo
,
"followUpId"
:
generalPage
.
followUpId
,
"adminId"
:
generalPage
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -287,7 +290,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getNextQuestion
:
function
(
data
,
url
){
var
crm
=
generalPage
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/javaScript/index.js
View file @
ec23b4e6
...
...
@@ -17,7 +17,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
localStorage
.
wxLungToken
=
''
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/user/auth/token'
,
url
:
'https://
testdevgw
.medtap.cn/user/auth/token'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -41,12 +41,13 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getMyquestionnaire
:
function
(){
var
crm
=
index
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/followUpUser'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/followUpUser'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"followUpId"
:
index
.
followUpId
"followUpId"
:
index
.
followUpId
,
"adminId"
:
index
.
adminId
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
wechat_lung_questionnaire/javaScript/myQuestionnaireList.js
View file @
ec23b4e6
define
([
'zepto'
,
'medtap'
,
'mui'
,
'mui.picker'
],
function
(
$
,
medtap
,
mui
)
{
var
myQuestionnaireList
=
{
// 修改人员id
adminId
:
medtap
.
getRequest
(
'adminId'
)
||
''
,
// 问卷id
followUpId
:
''
,
init
:
function
(){
...
...
@@ -17,12 +19,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 获取问卷列表
getQuestionnaireList
:
function
(){
medtap
.
submitAjax
({
url
:
"https://
gateway
.medtap.cn/operation/followUp/followUpList"
,
url
:
"https://
testdevgw
.medtap.cn/operation/followUp/followUpList"
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"adminId"
:
myQuestionnaireList
.
adminId
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -47,7 +49,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 点击进入详情
$
(
'.my_questionnaire_box'
).
on
(
'tap'
,
'.my_questionnaire_list'
,
function
(){
myQuestionnaireList
.
followUpId
=
$
(
this
).
attr
(
'data-id'
)
medtap
.
pushWindow
(
'../pages/questionnaireDetails.html?followUpId='
+
myQuestionnaireList
.
followUpId
)
medtap
.
pushWindow
(
'../pages/questionnaireDetails.html?followUpId='
+
myQuestionnaireList
.
followUpId
+
'&adminId='
+
myQuestionnaireList
.
adminId
)
})
}
})
...
...
wechat_lung_questionnaire/javaScript/otherTreatment.js
View file @
ec23b4e6
...
...
@@ -39,6 +39,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
return
}
var
dataHas
=
{
"adminId"
:
otherTreatment
.
adminId
,
"parentId"
:
otherTreatment
.
parentId
,
"questionId"
:
otherTreatment
.
questionId
,
"answer"
:{
...
...
@@ -52,6 +53,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
otherTreatment
.
getNextQuestion
(
dataHas
)
}
else
{
var
dataNo
=
{
"adminId"
:
otherTreatment
.
adminId
,
"parentId"
:
otherTreatment
.
parentId
,
"questionId"
:
otherTreatment
.
questionId
,
"answer"
:{
...
...
@@ -109,13 +111,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
otherTreatment
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"followUpId"
:
otherTreatment
.
followUpId
,
"questionId"
:
otherTreatment
.
questionId
,
"adminId"
:
otherTreatment
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -145,7 +148,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getPreQuestion
:
function
(){
var
crm
=
otherTreatment
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -153,6 +156,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionId"
:
otherTreatment
.
questionId
,
"questionNo"
:
otherTreatment
.
questionNo
,
"followUpId"
:
otherTreatment
.
followUpId
,
"adminId"
:
otherTreatment
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -168,7 +172,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getNextQuestion
:
function
(
data
){
var
crm
=
otherTreatment
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/javaScript/questionnaireDetails.js
View file @
ec23b4e6
This diff is collapsed.
Click to expand it.
wechat_lung_questionnaire/javaScript/questionnaireWeight.js
View file @
ec23b4e6
...
...
@@ -28,7 +28,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
questionnaireWeight
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -51,11 +51,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getNextQuestion
:
function
(){
var
crm
=
questionnaireWeight
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"adminId"
:
questionnaireWeight
.
adminId
,
"parentId"
:
questionnaireWeight
.
parentId
,
"questionId"
:
'1'
,
"answer"
:{
"weight"
:
questionnaireWeight
.
weight
,
"height"
:
questionnaireWeight
.
height
},
...
...
wechat_lung_questionnaire/javaScript/rukou.js
View file @
ec23b4e6
...
...
@@ -11,7 +11,7 @@ define(['zepto','medtap'],function($,medtap){
checkUser
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/wechat/user/getWechatUser'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/user/getWechatUser'
,
type
:
'GET'
,
async
:
false
,
data
:{
...
...
@@ -33,7 +33,7 @@ define(['zepto','medtap'],function($,medtap){
localStorage
.
wxLungToken
=
''
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/user/auth/token'
,
url
:
'https://
testdevgw
.medtap.cn/user/auth/token'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/javaScript/submitSuccessfully.js
View file @
ec23b4e6
...
...
@@ -2,9 +2,11 @@ define(['zepto', 'medtap', 'mui'], function($, medtap, mui) {
var
submitSuccessfully
=
{
// 问卷id
followUpId
:
medtap
.
getRequest
(
'followUpId'
),
// 修改人员id
adminId
:
medtap
.
getRequest
(
'adminId'
)
||
''
,
init
:
function
(){
$
(
'.tip_contact_service'
).
on
(
'tap'
,
function
(){
medtap
.
pushWindow
(
'../pages/myQuestionnaireList.html?followUpId='
+
submitSuccessfully
.
followUpId
)
medtap
.
pushWindow
(
'../pages/myQuestionnaireList.html?followUpId='
+
submitSuccessfully
.
followUpId
+
'&adminId='
+
submitSuccessfully
.
adminId
)
})
}
}
...
...
wechat_lung_questionnaire/javaScript/targetedTherapy.js
View file @
ec23b4e6
...
...
@@ -96,6 +96,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
var
hasUrl
=
'otherTreatment.html'
// 选择有的时候的数据
var
dataHas
=
{
"adminId"
:
targetedTherapy
.
adminId
,
"parentId"
:
targetedTherapy
.
parentId
,
"questionId"
:
targetedTherapy
.
questionId
,
"answer"
:{
...
...
@@ -131,6 +132,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 选择无的时候的数据
var
noUrl
=
'examination.html'
var
dataNo
=
{
"adminId"
:
targetedTherapy
.
adminId
,
"parentId"
:
targetedTherapy
.
parentId
,
"questionId"
:
targetedTherapy
.
questionId
,
"answer"
:{
...
...
@@ -195,7 +197,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
initCityl
:
function
()
{
medtap
.
loading
(
1
);
$
.
ajax
({
url
:
"https://
gateway
.medtap.cn/common/listAreaV0"
,
url
:
"https://
testdevgw
.medtap.cn/common/listAreaV0"
,
data
:
{},
type
:
'get'
,
async
:
true
,
...
...
@@ -370,13 +372,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getQuestionAnswer
:
function
(){
var
crm
=
targetedTherapy
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/getAnswer'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"followUpId"
:
targetedTherapy
.
followUpId
,
"questionId"
:
targetedTherapy
.
questionId
,
"adminId"
:
targetedTherapy
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -421,7 +424,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getPreQuestion
:
function
(){
var
crm
=
targetedTherapy
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/previousQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -429,6 +432,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionId"
:
targetedTherapy
.
questionId
,
"questionNo"
:
targetedTherapy
.
questionNo
,
"followUpId"
:
targetedTherapy
.
followUpId
,
"adminId"
:
targetedTherapy
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
...
...
@@ -445,7 +449,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getNextQuestion
:
function
(
data
,
url
){
var
crm
=
targetedTherapy
.
adminId
==
''
?
''
:
'/crm'
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
url
:
'https://
testdevgw
.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
wechat_lung_questionnaire/pages/questionnaireDetails.html
View file @
ec23b4e6
...
...
@@ -54,6 +54,13 @@
<div
class=
"que_title que_title_isHide"
>
检验检查情况
</div>
<div
class=
"question6"
></div>
<div
class=
"question7"
></div>
<div
class=
"question8"
></div>
<div
class=
"question9"
></div>
<div
class=
"question10"
></div>
<div
class=
"question11"
></div>
<div
class=
"question12"
></div>
</div>
<div
class=
"question_five question"
>
...
...
@@ -62,6 +69,25 @@
<div
class=
"que_title"
>
不适症状
</div>
<div
class=
"question15"
></div>
<div
class=
"question16"
></div>
<div
class=
"question17"
></div>
<div
class=
"question18"
></div>
<div
class=
"question19"
></div>
<div
class=
"question20"
></div>
<div
class=
"question21"
></div>
<div
class=
"question22"
></div>
<div
class=
"question23"
></div>
<div
class=
"question24"
></div>
<div
class=
"question25"
></div>
<div
class=
"question26"
></div>
<div
class=
"question27"
></div>
<div
class=
"question28"
></div>
<div
class=
"question29"
></div>
<div
class=
"question30"
></div>
<div
class=
"question31"
></div>
<div
class=
"question32"
></div>
<div
class=
"question33"
></div>
</div>
</div>
</div>
...
...
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