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
909babc3
Commit
909babc3
authored
Mar 09, 2021
by
liuquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
989d09a0
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
56 additions
and
14 deletions
+56
-14
packageA/chat/chat.js
+42
-0
packageA/chat/chat.wxml
+1
-1
packageA/chattingRecords/chattingRecords.wxml
+2
-2
packageA/logistics/logistics.wxml
+1
-1
packageB/myReport/myReport.wxml
+2
-2
pages/chatNews/chatNews.wxml
+1
-1
pages/index/index.wxml
+2
-2
pages/search/search.wxml
+1
-1
utils/config.js
+3
-3
utils/util.js
+1
-1
No files found.
packageA/chat/chat.js
View file @
909babc3
...
@@ -1666,6 +1666,48 @@ Page({
...
@@ -1666,6 +1666,48 @@ Page({
}
}
})
})
},
1000
,
true
),
},
1000
,
true
),
/**
* 购买产品 buyProduct()
* isQuick 开药方式0-正常开药,1-二维码,2-快速开药
* name 姓名
* title 职称 住院医生
* work_unit 工作单位 小懂
* img 医生头像
* diagnosis 诊断 抑郁
* prescription 药方ID
* type 0-处方药,1-保健品
* payid 支付ID
*/
buyProduct
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
({
mask
:
true
});
let
that
=
this
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
// isQuick 购买方式 0-正常购买,1-二维码购买,2-快速购买
let
id
=
item
.
isQuick
==
0
?
item
.
prescription
:
item
.
quickid
;
let
data
=
{
prescription
:
id
,
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
isquick
:
item
.
isQuick
}
Service
.
getPayStatus
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
wx
.
navigateTo
({
url
:
'/packageA/drugOrder/drugOrder'
})
wx
.
hideLoading
();
}
else
if
(
res
.
code
==
-
1
)
{
wx
.
navigateTo
({
url
:
'/packageA/productOrderInfo/productOrderInfo?scene='
+
id
+
'&isQuick='
+
item
.
isQuick
+
'&orderId='
+
this
.
data
.
orderId
+
'&groupID='
+
that
.
data
.
groupID
,
})
wx
.
hideLoading
();
}
else
{
wx
.
hideLoading
();
that
.
setData
({
errorToptips
:
res
.
msg
})
}
})
},
1000
,
true
),
//客服电话
//客服电话
dial
(
e
)
{
dial
(
e
)
{
let
tel
=
e
.
currentTarget
.
dataset
.
tel
;
let
tel
=
e
.
currentTarget
.
dataset
.
tel
;
...
...
packageA/chat/chat.wxml
View file @
909babc3
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
</view>
</view>
<view class="btn-view">
<view class="btn-view">
<!-- <view class="msg_btn" bindtap="viewRecipe" data-item="{{item.payload.description}}">查看推荐</view> -->
<!-- <view class="msg_btn" bindtap="viewRecipe" data-item="{{item.payload.description}}">查看推荐</view> -->
<view class="msg_btn1" bindtap="buy
Drug
" data-item="{{item.payload.description}}">购买产品</view>
<view class="msg_btn1" bindtap="buy
Product
" data-item="{{item.payload.description}}">购买产品</view>
</view>
</view>
</view>
</view>
</block>
</block>
...
...
packageA/chattingRecords/chattingRecords.wxml
View file @
909babc3
...
@@ -60,13 +60,13 @@
...
@@ -60,13 +60,13 @@
<view class='left' wx:if="{{item.flow=='in'}}" id='d{{index}}'>
<view class='left' wx:if="{{item.flow=='in'}}" id='d{{index}}'>
<image class='head' src='{{doctorimage || noSrc}}'></image>
<image class='head' src='{{doctorimage || noSrc}}'></image>
<view class='info-img' bindtap='previewImage' data-src='{{item.msg_content.originalPicture}}'>
<view class='info-img' bindtap='previewImage' data-src='{{item.msg_content.originalPicture}}'>
<image src='{{item.msg_content.originalPicture}}' data-index="{{index}}" lazy-load
="{{true}}"
mode="widthFix"></image>
<image src='{{item.msg_content.originalPicture}}' data-index="{{index}}" lazy-load mode="widthFix"></image>
</view>
</view>
</view>
</view>
<view class='right' wx:if="{{item.flow=='out'}}" id='d{{index}}'>
<view class='right' wx:if="{{item.flow=='out'}}" id='d{{index}}'>
<image class='head' src='{{avatarUrl|| noSrc}}'></image>
<image class='head' src='{{avatarUrl|| noSrc}}'></image>
<view class='info-img' bindtap='previewImage' data-src='{{item.msg_content.originalPicture}}'>
<view class='info-img' bindtap='previewImage' data-src='{{item.msg_content.originalPicture}}'>
<image src='{{item.msg_content.originalPicture}}' data-index="{{index}}" lazy-load
="{{true}}"
mode="widthFix"></image>
<image src='{{item.msg_content.originalPicture}}' data-index="{{index}}" lazy-load mode="widthFix"></image>
</view>
</view>
</view>
</view>
</block>
</block>
...
...
packageA/logistics/logistics.wxml
View file @
909babc3
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<text wx:if="{{com=='zhongtong'}}">中通快递</text>
<text wx:if="{{com=='zhongtong'}}">中通快递</text>
<text wx:if="{{com=='yundakuaiyun'}}">韵达快运</text>
<text wx:if="{{com=='yundakuaiyun'}}">韵达快运</text>
:{{orderid}}
:{{orderid}}
<view class="btn"
wx:if='{{orderid}}'
bindtap="getNum" wx:if="{{orderid!='null' && orderid}}">复制</view>
<view class="btn" bindtap="getNum" wx:if="{{orderid!='null' && orderid}}">复制</view>
</view>
</view>
<view class="mt" wx:if="{{orderid!='null' && orderid}}">
<view class="mt" wx:if="{{orderid!='null' && orderid}}">
<!-- <text class="wuliuzx">物流咨询:</text>
<!-- <text class="wuliuzx">物流咨询:</text>
...
...
packageB/myReport/myReport.wxml
View file @
909babc3
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<block wx:for="{{userReport.notDone}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<block wx:for="{{userReport.notDone}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class='item' bindtap='getScale' data-item="{{item}}" data-num="{{index}}">
<view class='item' bindtap='getScale' data-item="{{item}}" data-num="{{index}}">
<view class='item-headimg'>
<view class='item-headimg'>
<image src='{{item.headimgurl?item.headimgurl:userReport.logo}}'></image>
<image
lazy-load lazy-load-margin="0.5"
src='{{item.headimgurl?item.headimgurl:userReport.logo}}'></image>
<view class='item-lb_num'>{{item.lb_num}}</view>
<view class='item-lb_num'>{{item.lb_num}}</view>
</view>
</view>
<view class='item-content'>
<view class='item-content'>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<view style='position:relative;height:175rpx;width:750rpx;'>
<view style='position:relative;height:175rpx;width:750rpx;'>
<view class='item' bindtap='checkReport' data-item="{{item}}" data-num="{{index}}" data-index="{{index}}" bindtouchstart="startHandle" bindtouchmove="moveHandle" bindtouchend="endHandle" style='position:absolute;left:{{item.left}}rpx;z-index:10;'>
<view class='item' bindtap='checkReport' data-item="{{item}}" data-num="{{index}}" data-index="{{index}}" bindtouchstart="startHandle" bindtouchmove="moveHandle" bindtouchend="endHandle" style='position:absolute;left:{{item.left}}rpx;z-index:10;'>
<view class='item-headimg'>
<view class='item-headimg'>
<image src='{{item.headimgurl?item.headimgurl:logo}}'></image>
<image
lazy-load lazy-load-margin="0.5"
src='{{item.headimgurl?item.headimgurl:logo}}'></image>
</view>
</view>
<view class='item-content'>
<view class='item-content'>
<text class='item-name'>{{item.name}}</text>
<text class='item-name'>{{item.name}}</text>
...
...
pages/chatNews/chatNews.wxml
View file @
909babc3
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<view style='position:relative;height:214rpx;'>
<view style='position:relative;height:214rpx;'>
<view class='item' bindtap='goChat' data-item='{{item}}' data-index="{{index}}">
<view class='item' bindtap='goChat' data-item='{{item}}' data-index="{{index}}">
<view class='photo'>
<view class='photo'>
<image class='info-img' src='{{item.image || noSrc}}' mode="aspectFill" binderror="binderrorimg" data-errorIndex="{{index}}" ></image>
<image class='info-img' src='{{item.image || noSrc}}' mode="aspectFill"
lazy-load
binderror="binderrorimg" data-errorIndex="{{index}}" ></image>
<view class='unread' wx:if='{{item.unreadCount>0}}'>{{item.unreadCount}}</view>
<view class='unread' wx:if='{{item.unreadCount>0}}'>{{item.unreadCount}}</view>
</view>
</view>
<view class='info' style="{{index == serviceList.length -1?'border-bottom: none':''}}">
<view class='info' style="{{index == serviceList.length -1?'border-bottom: none':''}}">
...
...
pages/index/index.wxml
View file @
909babc3
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
</view>
</view>
<block wx:for="{{list.lcxl}}" wx:key="index">
<block wx:for="{{list.lcxl}}" wx:key="index">
<view class="flex user" bindtap="doctorInfo" data-unionid="{{item.unionid}}" data-unitid="{{item.unitid}}">
<view class="flex user" bindtap="doctorInfo" data-unionid="{{item.unionid}}" data-unitid="{{item.unitid}}">
<image src="{{item.image}}" mode="aspectFill" binderror="binderrorimg" data-type="0" data-errorIndex="{{index}}"></image>
<image src="{{item.image}}" mode="aspectFill"
lazy-load
binderror="binderrorimg" data-type="0" data-errorIndex="{{index}}"></image>
<view>
<view>
<view>
<view>
<text class="user-name">{{item.name}}</text>
<text class="user-name">{{item.name}}</text>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
</view>
</view>
<block wx:for="{{list.shxl}}" wx:for-item="item" wx:for-index="index" wx:key='index'>
<block wx:for="{{list.shxl}}" wx:for-item="item" wx:for-index="index" wx:key='index'>
<view class="flex user" bindtap="doctorInfo" data-unitid="{{item.unitid}}" data-unionid="{{item.unionid}}">
<view class="flex user" bindtap="doctorInfo" data-unitid="{{item.unitid}}" data-unionid="{{item.unionid}}">
<image src="{{item.image}}" mode="aspectFill" binderror="binderrorimg" data-type="1" data-errorIndex="{{index}}"></image>
<image src="{{item.image}}" mode="aspectFill"
lazy-load
binderror="binderrorimg" data-type="1" data-errorIndex="{{index}}"></image>
<view>
<view>
<view>
<view>
<text class="user-name">{{item.name}}</text>
<text class="user-name">{{item.name}}</text>
...
...
pages/search/search.wxml
View file @
909babc3
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<view class="{{filtrateSelect?'content':'content1'}}" wx:if='{{doctorList.length>0}}'>
<view class="{{filtrateSelect?'content':'content1'}}" wx:if='{{doctorList.length>0}}'>
<block wx:for="{{doctorList}}" wx:for-index="index" wx:key="index">
<block wx:for="{{doctorList}}" wx:for-index="index" wx:key="index">
<view class="flex user" bindtap="doctorInfo" data-openid="{{item.openid}}" data-unitid="{{item.unitid}}" data-unionid="{{item.unionid}}">
<view class="flex user" bindtap="doctorInfo" data-openid="{{item.openid}}" data-unitid="{{item.unitid}}" data-unionid="{{item.unionid}}">
<image src="{{item.image}}" mode="aspectFill" binderror="binderrorimg" data-errorIndex="{{index}}"></image>
<image src="{{item.image}}"
lazy-load lazy-load-margin="0.5"
mode="aspectFill" binderror="binderrorimg" data-errorIndex="{{index}}"></image>
<view class="xixui" wx:if="{{item.is_rest==1}}">休息中</view>
<view class="xixui" wx:if="{{item.is_rest==1}}">休息中</view>
<view>
<view>
<view>
<view>
...
...
utils/config.js
View file @
909babc3
...
@@ -56,7 +56,7 @@ const url = {
...
@@ -56,7 +56,7 @@ const url = {
/**药方详情 begin */
/**药方详情 begin */
getPrescription
:
HOST
+
"wechatIteration.php?s=/Prescription/detailPrescription"
,
//药方详情
getPrescription
:
HOST
+
"wechatIteration.php?s=/Prescription/detailPrescription"
,
//药方详情
isDrugEnough
:
HOST
+
"wechatIteration.php?s=/Prescription/judgeStock"
,
//查询药物充足
isDrugEnough
:
HOST
+
"wechatIteration.php?s=/Prescription/judgeStock"
,
//查询药物充足
prescriptionPay
:
HOST
+
"wechatIteration.php?s=/Prescription/zfxds"
,
//支付
prescriptionPay
:
HOST
+
"wechatIteration.php?s=/Prescription/zfxds"
,
//
药品
支付
addAddress
:
HOST
+
"wechatIteration.php?s=/Prescription/address"
,
//新增地址
addAddress
:
HOST
+
"wechatIteration.php?s=/Prescription/address"
,
//新增地址
editAddress
:
HOST
+
"wechatIteration.php?s=/Prescription/editAddress"
,
//修改地址
editAddress
:
HOST
+
"wechatIteration.php?s=/Prescription/editAddress"
,
//修改地址
isEditAddress
:
HOST
+
"wechatIteration.php?s=/Prescription/canEditAddress"
,
//判断是否可修改地址
isEditAddress
:
HOST
+
"wechatIteration.php?s=/Prescription/canEditAddress"
,
//判断是否可修改地址
...
@@ -117,8 +117,8 @@ const url = {
...
@@ -117,8 +117,8 @@ const url = {
/**end */
/**end */
getChatDoctor
:
HOST
+
"wechatIteration.php?s=/Inquisition/aptitude"
,
getChatDoctor
:
HOST
+
"wechatIteration.php?s=/Inquisition/aptitude"
,
getDealDetails
:
HOST
+
"wechatIteration.php?s=/Inquisition/patient_details"
,
//支付记录
getDealDetails
:
HOST
+
"wechatIteration.php?s=/Inquisition/patient_details"
,
//支付记录
getReportList
:
HOST
+
"wechatIteration.php?s=/Home/testresult"
,
getReportList
:
HOST
+
"wechatIteration.php?s=/Home/testresult"
,
//量表列表
goSetTel
:
HOST
+
"wechatIteration.php?s=/Index/getPhone"
,
goSetTel
:
HOST
+
"wechatIteration.php?s=/Index/getPhone"
,
//获取手机号
getServiceList
:
HOST
+
"wechatIteration.php?s=/InquiryUser/chat_inquiry"
,
//服务记录集合
getServiceList
:
HOST
+
"wechatIteration.php?s=/InquiryUser/chat_inquiry"
,
//服务记录集合
delService
:
HOST
+
"wechatIteration.php?s=/InquiryUser/delInquiry"
,
delService
:
HOST
+
"wechatIteration.php?s=/InquiryUser/delInquiry"
,
/**
/**
...
...
utils/util.js
View file @
909babc3
...
@@ -247,7 +247,7 @@ function timestampFormat(timestamp) {
...
@@ -247,7 +247,7 @@ function timestampFormat(timestamp) {
function
zeroize
(
num
)
{
function
zeroize
(
num
)
{
return
(
String
(
num
).
length
==
1
?
'0'
:
''
)
+
num
;
return
(
String
(
num
).
length
==
1
?
'0'
:
''
)
+
num
;
}
}
var
curTimestamp
=
parseInt
(
new
Date
().
getTime
()
/
1000
);
//
当前时间
戳
var
curTimestamp
=
parseInt
(
new
Date
().
getTime
()
/
1000
);
//戳
var
timestampDiff
=
curTimestamp
-
timestamp
;
// 参数时间戳与当前时间戳相差秒数
var
timestampDiff
=
curTimestamp
-
timestamp
;
// 参数时间戳与当前时间戳相差秒数
var
curDate
=
new
Date
(
curTimestamp
*
1000
);
// 当前时间日期对象
var
curDate
=
new
Date
(
curTimestamp
*
1000
);
// 当前时间日期对象
...
...
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