Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
XDJK
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
wechatminiprogram
XDJK
Commits
c69eb57f
Commit
c69eb57f
authored
Mar 31, 2021
by
liuquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4ca8ec2b
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
43 deletions
+61
-43
packageA/chat/chat.js
+39
-24
packageA/chat/chat.wxss
+0
-1
packageA/drugOrder/drugOrder.js
+3
-5
packageA/drugOrderInfo/drugOrderInfo.wxss
+5
-0
packageA/productOrderInfo/productOrderInfo.wxss
+6
-7
packageB/myReport/myReport.js
+2
-2
pages/dati04/dati04.js
+1
-1
pages/index/index.wxss
+2
-1
pages/my/my.wxss
+2
-2
utils/service.js
+1
-0
No files found.
packageA/chat/chat.js
View file @
c69eb57f
...
@@ -875,7 +875,9 @@ Page({
...
@@ -875,7 +875,9 @@ Page({
* 聊天记录
* 聊天记录
*/
*/
chatLog
:
Util
.
debouce
(
function
()
{
chatLog
:
Util
.
debouce
(
function
()
{
wx
.
showLoading
({
mask
:
true
,});
wx
.
showLoading
({
mask
:
true
,
});
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/packageA/chattingRecords/chattingRecords?id='
+
this
.
data
.
orderId
+
'&doctorimage='
+
this
.
data
.
doctorimage
,
url
:
'/packageA/chattingRecords/chattingRecords?id='
+
this
.
data
.
orderId
+
'&doctorimage='
+
this
.
data
.
doctorimage
,
})
})
...
@@ -1094,7 +1096,7 @@ Page({
...
@@ -1094,7 +1096,7 @@ Page({
if
(
type
==
'InitiateEndService'
||
type
==
'NeverEndService'
||
type
==
'EndOfService'
||
type
==
'reminder'
||
type
==
'reminder2'
||
type
==
'followUp'
||
type
==
'UserInfo'
||
type
==
'LaunchVideo'
||
type
==
'closeVideo'
||
type
==
'hangUpVideo'
||
type
==
'groupTips'
)
{
if
(
type
==
'InitiateEndService'
||
type
==
'NeverEndService'
||
type
==
'EndOfService'
||
type
==
'reminder'
||
type
==
'reminder2'
||
type
==
'followUp'
||
type
==
'UserInfo'
||
type
==
'LaunchVideo'
||
type
==
'closeVideo'
||
type
==
'hangUpVideo'
||
type
==
'groupTips'
)
{
item
.
payload
.
description
=
item
.
payload
.
data
.
content
;
item
.
payload
.
description
=
item
.
payload
.
data
.
content
;
item
.
payload
.
data
=
item
.
payload
.
data
.
type
;
item
.
payload
.
data
=
item
.
payload
.
data
.
type
;
}
else
if
(
type
==
'Prescription'
||
type
==
'UserDrug'
||
type
==
'Checkup'
||
type
==
'report'
||
type
==
'RecommendedProducts'
)
{
}
else
if
(
type
==
'Prescription'
||
type
==
'UserDrug'
||
type
==
'Checkup'
||
type
==
'report'
||
type
==
'RecommendedProducts'
)
{
item
.
payload
.
description
=
JSON
.
parse
(
item
.
payload
.
data
.
content
);
item
.
payload
.
description
=
JSON
.
parse
(
item
.
payload
.
data
.
content
);
item
.
payload
.
data
=
item
.
payload
.
data
.
type
;
item
.
payload
.
data
=
item
.
payload
.
data
.
type
;
}
}
...
@@ -1220,7 +1222,7 @@ Page({
...
@@ -1220,7 +1222,7 @@ Page({
to
:
that
.
data
.
groupID
,
to
:
that
.
data
.
groupID
,
conversationType
:
TIM
.
TYPES
.
CONV_GROUP
,
conversationType
:
TIM
.
TYPES
.
CONV_GROUP
,
payload
:
{
payload
:
{
file
:
res
//文件对象
file
:
res
//文件对象
},
},
//临时图片路径
//临时图片路径
path
:
res
.
tempFilePaths
[
0
],
path
:
res
.
tempFilePaths
[
0
],
...
@@ -1482,7 +1484,9 @@ Page({
...
@@ -1482,7 +1484,9 @@ Page({
* 查看报告
* 查看报告
*/
*/
lookReport
:
Util
.
debouce
(
function
(
e
)
{
lookReport
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
({
mask
:
true
});
wx
.
showLoading
({
mask
:
true
});
let
that
=
this
;
let
that
=
this
;
let
src
=
e
.
currentTarget
.
dataset
.
src
;
let
src
=
e
.
currentTarget
.
dataset
.
src
;
let
is_type
=
e
.
currentTarget
.
dataset
.
istype
;
let
is_type
=
e
.
currentTarget
.
dataset
.
istype
;
...
@@ -1509,44 +1513,51 @@ Page({
...
@@ -1509,44 +1513,51 @@ Page({
},
1000
,
true
),
},
1000
,
true
),
/**心理体检 */
/**心理体检 */
getCheckup
:
Util
.
debouce
(
function
(
e
)
{
getCheckup
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
({
mask
:
true
});
wx
.
showLoading
({
mask
:
true
});
let
that
=
this
;
let
that
=
this
;
let
data
=
{}
let
data
=
{}
let
code
=
1
;
let
code
=
1
;
data
.
inquiry_id
=
e
.
currentTarget
.
dataset
.
id
;
data
.
inquiry_id
=
e
.
currentTarget
.
dataset
.
id
;
let
status
=
e
.
currentTarget
.
dataset
.
status
?
e
.
currentTarget
.
dataset
.
status
:
1
;
let
status
=
e
.
currentTarget
.
dataset
.
status
?
e
.
currentTarget
.
dataset
.
status
:
1
;
Service
.
getIsAnswer
({
inquiryid
:
data
.
inquiry_id
,
groupID
:
that
.
data
.
groupID
}).
then
((
res
)
=>
{
Service
.
getIsAnswer
({
if
(
res
.
code
==
0
){
inquiryid
:
data
.
inquiry_id
,
code
=
res
.
code
;
groupID
:
that
.
data
.
groupID
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
code
=
res
.
code
;
that
.
setData
({
that
.
setData
({
errorToptips
:
res
.
msg
errorToptips
:
res
.
msg
})
})
}
else
{
}
else
{
/**
/**
* @todo 修改im发生量表收费
* @todo 修改im发生量表收费
*/
*/
let
url
;
let
url
;
let
roomService
=
{
let
roomService
=
{
t_unionid
:
that
.
data
.
t_unionid
,
t_unionid
:
that
.
data
.
t_unionid
,
groupID
:
that
.
data
.
groupID
,
groupID
:
that
.
data
.
groupID
,
orderId
:
that
.
data
.
orderId
orderId
:
that
.
data
.
orderId
}
}
wx
.
setStorageSync
(
'roomService'
,
roomService
);
wx
.
setStorageSync
(
'roomService'
,
roomService
);
if
(
status
==
0
)
{
if
(
status
==
0
)
{
url
=
`/pages/info/info?inquiry=2&inquiry_id=
${
e
.
currentTarget
.
dataset
.
id
}
`
;
url
=
`/pages/info/info?inquiry=2&inquiry_id=
${
e
.
currentTarget
.
dataset
.
id
}
`
;
wx
.
reLaunch
({
wx
.
reLaunch
({
url
:
url
,
url
:
url
,
})
})
}
else
{
}
else
{
url
=
`/pages/info/info?otype=1&inquiry=2&inquiry_id=
${
e
.
currentTarget
.
dataset
.
id
}
`
;
url
=
`/pages/info/info?otype=1&inquiry=2&inquiry_id=
${
e
.
currentTarget
.
dataset
.
id
}
`
;
Service
.
getTestInfo
(
data
).
then
((
res
)
=>
{
Service
.
getTestInfo
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
var
data
=
{
var
data
=
{
t_openid
:
res
.
data
.
openid
,
t_openid
:
res
.
data
.
openid
,
//医生openid
g_time
:
res
.
data
.
time
,
z_openid
:
wx
.
getStorageSync
(
'data'
).
openid
,
//患者openid
marketstatus
:
res
.
data
.
marketstatus
,
g_time
:
res
.
data
.
time
,
//时间
unitid
:
res
.
data
.
unitid
,
unitid
:
res
.
data
.
unitid
,
//医生id
marketstatus
:
res
.
data
.
marketstatus
,
//身份id
}
}
//未作量表信息
wx
.
setStorageSync
(
'weiLb'
,
data
);
wx
.
setStorageSync
(
'weiLb'
,
data
);
console
.
log
(
"info"
,
data
)
console
.
log
(
"info"
,
data
)
}
}
...
@@ -1615,7 +1626,9 @@ Page({
...
@@ -1615,7 +1626,9 @@ Page({
* @param {} e
* @param {} e
*/
*/
viewRecipe
:
Util
.
debouce
(
function
(
e
)
{
viewRecipe
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
({
mask
:
true
});
wx
.
showLoading
({
mask
:
true
});
let
item
=
e
.
currentTarget
.
dataset
.
item
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
console
.
log
(
"item"
,
item
)
console
.
log
(
"item"
,
item
)
wx
.
navigateTo
({
wx
.
navigateTo
({
...
@@ -1636,7 +1649,9 @@ Page({
...
@@ -1636,7 +1649,9 @@ Page({
* payid 支付ID
* payid 支付ID
*/
*/
buyDrug
:
Util
.
debouce
(
function
(
e
)
{
buyDrug
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
({
mask
:
true
});
wx
.
showLoading
({
mask
:
true
});
let
that
=
this
;
let
that
=
this
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
// isQuick 开药方式 0-正常开药,1-二维码,2-快速开药
// isQuick 开药方式 0-正常开药,1-二维码,2-快速开药
...
@@ -1679,8 +1694,8 @@ Page({
...
@@ -1679,8 +1694,8 @@ Page({
*/
*/
buyProduct
:
Util
.
debouce
(
function
(
e
)
{
buyProduct
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
,
title
:
'加载中'
,
mask
:
true
mask
:
true
});
});
let
that
=
this
;
let
that
=
this
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
...
@@ -1700,7 +1715,7 @@ Page({
...
@@ -1700,7 +1715,7 @@ Page({
}
else
if
(
res
.
code
==
-
1
)
{
}
else
if
(
res
.
code
==
-
1
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/packageA/productOrderInfo/productOrderInfo?scene='
+
id
+
'&isQuick='
+
item
.
isQuick
+
'&orderId='
+
this
.
data
.
orderId
+
'&groupID='
+
that
.
data
.
groupID
,
url
:
'/packageA/productOrderInfo/productOrderInfo?scene='
+
id
+
'&isQuick='
+
item
.
isQuick
+
'&orderId='
+
this
.
data
.
orderId
+
'&groupID='
+
that
.
data
.
groupID
,
success
:
function
()
{
success
:
function
()
{
wx
.
hideLoading
();
wx
.
hideLoading
();
}
}
})
})
...
...
packageA/chat/chat.wxss
View file @
c69eb57f
...
@@ -556,7 +556,6 @@
...
@@ -556,7 +556,6 @@
}
}
.re_con .baogao {
.re_con .baogao {
font-size: 34rpx;
font-size: 34rpx;
color: #333;
color: #333;
line-height: 50rpx;
line-height: 50rpx;
...
...
packageA/drugOrder/drugOrder.js
View file @
c69eb57f
const
Service
=
require
(
'../../utils/service.js'
);
const
Service
=
require
(
'../../utils/service.js'
);
const
{
const
{
debouce
}
=
require
(
'../../utils/util.js'
);
//防抖函数
debouce
}
=
require
(
'../../utils/util.js'
);
//防抖函数
const
Util
=
require
(
'../../utils/util.js'
);
const
Util
=
require
(
'../../utils/util.js'
);
Page
({
Page
({
...
@@ -137,8 +135,8 @@ Page({
...
@@ -137,8 +135,8 @@ Page({
})
})
},
2000
)
},
2000
)
}
else
{
}
else
{
//
newList = res.data;
newList
=
res
.
data
;
newList
=
newList
.
concat
(
res
.
data
);
//
newList = newList.concat(res.data);
}
}
wx
.
stopPullDownRefresh
()
wx
.
stopPullDownRefresh
()
...
...
packageA/drugOrderInfo/drugOrderInfo.wxss
View file @
c69eb57f
...
@@ -298,6 +298,11 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
...
@@ -298,6 +298,11 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
font-size: 32rpx;
font-size: 32rpx;
color: #333333;
color: #333333;
font-weight: 600;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}
.errname {
.errname {
...
...
packageA/productOrderInfo/productOrderInfo.wxss
View file @
c69eb57f
...
@@ -272,18 +272,17 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
...
@@ -272,18 +272,17 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
justify-content: space-between;
justify-content: space-between;
padding-left: 18rpx;
padding-left: 18rpx;
width: 455rpx;
width: 455rpx;
overflow: hidden;
/*超出部分隐藏*/
white-space: nowrap;
/*不换行*/
text-overflow: ellipsis;
/*超出部分文字以...显示*/
}
}
.name {
.name {
font-size: 32rpx;
font-size: 32rpx;
color: #333333;
color: #333333;
font-weight: 600;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}
.errname{
.errname{
width: 400rpx;
width: 400rpx;
...
@@ -303,7 +302,7 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
...
@@ -303,7 +302,7 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
color: #666666;
color: #666666;
overflow: hidden;
overflow: hidden;
/*超出部分隐藏*/
/*超出部分隐藏*/
white-space:
nowrap
;
white-space:
2
;
/*不换行*/
/*不换行*/
text-overflow: ellipsis;
text-overflow: ellipsis;
/*超出部分文字以...显示*/
/*超出部分文字以...显示*/
...
...
packageB/myReport/myReport.js
View file @
c69eb57f
...
@@ -19,7 +19,6 @@ Page({
...
@@ -19,7 +19,6 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
},
},
/**
/**
...
@@ -119,9 +118,11 @@ Page({
...
@@ -119,9 +118,11 @@ Page({
Service
.
isReport
(
data
).
then
((
res
)
=>
{
Service
.
isReport
(
data
).
then
((
res
)
=>
{
// 查看列表权限
// 查看列表权限
if
(
res
.
data
==
'1'
)
{
if
(
res
.
data
==
'1'
)
{
//可查看
that
.
setData
({
that
.
setData
({
hidden
:
true
hidden
:
true
})
})
//跳转webview报告页
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/packageB/webview/webview?id='
+
item
.
res_id
+
'&lbname='
+
item
.
measure_name
+
'&share=0&t_openid='
+
0
,
url
:
'/packageB/webview/webview?id='
+
item
.
res_id
+
'&lbname='
+
item
.
measure_name
+
'&share=0&t_openid='
+
0
,
success
:
function
()
{
success
:
function
()
{
...
@@ -180,7 +181,6 @@ Page({
...
@@ -180,7 +181,6 @@ Page({
isShow
:
true
,
isShow
:
true
,
})
})
}
}
})
})
},
},
/**
/**
...
...
pages/dati04/dati04.js
View file @
c69eb57f
...
@@ -63,7 +63,7 @@ Page({
...
@@ -63,7 +63,7 @@ Page({
if
(
otype
&&
otype
==
11
)
{
if
(
otype
&&
otype
==
11
)
{
}
else
{
}
else
{
console
.
log
(
yanzhengid
,
lb_descript
.
desc
.
record_id
)
console
.
log
(
'asasasas'
,
yanzhengid
,
lb_descript
.
desc
.
record_id
)
if
(
lb_descript
.
desc
.
record_id
==
-
1
)
{
if
(
lb_descript
.
desc
.
record_id
==
-
1
)
{
this
.
loadData
();
this
.
loadData
();
}
else
if
(
yanzhengid
==
lb_descript
.
desc
.
record_id
)
{
}
else
if
(
yanzhengid
==
lb_descript
.
desc
.
record_id
)
{
...
...
pages/index/index.wxss
View file @
c69eb57f
...
@@ -58,12 +58,13 @@ view{
...
@@ -58,12 +58,13 @@ view{
font-size: 30rpx;
font-size: 30rpx;
font-weight: bolder;
font-weight: bolder;
color: #000;
color: #000;
line-height:
0.8
;
line-height:
1
;
letter-spacing: 2rpx;
letter-spacing: 2rpx;
}
}
.nav text:last-child{
.nav text:last-child{
font-weight: 300;
font-weight: 300;
font-size: 24rpx;
font-size: 24rpx;
height: 24rpx;
letter-spacing: 1rpx;
letter-spacing: 1rpx;
color: #3b3b3b;
color: #3b3b3b;
}
}
...
...
pages/my/my.wxss
View file @
c69eb57f
...
@@ -54,7 +54,7 @@ page {
...
@@ -54,7 +54,7 @@ page {
height: 48rpx;
height: 48rpx;
}
}
.server-text {
.server-text {
height: 2
4
rpx;
height: 2
8
rpx;
font-size: 28rpx;
font-size: 28rpx;
font-weight: 300;
font-weight: 300;
text-align: left;
text-align: left;
...
@@ -66,7 +66,7 @@ page {
...
@@ -66,7 +66,7 @@ page {
height: 52rpx;
height: 52rpx;
font-size: 50rpx;
font-size: 50rpx;
color: #333;
color: #333;
font-weight:
700
;
font-weight:
bold
;
line-height: 54rpx;
line-height: 54rpx;
position: absolute;
position: absolute;
top: 95rpx;
top: 95rpx;
...
...
utils/service.js
View file @
c69eb57f
...
@@ -50,6 +50,7 @@ function getUserData(openid) {
...
@@ -50,6 +50,7 @@ function getUserData(openid) {
let
getUserDataUrl
=
config
.
url
.
getUserData
;
let
getUserDataUrl
=
config
.
url
.
getUserData
;
let
data
=
{};
let
data
=
{};
data
.
openid
=
openid
;
data
.
openid
=
openid
;
// data.openid='oYQX40Gk7bjWc8YncaXwFyNOC2ww'
return
wxRequest
.
postRequest
(
getUserDataUrl
,
data
);
return
wxRequest
.
postRequest
(
getUserDataUrl
,
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