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
48a96c72
Commit
48a96c72
authored
Mar 13, 2021
by
liuquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
909babc3
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1217 additions
and
196 deletions
+1217
-196
app.json
+2
-1
packageA/chat/chat.js
+5
-5
packageA/chat/chat.wxml
+1
-1
packageA/drugOrder/drugOrder.js
+135
-23
packageA/drugOrder/drugOrder.json
+1
-1
packageA/drugOrder/drugOrder.wxml
+68
-2
packageA/logistics/logistics.wxss
+3
-3
packageA/productOrderDetail/productOrderDetail.js
+174
-0
packageA/productOrderDetail/productOrderDetail.json
+7
-0
packageA/productOrderDetail/productOrderDetail.wxml
+172
-0
packageA/productOrderDetail/productOrderDetail.wxss
+330
-0
packageA/productOrderInfo/productOrderInfo.js
+25
-21
packageA/productOrderInfo/productOrderInfo.wxml
+9
-9
packageA/selectUser/selectUser.js
+3
-3
pages/my/my.js
+1
-1
pages/my/my.wxml
+1
-1
project.private.config.json
+96
-0
utils/config.js
+126
-108
utils/service.js
+58
-17
No files found.
app.json
View file @
48a96c72
...
@@ -41,7 +41,8 @@
...
@@ -41,7 +41,8 @@
"patientList/patientList"
,
"patientList/patientList"
,
"chattingRecords/chattingRecords"
,
"chattingRecords/chattingRecords"
,
"beBeingService/beBeingService"
,
"beBeingService/beBeingService"
,
"productOrderInfo/productOrderInfo"
"productOrderInfo/productOrderInfo"
,
"productOrderDetail/productOrderDetail"
]
]
},
},
{
{
...
...
packageA/chat/chat.js
View file @
48a96c72
...
@@ -1647,7 +1647,7 @@ Page({
...
@@ -1647,7 +1647,7 @@ Page({
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
isquick
:
item
.
isQuick
isquick
:
item
.
isQuick
}
}
Service
.
getPayStatus
(
data
).
then
((
res
)
=>
{
Service
.
getPayStatus
A
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/packageA/drugOrder/drugOrder'
url
:
'/packageA/drugOrder/drugOrder'
...
@@ -1682,14 +1682,14 @@ Page({
...
@@ -1682,14 +1682,14 @@ Page({
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-快速购买
let
id
=
item
.
isQuick
==
0
?
item
.
p
rescription
:
item
.
quickid
;
let
id
=
item
.
isQuick
==
0
?
item
.
p
ayid
:
item
.
quickid
;
let
data
=
{
let
data
=
{
prescription
:
i
d
,
prescription
:
i
tem
.
prescription
,
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
isquick
:
item
.
isQuick
isquick
:
item
.
isQuick
}
}
Service
.
getPayStatus
(
data
).
then
((
res
)
=>
{
Service
.
getPayStatus
B
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/packageA/drugOrder/drugOrder'
url
:
'/packageA/drugOrder/drugOrder'
...
...
packageA/chat/chat.wxml
View file @
48a96c72
...
@@ -227,7 +227,7 @@
...
@@ -227,7 +227,7 @@
<view class="doctor-unit">{{item.payload.description.work_unit}}</view>
<view class="doctor-unit">{{item.payload.description.work_unit}}</view>
</view>
</view>
</view>
</view>
<view class="Report-text"
wx:if='{{item.payload.description.diagnosis}}'
>
<view class="Report-text" >
医生为您开具了一个推荐产品,您可根据自身情况自由选择是否购买。</view>
医生为您开具了一个推荐产品,您可根据自身情况自由选择是否购买。</view>
<view class="scale">
<view class="scale">
<view class="scale-title">推荐产品:</view>
<view class="scale-title">推荐产品:</view>
...
...
packageA/drugOrder/drugOrder.js
View file @
48a96c72
const
Service
=
require
(
'../../utils/service.js'
);
const
Service
=
require
(
'../../utils/service.js'
);
const
{
debouce
}
=
require
(
'../../utils/util.js'
);
//防抖函数
const
{
debouce
}
=
require
(
'../../utils/util.js'
);
//防抖函数
const
Util
=
require
(
'../../utils/util.js'
);
const
Util
=
require
(
'../../utils/util.js'
);
Page
({
Page
({
...
@@ -13,8 +15,12 @@ Page({
...
@@ -13,8 +15,12 @@ Page({
winH
:
null
,
winH
:
null
,
},
},
showview
:
false
,
showview
:
false
,
success
:
true
,
list
:
[],
list
:
[],
page
:
1
page
:
1
,
productPage
:
0
,
total
:
0
,
requestStatus
:
false
,
//请求状态
},
},
/**
/**
...
@@ -38,7 +44,10 @@ Page({
...
@@ -38,7 +44,10 @@ Page({
*/
*/
onPullDownRefresh
:
function
()
{
onPullDownRefresh
:
function
()
{
var
that
=
this
var
that
=
this
//重置
that
.
data
.
page
=
1
;
that
.
data
.
page
=
1
;
that
.
data
.
productPage
=
0
;
that
.
data
.
total
=
0
;
wx
.
showNavigationBarLoading
()
//在标题栏中显示加载
wx
.
showNavigationBarLoading
()
//在标题栏中显示加载
setTimeout
(
function
()
{
setTimeout
(
function
()
{
that
.
getList
(
1
,
that
.
data
.
nav
)
that
.
getList
(
1
,
that
.
data
.
nav
)
...
@@ -51,13 +60,15 @@ Page({
...
@@ -51,13 +60,15 @@ Page({
*/
*/
onReachBottom
:
function
()
{
onReachBottom
:
function
()
{
var
that
=
this
var
that
=
this
var
page
=
that
.
data
.
page
+
1
;
if
(
that
.
data
.
success
)
{
that
.
setData
({
var
page
=
that
.
data
.
page
+
1
;
scrollFlag
:
true
,
that
.
setData
({
success
:
false
,
scrollFlag
:
true
,
page
:
page
success
:
false
,
})
page
:
page
that
.
getList
(
page
,
that
.
data
.
nav
)
})
that
.
getList
(
page
,
that
.
data
.
nav
);
}
},
},
//删除订单
//删除订单
deleBtn
:
debouce
(
function
(
e
)
{
deleBtn
:
debouce
(
function
(
e
)
{
...
@@ -89,19 +100,94 @@ Page({
...
@@ -89,19 +100,94 @@ Page({
//获取列表
//获取列表
getList
:
function
(
page
,
status
)
{
getList
:
function
(
page
,
status
)
{
var
that
=
this
var
that
=
this
that
.
data
.
requestStatus
=
true
;
var
data
=
{
var
data
=
{
page
:
page
,
page
:
page
,
// unionid:'oHhp80QCN2WjClijvSyhkEFQcUwY',
// unionid:'oHhp80QCN2WjClijvSyhkEFQcUwY',
unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
status
:
status
status
:
status
};
};
Service
.
buyDrugList
(
data
).
then
((
res
)
=>
{
let
newList
=
that
.
data
.
list
;
console
.
log
(
"res"
,
res
)
if
(
page
==
1
||
newList
.
length
<
that
.
data
.
total
)
{
var
list
=
that
.
data
.
list
;
that
.
buyProductList
(
data
);
}
else
{
data
.
page
=
data
.
page
-
that
.
data
.
productPage
;
console
.
log
(
" data.page"
,
data
.
page
)
that
.
buyDrugList
(
data
);
}
},
/**
* 推荐产品列表
* @param {*} param
*/
buyProductList
(
param
)
{
let
that
=
this
;
let
newList
=
that
.
data
.
list
;
let
page
=
param
.
page
;
Service
.
buyProductList
(
param
).
then
(
res
=>
{
if
(
res
.
data
.
list
.
length
>
0
&&
res
.
data
.
list
.
length
<
10
)
{
that
.
data
.
productPage
=
param
.
page
;
}
if
(
page
>
1
&&
res
.
data
.
list
.
length
>
0
)
{
console
.
log
(
"newList"
,
res
.
data
.
list
)
newList
=
newList
.
concat
(
res
.
data
.
list
);
// for (let i = 0; i < res.data.list.length; i++) {
// newList.push(res.data.list[i])
// }
that
.
setData
({
success
:
true
})
}
else
if
(
page
>
1
&&
res
.
data
.
list
.
length
==
0
)
{
that
.
setData
({
scrollFlag
:
false
,
scrollFlag1
:
true
,
})
setTimeout
(
function
()
{
that
.
setData
({
success
:
true
})
},
2000
)
}
else
{
// console.log("newList2", res.data.list)
newList
=
res
.
data
.
list
;
}
wx
.
stopPullDownRefresh
()
if
(
newList
.
length
>
0
)
{
that
.
setData
({
list
:
newList
,
total
:
res
.
data
.
total
,
showview
:
true
,
requestStatus
:
false
,
})
wx
.
hideLoading
();
}
else
{
that
.
buyDrugList
(
param
);
that
.
setData
({
// list: [],
total
:
res
.
data
.
total
,
// showview: true
})
}
}).
catch
(
function
(
Error
)
{
console
.
warn
(
'error:'
,
Error
);
// 获取会话资料失败的相关信息
});
},
/**
* 药品列表
* @param {*} param
*/
buyDrugList
(
param
)
{
let
that
=
this
;
let
newList
=
that
.
data
.
list
;
let
page
=
param
.
page
;
Service
.
buyDrugList
(
param
).
then
((
res
)
=>
{
if
(
page
>
1
&&
res
.
data
.
length
>
0
)
{
if
(
page
>
1
&&
res
.
data
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
newList
=
newList
.
concat
(
res
.
data
);
list
.
push
(
res
.
data
[
i
])
// for (let i = 0; i < res.data.length; i++) {
}
// list.push(res.data[i])
// }
that
.
setData
({
that
.
setData
({
success
:
true
success
:
true
})
})
...
@@ -116,31 +202,57 @@ Page({
...
@@ -116,31 +202,57 @@ Page({
})
})
},
2000
)
},
2000
)
}
else
{
}
else
{
list
=
res
.
data
;
// newList = res.data;
newList
=
newList
.
concat
(
res
.
data
);
}
}
wx
.
stopPullDownRefresh
()
wx
.
stopPullDownRefresh
()
if
(
list
.
length
>
0
)
{
if
(
newList
.
length
>
0
)
{
that
.
setData
({
that
.
setData
({
list
:
list
,
list
:
newList
,
showview
:
true
showview
:
true
,
requestStatus
:
false
,
})
})
wx
.
hideLoading
();
}
else
{
}
else
{
that
.
setData
({
that
.
setData
({
list
:
[],
list
:
[],
showview
:
true
showview
:
true
,
requestStatus
:
false
,
})
})
wx
.
hideLoading
();
}
}
}).
catch
(
function
(
Error
)
{
}).
catch
(
function
(
Error
)
{
console
.
warn
(
'error:'
,
Error
);
// 获取会话资料失败的相关信息
console
.
warn
(
'error:'
,
Error
);
// 获取会话资料失败的相关信息
});
});
},
},
// /**
// * 插入排序
// * @param {Array} arr 排序数据
// */
insertionSort
(
arr
)
{
let
sortArr
;
arr
.
forEach
((
item
,
index
)
=>
{
})
},
//选择topTab页
//选择topTab页
nav
:
function
(
e
)
{
nav
:
function
(
e
)
{
let
_this
=
this
let
_this
=
this
// wx.showLoading({
// title: '加载中',
// mask:true
// })
if
(
_this
.
data
.
requestStatus
){
return
;
}
_this
.
setData
({
_this
.
setData
({
nav
:
e
.
currentTarget
.
dataset
.
index
,
nav
:
e
.
currentTarget
.
dataset
.
index
,
page
:
1
,
page
:
1
,
showview
:
false
total
:
0
,
productPage
:
0
,
showview
:
false
,
list
:
[]
})
})
_this
.
getList
(
1
,
e
.
currentTarget
.
dataset
.
index
)
_this
.
getList
(
1
,
e
.
currentTarget
.
dataset
.
index
)
},
},
...
@@ -176,7 +288,7 @@ Page({
...
@@ -176,7 +288,7 @@ Page({
// })
// })
// },
// },
/**
/**
*修改地址-待发货2
*
修改地址-待发货2
*/
*/
editAddress
:
debouce
(
function
(
e
)
{
editAddress
:
debouce
(
function
(
e
)
{
Service
.
isEditAddress
({
Service
.
isEditAddress
({
...
@@ -219,7 +331,7 @@ Page({
...
@@ -219,7 +331,7 @@ Page({
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
isquick
:
e
.
currentTarget
.
dataset
.
isquick
isquick
:
e
.
currentTarget
.
dataset
.
isquick
}
}
Service
.
getPayStatus
(
data
).
then
((
res
)
=>
{
Service
.
getPayStatus
A
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
that
.
onShow
();
that
.
onShow
();
}
else
if
(
res
.
code
==
-
1
)
{
}
else
if
(
res
.
code
==
-
1
)
{
...
...
packageA/drugOrder/drugOrder.json
View file @
48a96c72
{
{
"navigationBarTitleText"
:
"
药品订单
"
,
"navigationBarTitleText"
:
"
订单列表
"
,
"enablePullDownRefresh"
:
true
,
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{
"usingComponents"
:
{
"answer"
:
"/components/answer/answer"
"answer"
:
"/components/answer/answer"
...
...
packageA/drugOrder/drugOrder.wxml
View file @
48a96c72
...
@@ -13,7 +13,73 @@
...
@@ -13,7 +13,73 @@
</view>
</view>
<view wx:else>
<view wx:else>
<block wx:for="{{list}}" wx:key="key">
<block wx:for="{{list}}" wx:key="key">
<view class="dingdan">
<!-- 推荐产品 -->
<view class="dingdan" wx:if="{{item.class_pay=='2'}}">
<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>
</view>
<block wx:for="{{item.prescription}}" wx:key="index" wx:for-item="itemName">
<view class="list ">
<view class="list-item {{index+1<item.prescription.length?'list-line':''}}">
<view class="bor">
<image src="{{itemName.picture}}"></image>
</view>
<view class="xq">
<view class="name web-font">{{itemName.name}}</view>
<view class="dz">{{itemName.firm}}</view>
<view class="dz">{{itemName.norms}}</view>
<view class="jg">
<text>¥</text>
<text>{{itemName.drug_price}}</text>
</view>
</view>
<view class="list-num">x {{itemName.drug_num}}</view>
</view>
</view>
</block>
</block>
<view class="zj flex">
<text>共 {{item.total}} 件商品 实付款: </text>
<text class="red">¥{{item.money}}</text>
<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="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}}" data-class="1">立即支付</view>
<view class="ljzf1" wx:if="{{item.status==5}}">订单过期</view>
<view class="ljzf1" wx:if="{{item.status==7}}">订单作废</view>
</view>
</view>
</view>
<!-- 药品 -->
<view class="dingdan" wx:else>
<block>
<block>
<view class="num flex">
<view class="num flex">
<text>订单编号:{{item.ordernumber}}</text>
<text>订单编号:{{item.ordernumber}}</text>
...
@@ -71,7 +137,7 @@
...
@@ -71,7 +137,7 @@
<view class="ljzf" wx:if="{{item.status==2||item.status==3 || item.status==4}}" bindtap="goOrderDetail"
<view class="ljzf" wx:if="{{item.status==2||item.status==3 || item.status==4}}" bindtap="goOrderDetail"
data-id="{{item.id}}">订单详情</view>
data-id="{{item.id}}">订单详情</view>
<view class="ljzf" wx:if="{{item.status==1}}" bindtap="goPay" data-id="{{item.yfid}}"
<view class="ljzf" wx:if="{{item.status==1}}" bindtap="goPay" data-id="{{item.yfid}}"
data-isquick="{{item.modular}}">立即支付</view>
data-isquick="{{item.modular}}"
data-class="1"
>立即支付</view>
<view class="ljzf1" wx:if="{{item.status==5}}">订单过期</view>
<view class="ljzf1" wx:if="{{item.status==5}}">订单过期</view>
<view class="ljzf1" wx:if="{{item.status==7}}">订单作废</view>
<view class="ljzf1" wx:if="{{item.status==7}}">订单作废</view>
</view>
</view>
...
...
packageA/logistics/logistics.wxss
View file @
48a96c72
...
@@ -119,7 +119,7 @@ text{
...
@@ -119,7 +119,7 @@ text{
}
}
.list-zi::before{
.list-zi::before{
position: absolute;
position: absolute;
left:
0
;
left:
4rpx
;
top: 0;
top: 0;
margin-top: 30rpx;
margin-top: 30rpx;
content: "";
content: "";
...
@@ -152,7 +152,7 @@ text{
...
@@ -152,7 +152,7 @@ text{
background: #D9D9D9;
background: #D9D9D9;
position: absolute;
position: absolute;
left: 0;
left: 0;
margin-left:
6
rpx;
margin-left:
10
rpx;
margin-top: 60rpx;
margin-top: 60rpx;
}
}
.steps .list:last-child::after{
.steps .list:last-child::after{
...
@@ -182,7 +182,7 @@ text{
...
@@ -182,7 +182,7 @@ text{
background: #D9D9D9;
background: #D9D9D9;
position: absolute;
position: absolute;
left: 0;
left: 0;
margin-left:
6
rpx;
margin-left:
10
rpx;
}
}
.list:first-child>.list-zi>.name{
.list:first-child>.list-zi>.name{
...
...
packageA/productOrderDetail/productOrderDetail.js
0 → 100644
View file @
48a96c72
// packageA/drugOrderDetail/drugOrderDetail.js
const
Service
=
require
(
'../../utils/service.js'
);
const
Util
=
require
(
'../../utils/util.js'
);
Page
({
/**
* 页面的初始数据
*/
data
:
{
list
:
[
"1"
],
index
:
0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
var
that
=
this
;
that
.
setData
({
id
:
options
.
id
,
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
let
that
=
this
;
let
param
=
{
id
:
that
.
data
.
id
}
/**药品订单详情 drogOrderDetail()*/
Service
.
productOrderDetail
(
param
).
then
((
res
)
=>
{
console
.
log
(
"res"
,
res
)
let
address
=
{
id
:
res
.
data
.
address
,
openid
:
wx
.
getStorageSync
(
'data'
).
openid
,
unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
detail_address
:
res
.
data
.
detail_address
,
name
:
res
.
data
.
name
,
phone
:
res
.
data
.
phone
,
province
:
res
.
data
.
province
,
take_over
:
res
.
data
.
take_over
,
area
:
res
.
data
.
area
,
city
:
res
.
data
.
city
,
}
if
(
res
.
code
==
1
){
that
.
setData
({
item
:
res
.
data
,
list
:
res
.
data
.
drug_arr
,
address
:
address
})
}
}).
catch
(
Error
=>
{
console
.
warn
(
'error:'
,
Error
);
// 获取会话资料失败的相关信息
});
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
},
/**复制 */
copy
(
e
)
{
let
copy
=
e
.
currentTarget
.
dataset
.
c
;
wx
.
setClipboardData
({
data
:
copy
,
success
:
function
(
res
)
{
wx
.
getClipboardData
({
success
:
function
(
res
)
{
wx
.
showToast
({
title
:
'复制成功'
,
})
}
})
}
})
},
//客服电话
dial
()
{
let
tel
=
"4001199218"
;
wx
.
makePhoneCall
({
phoneNumber
:
tel
,
})
},
/**打开常见问题 */
issue
(
e
){
let
that
=
this
;
let
index
=
e
.
currentTarget
.
dataset
.
index
;
if
(
index
==
that
.
data
.
index
){
index
=
0
;
}
that
.
setData
({
index
:
index
})
},
/**
*修改地址-待发货2
*/
editAddress
:
Util
.
debouce
(
function
(
e
)
{
Service
.
isEditAddress
({
ordernumber
:
e
.
currentTarget
.
dataset
.
ordernumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
wx
.
navigateTo
({
url
:
'/packageA/addsite/addsite?item='
+
JSON
.
stringify
(
e
.
currentTarget
.
dataset
.
address
)
+
'&ordernumber='
+
e
.
currentTarget
.
dataset
.
ordernumber
,
})
}
else
{
wx
.
showToast
({
title
:
res
.
msg
,
icon
:
'success'
,
mask
:
true
})
}
})
},
1000
,
true
),
/**
* 查看处方
* type 0 处方 1 用药建议
* @param {} e
*/
viewRecipe
(
e
)
{
let
item
=
e
.
currentTarget
.
dataset
.
item
;
wx
.
navigateTo
({
url
:
'/packageA/recipeDetails/recipeDetails?id='
+
item
.
id
+
'&type=0'
,
})
},
//查看物流-待收货+已完成
goLogistics
:
Util
.
debouce
(
function
(
e
)
{
wx
.
navigateTo
({
url
:
e
.
currentTarget
.
dataset
.
src
+
"?num="
+
e
.
currentTarget
.
dataset
.
num
+
'&tel='
+
e
.
currentTarget
.
dataset
.
tel
+
'&ordernumber='
+
e
.
currentTarget
.
dataset
.
ordernumber
+
'&img='
+
e
.
currentTarget
.
dataset
.
img
+
'&status='
+
e
.
currentTarget
.
dataset
.
status
+
'&com='
+
e
.
currentTarget
.
dataset
.
com
+
'&address='
+
JSON
.
stringify
(
e
.
currentTarget
.
dataset
.
address
),
})
},
1000
,
true
),
})
\ No newline at end of file
packageA/productOrderDetail/productOrderDetail.json
0 → 100644
View file @
48a96c72
{
"navigationBarTitleText"
:
"订单详情"
,
"usingComponents"
:
{
"answer"
:
"/components/answer/answer"
}
}
\ No newline at end of file
packageA/productOrderDetail/productOrderDetail.wxml
0 → 100644
View file @
48a96c72
<!--packageA/drugOrderDetail/drugOrderDetail.wxml-->
<answer id='answer'></answer>
<view class="top">
<view class="top-title">
<image src="/images/yifukuan.png"></image>
<view>已付款</view>
</view>
<view class="top-text">预计1-3天送达,偏远地区除外</view>
</view>
<view class="logistics" wx:if="{{item.status==2}}">
<view class="logistics-title">等待发货</view>
<view class="logistics-text">
<view class="addressInfo">
<view class="address-icon">
<text class="cuIcon-location"></text>
</view>
<view>
<view class=""><text class="address_name">{{item.name}}</text><text
class="address_call">{{item.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view>
</view>
</view>
<!-- <view>
<text class="cuIcon-right lg text-gray logistics-right"></text>
</view> -->
</view>
<view class="logistics" wx:if="{{item.status==3}}">
<view class="logistics-title">已发货</view>
<view class="logistics-text">
<view class="addressInfo">
<view class="address-icon">
<text class="cuIcon-location"></text>
</view>
<view>
<view class=""><text class="address_name">{{item.name}}</text><text
class="address_call">{{item.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view>
</view>
</view>
<!-- <view>
<text class="cuIcon-right lg text-gray logistics-right"></text>
</view> -->
</view>
<view class="logistics" wx:if="{{item.status==4}}">
<view class="logistics-title">已签收</view>
<view class="logistics-text">
<view class="addressInfo">
<view class="address-icon">
<text class="cuIcon-location"></text>
</view>
<view>
<view class=""><text class="address_name">{{item.name}}</text><text
class="address_call">{{item.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view>
</view>
</view>
<!-- <view>
<text class="cuIcon-right lg text-gray logistics-right"></text>
</view> -->
</view>
<view class="br"></view>
<block wx:for="{{list}}" wx:key="index">
<view class="list">
<view class="list-item">
<view class="image">
<image src="{{item.picture}}"></image>
</view>
<view class="item-name">
<view class="name">{{item.name}}</view>
<view class="firm">{{item.firm}}</view>
<view class="norms">{{item.norms}}</view>
<view class="pirce">
<text>¥</text>
<text>{{item.price}}</text>
</view>
</view>
<view class="number">x {{item.num}}</view>
</view>
</view>
</block>
<view class="br"></view>
<view class="order">
<view class="row order-price">
<view>订单价格:</view>
<view>¥ {{item.drug_money}}</view>
</view>
<!-- <view class="row order-price">
<view>服务诊金:</view>
<view>¥ {{item.zj}}</view>
</view>
<view class="row order-freight">
<view>运费:</view>
<view>¥ {{item.freight}}</view>
</view> -->
<view class="actualPay">共{{item.total}}件商品 实付款: <text style="color:#EC5B68;">¥{{item.money}}</text></view>
</view>
<view class="br"></view>
<view class="orderinfo">
<view class="ordertitle">订单详情</view>
<view class="row ordernumber">
<view>订单编号:<text style="color:#333;">{{item.ordernumber}}</text></view>
<view class="copy" bindtap="copy" data-c="{{item.ordernumber}}">复制订单</view>
</view>
<view>支付时间:{{item.create_time}}</view>
</view>
<view class="br"></view>
<!-- <view>
<view class="issue-top">常见问题</view>
<view class="issue-item">
<view class="issue-title row" bindtap="issue" data-index="1">1.关于发货时间以及物流配送<text
class="{{index==1?'cuIcon-fold':'cuIcon-unfold'}} lg text-gray"></text></view>
<view class="{{index==1?'issue-content':'hide'}}">
<view>①药品当天16点前支付药费,当天即可发货,下午19点后支付一般在第二天发货;</view>
<view>②快递采用顺丰配送, 1-3天即可到达。具体派送时间,请自行留意或联系派件员;</view>
<view>③您可以在“小懂健康”公众号【我的医生-药品订单】或 “小懂健康”小程序【我的-药品订单】查询物流信息;</view>
<view>④请确保预留的联系方式通话畅通,以免因派送失败耽误用药。</view>
<view>⑤由于库房存储原因,偶尔可能会拆单从不同库房发货,不增加您的运费。</view>
</view>
</view>
<view class="issue-item">
<view class="issue-title row" bindtap="issue" data-index="2">2.关于退换货<text
class="{{index==2?'cuIcon-fold':'cuIcon-unfold'}} lg text-gray"></text></view>
<view class="{{index==2?'issue-content':'hide'}}" wx:if="{{index=='2'}}">
<view>根据国家相关规定,药品属于特殊商品,一经售出(快递员揽收后),不得退换。请您仔细确认药品信息后再进行支付,如对药品有任何顾虑请您在药物配送前咨询客服或者处方医生。</view>
</view>
</view>
<view class="issue-item">
<view class="issue-title row" bindtap="issue" data-index="3">3.关于药品服用方法<text
class="{{index==3?'cuIcon-fold':'cuIcon-unfold'}} lg text-gray"></text></view>
<view class="{{index==3?'issue-content':'hide'}}" wx:if="{{index=='3'}}">
<view>支付药费后,可在“小懂健康”公众号【我的医生-我的处方】查询处方信息,遵医嘱服用。</view>
</view>
</view>
<view class="issue-item">
<view class="issue-title row" bindtap="issue" data-index="4">4.关于发票问题<text
class="{{index==4?'cuIcon-fold':'cuIcon-unfold'}} lg text-gray"></text></view>
<view class="{{index==4?'issue-content':'hide'}}">
<view>支付成功后,可在 “小懂健康”小程序【我的-开具发票】中,自行开具电子发票。</view>
</view>
</view>
<view class="issue-item">
<view class="issue-title row" bindtap="issue" data-index="5">5.关于下次如何快速找到医生<text
class="{{index==5?'cuIcon-fold':'cuIcon-unfold'}} lg text-gray"></text></view>
<view class="{{index==5?'issue-content':'hide'}}" wx:if="{{index=='5'}}">
<view>在您已经获得某个医生的服务后,为了方便下次能快速找到该医生,建议您关注“小懂健康”公众号, 在【我的医生】中联系医生。</view>
</view>
</view>
</view> -->
<view class="issue">
<view>有任何问题,与客服在线沟通,</view>
<view>如果回复不及时,可拨打</view>
<view>客服电话:<text style="color:#2684FF;" bindtap="dial">400-1199-218</text> 进行咨询。</view>
</view>
<view class="bottom row">
<!-- <view>查看医生推荐</view> -->
<view bindtap="viewRecipe" data-item="{{item}}">查看处方</view>
<view wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}"
data-address="{{address}}">修改地址</view>
<view bindtap="goLogistics" data-status="{{item.status}}" data-img="{{item.drug_arr[0].picture}}"
data-src="/packageA/logistics/logistics" data-num="{{item.express_order}}" data-com="{{item.com}}"
data-address="{{address}}" data-tel="{{item.phone}}" data-ordernumber="{{item.ordernumber}}">查看物流
</view>
</view>
\ No newline at end of file
packageA/productOrderDetail/productOrderDetail.wxss
0 → 100644
View file @
48a96c72
/* packageA/drugOrderDetail/drugOrderDetail.wxss */
@import '/components/icon.wxss';
page {
background: #fff;
padding-bottom: constant(safe-area-inset-bottom);
/*兼容 IOS<11.2*/
padding-bottom: env(safe-area-inset-bottom);
/*兼容 IOS>11.2*/
}
.top {
width: 750rpx;
height: 70rpx;
background: #626775;
color: #fff;
padding-top: 44rpx;
padding-bottom: 40rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.top-title {
margin-left: 30rpx;
height: 30rpx;
font-size: 28rpx;
font-weight: 700;
text-align: left;
display: flex;
flex-direction: row;
}
.top-title>image {
width: 28rpx;
height: 28rpx;
margin-right: 24rpx;
}
.top-title>view {
line-height: 26rpx;
}
.top-text {
margin-left: 83rpx;
height: 24rpx;
line-height: 24rpx;
font-size: 24rpx;
font-weight: 500;
text-align: left;
}
.logistics {
/* height: 76rpx; */
width: 690rpx;
padding: 32rpx 30rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* .logistics-left{
display: flex;
flex-direction: column;
justify-content: space-between;
} */
.logistics-right{
line-height: 76rpx;
}
.br {
width: 750rpx;
height: 20rpx;
background: #f5f8fb;
}
.logistics-title {
height: 36rpx;
font-size: 34rpx;
font-weight: 700;
text-align: left;
color: #212121;
line-height: 36rpx;
}
.logistics-text {
/* height: 25rpx; */
/* font-size: 26rpx; */
/* font-weight: 500; */
text-align: left;
color: #666666;
/* line-height: 26rpx; */
}
.addressInfo{
display: flex;
flex-direction: row;
background-color: #fff;
margin-top: 10rpx;
/* padding: 10rpx 30rpx 10rpx 30rpx; */
height: auto;
}
.address-icon{
line-height: 84rpx;
padding-right:20rpx;
}
.address_name,.address_call,.address_text{
line-height: 42rpx;
}
.address_call{
margin-left: 20rpx;
font-size: 28rpx;
}
.address_name{
font-size: 32rpx;
}
.address_text{
font-size: 25rpx;
color: #333333;
font-weight: 300;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.list {
padding: 0 30rpx;
}
.list-item {
display: flex;
width: 100%;
border-bottom: 2rpx solid #F5F8FB;
padding-bottom: 42rpx;
padding-top: 42rpx;
}
.list-item image {
width: 155rpx;
height: 155rpx;
}
.image {
padding: 2.5rpx;
border: 1rpx solid rgb(241, 241, 241);
}
.item-name {
display: flex;
flex-direction: column;
justify-content: space-between;
padding-left: 18rpx;
}
.name {
width: 455rpx;
font-size: 32rpx;
color: #333333;
font-weight: 600;
}
.firm {
font-size: 24rpx;
color: #666666;
}
.norms {
font-size: 24rpx;
color: #666666;
}
.pirce {
color: #EC5B68;
}
.pirce text:first-child {
font-size: 24rpx;
}
.pirce text:last-child {
font-size: 32rpx;
font-weight: 700;
}
.number {
display: flex;
margin-top: 5rpx;
font-size: 28rpx;
}
.order {
padding: 0 30rpx;
font-size: 28rpx;
font-weight: 500;
text-align: left;
color: #333333;
}
.row {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.actualPay {
border-top: 1rpx solid #e7e7e7;
padding: 30rpx 0 26rpx 0;
text-align: right;
font-size: 26rpx;
}
.order-price {
height: 28rpx;
line-height: 28rpx;
margin-top: 30rpx;
}
.order-freight {
height: 28rpx;
line-height: 28rpx;
margin-top: 20rpx;
margin-bottom: 30rpx;
}
.orderinfo {
padding: 40rpx 30rpx;
width: 690rpx;
font-size: 28rpx;
font-weight: 500;
text-align: left;
color: #666666;
}
.ordertitle {
height: 34rpx;
font-size: 34rpx;
line-height: 34rpx;
font-weight: 700;
text-align: left;
color: #212121;
margin-bottom: 34rpx;
}
.ordernumber {
height: 48rpx;
line-height: 48rpx;
font-size: 28rpx;
margin-bottom: 14rpx;
}
.copy {
width: 120rpx;
height: 48rpx;
font-size: 22rpx;
text-align: center;
border: 1rpx solid #cecece;
color: #999;
}
.issue-top {
padding: 35rpx 30rpx;
border-bottom: 1rpx solid #e7e7e7;
}
.issue-item {
margin: 0 30rpx;
border-bottom: 1rpx solid #e7e7e7;
}
.issue-item:last-child {
border: 0 !important;
}
.issue-title {
padding: 30rpx 0;
height: 40rpx;
font-size: 28rpx;
font-weight: 700;
text-align: left;
color: #999999;
}
.hide {
display: none;
}
.issue-content {
padding: 0 30rpx 58rpx 30rpx;
width: 630rpx;
height: auto;
font-size: 28rpx;
font-weight: 500;
color: #666666;
line-height: 50rpx;
letter-spacing: 1rpx;
}
.issue-content>view {
text-align: justify;
}
.issue {
padding-top: 40rpx;
height: 250rpx;
width: 750rpx;
background: #f5f8fb;
font-size: 28rpx;
font-weight: 700;
text-align: center;
color: #999999;
line-height: 42rpx;
letter-spacing: 2rpx;
}
.bottom {
height: 100rpx;
width: 750rpx;
justify-content:flex-end !important;
}
.bottom>view{
margin:auto 0;
padding: 15rpx;
height: 22rpx;
line-height: 22rpx;
border: 1px solid #999999;
margin-right: 30rpx;
font-size: 22rpx;
color:#212121;
}
.bottom>view:last-child{
background:#2684ff;
color: #fff;
border:1rpx solid #2684ff;
}
\ No newline at end of file
packageA/productOrderInfo/productOrderInfo.js
View file @
48a96c72
...
@@ -71,7 +71,7 @@ Page({
...
@@ -71,7 +71,7 @@ Page({
wx
.
setStorageSync
(
'data'
,
res
)
wx
.
setStorageSync
(
'data'
,
res
)
if
(
that
.
data
.
options
.
isQuick
==
0
)
{
if
(
that
.
data
.
options
.
isQuick
==
0
)
{
// 正常开药
// 正常开药
that
.
get
Prescribe
(
that
.
data
.
options
.
scene
,
res
.
unionid
)
that
.
get
Normal
(
that
.
data
.
options
.
scene
,
res
.
unionid
)
}
else
{
}
else
{
that
.
getQuick
(
that
.
data
.
options
.
scene
,
res
.
unionid
)
that
.
getQuick
(
that
.
data
.
options
.
scene
,
res
.
unionid
)
}
}
...
@@ -82,14 +82,14 @@ Page({
...
@@ -82,14 +82,14 @@ Page({
}
else
{
}
else
{
if
(
that
.
data
.
options
.
isQuick
==
0
)
{
if
(
that
.
data
.
options
.
isQuick
==
0
)
{
// 正常开药
// 正常开药
that
.
get
Prescribe
(
that
.
data
.
options
.
scene
,
wx
.
getStorageSync
(
'data'
).
unionid
)
that
.
get
Normal
(
that
.
data
.
options
.
scene
,
wx
.
getStorageSync
(
'data'
).
unionid
)
}
else
{
}
else
{
that
.
getQuick
(
that
.
data
.
options
.
scene
,
wx
.
getStorageSync
(
'data'
).
unionid
)
that
.
getQuick
(
that
.
data
.
options
.
scene
,
wx
.
getStorageSync
(
'data'
).
unionid
)
}
}
}
}
},
},
//
处方笺
//
正常下单
get
Prescribe
:
function
(
id
,
patient_unionid
)
{
get
Normal
:
function
(
id
,
patient_unionid
)
{
let
that
=
this
let
that
=
this
if
(
that
.
data
.
paySuccess
)
{
if
(
that
.
data
.
paySuccess
)
{
return
;
return
;
...
@@ -97,7 +97,8 @@ Page({
...
@@ -97,7 +97,8 @@ Page({
let
data
=
{};
let
data
=
{};
data
.
prescription
=
id
;
data
.
prescription
=
id
;
data
.
patient_unionid
=
patient_unionid
;
data
.
patient_unionid
=
patient_unionid
;
Service
.
getRecipeDetails
(
data
).
then
((
res
)
=>
{
console
.
log
(
"getNormal"
,
data
)
Service
.
getNormalProduct
(
data
).
then
((
res
)
=>
{
console
.
log
(
"getDetail"
,
res
);
console
.
log
(
"getDetail"
,
res
);
if
(
res
.
code
==
2
||
res
.
code
==
3
)
{
if
(
res
.
code
==
2
||
res
.
code
==
3
)
{
wx
.
showModal
({
wx
.
showModal
({
...
@@ -138,7 +139,7 @@ Page({
...
@@ -138,7 +139,7 @@ Page({
let
data
=
{};
let
data
=
{};
data
.
prescription
=
quickid
;
data
.
prescription
=
quickid
;
data
.
patient_unionid
=
patient_unionid
;
data
.
patient_unionid
=
patient_unionid
;
Service
.
getQuick
(
data
).
then
((
res
)
=>
{
Service
.
getQuick
Product
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
2
||
res
.
code
==
3
)
{
if
(
res
.
code
==
2
||
res
.
code
==
3
)
{
wx
.
showModal
({
wx
.
showModal
({
content
:
res
.
msg
,
content
:
res
.
msg
,
...
@@ -341,31 +342,34 @@ Page({
...
@@ -341,31 +342,34 @@ Page({
title
:
'正在拉起支付'
,
title
:
'正在拉起支付'
,
mask
:
true
mask
:
true
})
})
that
.
pr
escription
Pay
();
that
.
pr
oduct
Pay
();
}
}
},
1000
,
true
),
},
1000
,
true
),
pr
escription
Pay
:
function
()
{
pr
oduct
Pay
:
function
()
{
let
that
=
this
;
let
that
=
this
;
let
hstr
=
new
Array
();
/**
let
healthcare
=
that
.
data
.
list
.
healthcare
;
* @todo 医生推荐 废弃
for
(
let
i
=
0
;
i
<
healthcare
.
length
;
i
++
)
{
*/
if
(
healthcare
[
i
].
checked
)
{
// let hstr = new Array();
hstr
.
push
(
healthcare
[
i
].
id
);
// let healthcare = that.data.list.healthcare;
}
// for (let i = 0; i < healthcare.length; i++) {
}
// if (healthcare[i].checked) {
// hstr.push(healthcare[i].id);
// }
// }
let
data
=
{
let
data
=
{
payid
:
that
.
data
.
list
.
payid
,
id
:
that
.
data
.
options
.
scene
,
patient_unionid
:
that
.
data
.
item
.
unionid
,
patient_unionid
:
that
.
data
.
item
.
unionid
,
modular
:
that
.
data
.
list
.
modular
,
modular
:
that
.
data
.
list
.
modular
,
lastid
:
that
.
data
.
item
.
id
,
lastid
:
that
.
data
.
item
.
id
,
address
:
that
.
data
.
receiveAddress
.
id
,
address
:
that
.
data
.
receiveAddress
.
id
,
isywlx
:
that
.
data
.
list
.
isywlx
,
//
isywlx: that.data.list.isywlx,
money
:
that
.
data
.
list
.
money
,
//
money: that.data.list.money,
hstr
:
hstr
.
toString
(),
//
hstr: hstr.toString(),
isgd
:
1
,
//
isgd: 1,
// rise_need:that.data.isInvoice
// rise_need:that.data.isInvoice
}
}
Service
.
pr
escription
Pay
(
data
).
then
((
res
)
=>
{
Service
.
pr
oduct
Pay
(
data
).
then
((
res
)
=>
{
console
.
log
(
'res1'
,
res
);
console
.
log
(
'res1'
,
res
);
switch
(
res
.
code
)
{
switch
(
res
.
code
)
{
case
1
:
case
1
:
...
...
packageA/productOrderInfo/productOrderInfo.wxml
View file @
48a96c72
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
<image class="more" src="/images/more.png"></image>
<image class="more" src="/images/more.png"></image>
</view>
</view>
</view>
</view>
<view class="line" wx:if='{{list.
prescription
.length>0}}'>
<view class="line" wx:if='{{list.
healthcare
.length>0}}'>
<text>推荐产品</text>
<text>推荐产品</text>
</view>
</view>
<block wx:for="{{list.
prescription
}}" wx:key="index">
<block wx:for="{{list.
healthcare
}}" wx:key="index">
<view class="list">
<view class="list">
<view class="list-item">
<view class="list-item">
<view class="image">
<view class="image">
...
@@ -55,10 +55,10 @@
...
@@ -55,10 +55,10 @@
</view>
</view>
</view>
</view>
</block>
</block>
<view wx:if='{{list.healthcare.length>0}}' class="line">
<
!-- <
view wx:if='{{list.healthcare.length>0}}' class="line">
<text>医生推荐</text>
<text>医生推荐</text>
</view>
</view>
-->
<block wx:for="{{list.healthcare}}" wx:key="index" wx:for-index="index">
<
!-- <
block wx:for="{{list.healthcare}}" wx:key="index" wx:for-index="index">
<view class="list">
<view class="list">
<checkbox data-index="{{index}}" checked="{{item.checked}}" bindtap="updataRadio" color='#1384ff' />
<checkbox data-index="{{index}}" checked="{{item.checked}}" bindtap="updataRadio" color='#1384ff' />
<view class="list-item1">
<view class="list-item1">
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<view class="number">x {{item.num}}</view>
<view class="number">x {{item.num}}</view>
</view>
</view>
</view>
</view>
</block>
</block>
-->
<!-- 订单编号 -->
<!-- 订单编号 -->
<view class="order-list">
<view class="order-list">
<!-- <view class="order-num">
<!-- <view class="order-num">
...
@@ -88,11 +88,11 @@
...
@@ -88,11 +88,11 @@
<text>商品价格</text>
<text>商品价格</text>
<view>
<view>
<text style="color:#EC5B68; font-size: 28rpx;">¥ </text>
<text style="color:#EC5B68; font-size: 28rpx;">¥ </text>
<text style="color:#EC5B68;font-weight: 700;font-size: 28rpx;">{{list.
drug_
money}}</text>
<text style="color:#EC5B68;font-weight: 700;font-size: 28rpx;">{{list.money}}</text>
</view>
</view>
</view>
</view>
<view class="order-num">
<
!-- <
view class="order-num">
<text>服务诊金</text>
<text>服务诊金</text>
<view>
<view>
<text style="color:#999999;font-size: 28rpx;">¥ </text>
<text style="color:#999999;font-size: 28rpx;">¥ </text>
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<text style=" color:#999999; font-size: 28rpx;">¥ </text>
<text style=" color:#999999; font-size: 28rpx;">¥ </text>
<text class="fonw-400" style="font-size: 28rpx;">{{list.freight}}</text>
<text class="fonw-400" style="font-size: 28rpx;">{{list.freight}}</text>
</view>
</view>
</view>
</view>
-->
<!-- <view class="order-num">
<!-- <view class="order-num">
<text>纸质发票</text>
<text>纸质发票</text>
<radio-group class="radio-group" bindchange="radioChange">
<radio-group class="radio-group" bindchange="radioChange">
...
...
packageA/selectUser/selectUser.js
View file @
48a96c72
...
@@ -14,9 +14,9 @@ Page({
...
@@ -14,9 +14,9 @@ Page({
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
* @param {
options.type}
进入途径1:购买服务,2:购买药物()身份证必填,3:医生列表
* @param {
*} options.type
进入途径1:购买服务,2:购买药物()身份证必填,3:医生列表
* @param {
options.iShow}
type=2||3 有选中id
* @param {
*} options.iShow
type=2||3 有选中id
* @param {
options.item}
type=2||3 有选中对象
* @param {
*} options.item
type=2||3 有选中对象
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
"options"
,
options
)
console
.
log
(
"options"
,
options
)
...
...
pages/my/my.js
View file @
48a96c72
...
@@ -7,7 +7,7 @@ Page({
...
@@ -7,7 +7,7 @@ Page({
reportRedD
:
false
,
//报告红点展示
reportRedD
:
false
,
//报告红点展示
reportRedNum
:
0
,
//未作报告数量
reportRedNum
:
0
,
//未作报告数量
disabled
:
true
,
//防止重复点击
disabled
:
true
,
//防止重复点击
version
:
'3.
1.6
'
,
version
:
'3.
2.0
'
,
isShow
:
false
,
isShow
:
false
,
showClose
:
true
,
showClose
:
true
,
},
},
...
...
pages/my/my.wxml
View file @
48a96c72
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<image src='../../images/l@2x.png'></image>
<image src='../../images/l@2x.png'></image>
</view>
</view>
<view class='item' bindtap="goToURL" data-src="/packageA/drugOrder/drugOrder">
<view class='item' bindtap="goToURL" data-src="/packageA/drugOrder/drugOrder">
<text>
药品订单
</text>
<text>
订单列表
</text>
<image src='../../images/l@2x.png'></image>
<image src='../../images/l@2x.png'></image>
</view>
</view>
<view class='item' bindtap="goToURL" data-src="/packageA/patientList/patientList">
<view class='item' bindtap="goToURL" data-src="/packageA/patientList/patientList">
...
...
project.private.config.json
0 → 100644
View file @
48a96c72
{
"setting"
:
{},
"condition"
:
{
"plugin"
:
{
"list"
:
[]
},
"game"
:
{
"list"
:
[]
},
"gamePlugin"
:
{
"list"
:
[]
},
"miniprogram"
:
{
"list"
:
[
{
"id"
:
0
,
"name"
:
"pages/my/my"
,
"pathName"
:
"pages/my/my"
,
"query"
:
""
,
"scene"
:
1011
},
{
"name"
:
"packageA/myDoctor/myDoctor"
,
"pathName"
:
"packageA/myDoctor/myDoctor"
,
"query"
:
"type=1&id=oHhp80UTfudZVXcj4H2YOiFr8Jx8"
,
"scene"
:
null
},
{
"name"
:
"pages/info/info"
,
"pathName"
:
"pages/info/info"
,
"query"
:
"scene=32809"
,
"scene"
:
null
},
{
"id"
:
3
,
"name"
:
"packageA/drugOrderInfo/drugOrderInfo"
,
"pathName"
:
"packageA/drugOrderInfo/drugOrderInfo"
,
"query"
:
"scene=3"
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/chatNews/chatNews"
,
"pathName"
:
"pages/chatNews/chatNews"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"packageA/drugOrderDetail/drugOrderDetail"
,
"pathName"
:
"packageA/drugOrderDetail/drugOrderDetail"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
6
,
"name"
:
"packageA/chat/chat"
,
"pathName"
:
"packageA/chat/chat"
,
"query"
:
"groupID=@TGS#273CANVGX&orderId=532&t_unionid=oHhp80UTfudZVXcj4H2YOiFr8Jx8"
,
"scene"
:
null
},
{
"name"
:
"packageB/invoice/invoice"
,
"pathName"
:
"packageB/invoice/invoice"
,
"query"
:
""
,
"scene"
:
null
},
{
"name"
:
"pages/prescription/order/order"
,
"pathName"
:
"pages/prescription/order/order"
,
"query"
:
"scene=1322"
,
"scene"
:
null
},
{
"name"
:
"物流模板信息"
,
"pathName"
:
"packageA/logistics/logistics"
,
"query"
:
"id=978&num=SF1334982552976&tel=17801017172&ordernumber=20210106215421&img=https://www.xiaodongai.com/xiaodongai/ceshi/Uploads/Drug/2020-04-11/5e916ffe83129.jpg&status=3&address={
\"
id
\"
:7343,
\"
openid
\"
:
\"
oYQX40BtoLUP4sbDt8iKxO-CcQ74
\"
,
\"
unionid
\"
:
\"
oHhp80YULOSNxEltQNTTkRqjzNrI
\"
,
\"
name
\"
:
\"
小孔5
\"
,
\"
phone
\"
:
\"
17801017172
\"
,
\"
take_over
\"
:
\"
北京市北京市通州区
\"
,
\"
detail_address
\"
:
\"
北京市北京市通州区小懂科技
\"
,
\"
create_time
\"
:
\"
1610531672
\"
,
\"
update_time
\"
:null,
\"
status
\"
:0,
\"
is_default
\"
:0,
\"
province
\"
:
\"
北京市
\"
,
\"
city
\"
:
\"
北京市
\"
,
\"
area
\"
:
\"
通州区
\"
}&com="
,
"scene"
:
1014
},
{
"name"
:
"packageA/productOrderInfo/productOrderInfo"
,
"pathName"
:
"packageA/productOrderInfo/productOrderInfo"
,
"query"
:
"scene=15109"
,
"scene"
:
null
},
{
"name"
:
"packageA/productOrderDetail/productOrderDetail"
,
"pathName"
:
"packageA/productOrderDetail/productOrderDetail"
,
"query"
:
"id=111111111114478"
,
"scene"
:
null
}
]
}
}
}
\ No newline at end of file
utils/config.js
View file @
48a96c72
'use strict'
;
'use strict'
;
const
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
= 'https://www.xiaodongai.com/xiaodongai/xinli_ceshi_copy';
const
HOST_xinli_lb
=
'https://static.xiaodongai.com/'
;
const
HOST_xinli_lb
=
'https://static.xiaodongai.com/'
;
const
HOST_P
=
"https://static.xiaodongai.com/xiaodongai/"
;
const
HOST_P
=
"https://static.xiaodongai.com/xiaodongai/"
;
const
HOST_P_K
=
"https://static.xiaodongai.com/xiaodongai/kongtian/"
;
const
HOST_P_K
=
"https://static.xiaodongai.com/xiaodongai/kongtian/"
;
// const HOST= "https://test-wechat.xiaodongai.com/";
// const HOST = "https://test-wechat.xiaodongai.com/";
const
HOST
=
'https://www.xiaodongai.com/xiaodongai/kongtian/'
;
const
HOST
=
'https://www.xiaodongai.com/xiaodongai/kongtian/'
;
// var HOST = 'https://www.xiaodongai.com/xiaodongai/ceshi/';//测试库
// const HOST = 'https://www.xiaodongai.com/xiaodongai/ceshi/'; //测试库
// var HOST = 'http://192.168.0.123:8081/xiaodongai/ceshi/';//本地
// var HOST = 'http://192.168.0.123:8081/xiaodongai/ceshi/'; //本地
// var HOST = 'http://localhost/xiaodongai/kongtian/';//本地
// var HOST = 'http://localhost/xiaodongai/kongtian/'; //本地
const
patient
=
"http://test.patient.xiaodongai.com/"
//测试新地址
const
HOST_info
=
'https://vivshi.com/xiaodongai/kongtian/'
;
// 弃用
const
HOST_info
=
'https://vivshi.com/xiaodongai/kongtian/'
;
// 弃用
const
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/";
//互联网医院正式
// var HOST_yiyuan
= "https://www.xiaodongai.com/xiaodong_yiyuan/xd_admin/public/index.php/api/";
//互联网医院正式
const
url
=
{
const
url
=
{
getUserSig
:
HOST
+
'wechatIm.php?s=/Im/wechat_get_sign'
,
//获取usersig以及userID
/**
getOpenId
:
HOST
+
'applet.php?s=Applet/getopenid'
,
///获取openid
* begin
getUserData
:
HOST
+
'wechatIteration.php?s=/Home/index'
,
///获取用户数据
* 推荐产品
addUserInfo
:
HOST
+
'applet.php?s=/Applet/new_user_add'
,
//添加用户
*/
seeOpenId
:
HOST
+
"wechatIteration.php?s=/Inquisition/get_openid"
,
//查询openid
getNormalProduct
:
patient
+
"wechatIteration/Zcprescription/zckyxqs"
,
//正常购买产品
getRoomUserSig
:
HOST
+
"wechatIteration.php?s=/Inquisition/get_room"
,
//获取room的userSig
getQuickProduct
:
patient
+
"wechatIteration/Prescription/kskyxqs"
,
//快速购买产品,扫二维码购买
productPay
:
patient
+
"wechatIteration/Place_order/place_order"
,
//推荐产品支付
buyProductList
:
patient
+
"wechatIteration/order_list/apiOrder"
,
//推荐产品列表
getPayStatusB
:
patient
+
"wechatIteration/is_purchase/purchase"
,
//获取产品支付状态
productOrderDetail
:
patient
+
"Drugorder/prescription_order_detail"
,
//获取产品订单详情
/**
* end
*/
getUserSig
:
HOST
+
'wechatIm.php?s=/Im/wechat_get_sign'
,
//获取usersig以及userID
getOpenId
:
HOST
+
'applet.php?s=Applet/getopenid'
,
///获取openid
getUserData
:
HOST
+
'wechatIteration.php?s=/Home/index'
,
///获取用户数据
addUserInfo
:
HOST
+
'applet.php?s=/Applet/new_user_add'
,
//添加用户
seeOpenId
:
HOST
+
"wechatIteration.php?s=/Inquisition/get_openid"
,
//查询openid
getRoomUserSig
:
HOST
+
"wechatIteration.php?s=/Inquisition/get_room"
,
//获取room的userSig
/**IM用户关系 */
/**IM用户关系 */
addFriend
:
HOST
+
"wechatIteration.php?s=/Im/add_firends"
,
//添加好友
addFriend
:
HOST
+
"wechatIteration.php?s=/Im/add_firends"
,
//添加好友
delFriend
:
HOST
+
"wechatIteration.php?s=/Personal/delDoctor"
,
//删除好友
delFriend
:
HOST
+
"wechatIteration.php?s=/Personal/delDoctor"
,
//删除好友
appAddFriend
:
HOST
+
"wechatIteration.php?s=/Im/gauge_unionid"
,
//app.js添加好友
appAddFriend
:
HOST
+
"wechatIteration.php?s=/Im/gauge_unionid"
,
//app.js添加好友
/**end */
/**end */
/**chat页面接口 */
/**chat页面接口 */
getFriendList
:
HOST
+
"wechatIteration.php?s=/Personal/myDoctor"
,
//获取医生列表
getFriendList
:
HOST
+
"wechatIteration.php?s=/Personal/myDoctor"
,
//获取医生列表
getFreeChat
:
HOST
+
"wechatIteration.php?s=/InquiryUser/judge_free"
,
//获取免费咨询次数
getFreeChat
:
HOST
+
"wechatIteration.php?s=/InquiryUser/judge_free"
,
//获取免费咨询次数
setFreeSend
:
HOST
+
"wechatIteration.php?s=/InquiryUser/drug_free_send"
,
//修改免费咨询次数
setFreeSend
:
HOST
+
"wechatIteration.php?s=/InquiryUser/drug_free_send"
,
//修改免费咨询次数
getSendReports
:
HOST
+
"wechatIteration.php?s=/Inquisition/send_test_result"
,
//获取发送报告列表
getSendReports
:
HOST
+
"wechatIteration.php?s=/Inquisition/send_test_result"
,
//获取发送报告列表
get_online
:
HOST
+
"wechatIteration.php?s=/Inquisition/get_online"
,
//获取在线状态
get_online
:
HOST
+
"wechatIteration.php?s=/Inquisition/get_online"
,
//获取在线状态
acceptFollowUp
:
HOST
+
"wechatIteration.php?s=/Inquisition/jieshou"
,
//接受预约
acceptFollowUp
:
HOST
+
"wechatIteration.php?s=/Inquisition/jieshou"
,
//接受预约
getPayStatus
:
HOST
+
"wechatIteration.php?s=/Prescription/drug_order_list_payresult"
,
//获取药方支付状态
getPayStatus
A
:
HOST
+
"wechatIteration.php?s=/Prescription/drug_order_list_payresult"
,
//获取药方支付状态
getChatMsgLog
:
HOST
+
"wechatIteration.php?s=/Im/chat_message_logging"
,
//获取历史记录
getChatMsgLog
:
HOST
+
"wechatIteration.php?s=/Im/chat_message_logging"
,
//获取历史记录
getIsAnswer
:
HOST
+
"wechatIteration.php?s=home/testing_gauge"
,
//获取当前量表是否已答
getIsAnswer
:
HOST
+
"wechatIteration.php?s=home/testing_gauge"
,
//获取当前量表是否已答
/**end */
/**end */
/**服务设置 begin*/
/**服务设置 begin*/
myServerList
:
HOST
+
"wechatIteration.php?s=/InquiryUser/inquiryImList"
,
//我的服务记录
myServerList
:
HOST
+
"wechatIteration.php?s=/InquiryUser/inquiryImList"
,
//我的服务记录
getDoctorDetail
:
HOST
+
"wechatIteration.php?s=/WechatDoctor/doctorDetail"
,
//医生服务详情
getDoctorDetail
:
HOST
+
"wechatIteration.php?s=/WechatDoctor/doctorDetail"
,
//医生服务详情
getDoctorInfo
:
HOST
+
'wechatIteration.php?s=/WechatDoctor/doctor'
,
//医生信息
getDoctorInfo
:
HOST
+
'wechatIteration.php?s=/WechatDoctor/doctor'
,
//医生信息
payRecord
:
HOST
+
"wechatIteration.php?s=/Home/PayRecord"
,
//支付生成订单
payRecord
:
HOST
+
"wechatIteration.php?s=/Home/PayRecord"
,
//支付生成订单
GZPayRecord
:
HOST
+
"wechatIteration.php?s=/Home/guangzhou_pay_record"
,
//广州互联网支付下单
GZPayRecord
:
HOST
+
"wechatIteration.php?s=/Home/guangzhou_pay_record"
,
//广州互联网支付下单
servicePay
:
HOST
+
"wechatIteration.php?s=/WechatDoctor/servicePay"
,
//插入支付记录
servicePay
:
HOST
+
"wechatIteration.php?s=/WechatDoctor/servicePay"
,
//插入支付记录
isInquiry
:
HOST
+
"wechatIteration.php?s=/WechatDoctor/conductService"
,
//判断是否有正在进行中或者未接诊的在线问诊服务
isInquiry
:
HOST
+
"wechatIteration.php?s=/WechatDoctor/conductService"
,
//判断是否有正在进行中或者未接诊的在线问诊服务
switchService
:
HOST
+
"wechatIteration.php?s=/InquiryUser/switchInquiry"
,
//切换服务
switchService
:
HOST
+
"wechatIteration.php?s=/InquiryUser/switchInquiry"
,
//切换服务
serviceDetail
:
HOST
+
"wechatIteration.php?s=/Inquisition/inquiry_detail"
,
//服务详情
serviceDetail
:
HOST
+
"wechatIteration.php?s=/Inquisition/inquiry_detail"
,
//服务详情
endInquiry
:
HOST
+
"wechatIteration.php?s=/InquiryUser/endInquiry"
,
//同意结束服务
endInquiry
:
HOST
+
"wechatIteration.php?s=/InquiryUser/endInquiry"
,
//同意结束服务
refuseInquiry
:
HOST
+
"wechatIteration.php?s=/InquiryUser/refuseInquiry"
,
//拒绝提前结束
refuseInquiry
:
HOST
+
"wechatIteration.php?s=/InquiryUser/refuseInquiry"
,
//拒绝提前结束
seeBuyStaus
:
HOST
+
"wechatIteration.php?s=/InquiryUser/seeStatus"
,
//用户购买服务状态
seeBuyStaus
:
HOST
+
"wechatIteration.php?s=/InquiryUser/seeStatus"
,
//用户购买服务状态
/**end */
/**end */
/**药方详情 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"
,
//判断是否可修改地址
addressList
:
HOST
+
"wechatIteration.php?s=/Prescription/listAddress"
,
//地址列表
// addressList: HOSTTEST + "wechatIteration.php?s=/Prescription/listAddress", //地址列表
defaultAddress
:
HOST
+
"wechatIteration.php?s=/Prescription/addressDefault"
,
//默认地址
addressList
:
HOST
+
"wechatIteration.php?s=/Prescription/listAddress"
,
//地址列表
getDrugList
:
HOST
+
"wechatIteration.php?s=/Prescription/openDrug"
,
//处方列表
defaultAddress
:
HOST
+
"wechatIteration.php?s=/Prescription/addressDefault"
,
//默认地址
getDrugDetail
:
HOST
+
"wechatIteration.php?s=/Prescription/myDrugDetail"
,
//处方详情
getDrugList
:
HOST
+
"wechatIteration.php?s=/Prescription/openDrug"
,
//处方列表
confirmReceipt
:
HOST
+
"wechatIteration.php?s=/Drugorder/confirmReceipt"
,
//确认收货
getDrugDetail
:
HOST
+
"wechatIteration.php?s=/Prescription/myDrugDetail"
,
//处方详情
delBuyDrug
:
HOST
+
"wechatIteration.php?s=/Drugorder/drugOrderDel"
,
//删除购药记录
confirmReceipt
:
HOST
+
"wechatIteration.php?s=/Drugorder/confirmReceipt"
,
//确认收货
getRecipeDetails
:
HOST
+
"wechatIteration.php?s=/Prescription/zckyxqs"
,
//正常开药
delBuyDrug
:
HOST
+
"wechatIteration.php?s=/Drugorder/drugOrderDel"
,
//删除购药记录
getQuick
:
HOST
+
"wechatIteration.php?s=/Prescription/kskyxqs"
,
//快速开药
getRecipeDetails
:
HOST
+
"wechatIteration.php?s=/Prescription/zckyxqs"
,
//正常开药
getQuick
:
HOST
+
"wechatIteration.php?s=/Prescription/kskyxqs"
,
//快速开药
paySucceedCallback
:
HOST
+
"wechatIteration.php?s=/Prescription/query_order_status"
,
//支付成功回调
paySucceedCallback
:
HOST
+
"wechatIteration.php?s=/Prescription/query_order_status"
,
//支付成功回调
logisticsInfo
:
HOST
+
"wechatIteration.php?s=/Express/sfRouteService"
,
//物流信息
logisticsInfo
:
HOST
+
"wechatIteration.php?s=/Express/sfRouteService"
,
//物流信息
drogOrderDetail
:
HOST
+
"wechatIteration.php?s=/Drugorder/prescription_order_detail"
,
//药品订单详情
drogOrderDetail
:
HOST
+
"wechatIteration.php?s=/Drugorder/prescription_order_detail"
,
//药品订单详情
/**end */
/**end */
/**公共 begin*/
/**公共 begin*/
isReport
:
HOST
+
"wechatIteration.php?s=/Inquisition/check_istype"
,
//检测是否允许查看报告
isReport
:
HOST
+
"wechatIteration.php?s=/Inquisition/check_istype"
,
//检测是否允许查看报告
forcedUpdate
:
HOST
+
'wechatIteration.php?s=/Public/wechatVer'
,
//强制更新
forcedUpdate
:
HOST
+
'wechatIteration.php?s=/Public/wechatVer'
,
//强制更新
getWxUserPhone
:
HOST
+
"wechatIteration.php?s=/InquiryUser/getUserPhone"
,
//微信授权获取用户手机号
getWxUserPhone
:
HOST
+
"wechatIteration.php?s=/InquiryUser/getUserPhone"
,
//微信授权获取用户手机号
getCode
:
HOST
+
"wechatIteration.php?s=/Home/getCode"
,
//获取验证码
getCode
:
HOST
+
"wechatIteration.php?s=/Home/getCode"
,
//获取验证码
checkCard
:
HOST_yiyuan
+
'Idcard/checkCard'
,
//验证身份证与姓名
checkCard
:
HOST_yiyuan
+
'Idcard/checkCard'
,
//验证身份证与姓名
/**end */
/**end */
/**量表 */
/**量表 */
loadScene
:
HOST
+
"wechatIteration.php?s=/Measure/is_price"
,
//判断量表二维码场景
loadScene
:
HOST
+
"wechatIteration.php?s=/Measure/is_price"
,
//判断量表二维码场景
loadIMScene
:
HOST
+
"wechatIteration.php?s=/Measure/is_price_to"
,
//判断IM量表支付场景
loadIMScene
:
HOST
+
"wechatIteration.php?s=/Measure/is_price_to"
,
//判断IM量表支付场景
getTestInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/findInquiry"
,
//获取检测信息
getTestInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/findInquiry"
,
//获取检测信息
/**end */
/**end */
/**用户购买问诊信息 begin*/
/**用户购买问诊信息 begin*/
addUserBuyInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/addUser"
,
//添加用户购买信息
addUserBuyInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/addUser"
,
//添加用户购买信息
editUserBuyInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/editUser"
,
//修改用户购买信息
editUserBuyInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/editUser"
,
//修改用户购买信息
delUserbuyInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/delUser"
,
//删除用户购买信息
delUserbuyInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/delUser"
,
//删除用户购买信息
userBuyInfoList
:
HOST
+
"wechatIteration.php?s=/InquiryUser/listUser"
,
//用户购买信息列表
userBuyInfoList
:
HOST
+
"wechatIteration.php?s=/InquiryUser/listUser"
,
//用户购买信息列表
lastUserBuyInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/lastUser"
,
//上次用户购买信息
lastUserBuyInfo
:
HOST
+
"wechatIteration.php?s=/InquiryUser/lastUser"
,
//上次用户购买信息
sendCard
:
HOST
+
"wechatIteration.php?s=/InquiryUser/sendCard"
,
//保存发送给医生的用户信息
sendCard
:
HOST
+
"wechatIteration.php?s=/InquiryUser/sendCard"
,
//保存发送给医生的用户信息
servicePayEdit
:
HOST
+
"wechatIteration.php?s=/WechatDoctor/servicePayEdit"
,
//支付信息请求
servicePayEdit
:
HOST
+
"wechatIteration.php?s=/WechatDoctor/servicePayEdit"
,
//支付信息请求
/**end */
/**end */
/**tab我的 begin*/
/**tab我的 begin*/
profileDetails
:
HOST
+
"wechatIteration.php?s=/Inquisition/detail"
,
//问诊详情
profileDetails
:
HOST
+
"wechatIteration.php?s=/Inquisition/detail"
,
//问诊详情
buyDrugList
:
HOST
+
"wechatIteration.php?s=/Drugorder/drug_orders"
,
//药品订单列表
buyDrugList
:
HOST
+
"wechatIteration.php?s=/Drugorder/drug_orders"
,
//药品订单列表
delBuyDrug
:
HOST
+
"wechatIteration.php?s=/Drugorder/drugOrderDel"
,
//删除购药记录
delBuyDrug
:
HOST
+
"wechatIteration.php?s=/Drugorder/drugOrderDel"
,
//删除购药记录
getInvoiceList
:
HOST
+
"wechatIteration.php?s=/Receipt/invoiceList"
,
//发票列表
getInvoiceList
:
HOST
+
"wechatIteration.php?s=/Receipt/invoiceList"
,
//发票列表
saveInvoiceInfo
:
HOST
+
"wechatIteration.php?s=/Receipt/riseSave"
,
//保存开票信息
saveInvoiceInfo
:
HOST
+
"wechatIteration.php?s=/Receipt/riseSave"
,
//保存开票信息
getInvoiceStatus
:
HOST
+
"wechatIteration.php?s=/invoice/setStatus"
,
//发票状态
getInvoiceStatus
:
HOST
+
"wechatIteration.php?s=/invoice/setStatus"
,
//发票状态
getInvoiceDetail
:
HOST
+
"wechatIteration.php?s=/invoice/invoice_res"
,
//发票详情
getInvoiceDetail
:
HOST
+
"wechatIteration.php?s=/invoice/invoice_res"
,
//发票详情
getInvoiceInfo
:
HOST
+
"wechatIteration.php?s=/Receipt/riseDetail"
,
//发票信息
getInvoiceInfo
:
HOST
+
"wechatIteration.php?s=/Receipt/riseDetail"
,
//发票信息
editAgainEmail
:
HOST
+
"wechatIteration.php?s=/invoice/again_email"
,
//修改发票邮箱
editAgainEmail
:
HOST
+
"wechatIteration.php?s=/invoice/again_email"
,
//修改发票邮箱
getTaxpayers
:
HOST
+
"wechatIteration.php?s=/XdInvoice/searchSbh"
,
//自动获取纳税人识别号
getTaxpayers
:
HOST
+
"wechatIteration.php?s=/XdInvoice/searchSbh"
,
//自动获取纳税人识别号
sendEmail
:
HOST
+
"wechatIteration.php?s=/Receipt/receiptOpen"
,
//确认开票
sendEmail
:
HOST
+
"wechatIteration.php?s=/Receipt/receiptOpen"
,
//确认开票
seeInvoice
:
HOST
+
"wechatIteration.php?s=/invoice/chakan_invoice"
,
//查看发票
seeInvoice
:
HOST
+
"wechatIteration.php?s=/invoice/chakan_invoice"
,
//查看发票
contactDoctor
:
HOST
+
"wechatIteration.php?s=/Personal/personal_home"
,
//联系医生
contactDoctor
:
HOST
+
"wechatIteration.php?s=/Personal/personal_home"
,
//联系医生
firendAfterRoom
:
HOST
+
"wechatIteration.php?s=/Im/firend_after_room"
,
//成功加好友之后选择身份信息进入群聊房间
firendAfterRoom
:
HOST
+
"wechatIteration.php?s=/Im/firend_after_room"
,
//成功加好友之后选择身份信息进入群聊房间
/**end */
/**end */
/**首页Index */
/**首页Index */
getNotResult
:
HOST
+
"wechatIteration.php?s=/Home/testresult"
,
//未做量表提醒
getNotResult
:
HOST
+
"wechatIteration.php?s=/Home/testresult"
,
//未做量表提醒
getDoctorIndex
:
HOST
+
"wechatIteration.php?s=/Personal/doctorIndex"
,
//首页医生数据
getDoctorIndex
:
HOST
+
"wechatIteration.php?s=/Personal/doctorIndex"
,
//首页医生数据
screenDoctor
:
HOST
+
"wechatIteration.php?s=/personal/screenDoctor"
,
//查询医生数据
screenDoctor
:
HOST
+
"wechatIteration.php?s=/personal/screenDoctor"
,
//查询医生数据
/**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"
,
/**
/**
* 修改
* 修改
* 后台和二维码改路径
* 后台和二维码改路径
*/
*/
getFollowUpList
:
HOST
+
'appIteration.php?s=/Inquisition/wechat_yuyue'
,
getFollowUpList
:
HOST
+
'appIteration.php?s=/Inquisition/wechat_yuyue'
,
delReport
:
HOST
+
'wechatIteration.php?s=/Home/del_result'
,
//无效
delReport
:
HOST
+
'wechatIteration.php?s=/Home/del_result'
,
//无效
goSetTel
:
HOST
+
"wechatIteration.php?s=/Index/getPhone"
,
//code值需规范
goSetTel
:
HOST
+
"wechatIteration.php?s=/Index/getPhone"
,
//code值需规范
}
}
module
.
exports
=
{
module
.
exports
=
{
url
:
url
,
url
:
url
,
HOST
:
HOST
,
HOST
:
HOST
,
HOST_xinli
:
HOST_xinli
,
patient
:
patient
,
HOST_xinli_lb
:
HOST_xinli_lb
,
HOST_P
:
HOST_P
,
HOST_P
:
HOST_P
,
HOST_P_K
:
HOST_P_K
,
HOST_P_K
:
HOST_P_K
,
HOST_info
:
HOST_info
,
HOST_info
:
HOST_info
,
HOST_yiyuan
:
HOST_yiyuan
,
HOST_yiyuan
:
HOST_yiyuan
,
HOST_xinli
:
HOST_xinli
,
HOST_xinli_lb
:
HOST_xinli_lb
,
}
}
\ No newline at end of file
utils/service.js
View file @
48a96c72
...
@@ -16,7 +16,7 @@ function breakPromise() {
...
@@ -16,7 +16,7 @@ function breakPromise() {
};
};
/**添加用户信息 */
/**添加用户信息 */
function
addUserInfo
(
param
)
{
function
addUserInfo
(
param
)
{
var
addUserInfoUrl
=
config
.
url
.
addUserInfo
;
let
addUserInfoUrl
=
config
.
url
.
addUserInfo
;
return
wxRequest
.
getRequest
(
addUserInfoUrl
,
param
);
return
wxRequest
.
getRequest
(
addUserInfoUrl
,
param
);
};
};
/**
/**
...
@@ -25,8 +25,8 @@ function addUserInfo(param) {
...
@@ -25,8 +25,8 @@ function addUserInfo(param) {
* @param {String} user 用户注册IM的id
* @param {String} user 用户注册IM的id
*/
*/
function
getUserSig
(
user
)
{
function
getUserSig
(
user
)
{
var
getUserSigUrl
=
config
.
url
.
getUserSig
;
let
getUserSigUrl
=
config
.
url
.
getUserSig
;
var
data
=
{
let
data
=
{
"user"
:
user
"user"
:
user
// "user": "oHhp80fVWvjJn2EYkB5XxhKnVBOo"
// "user": "oHhp80fVWvjJn2EYkB5XxhKnVBOo"
}
}
...
@@ -37,8 +37,8 @@ function getUserSig(user) {
...
@@ -37,8 +37,8 @@ function getUserSig(user) {
* @param {string} code 用户code
* @param {string} code 用户code
*/
*/
function
getOpenId
(
code
)
{
function
getOpenId
(
code
)
{
var
getOpenId
=
config
.
url
.
getOpenId
;
let
getOpenId
=
config
.
url
.
getOpenId
;
var
data
=
{};
let
data
=
{};
data
.
code
=
code
;
data
.
code
=
code
;
return
wxRequest
.
postRequest
(
getOpenId
,
data
);
return
wxRequest
.
postRequest
(
getOpenId
,
data
);
};
};
...
@@ -47,8 +47,8 @@ function getOpenId(code) {
...
@@ -47,8 +47,8 @@ function getOpenId(code) {
* @param {string} openid 小程序id
* @param {string} openid 小程序id
*/
*/
function
getUserData
(
openid
)
{
function
getUserData
(
openid
)
{
var
getUserDataUrl
=
config
.
url
.
getUserData
;
let
getUserDataUrl
=
config
.
url
.
getUserData
;
var
data
=
{};
let
data
=
{};
data
.
openid
=
openid
;
data
.
openid
=
openid
;
return
wxRequest
.
postRequest
(
getUserDataUrl
,
data
);
return
wxRequest
.
postRequest
(
getUserDataUrl
,
data
);
};
};
...
@@ -57,7 +57,7 @@ function getUserData(openid) {
...
@@ -57,7 +57,7 @@ function getUserData(openid) {
* @param {Object} param
* @param {Object} param
*/
*/
function
seeOpenId
(
param
)
{
function
seeOpenId
(
param
)
{
var
seeOpenIdUrl
=
config
.
url
.
seeOpenId
;
let
seeOpenIdUrl
=
config
.
url
.
seeOpenId
;
return
wxRequest
.
postRequest
(
seeOpenIdUrl
,
param
);
return
wxRequest
.
postRequest
(
seeOpenIdUrl
,
param
);
};
};
/** 小程序强制更新
/** 小程序强制更新
...
@@ -198,7 +198,7 @@ function editAddress(param) {
...
@@ -198,7 +198,7 @@ function editAddress(param) {
* 是否可修改收货地址
* 是否可修改收货地址
* @param {*} param.ordernumber //订单号
* @param {*} param.ordernumber //订单号
*/
*/
function
isEditAddress
(
param
){
function
isEditAddress
(
param
)
{
var
isEditAddressUrl
=
config
.
url
.
isEditAddress
;
//支付
var
isEditAddressUrl
=
config
.
url
.
isEditAddress
;
//支付
return
wxRequest
.
postRequest
(
isEditAddressUrl
,
param
);
return
wxRequest
.
postRequest
(
isEditAddressUrl
,
param
);
}
}
...
@@ -450,6 +450,7 @@ function loadScene(param) {
...
@@ -450,6 +450,7 @@ function loadScene(param) {
var
loadSceneUrl
=
config
.
url
.
loadScene
;
var
loadSceneUrl
=
config
.
url
.
loadScene
;
return
wxRequest
.
postRequest
(
loadSceneUrl
,
param
);
return
wxRequest
.
postRequest
(
loadSceneUrl
,
param
);
}
}
function
loadIMScene
(
param
)
{
function
loadIMScene
(
param
)
{
var
loadIMSceneUrl
=
config
.
url
.
loadIMScene
;
var
loadIMSceneUrl
=
config
.
url
.
loadIMScene
;
return
wxRequest
.
postRequest
(
loadIMSceneUrl
,
param
);
return
wxRequest
.
postRequest
(
loadIMSceneUrl
,
param
);
...
@@ -493,6 +494,11 @@ function buyDrugList(param) {
...
@@ -493,6 +494,11 @@ function buyDrugList(param) {
return
wxRequest
.
postRequest
(
buyDrugListUrl
,
param
);
return
wxRequest
.
postRequest
(
buyDrugListUrl
,
param
);
}
}
function
buyProductList
(
param
)
{
var
buyProductListUrl
=
config
.
url
.
buyProductList
;
return
wxRequest
.
postRequest
(
buyProductListUrl
,
param
);
}
function
delBuyDrug
(
param
)
{
function
delBuyDrug
(
param
)
{
var
delBuyDrugUrl
=
config
.
url
.
delBuyDrug
;
var
delBuyDrugUrl
=
config
.
url
.
delBuyDrug
;
return
wxRequest
.
postRequest
(
delBuyDrugUrl
,
param
);
return
wxRequest
.
postRequest
(
delBuyDrugUrl
,
param
);
...
@@ -546,9 +552,14 @@ function acceptFollowUp(param) {
...
@@ -546,9 +552,14 @@ function acceptFollowUp(param) {
return
wxRequest
.
postRequest
(
acceptFollowUpUrl
,
param
);
return
wxRequest
.
postRequest
(
acceptFollowUpUrl
,
param
);
}
}
function
getPayStatus
(
param
)
{
function
getPayStatusA
(
param
)
{
var
getPayStatusUrl
=
config
.
url
.
getPayStatus
;
var
getPayStatusAUrl
=
config
.
url
.
getPayStatusA
;
return
wxRequest
.
postRequest
(
getPayStatusUrl
,
param
);
return
wxRequest
.
postRequest
(
getPayStatusAUrl
,
param
);
}
function
getPayStatusB
(
param
)
{
var
getPayStatusBUrl
=
config
.
url
.
getPayStatusB
;
return
wxRequest
.
postRequest
(
getPayStatusBUrl
,
param
);
}
}
function
paySucceedCallback
(
param
)
{
function
paySucceedCallback
(
param
)
{
...
@@ -600,14 +611,37 @@ function drogOrderDetail(param) {
...
@@ -600,14 +611,37 @@ function drogOrderDetail(param) {
var
drogOrderDetailUrl
=
config
.
url
.
drogOrderDetail
;
var
drogOrderDetailUrl
=
config
.
url
.
drogOrderDetail
;
return
wxRequest
.
postRequest
(
drogOrderDetailUrl
,
param
);
return
wxRequest
.
postRequest
(
drogOrderDetailUrl
,
param
);
}
}
function
productOrderDetail
(
param
){
let
productOrderDetailUrl
=
config
.
url
.
productOrderDetail
;
return
wxRequest
.
postRequest
(
productOrderDetailUrl
,
param
);
}
/**
/**
* 是否答题
* 是否答题
* @param {*} param
* @param {*} param
*/
*/
function
getIsAnswer
(
param
){
function
getIsAnswer
(
param
)
{
var
getIsAnswerUrl
=
config
.
url
.
getIsAnswer
;
var
getIsAnswerUrl
=
config
.
url
.
getIsAnswer
;
return
wxRequest
.
postRequest
(
getIsAnswerUrl
,
param
);
return
wxRequest
.
postRequest
(
getIsAnswerUrl
,
param
);
}
}
/**
* 正常购买推荐产品
* @param {object} param patient_unionid 患者unionid
* @param {object} param prescription 药方ID
*/
function
getNormalProduct
(
param
)
{
var
getNormalProductUrl
=
config
.
url
.
getNormalProduct
;
return
wxRequest
.
postRequest
(
getNormalProductUrl
,
param
);
}
function
getQuickProduct
(
param
)
{
var
getQuickProductUrl
=
config
.
url
.
getQuickProduct
;
return
wxRequest
.
postRequest
(
getQuickProductUrl
,
param
);
}
function
productPay
(
param
)
{
var
productPayUrl
=
config
.
url
.
productPay
;
return
wxRequest
.
postRequest
(
productPayUrl
,
param
)
}
function
getBusStopListPromise
(
sid
,
stopType
)
{
function
getBusStopListPromise
(
sid
,
stopType
)
{
var
getStopListUrl
=
config
.
url
.
getBusStopList
;
var
getStopListUrl
=
config
.
url
.
getBusStopList
;
...
@@ -638,7 +672,7 @@ module.exports = {
...
@@ -638,7 +672,7 @@ module.exports = {
prescriptionPay
:
prescriptionPay
,
//药方支付
prescriptionPay
:
prescriptionPay
,
//药方支付
addAddress
:
addAddress
,
//新增地址
addAddress
:
addAddress
,
//新增地址
editAddress
:
editAddress
,
//修改地址
editAddress
:
editAddress
,
//修改地址
isEditAddress
:
isEditAddress
,
//判断是否修改地址
isEditAddress
:
isEditAddress
,
//判断是否修改地址
addressList
:
addressList
,
//地址列表
addressList
:
addressList
,
//地址列表
defaultAddress
:
defaultAddress
,
//地址详情
defaultAddress
:
defaultAddress
,
//地址详情
isReport
:
isReport
,
//检测是否允许查看报告
isReport
:
isReport
,
//检测是否允许查看报告
...
@@ -678,7 +712,7 @@ module.exports = {
...
@@ -678,7 +712,7 @@ module.exports = {
delFriend
:
delFriend
,
//删除好友
delFriend
:
delFriend
,
//删除好友
appAddFriend
:
appAddFriend
,
//app.js添加好友
appAddFriend
:
appAddFriend
,
//app.js添加好友
loadScene
:
loadScene
,
//加载量表二维码场景
loadScene
:
loadScene
,
//加载量表二维码场景
loadIMScene
:
loadIMScene
,
//加载IM量表支付场景
loadIMScene
:
loadIMScene
,
//加载IM量表支付场景
seeBuyStaus
:
seeBuyStaus
,
//用户购买服务状态
seeBuyStaus
:
seeBuyStaus
,
//用户购买服务状态
endInquiry
:
endInquiry
,
//同意结束服务
endInquiry
:
endInquiry
,
//同意结束服务
refuseInquiry
:
refuseInquiry
,
//拒绝结束服务
refuseInquiry
:
refuseInquiry
,
//拒绝结束服务
...
@@ -686,6 +720,7 @@ module.exports = {
...
@@ -686,6 +720,7 @@ module.exports = {
getDrugList
:
getDrugList
,
//处方列表
getDrugList
:
getDrugList
,
//处方列表
getDrugDetail
:
getDrugDetail
,
//处方详情
getDrugDetail
:
getDrugDetail
,
//处方详情
buyDrugList
:
buyDrugList
,
//购药记录列表
buyDrugList
:
buyDrugList
,
//购药记录列表
buyProductList
:
buyProductList
,
//购买产品列表
delBuyDrug
:
delBuyDrug
,
//删除购药记录
delBuyDrug
:
delBuyDrug
,
//删除购药记录
confirmReceipt
:
confirmReceipt
,
//确认收货
confirmReceipt
:
confirmReceipt
,
//确认收货
getQuick
:
getQuick
,
//快速开药
getQuick
:
getQuick
,
//快速开药
...
@@ -697,7 +732,8 @@ module.exports = {
...
@@ -697,7 +732,8 @@ module.exports = {
checkCard
:
checkCard
,
//验证身份证与姓名
checkCard
:
checkCard
,
//验证身份证与姓名
getTestInfo
:
getTestInfo
,
//获取检测信息
getTestInfo
:
getTestInfo
,
//获取检测信息
acceptFollowUp
:
acceptFollowUp
,
//接受随访
acceptFollowUp
:
acceptFollowUp
,
//接受随访
getPayStatus
:
getPayStatus
,
//获取药方支付状态
getPayStatusA
:
getPayStatusA
,
//获取药方支付状态
getPayStatusB
:
getPayStatusB
,
//获取药方支付状态
paySucceedCallback
:
paySucceedCallback
,
//支付成功回调
paySucceedCallback
:
paySucceedCallback
,
//支付成功回调
getChatMsgLog
:
getChatMsgLog
,
//获取消息历史记录
getChatMsgLog
:
getChatMsgLog
,
//获取消息历史记录
myServerList
:
myServerList
,
//我的服务列表
myServerList
:
myServerList
,
//我的服务列表
...
@@ -705,5 +741,9 @@ module.exports = {
...
@@ -705,5 +741,9 @@ module.exports = {
logisticsInfo
:
logisticsInfo
,
//物流信息
logisticsInfo
:
logisticsInfo
,
//物流信息
firendAfterRoom
:
firendAfterRoom
,
//成功加好友之后选择身份信息进入群聊房间
firendAfterRoom
:
firendAfterRoom
,
//成功加好友之后选择身份信息进入群聊房间
drogOrderDetail
:
drogOrderDetail
,
//药品订单详情
drogOrderDetail
:
drogOrderDetail
,
//药品订单详情
getIsAnswer
:
getIsAnswer
,
//是否答题
productOrderDetail
:
productOrderDetail
,
//产品详情
getIsAnswer
:
getIsAnswer
,
//是否答题
getNormalProduct
:
getNormalProduct
,
//正常购买推荐产品
getQuickProduct
:
getQuickProduct
,
//快速购买推荐产品
productPay
:
productPay
,
//推荐产品支付
}
}
\ No newline at end of file
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