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
fcd2910c
Commit
fcd2910c
authored
Feb 09, 2021
by
liuquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A:新增IM聊天付费量表
U:修改患者用户信息必填 U:修改处方复核信息
parent
767a53df
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
271 additions
and
127 deletions
+271
-127
packageA/chat/chat.js
+56
-43
packageA/chat/chat.wxml
+44
-23
packageA/drugOrder/drugOrder.wxml
+26
-12
packageA/editUser/editUser.js
+10
-0
packageA/editUser/editUser.wxml
+1
-1
packageA/recipeDetails/recipeDetails.wxml
+3
-3
packageB/myReport/myReport.js
+1
-1
pages/chatNews/chatNews.js
+7
-7
pages/info/info.js
+104
-27
project.config.json
+1
-2
utils/api.js
+3
-1
utils/config.js
+10
-7
utils/service.js
+5
-0
No files found.
packageA/chat/chat.js
View file @
fcd2910c
...
...
@@ -26,7 +26,7 @@ Page({
nav
:
true
,
//控制头部医师显示
scrollHeight
:
"100%"
,
//聊天内容显示
adjust
:
true
,
keyHeight
:
0
,
//输入框高度
keyHeight
:
0
,
//输入框高度
scrollTop
:
0
,
reportShow
:
true
,
//发送报告内容框
iPhoneX
:
false
,
...
...
@@ -50,7 +50,7 @@ Page({
msgContent
:
''
,
//默认消息文字
isRecord
:
false
,
//录音显示
isRecording
:
false
,
//是否正在录音
isTouch
:
false
,
//防止录音单次点击出现bug
isTouch
:
false
,
//防止录音单次点击出现bug
canSend
:
true
,
title
:
"正在录音"
,
audioSave
:
''
,
//当前播放音频路径
...
...
@@ -218,7 +218,7 @@ Page({
wx
.
setStorageSync
(
'user'
,
res
)
return
Service
.
getUserData
(
res
.
openid
)
}).
then
((
res
)
=>
{
console
.
log
(
"res"
,
res
)
console
.
log
(
"res"
,
res
)
let
timers
=
setInterval
(()
=>
{
console
.
log
(
"App.globalData.isLogin"
,
App
.
globalData
.
isLogin
);
if
(
App
.
globalData
.
isLogin
)
{
...
...
@@ -226,8 +226,8 @@ Page({
that
.
getMessageList
(
that
.
data
.
groupID
);
//打开某个会话时,第一次拉取消息列表和获取群信息
}
},
500
)
wx
.
setStorageSync
(
'data'
,
res
)
that
.
setMessageRead
();
wx
.
setStorageSync
(
'data'
,
res
)
that
.
setMessageRead
();
}).
catch
(
error
=>
{
console
.
error
(
"我的服务登录"
,
error
)
})
...
...
@@ -797,15 +797,15 @@ Page({
/**
* 医生更多服务
*/
moreService
:
Util
.
debouce
(
function
()
{
moreService
:
Util
.
debouce
(
function
()
{
var
that
=
this
;
if
(
!
that
.
data
.
t_unionid
||!
that
.
data
.
doctorunitid
||!
that
.
data
.
t_openid
)
{
if
(
!
that
.
data
.
t_unionid
||
!
that
.
data
.
doctorunitid
||
!
that
.
data
.
t_openid
)
{
return
;
}
wx
.
navigateTo
({
url
:
'/pages/docuterInfo/docuterInfo?t_unionid='
+
that
.
data
.
t_unionid
+
'&t_unitid='
+
that
.
data
.
doctorunitid
+
'&t_openid='
+
that
.
data
.
t_openid
,
})
},
1000
,
true
),
},
1000
,
true
),
//input获取焦点
inputFoucus
:
function
(
e
)
{
var
that
=
this
;
...
...
@@ -875,14 +875,14 @@ Page({
/**
* 聊天记录
*/
chatLog
:
Util
.
debouce
(
function
()
{
chatLog
:
Util
.
debouce
(
function
()
{
wx
.
showLoading
();
wx
.
navigateTo
({
url
:
'/packageA/chattingRecords/chattingRecords?id='
+
this
.
data
.
orderId
+
'&doctorimage='
+
this
.
data
.
doctorimage
,
})
wx
.
setStorageSync
(
'list'
,
this
.
data
.
messageList
);
wx
.
hideLoading
();
},
1000
,
true
),
},
1000
,
true
),
scroll
:
function
()
{},
// ______ __ __ ______ __ __
// | \| \ / \ | \ | \ | \
...
...
@@ -944,10 +944,10 @@ Page({
let
msgList
=
Util
.
deepClone
(
imResponse
.
data
.
messageList
);
let
messageList
=
that
.
messageListParser
(
msgList
);
let
length
=
Number
(
messageList
.
length
-
1
);
console
.
log
(
"length"
,
length
)
console
.
log
(
"length"
,
length
)
if
(
length
>=
0
)
{
that
.
data
.
lastShowTimeStamp
=
messageList
[
length
].
time
;
console
.
log
(
"messageList[length].payload.data"
,
messageList
[
length
].
payload
.
data
)
console
.
log
(
"messageList[length].payload.data"
,
messageList
[
length
].
payload
.
data
)
if
(
messageList
[
length
].
payload
.
data
==
"InitiateEndService"
)
{
wx
.
showModal
({
title
:
'提示'
,
...
...
@@ -1091,7 +1091,7 @@ Page({
if
(
item
.
type
==
"TIMCustomElem"
)
{
item
.
payload
.
data
=
JSON
.
parse
(
item
.
payload
.
data
)
let
type
=
item
.
payload
.
data
.
type
;
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
.
data
=
item
.
payload
.
data
.
type
;
}
else
if
(
type
==
'Prescription'
||
type
==
'UserDrug'
||
type
==
'Checkup'
||
type
==
'report'
)
{
...
...
@@ -1220,7 +1220,7 @@ Page({
to
:
that
.
data
.
groupID
,
conversationType
:
TIM
.
TYPES
.
CONV_GROUP
,
payload
:
{
file
:
res
file
:
res
//文件对象
},
//临时图片路径
path
:
res
.
tempFilePaths
[
0
],
...
...
@@ -1248,7 +1248,7 @@ Page({
handleLongPress
(
e
)
{
var
that
=
this
;
//当前是按下状态
that
.
data
.
isTouch
=
true
;
that
.
data
.
isTouch
=
true
;
console
.
log
(
"手指按下"
)
that
.
data
.
startPoint
=
e
.
touches
[
0
];
if
(
!
this
.
data
.
payFlag
)
{
...
...
@@ -1286,7 +1286,7 @@ Page({
handleTouchEnd
()
{
console
.
log
(
"手指离开"
)
//当前是手指离开状态
this
.
data
.
isTouch
=
false
;
this
.
data
.
isTouch
=
false
;
wx
.
hideLoading
()
recorderManager
.
stop
()
this
.
setData
({
...
...
@@ -1321,14 +1321,14 @@ Page({
}
else
if
(
auth
===
true
)
{
// 用户已经同意授权
// console.log('this.data.isTouch',this.data.isTouch)
//判断当前按压状态,是按下就执行录音
if
(
this
.
data
.
isTouch
)
{
if
(
this
.
data
.
isTouch
)
{
that
.
setData
({
canSend
:
true
,
isRecording
:
true
,
title
:
"正在录音"
})
recorderManager
.
start
(
recordOptions
)
}
else
{
}
else
{
//否则提示"说话时间短"
that
.
setData
({
errorToptips
:
'说话时间太短'
...
...
@@ -1512,22 +1512,35 @@ Page({
wx
.
showLoading
();
let
data
=
{}
data
.
inquiry_id
=
e
.
currentTarget
.
dataset
.
id
;
Service
.
getTestInfo
(
data
).
then
((
res
)
=>
{
console
.
log
(
"getCheckup"
,
res
)
if
(
res
.
code
==
1
)
{
var
data
=
{
t_openid
:
res
.
data
.
openid
,
g_time
:
res
.
data
.
time
,
marketstatus
:
res
.
data
.
marketstatus
,
unitid
:
res
.
data
.
unitid
,
/**
* @todo 修改im发生量表收费
*/
let
status
=
e
.
currentTarget
.
dataset
.
status
?
e
.
currentTarget
.
dataset
.
status
:
1
;
let
url
;
if
(
status
==
0
)
{
url
=
`/pages/info/info?inquiry=2&inquiry_id=
${
e
.
currentTarget
.
dataset
.
id
}
`
;
wx
.
reLaunch
({
url
:
url
,
})
}
else
{
url
=
`/pages/info/info?otype=1&inquiry=2&inquiry_id=
${
e
.
currentTarget
.
dataset
.
id
}
`
;
Service
.
getTestInfo
(
data
).
then
((
res
)
=>
{
console
.
log
(
"getCheckup"
,
res
)
if
(
res
.
code
==
1
)
{
var
data
=
{
t_openid
:
res
.
data
.
openid
,
g_time
:
res
.
data
.
time
,
marketstatus
:
res
.
data
.
marketstatus
,
unitid
:
res
.
data
.
unitid
,
}
wx
.
setStorageSync
(
'weiLb'
,
data
);
console
.
log
(
"info"
,
data
)
}
wx
.
setStorageSync
(
'weiLb'
,
data
);
console
.
log
(
"info"
,
data
)
}
})
wx
.
navigateTo
({
url
:
'/pages/info/info?otype=1&inquiry=2&inquiry_id='
+
e
.
currentTarget
.
dataset
.
id
,
})
})
wx
.
navigateTo
({
url
:
url
,
})
}
wx
.
hideLoading
();
},
1000
,
true
),
//微信获取手机号
...
...
@@ -1585,7 +1598,7 @@ Page({
* type 0 处方 1 用药建议
* @param {} e
*/
viewRecipe
:
Util
.
debouce
(
function
(
e
)
{
viewRecipe
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
();
let
item
=
e
.
currentTarget
.
dataset
.
item
;
console
.
log
(
"item"
,
item
)
...
...
@@ -1593,7 +1606,7 @@ Page({
url
:
'/packageA/recipeDetails/recipeDetails?id='
+
item
.
payid
+
'&type='
+
item
.
type
,
})
wx
.
hideLoading
();
},
1000
,
true
),
},
1000
,
true
),
/**
* 购买药品 buyDrug()
* isQuick 开药方式0-正常开药,1-二维码,2-快速开药
...
...
@@ -1606,7 +1619,7 @@ Page({
* type 0-处方药,1-保健品
* payid 支付ID
*/
buyDrug
:
Util
.
debouce
(
function
(
e
)
{
buyDrug
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
();
let
that
=
this
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
...
...
@@ -1628,14 +1641,14 @@ Page({
url
:
'/packageA/drugOrderInfo/drugOrderInfo?scene='
+
id
+
'&isQuick='
+
item
.
isQuick
+
'&orderId='
+
this
.
data
.
orderId
+
'&groupID='
+
that
.
data
.
groupID
,
})
wx
.
hideLoading
();
}
else
{
}
else
{
wx
.
hideLoading
();
that
.
setData
({
errorToptips
:
res
.
msg
})
}
})
},
1000
,
true
),
},
1000
,
true
),
//客服电话
dial
(
e
)
{
let
tel
=
e
.
currentTarget
.
dataset
.
tel
;
...
...
@@ -1643,7 +1656,7 @@ Page({
phoneNumber
:
tel
,
})
},
/**
/**
* 图片加载失败函数
* type 0 医生头像 1 患者头像
* @param {any} e
...
...
@@ -1655,12 +1668,12 @@ Page({
let
img
;
if
(
type
==
0
)
{
up
=
"doctorimage"
;
img
=
"/images/doctor_img.png"
;
}
else
if
(
type
==
1
)
{
img
=
"/images/doctor_img.png"
;
}
else
if
(
type
==
1
)
{
up
=
"avatarUrl"
;
img
=
"/images/head-img.png"
;
img
=
"/images/head-img.png"
;
}
console
.
log
(
'img'
,
img
)
console
.
log
(
'img'
,
img
)
this
.
setData
({
[
up
]:
img
})
...
...
packageA/chat/chat.wxml
View file @
fcd2910c
...
...
@@ -36,7 +36,10 @@
</button>
</view>
</view>
<scroll-view scroll-y style='height:{{scrollHeight}};overflow-anchor:auto;' scroll-top='{{scrollTop}}' scroll-with-animation enhanced fast-deceleration scroll-anchoring='true' refresher-enabled="{{true}}" refresher-threshold="{{25}}" refresher-default-style="none" refresher-background="white" refresher-triggered="{{scrollloading}}" bindrefresherpulling="scrollPullDownRefresh" scroll-into-view="{{toView}}">
<scroll-view scroll-y style='height:{{scrollHeight}};overflow-anchor:auto;' scroll-top='{{scrollTop}}'
scroll-with-animation enhanced fast-deceleration scroll-anchoring='true' refresher-enabled="{{true}}"
refresher-threshold="{{25}}" refresher-default-style="none" refresher-background="white"
refresher-triggered="{{scrollloading}}" bindrefresherpulling="scrollPullDownRefresh" scroll-into-view="{{toView}}">
<!-- 下拉加载 -->
<view slot="refresher" class="scrollloading"><i class="weui-loading"></i></view>
<view class='warp-info'>
...
...
@@ -107,7 +110,8 @@
<!-- 白方消息 -->
<view class='left' wx:if="{{item.flow=='in'}}" id='d{{index}}'>
<image class='head' src='{{doctorimage|| noSrc}}' binderror="binderrorimg" data-type="0"></image>
<view class='msg' style='width:{{80+item.payload.second*6}}rpx;text-align: right;' bindtap='openAudio' data-payload='{{item.payload}}'>
<view class='msg' style='width:{{80+item.payload.second*6}}rpx;text-align: right;' bindtap='openAudio'
data-payload='{{item.payload}}'>
<image class="ico" wx:if="{{item.payload.uuid==audioSave}}" src="/images/yuyin-gif.gif"></image>
<image class="ico" wx:else src="/images/yuyin-ico.png"></image>
{{item.payload.second}}"
...
...
@@ -116,7 +120,8 @@
<!-- 蓝方消息 -->
<view class='right' wx:if="{{item.flow=='out'}}" id='d{{index}}'>
<image class='head' src='{{avatarUrl || noSrc}}' binderror="binderrorimg" data-type="1"></image>
<view class='msg' style='width:{{80+item.payload.second*6}}rpx;' bindtap='openAudio' data-payload='{{item.payload}}'>
<view class='msg' style='width:{{80+item.payload.second*6}}rpx;' bindtap='openAudio'
data-payload='{{item.payload}}'>
<image class="ico" wx:if="{{item.payload.uuid==audioSave}}" src="/images/yuyin-gif1.gif"></image>
<image class="ico" wx:else src="/images/yuyin-ico1.png"></image>
{{item.payload.second}}"
...
...
@@ -130,7 +135,8 @@
<view class="systemReport-title">检测报告</view>
<view class="systemReport-text">{{doctorname}}发送了一份{{item.payload.description.lbname}}的检测报告,可点击下方按钮查看</view>
<view class="btn-view">
<view class="msg_btn1" bindtap='lookReport' id='d{{index}}' data-src="{{item.payload.description.res_id}}" data-istype='{{item.payload.description.is_type}}'>查看报告</view>
<view class="msg_btn1" bindtap='lookReport' id='d{{index}}' data-src="{{item.payload.description.res_id}}"
data-istype='{{item.payload.description.is_type}}'>查看报告</view>
</view>
</view>
<!-- 蓝方消息 -->
...
...
@@ -138,7 +144,8 @@
<view class="systemReport-title">检测报告</view>
<view class="systemReport-text">{{name}}发送了一份{{item.payload.description.lbname}}的检测报告,可点击下方按钮查看</view>
<view class="btn-view">
<view class="msg_btn1" bindtap='lookReport' id='d{{index}}' data-src="{{item.payload.description.res_id}}" data-istype='{{item.payload.description.is_type}}'>查看报告</view>
<view class="msg_btn1" bindtap='lookReport' id='d{{index}}' data-src="{{item.payload.description.res_id}}"
data-istype='{{item.payload.description.is_type}}'>查看报告</view>
</view>
</view>
</block>
...
...
@@ -149,7 +156,8 @@
<view class="reserve-time">预约时间 <text class="reserve-text">{{item.payload.description}}</text></view>
<view class="reserve-server">预约服务 <text class="reserve-text">在线复诊/咨询</text></view>
<view class="btn-view">
<button class='msg_btn1' style="margin:0;line-height: 48rpx;" open-type='getPhoneNumber' bindgetphonenumber='goSetTel'>添加到提醒</button>
<button class='msg_btn1' style="margin:0;line-height: 48rpx;" open-type='getPhoneNumber'
bindgetphonenumber='goSetTel'>添加到提醒</button>
</view>
</view>
</block>
...
...
@@ -157,14 +165,16 @@
<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="Checkup"}}'>
<view class='Report'>
<view class="Report-doctor">
<image class='head' src='{{
avatarUrl
|| noSrc}}' binderror="binderrorimg" data-type="1"></image>
<image class='head' src='{{
doctorimage
|| noSrc}}' binderror="binderrorimg" data-type="1"></image>
<view class="doctor-info">
<view><text class="doctor-name">{{item.payload.description.nickname}}</text><text
class="doctor-title">{{doctortitle}}</text></view>
<view class="doctor-unit">{{item.payload.description.work_unit}}</view>
</view>
</view>
<view class="Report-text">我已为您开具量表,请点击下方按钮或在我的-我的报告,开始检测</view>
<view wx:if="{{item.payload.description.status==0}}" class="Report-text">
该检测可以帮助医生更全面的了解您的情况,需要另行收费。您可以根据自身情况自由选择是否使用该项检测。</view>
<view wx:else class="Report-text">我已为您开具量表,请点击下方按钮或在我的-我的报告,开始检测</view>
<view class="scale">
<view class="scale-title">量表名称:</view>
<view>
...
...
@@ -174,7 +184,7 @@
</view>
</view>
<view class="btn-view">
<view class="msg_btn1" bindtap='getCheckup' data-id="{{item.payload.description.id}}">开始检测</view>
<view class="msg_btn1" bindtap='getCheckup' data-id="{{item.payload.description.id}}"
data-status="{{item.payload.description.status}}"
>开始检测</view>
</view>
</view>
</block>
...
...
@@ -182,7 +192,7 @@
<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="UserDrug"}}'>
<view class='recipe'>
<view class="recipe-doctor">
<image class='head' src='{{doctorimage|| noSrc}}' binderror="binderrorimg" data-type="0"
></image>
<image class='head' src='{{doctorimage|| noSrc}}' binderror="binderrorimg" data-type="0"></image>
<view class="doctor-info">
<view><text class="doctor-name">{{item.payload.description.name}}</text><text
class="doctor-title">{{doctortitle}}</text></view>
...
...
@@ -210,7 +220,7 @@
<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="Prescription"}}'>
<view class='recipe'>
<view class="recipe-doctor">
<image class='head' src='{{doctorimage|| noSrc}}' binderror="binderrorimg" data-type="0"
></image>
<image class='head' src='{{doctorimage|| noSrc}}' binderror="binderrorimg" data-type="0"></image>
<view class="doctor-info">
<view><text class="doctor-name">{{item.payload.description.name}}</text><text
class="doctor-title">{{doctortitle}}</text></view>
...
...
@@ -236,21 +246,23 @@
<!-- 视频消息 -->
<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="LaunchVideo"}}'>
<view class="{{item.flow=='in'?'left':'right'}}" id='d{{index}}'>
<image class='head' src="{{doctorimage || noSrc}}" binderror="binderrorimg" data-type="0"
></image>
<image class='head' src="{{doctorimage || noSrc}}" binderror="binderrorimg" data-type="0"></image>
<view class='msg' data-c="{{item.payload.text}}">视频通话请求</view>
</view>
<!-- <view class="LaunchVideo">视频通话请求</view> -->
</block>
<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="closeVideo"}}'>
<view class="{{item.flow=='in'?'left':'right'}}" id='d{{index}}'>
<image class='head' src="{{item.flow=='in'?doctorimage:avatarUrl|| noSrc}}" binderror="binderrorimg" data-type="{{item.flow=='in'?'0':'1'}}"></image>
<image class='head' src="{{item.flow=='in'?doctorimage:avatarUrl|| noSrc}}" binderror="binderrorimg"
data-type="{{item.flow=='in'?'0':'1'}}"></image>
<view class='msg' data-c="{{item.payload.text}}">已挂断</view>
</view>
<!-- <view class="LaunchVideo">已挂断</view> -->
</block>
<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="hangUpVideo"}}'>
<view class="{{item.flow=='in'?'left':'right'}}" id='d{{index}}'>
<image class='head' src="{{item.flow=='in'?doctorimage:avatarUrl|| noSrc}}" binderror="binderrorimg" data-type="{{item.flow=='in'?'0':'1'}}"></image>
<image class='head' src="{{item.flow=='in'?doctorimage:avatarUrl|| noSrc}}" binderror="binderrorimg"
data-type="{{item.flow=='in'?'0':'1'}}"></image>
<view class='msg' data-c="{{item.payload.text}}">已拒接</view>
</view>
<!-- <view class="LaunchVideo">已挂断</view> -->
...
...
@@ -260,8 +272,10 @@
<view class='userInfo'>
<view class="userInfo-title">患者信息</view>
<view class="basicInfo">基本信息<text class="userInfo-text">{{item.payload.description.name}}</text></view>
<view class="userInfo-GSGN">肝肾功能<text class="userInfo-text">{{item.payload.description.disease}}</text></view>
<view class="userInfo-BYQK">备孕情况<text class="userInfo-text">{{item.payload.description.beiyun}}</text></view>
<view class="userInfo-GSGN">肝肾功能<text class="userInfo-text">{{item.payload.description.disease}}</text>
</view>
<view class="userInfo-BYQK">备孕情况<text class="userInfo-text">{{item.payload.description.beiyun}}</text>
</view>
<view class="userInfo-GWBS">
<view>过往病史</view>
<view class="gwbs-text">{{item.payload.description.past_desc}}</view>
...
...
@@ -281,7 +295,7 @@
<block wx:if='{{item.type == "TIMTextElem"}}'>
<!-- 蓝方消息 -->
<view class='right' id='d{{index}}'>
<image class='head' src='{{avatarUrl || noSrc}}'
binderror="binderrorimg" data-type="1"></image>
<image class='head' src='{{avatarUrl || noSrc}}' binderror="binderrorimg" data-type="1"></image>
<view class='msg' data-c="{{item.payload.text}}" bind:longpress='cope'>{{item.payload.text}}</view>
<view class="unsentloading"><i class="weui-loading"></i></view>
</view>
...
...
@@ -313,7 +327,8 @@
<view class="systemReport-text">{{name}}发送了一份{{item.payload.description.lbname}}的检测报告,可点击下方按钮查看</view>
<view class="btn-view">
<view><i class="weui-loading"></i></view>
<view class="msg_btn1" bindtap='lookReport' id='d{{index}}' data-src="{{item.payload.description.id}}" data-istype='{{item.payload.description.is_type}}'>查看报告</view>
<view class="msg_btn1" bindtap='lookReport' id='d{{index}}' data-src="{{item.payload.description.id}}"
data-istype='{{item.payload.description.is_type}}'>查看报告</view>
</view>
</view>
</block>
...
...
@@ -360,13 +375,16 @@
<image class='send-btn-img' src='{{isRecord?"/images/record.png":"/images/audio.png"}}'></image>
</view>
<block wx:if="{{isRecord}}">
<view class="record" catchtouchstart="handleLongPress" catchtouchmove="handleTouchMove" catchtouchend="handleTouchEnd">
<view class="record" catchtouchstart="handleLongPress" catchtouchmove="handleTouchMove"
catchtouchend="handleTouchEnd">
<block wx:if="{{!isRecording}}">按住 说话</block>
<block wx:if="{{isRecording}}">抬起 停止</block>
</view>
</block>
<block wx:else>
<input value='{{msgContent}}' placeholder="{{isSendText}}" placeholder-class="send-inp1" bindinput='inputMessage' class='send-inp' cursor-spacing="20" confirm-hold='{{true}}' confirm-type='send' bindconfirm='bindconfirm' adjust-position='{{false}}' bindfocus="inputFoucus" bindblur="inputBlur" type='text' maxlength="-1"></input>
<input value='{{msgContent}}' placeholder="{{isSendText}}" placeholder-class="send-inp1" bindinput='inputMessage'
class='send-inp' cursor-spacing="20" confirm-hold='{{true}}' confirm-type='send' bindconfirm='bindconfirm'
adjust-position='{{false}}' bindfocus="inputFoucus" bindblur="inputBlur" type='text' maxlength="-1"></input>
<button class='send-btn' bindtap="createTextMessage">发送</button>
</block>
</view>
...
...
@@ -409,7 +427,8 @@
<view class="{{estimateIssue.issue4?'issue-active':''}}" bindtap="issue" data-issue="4">服务价格太高</view>
</view>
</view>
<textarea fixed='true' class="estimate-textarea" cursor-spacing='{{cursor}}' maxlength="200" wx:if="{{graded>0}}" bindlinechange='textareaChange' placeholder="补充评价,帮助医生改善服务" placeholder-style="color:#b7b7b7">
<textarea fixed='true' class="estimate-textarea" cursor-spacing='{{cursor}}' maxlength="200" wx:if="{{graded>0}}"
bindlinechange='textareaChange' placeholder="补充评价,帮助医生改善服务" placeholder-style="color:#b7b7b7">
</textarea>
<button class="estimate-btn" wx:if="{{graded>0}}">匿名提交</button>
</view>
...
...
@@ -417,12 +436,14 @@
<view class="cu-modal bottom-modal {{reportShow?'':'show'}} warp-up" bindtap="openReport">
<!-- style='height:{{winH - 100}}px;bottom:-{{winH}}px;' -->
<!-- <view class='cu-dialog' catchtap style='margin-bottom:{{iPhoneX?267:217}}rpx;width:710rpx!important;border-radius:20rpx 20rpx 0rpx 0rpx !important;'> -->
<view class='cu-dialog' catchtap style='margin-bottom:{{0}}rpx;width:710rpx!important;border-radius:20rpx 20rpx 0rpx 0rpx !important;'>
<view class='cu-dialog' catchtap
style='margin-bottom:{{0}}rpx;width:710rpx!important;border-radius:20rpx 20rpx 0rpx 0rpx !important;'>
<view class='list-title'>发送报告</view>
<text class="cuIcon-close close" catchtap="openReport"></text>
<view class="animate" style='height:{{winH - 168}}px;'>
<block wx:for="{{result}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class='item-up' bindtap='createReportMessage' data-id="{{item.res_id}}" data-lbname="{{item.measure_name}}" data-time='{{item.createtime}}' data-istype='{{item.is_type}}'>
<view class='item-up' bindtap='createReportMessage' data-id="{{item.res_id}}"
data-lbname="{{item.measure_name}}" data-time='{{item.createtime}}' data-istype='{{item.is_type}}'>
<view class='pho'>
<image src="{{item.headimgurl?item.headimgurl:noSrc}}"></image>
</view>
...
...
packageA/drugOrder/drugOrder.wxml
View file @
fcd2910c
...
...
@@ -17,12 +17,13 @@
<block>
<view class="num flex">
<text>订单编号:{{item.ordernumber}}</text>
<!-- <text wx-if="{{item.status==1}}">已退款</text> -->
<text wx-if="{{item.status==1}}">待付款</text>
<text
wx-if="{{item.status==2}}">待发货</text>
<text
wx-if="{{item.status==3}}">待收货</text>
<text
wx-if="{{item.status==4}}">已完成</text>
<text
wx-if="{{item.status==5}}">订单过期</text>
<text
wx-if="{{item.status==7}}">订单作废</text>
<text wx-if="{{item.status==2}}">待发货</text>
<text wx-if="{{item.status==3}}">待收货</text>
<text wx-if="{{item.status==4}}">已完成</text>
<text wx-if="{{item.status==5}}">订单过期</text>
<text wx-if="{{item.status==7}}">订单作废</text>
</view>
<block wx:for="{{item.prescription}}" wx:key="index" wx:for-item="itemName">
<view class="list ">
...
...
@@ -50,14 +51,27 @@
<text>(含运费¥{{item.freight}})</text>
</view>
<view class="dele flex">
<view class="delebtn" bindtap="deleBtn" data-ordernumber="{{item.ordernumber}}" wx:if="{{item.status==1 || item.status==4 || item.status==5||item.status==7}}">删除订单</view>
<view class="delebtn" bindtap="deleBtn" data-ordernumber="{{item.ordernumber}}"
wx:if="{{item.status==1 || item.status==4 || item.status==5||item.status==7}}">删除订单</view>
<view class="btns flex">
<view class="ckwl" wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}" data-address="{{item.address}}">修改地址</view>
<view class="ckwl" wx:if="{{item.status==2}}" bindtap="goLogistics" data-img="{{item.prescription[0].picture}}" data-id="{{item.id}}" data-status="{{item.status}}" data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}" data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}">查看物流</view>
<view class="ckwl" wx:if="{{item.status==3 || item.status==4}}" bindtap="goLogistics" data-status="{{item.status}}" data-img="{{item.prescription[0].picture}}" data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}" data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}">查看物流</view>
<view class="ljzf" wx:if="{{item.status==3}}" bindtap="confirmReceipt" data-num="{{item.ordernumber}}">确认收货</view>
<view class="ljzf" wx:if="{{item.status==2||item.status==3 || item.status==4}}" bindtap="goOrderDetail" data-id="{{item.id}}">订单详情</view>
<view class="ljzf" wx:if="{{item.status==1}}" bindtap="goPay" data-id="{{item.yfid}}" data-isquick="{{item.modular}}">立即支付</view>
<view class="ckwl" wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}"
data-address="{{item.address}}">修改地址</view>
<view class="ckwl" wx:if="{{item.status==2}}" bindtap="goLogistics"
data-img="{{item.prescription[0].picture}}" data-id="{{item.id}}" data-status="{{item.status}}"
data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}"
data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}">
查看物流</view>
<view class="ckwl" wx:if="{{item.status==3 || item.status==4}}" bindtap="goLogistics"
data-status="{{item.status}}" data-img="{{item.prescription[0].picture}}"
data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}"
data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}">
查看物流</view>
<view class="ljzf" wx:if="{{item.status==3}}" bindtap="confirmReceipt" data-num="{{item.ordernumber}}">确认收货
</view>
<view class="ljzf" wx:if="{{item.status==2||item.status==3 || item.status==4}}" bindtap="goOrderDetail"
data-id="{{item.id}}">订单详情</view>
<view class="ljzf" wx:if="{{item.status==1}}" bindtap="goPay" data-id="{{item.yfid}}"
data-isquick="{{item.modular}}">立即支付</view>
<view class="ljzf1" wx:if="{{item.status==5}}">订单过期</view>
<view class="ljzf1" wx:if="{{item.status==7}}">订单作废</view>
</view>
...
...
packageA/editUser/editUser.js
View file @
fcd2910c
...
...
@@ -280,6 +280,16 @@ Page({
showCancel
:
false
,
})
return
;
}
else
if
(
that
.
data
.
phone
.
length
==
""
)
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'请填写手机号'
,
showCancel
:
false
,
})
that
.
setData
({
sava
:
true
})
return
;
}
else
if
(
that
.
data
.
phone
!=
''
&&
that
.
data
.
phone
.
length
!=
11
)
{
wx
.
showModal
({
title
:
'提示'
,
...
...
packageA/editUser/editUser.wxml
View file @
fcd2910c
...
...
@@ -8,7 +8,7 @@
<view class="flex-xm4">
<view class="tname">手机号</view>
<view class="phoneinput">
<input type="number" placeholder="
选
填" value="{{phone}}" bindinput='bindPhone' maxlength="11"></input>
<input type="number" placeholder="
必
填" value="{{phone}}" bindinput='bindPhone' maxlength="11"></input>
<view wx:if="{{!phoneYes}}" class="line"></view>
<button wx:if='{{!phoneYes}}' class="wxhq" open-type="getPhoneNumber"
bindgetphonenumber="getPhoneNumber">微信获取</button>
...
...
packageA/recipeDetails/recipeDetails.wxml
View file @
fcd2910c
...
...
@@ -155,12 +155,12 @@
</view>
<view class="yishi">
<text>审核:</text>
<text>
栾文娟
</text>
<text>
欧兆智
</text>
</view>
<view class="yishi">
<
!-- <
view class="yishi">
<text>复审:</text>
<text>傅美来</text>
</view>
</view>
-->
<image class="img" src="/images/zhang.png"></image>
</view>
<view class="specialTips">
...
...
packageB/myReport/myReport.js
View file @
fcd2910c
...
...
@@ -190,7 +190,7 @@ Page({
let
that
=
this
;
var
json
=
[];
for
(
let
j
in
e
)
{
if
(
e
[
j
].
measure_id_z
!=
''
)
{
if
(
!
Util
.
isEmpty
(
e
[
j
].
measure_id_z
)
)
{
var
len
=
e
[
j
].
measure_id_z
.
split
(
','
).
length
;
e
[
j
].
time01
=
Util
.
timeMethod
(
e
[
j
].
time
);
e
[
j
].
lb_num
=
len
;
...
...
pages/chatNews/chatNews.js
View file @
fcd2910c
...
...
@@ -33,7 +33,7 @@ Page({
}).
then
((
res
)
=>
{
if
(
Util
.
isEmpty
(
res
.
unionid
))
{
that
.
login
.
showLogin
();
console
.
log
(
1
)
//
console.log(1)
that
.
setData
({
showview
:
true
,
})
...
...
@@ -115,7 +115,7 @@ Page({
},
//菜单栏红点提示
resultNot
(
openid
)
{
console
.
log
(
"resultNot"
)
//
console.log("resultNot")
//未做量表提醒
var
data
=
{
openid
:
openid
...
...
@@ -131,20 +131,20 @@ Page({
})
}
}).
catch
(
error
=>
{
console
.
error
(
"菜单栏红点提示"
,
error
)
//
console.error("菜单栏红点提示", error)
})
},
//获取im会话列表
sessionList
:
function
()
{
let
that
=
this
;
console
.
log
(
"Tim.data.sessionList"
,
Tim
.
data
.
sessionList
)
//
console.log("Tim.data.sessionList", Tim.data.sessionList)
that
.
data
.
sessionList
=
Tim
.
data
.
sessionList
.
filter
(
item
=>
{
return
item
.
type
==
"GROUP"
});
Tim
.
tim
.
getGroupList
().
then
(
function
(
imResponse
)
{
console
.
log
(
"群组列表"
,
imResponse
.
data
.
groupList
);
// 群组列表
//
console.log("群组列表", imResponse.data.groupList); // 群组列表
}).
catch
(
function
(
imError
)
{
console
.
warn
(
'getGroupList error:'
,
imError
);
// 获取群组列表失败的相关信息
//
console.warn('getGroupList error:', imError); // 获取群组列表失败的相关信息
});
//取消在Tim.js监听的会话列表避免重复监听
// Tim.tim.off(TIM.EVENT.CONVERSATION_LIST_UPDATED, Tim.onConversationListUpdated);
...
...
@@ -158,7 +158,7 @@ Page({
*/
onConversationListUpdated
:
function
(
event
)
{
let
that
=
this
;
console
.
log
(
"%c收到会话列表更新通知"
,
"color:#2684ff"
,
event
)
//
console.log("%c收到会话列表更新通知", "color:#2684ff", event)
that
.
data
.
sessionList
=
event
.
data
.
filter
(
item
=>
{
return
item
.
type
==
"GROUP"
});
...
...
pages/info/info.js
View file @
fcd2910c
...
...
@@ -265,16 +265,15 @@ Page({
inquiry
:
''
,
//1二维码,2聊天页面心理体检
inquiry_id
:
''
,
//心理体检量表ID
viewrice
:
true
,
//判断是否显示量表价格
dropDown
:
8
,
//多少条显示展开折叠数
animDropDown
:
{},
//动效
dropDown
:
8
,
//多少条显示展开折叠数
animDropDown
:
{},
//动效
},
onLoad
:
function
(
options
)
{
var
that
=
this
;
console
.
log
(
'options'
,
options
);
/** otype=1 第一次未答完题进行第二题 || 从报告列表跳转 else 扫码过来 */
that
.
data
.
otype
=
options
.
otype
?
options
.
otype
:
-
1
;
if
(
options
.
otype
==
1
)
{
wx
.
setStorageSync
(
'qrcode_id'
,
options
.
g_id
);
wx
.
setStorageSync
(
'qrcode_id'
,
options
.
g_id
?
options
.
g_id
:
0
);
}
else
if
(
options
.
otype
!=
0
)
{
var
scene
=
decodeURIComponent
(
options
.
scene
)
wx
.
setStorageSync
(
'qrcode_id'
,
scene
)
...
...
@@ -292,7 +291,7 @@ Page({
});
wx
.
showLoading
({
title
:
'正在加载'
,
})
})
;
},
onShow
:
function
()
{
let
that
=
this
;
...
...
@@ -348,12 +347,17 @@ Page({
}
wx
.
setStorageSync
(
'user'
,
res
)
if
(
otype
==
1
)
{
var
info
=
wx
.
getStorageSync
(
'weiLb'
);
//不需要支付的量表
let
info
=
wx
.
getStorageSync
(
'weiLb'
);
that
.
loadItem
(
info
);
}
else
{
var
scene
=
decodeURIComponent
(
that
.
data
.
scene
)
//需要支付的量表 inquiry:2 im开具的量表 :1 二维码扫码
let
scene
=
that
.
data
.
inquiry
==
2
?
decodeURIComponent
(
that
.
data
.
inquiry_id
)
:
decodeURIComponent
(
that
.
data
.
scene
);
wx
.
setStorageSync
(
'qrcode_id'
,
scene
)
that
.
loadScene
(
scene
);
// 加载二维码场景
if
(
that
.
data
.
inquiry
==
2
)
that
.
loadIMScene
(
scene
);
// 加载二维码场景
else
that
.
loadScene
(
scene
);
// 加载二维码场景
}
that
.
loadData
();
// 获取个人信息
wx
.
setNavigationBarTitle
({
...
...
@@ -489,14 +493,13 @@ Page({
})
}
wx
.
setStorageSync
(
'weiLb'
,
res
)
// 是否有未做完的题 res.characters_id 为null 时表示没有扫码后未做的量表
// 是否有未做完的题 res.characters_id 为null 时表示没有扫码后未做的量表
;
// res.record_id = res.characters_id ?res.characters_id:-1;
if
(
res
.
characters_id
)
{
res
.
record_id
=
res
.
characters_id
}
else
{
res
.
record_id
=
-
1
;
}
if
(
Number
(
res
.
type
)
==
3
)
{
// 二维码已失效
Util
.
alert
(
'您扫的二维码已经失效!'
,
function
()
{
...
...
@@ -538,7 +541,6 @@ Page({
title
:
'支付检测费'
//修改title
})
wx
.
setStorageSync
(
'payInfo'
,
json
)
}
else
{
// 不需要免费、体验金
var
user
=
wx
.
getStorageSync
(
'user'
);
var
data1
=
{};
...
...
@@ -572,6 +574,82 @@ Page({
}
})
},
/**加载IM量表场景 */
loadIMScene
(
scene
)
{
let
that
=
this
;
var
user
=
wx
.
getStorageSync
(
'user'
);
var
data
=
{
z_openid
:
user
.
openid
,
g_id
:
scene
};
//加载二维码
Service
.
loadIMScene
(
data
).
then
((
res
)
=>
{
let
data
=
res
.
data
;
that
.
setData
({
t_openid
:
data
.
t_openid
,
t_unionid
:
data
.
t_unionid
,
viewrice
:
false
,
//不显示单个量表价格
})
/**
* 0 需要支付
* 1 已支付
* -1 已做完
*/
switch
(
res
.
code
)
{
case
0
:
//0 需要支付
wx
.
hideLoading
()
that
.
setData
({
show
:
0
,
marketstatus
:
data
.
marketstatus
,
showLoading
:
true
,
// zhifu
measure_name
:
data
.
measure_name
,
up_money
:
data
.
money
,
uo_price
:
data
.
price
})
wx
.
setStorageSync
(
'weiLb'
,
data
)
let
json
=
{
res
:
data
,
e
:
scene
,
otype
:
0
}
// that.upPayBtn(json);
that
.
setData
({
payModal
:
true
})
wx
.
setNavigationBarTitle
({
title
:
'支付检测费'
//修改title
})
wx
.
setStorageSync
(
'payInfo'
,
json
)
break
;
case
1
:
// 1 已支付
wx
.
hideLoading
()
that
.
setData
({
show
:
0
,
marketstatus
:
data
.
marketstatus
,
showLoading
:
true
,
// zhifu
measure_name
:
data
.
measure_name
,
up_money
:
data
.
money
,
uo_price
:
data
.
price
})
wx
.
setStorageSync
(
'weiLb'
,
data
)
that
.
loadItem
(
data
,
scene
);
break
;
case
-
1
:
// -1 已做完
wx
.
hideLoading
()
Util
.
alert
(
res
.
msg
,
function
()
{
wx
.
switchTab
({
url
:
'/pages/index/index'
,
})
});
return
;
}
})
},
getUnitid
:
function
(
e
)
{
let
that
=
this
var
allData
=
wx
.
getStorageSync
(
'data'
);
...
...
@@ -592,20 +670,20 @@ Page({
* 量表数量超过dropdown数量显示'展开'/'收起'
* @param {*} e
*/
dropdown
(
e
){
dropdown
(
e
)
{
console
.
log
(
e
.
currentTarget
.
dataset
.
dropdown
);
let
dropDown
=
e
.
currentTarget
.
dataset
.
dropdown
;
let
dropDown
=
e
.
currentTarget
.
dataset
.
dropdown
;
this
.
setData
({
dropDown
:
dropDown
dropDown
:
dropDown
})
// //点击弹出
// if (dropDown==8) {
// //缩回动画
// this.popp();
// } else {
// //弹出动画
// this.takeback();
// }
// //点击弹出
// if (dropDown==8) {
// //缩回动画
// this.popp();
// } else {
// //弹出动画
// this.takeback();
// }
},
positionNational
:
function
(
a
,
e
)
{
var
arr
=
a
;
...
...
@@ -788,7 +866,6 @@ Page({
time
:
e
.
time
,
}
that
.
payCsX
(
_json
)
}
else
{
Util
.
alert
(
'支付失败'
,
function
()
{
wx
.
reLaunch
({
...
...
@@ -818,7 +895,7 @@ Page({
data
.
gold
=
e
.
money
;
// data.gold = 0.01;
data
.
g_id
=
g_id
;
data
.
type
=
'1'
;
//量表1 服务2 药方3
data
.
type
=
that
.
data
.
inquiry
==
1
?
'1'
:
'4'
;
//量表1 服务2 药方3 im检测4
// 添加参数
var
url
=
Api
.
HOST
+
'wechatIteration.php?s=Home/payrecord'
;
Api
.
fetchPost
(
url
,
data
,
(
err
,
res
)
=>
{
...
...
@@ -1030,9 +1107,9 @@ Page({
if
(
res
[
0
])
{
that
.
setData
({
lb_id
:
res
[
0
]
})
// 保存 信息 用于判断是不是同一个量表
var
lb_descript
=
{
})
// 保存 信息 用于判断是不是同一个量表
var
lb_descript
=
{
id
:
res
,
desc
:
e
}
...
...
project.config.json
View file @
fcd2910c
...
...
@@ -34,8 +34,7 @@
"userConfirmedBundleSwitch"
:
false
,
"packNpmManually"
:
false
,
"packNpmRelationList"
:
[],
"minifyWXSS"
:
true
,
"skeletonGenerateFilesWithoutConfirm"
:
true
"minifyWXSS"
:
true
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.12.2"
,
...
...
utils/api.js
View file @
fcd2910c
...
...
@@ -2,7 +2,9 @@
var
HOST_xinli
=
'https://www.xiaodongai.com/xiaodongai/xinli'
;
// var HOST_xinli = 'https://www.xiaodongai.com/xiaodongai/xinli_ceshi_copy';
var
HOST_xinli_lb
=
'https://static.xiaodongai.com/'
;
var
HOST
=
'https://www.xiaodongai.com/xiaodongai/kongtian/'
;
const
HOST
=
"https://test-wechat.xiaodongai.com/"
;
// var HOST = 'https://www.xiaodongai.com/xiaodongai/kongtian/';
// var HOST = 'https://www.xiaodongai.com/xiaodongai/ceshi/';//测试库
var
HOST_P
=
"http://static.xiaodongai.com/xiaodongai/"
;
var
HOST_P_K
=
"http://static.xiaodongai.com/xiaodongai/kongtian/"
;
...
...
utils/config.js
View file @
fcd2910c
'use strict'
;
var
HOST_xinli
=
'https://www.xiaodongai.com/xiaodongai/xinli'
;
const
HOST_xinli
=
'https://www.xiaodongai.com/xiaodongai/xinli'
;
// var HOST_xinli = 'https://www.xiaodongai.com/xiaodongai/xinli_ceshi_copy';
var
HOST_xinli_lb
=
'https://static.xiaodongai.com/'
;
var
HOST_P
=
"https://static.xiaodongai.com/xiaodongai/"
;
var
HOST_P_K
=
"https://static.xiaodongai.com/xiaodongai/kongtian/"
;
const
HOST_xinli_lb
=
'https://static.xiaodongai.com/'
;
const
HOST_P
=
"https://static.xiaodongai.com/xiaodongai/"
;
const
HOST_P_K
=
"https://static.xiaodongai.com/xiaodongai/kongtian/"
;
var
HOST
=
'https://www.xiaodongai.com/xiaodongai/kongtian/'
;
const
HOST
=
"https://test-wechat.xiaodongai.com/"
;
// const HOST = 'https://www.xiaodongai.com/xiaodongai/kongtian/';
// var HOST = 'https://www.xiaodongai.com/xiaodongai/ceshi/';//测试库
// var HOST = 'http://192.168.0.123:8081/xiaodongai/ceshi/';//本地
// var HOST = 'http://localhost/xiaodongai/kongtian/';//本地
var
HOST_info
=
'https://vivshi.com/xiaodongai/kongtian/'
;
// 弃用
const
HOST_info
=
'https://vivshi.com/xiaodongai/kongtian/'
;
// 弃用
var
HOST_yiyuan
=
"https://www.xiaodongai.com/xiaodong_yiyuan/xd_admin/public/index.php/apitest/"
;
//互联网医院测试
const
HOST_yiyuan
=
"https://www.xiaodongai.com/xiaodong_yiyuan/xd_admin/public/index.php/apitest/"
;
//互联网医院测试
// var HOST_yiyuan="https://www.xiaodongai.com/xiaodong_yiyuan/xd_admin/public/index.php/api/";//互联网医院正式
const
url
=
{
getUserSig
:
HOST
+
'wechatIm.php?s=/Im/wechat_get_sign'
,
//获取usersig以及userID
...
...
@@ -79,6 +81,7 @@ const url = {
/**end */
/**量表 */
loadScene
:
HOST
+
"wechatIteration.php?s=/Measure/is_price"
,
//判断量表二维码场景
loadIMScene
:
HOST
+
"wechatIteration.php?s=/Measure/is_price_to"
,
//判断IM量表支付场景
getTestInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/findInquiry"
,
//获取检测信息
/**end */
/**用户购买问诊信息 begin*/
...
...
utils/service.js
View file @
fcd2910c
...
...
@@ -450,6 +450,10 @@ function loadScene(param) {
var
loadSceneUrl
=
config
.
url
.
loadScene
;
return
wxRequest
.
postRequest
(
loadSceneUrl
,
param
);
}
function
loadIMScene
(
param
)
{
var
loadIMSceneUrl
=
config
.
url
.
loadIMScene
;
return
wxRequest
.
postRequest
(
loadIMSceneUrl
,
param
);
}
/**
* 用户购买服务状态
*/
...
...
@@ -666,6 +670,7 @@ module.exports = {
delFriend
:
delFriend
,
//删除好友
appAddFriend
:
appAddFriend
,
//app.js添加好友
loadScene
:
loadScene
,
//加载量表二维码场景
loadIMScene
:
loadIMScene
,
//加载IM量表支付场景
seeBuyStaus
:
seeBuyStaus
,
//用户购买服务状态
endInquiry
:
endInquiry
,
//同意结束服务
refuseInquiry
:
refuseInquiry
,
//拒绝结束服务
...
...
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