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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1091 additions
and
88 deletions
+1091
-88
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
+0
-0
utils/service.js
+58
-17
No files found.
app.json
View file @
48a96c72
...
...
@@ -41,7 +41,8 @@
"patientList/patientList"
,
"chattingRecords/chattingRecords"
,
"beBeingService/beBeingService"
,
"productOrderInfo/productOrderInfo"
"productOrderInfo/productOrderInfo"
,
"productOrderDetail/productOrderDetail"
]
},
{
...
...
packageA/chat/chat.js
View file @
48a96c72
...
...
@@ -1647,7 +1647,7 @@ Page({
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
isquick
:
item
.
isQuick
}
Service
.
getPayStatus
(
data
).
then
((
res
)
=>
{
Service
.
getPayStatus
A
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
wx
.
navigateTo
({
url
:
'/packageA/drugOrder/drugOrder'
...
...
@@ -1682,14 +1682,14 @@ Page({
wx
.
showLoading
({
mask
:
true
});
let
that
=
this
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
// isQuick 购买方式 0-正常购买,1-二维码购买,2-快速购买
let
id
=
item
.
isQuick
==
0
?
item
.
p
rescription
:
item
.
quickid
;
// isQuick 购买方式 0-正常购买,1-二维码购买,2-快速购买
let
id
=
item
.
isQuick
==
0
?
item
.
p
ayid
:
item
.
quickid
;
let
data
=
{
prescription
:
i
d
,
prescription
:
i
tem
.
prescription
,
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
isquick
:
item
.
isQuick
}
Service
.
getPayStatus
(
data
).
then
((
res
)
=>
{
Service
.
getPayStatus
B
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
wx
.
navigateTo
({
url
:
'/packageA/drugOrder/drugOrder'
...
...
packageA/chat/chat.wxml
View file @
48a96c72
...
...
@@ -227,7 +227,7 @@
<view class="doctor-unit">{{item.payload.description.work_unit}}</view>
</view>
</view>
<view class="Report-text"
wx:if='{{item.payload.description.diagnosis}}'
>
<view class="Report-text" >
医生为您开具了一个推荐产品,您可根据自身情况自由选择是否购买。</view>
<view class="scale">
<view class="scale-title">推荐产品:</view>
...
...
packageA/drugOrder/drugOrder.js
View file @
48a96c72
const
Service
=
require
(
'../../utils/service.js'
);
const
{
debouce
}
=
require
(
'../../utils/util.js'
);
//防抖函数
const
{
debouce
}
=
require
(
'../../utils/util.js'
);
//防抖函数
const
Util
=
require
(
'../../utils/util.js'
);
Page
({
...
...
@@ -13,8 +15,12 @@ Page({
winH
:
null
,
},
showview
:
false
,
success
:
true
,
list
:
[],
page
:
1
page
:
1
,
productPage
:
0
,
total
:
0
,
requestStatus
:
false
,
//请求状态
},
/**
...
...
@@ -38,7 +44,10 @@ Page({
*/
onPullDownRefresh
:
function
()
{
var
that
=
this
//重置
that
.
data
.
page
=
1
;
that
.
data
.
productPage
=
0
;
that
.
data
.
total
=
0
;
wx
.
showNavigationBarLoading
()
//在标题栏中显示加载
setTimeout
(
function
()
{
that
.
getList
(
1
,
that
.
data
.
nav
)
...
...
@@ -51,13 +60,15 @@ Page({
*/
onReachBottom
:
function
()
{
var
that
=
this
var
page
=
that
.
data
.
page
+
1
;
that
.
setData
({
scrollFlag
:
true
,
success
:
false
,
page
:
page
})
that
.
getList
(
page
,
that
.
data
.
nav
)
if
(
that
.
data
.
success
)
{
var
page
=
that
.
data
.
page
+
1
;
that
.
setData
({
scrollFlag
:
true
,
success
:
false
,
page
:
page
})
that
.
getList
(
page
,
that
.
data
.
nav
);
}
},
//删除订单
deleBtn
:
debouce
(
function
(
e
)
{
...
...
@@ -89,19 +100,94 @@ Page({
//获取列表
getList
:
function
(
page
,
status
)
{
var
that
=
this
that
.
data
.
requestStatus
=
true
;
var
data
=
{
page
:
page
,
// unionid:'oHhp80QCN2WjClijvSyhkEFQcUwY',
unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
status
:
status
};
Service
.
buyDrugList
(
data
).
then
((
res
)
=>
{
console
.
log
(
"res"
,
res
)
var
list
=
that
.
data
.
list
;
let
newList
=
that
.
data
.
list
;
if
(
page
==
1
||
newList
.
length
<
that
.
data
.
total
)
{
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
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
list
.
push
(
res
.
data
[
i
])
}
newList
=
newList
.
concat
(
res
.
data
);
// for (let i = 0; i < res.data.length; i++) {
// list.push(res.data[i])
// }
that
.
setData
({
success
:
true
})
...
...
@@ -116,31 +202,57 @@ Page({
})
},
2000
)
}
else
{
list
=
res
.
data
;
// newList = res.data;
newList
=
newList
.
concat
(
res
.
data
);
}
wx
.
stopPullDownRefresh
()
if
(
list
.
length
>
0
)
{
if
(
newList
.
length
>
0
)
{
that
.
setData
({
list
:
list
,
showview
:
true
list
:
newList
,
showview
:
true
,
requestStatus
:
false
,
})
wx
.
hideLoading
();
}
else
{
that
.
setData
({
list
:
[],
showview
:
true
showview
:
true
,
requestStatus
:
false
,
})
wx
.
hideLoading
();
}
}).
catch
(
function
(
Error
)
{
console
.
warn
(
'error:'
,
Error
);
// 获取会话资料失败的相关信息
});
},
// /**
// * 插入排序
// * @param {Array} arr 排序数据
// */
insertionSort
(
arr
)
{
let
sortArr
;
arr
.
forEach
((
item
,
index
)
=>
{
})
},
//选择topTab页
nav
:
function
(
e
)
{
let
_this
=
this
// wx.showLoading({
// title: '加载中',
// mask:true
// })
if
(
_this
.
data
.
requestStatus
){
return
;
}
_this
.
setData
({
nav
:
e
.
currentTarget
.
dataset
.
index
,
page
:
1
,
showview
:
false
total
:
0
,
productPage
:
0
,
showview
:
false
,
list
:
[]
})
_this
.
getList
(
1
,
e
.
currentTarget
.
dataset
.
index
)
},
...
...
@@ -176,7 +288,7 @@ Page({
// })
// },
/**
*修改地址-待发货2
*
修改地址-待发货2
*/
editAddress
:
debouce
(
function
(
e
)
{
Service
.
isEditAddress
({
...
...
@@ -219,7 +331,7 @@ Page({
patient_unionid
:
wx
.
getStorageSync
(
'data'
).
unionid
,
isquick
:
e
.
currentTarget
.
dataset
.
isquick
}
Service
.
getPayStatus
(
data
).
then
((
res
)
=>
{
Service
.
getPayStatus
A
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
that
.
onShow
();
}
else
if
(
res
.
code
==
-
1
)
{
...
...
packageA/drugOrder/drugOrder.json
View file @
48a96c72
{
"navigationBarTitleText"
:
"
药品订单
"
,
"navigationBarTitleText"
:
"
订单列表
"
,
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{
"answer"
:
"/components/answer/answer"
...
...
packageA/drugOrder/drugOrder.wxml
View file @
48a96c72
...
...
@@ -13,7 +13,73 @@
</view>
<view wx:else>
<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>
<view class="num flex">
<text>订单编号:{{item.ordernumber}}</text>
...
...
@@ -71,7 +137,7 @@
<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>
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>
...
...
packageA/logistics/logistics.wxss
View file @
48a96c72
...
...
@@ -119,7 +119,7 @@ text{
}
.list-zi::before{
position: absolute;
left:
0
;
left:
4rpx
;
top: 0;
margin-top: 30rpx;
content: "";
...
...
@@ -152,7 +152,7 @@ text{
background: #D9D9D9;
position: absolute;
left: 0;
margin-left:
6
rpx;
margin-left:
10
rpx;
margin-top: 60rpx;
}
.steps .list:last-child::after{
...
...
@@ -182,7 +182,7 @@ text{
background: #D9D9D9;
position: absolute;
left: 0;
margin-left:
6
rpx;
margin-left:
10
rpx;
}
.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({
wx
.
setStorageSync
(
'data'
,
res
)
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
{
that
.
getQuick
(
that
.
data
.
options
.
scene
,
res
.
unionid
)
}
...
...
@@ -82,14 +82,14 @@ Page({
}
else
{
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
{
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
if
(
that
.
data
.
paySuccess
)
{
return
;
...
...
@@ -97,7 +97,8 @@ Page({
let
data
=
{};
data
.
prescription
=
id
;
data
.
patient_unionid
=
patient_unionid
;
Service
.
getRecipeDetails
(
data
).
then
((
res
)
=>
{
console
.
log
(
"getNormal"
,
data
)
Service
.
getNormalProduct
(
data
).
then
((
res
)
=>
{
console
.
log
(
"getDetail"
,
res
);
if
(
res
.
code
==
2
||
res
.
code
==
3
)
{
wx
.
showModal
({
...
...
@@ -138,7 +139,7 @@ Page({
let
data
=
{};
data
.
prescription
=
quickid
;
data
.
patient_unionid
=
patient_unionid
;
Service
.
getQuick
(
data
).
then
((
res
)
=>
{
Service
.
getQuick
Product
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
2
||
res
.
code
==
3
)
{
wx
.
showModal
({
content
:
res
.
msg
,
...
...
@@ -341,31 +342,34 @@ Page({
title
:
'正在拉起支付'
,
mask
:
true
})
that
.
pr
escription
Pay
();
that
.
pr
oduct
Pay
();
}
},
1000
,
true
),
pr
escription
Pay
:
function
()
{
pr
oduct
Pay
:
function
()
{
let
that
=
this
;
let
hstr
=
new
Array
();
let
healthcare
=
that
.
data
.
list
.
healthcare
;
for
(
let
i
=
0
;
i
<
healthcare
.
length
;
i
++
)
{
if
(
healthcare
[
i
].
checked
)
{
hstr
.
push
(
healthcare
[
i
].
id
);
}
}
/**
* @todo 医生推荐 废弃
*/
// let hstr = new Array();
// 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
=
{
payid
:
that
.
data
.
list
.
payid
,
id
:
that
.
data
.
options
.
scene
,
patient_unionid
:
that
.
data
.
item
.
unionid
,
modular
:
that
.
data
.
list
.
modular
,
lastid
:
that
.
data
.
item
.
id
,
address
:
that
.
data
.
receiveAddress
.
id
,
isywlx
:
that
.
data
.
list
.
isywlx
,
money
:
that
.
data
.
list
.
money
,
hstr
:
hstr
.
toString
(),
isgd
:
1
,
//
isywlx: that.data.list.isywlx,
//
money: that.data.list.money,
//
hstr: hstr.toString(),
//
isgd: 1,
// rise_need:that.data.isInvoice
}
Service
.
pr
escription
Pay
(
data
).
then
((
res
)
=>
{
Service
.
pr
oduct
Pay
(
data
).
then
((
res
)
=>
{
console
.
log
(
'res1'
,
res
);
switch
(
res
.
code
)
{
case
1
:
...
...
packageA/productOrderInfo/productOrderInfo.wxml
View file @
48a96c72
...
...
@@ -33,10 +33,10 @@
<image class="more" src="/images/more.png"></image>
</view>
</view>
<view class="line" wx:if='{{list.
prescription
.length>0}}'>
<view class="line" wx:if='{{list.
healthcare
.length>0}}'>
<text>推荐产品</text>
</view>
<block wx:for="{{list.
prescription
}}" wx:key="index">
<block wx:for="{{list.
healthcare
}}" wx:key="index">
<view class="list">
<view class="list-item">
<view class="image">
...
...
@@ -55,10 +55,10 @@
</view>
</view>
</block>
<view wx:if='{{list.healthcare.length>0}}' class="line">
<
!-- <
view wx:if='{{list.healthcare.length>0}}' class="line">
<text>医生推荐</text>
</view>
<block wx:for="{{list.healthcare}}" wx:key="index" wx:for-index="index">
</view>
-->
<
!-- <
block wx:for="{{list.healthcare}}" wx:key="index" wx:for-index="index">
<view class="list">
<checkbox data-index="{{index}}" checked="{{item.checked}}" bindtap="updataRadio" color='#1384ff' />
<view class="list-item1">
...
...
@@ -77,7 +77,7 @@
<view class="number">x {{item.num}}</view>
</view>
</view>
</block>
</block>
-->
<!-- 订单编号 -->
<view class="order-list">
<!-- <view class="order-num">
...
...
@@ -88,11 +88,11 @@
<text>商品价格</text>
<view>
<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 class="order-num">
<
!-- <
view class="order-num">
<text>服务诊金</text>
<view>
<text style="color:#999999;font-size: 28rpx;">¥ </text>
...
...
@@ -106,7 +106,7 @@
<text style=" color:#999999; font-size: 28rpx;">¥ </text>
<text class="fonw-400" style="font-size: 28rpx;">{{list.freight}}</text>
</view>
</view>
</view>
-->
<!-- <view class="order-num">
<text>纸质发票</text>
<radio-group class="radio-group" bindchange="radioChange">
...
...
packageA/selectUser/selectUser.js
View file @
48a96c72
...
...
@@ -14,9 +14,9 @@ Page({
},
/**
* 生命周期函数--监听页面加载
* @param {
options.type}
进入途径1:购买服务,2:购买药物()身份证必填,3:医生列表
* @param {
options.iShow}
type=2||3 有选中id
* @param {
options.item}
type=2||3 有选中对象
* @param {
*} options.type
进入途径1:购买服务,2:购买药物()身份证必填,3:医生列表
* @param {
*} options.iShow
type=2||3 有选中id
* @param {
*} options.item
type=2||3 有选中对象
*/
onLoad
:
function
(
options
)
{
console
.
log
(
"options"
,
options
)
...
...
pages/my/my.js
View file @
48a96c72
...
...
@@ -7,7 +7,7 @@ Page({
reportRedD
:
false
,
//报告红点展示
reportRedNum
:
0
,
//未作报告数量
disabled
:
true
,
//防止重复点击
version
:
'3.
1.6
'
,
version
:
'3.
2.0
'
,
isShow
:
false
,
showClose
:
true
,
},
...
...
pages/my/my.wxml
View file @
48a96c72
...
...
@@ -40,7 +40,7 @@
<image src='../../images/l@2x.png'></image>
</view>
<view class='item' bindtap="goToURL" data-src="/packageA/drugOrder/drugOrder">
<text>
药品订单
</text>
<text>
订单列表
</text>
<image src='../../images/l@2x.png'></image>
</view>
<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
This diff is collapsed.
Click to expand it.
utils/service.js
View file @
48a96c72
...
...
@@ -16,7 +16,7 @@ function breakPromise() {
};
/**添加用户信息 */
function
addUserInfo
(
param
)
{
var
addUserInfoUrl
=
config
.
url
.
addUserInfo
;
let
addUserInfoUrl
=
config
.
url
.
addUserInfo
;
return
wxRequest
.
getRequest
(
addUserInfoUrl
,
param
);
};
/**
...
...
@@ -25,8 +25,8 @@ function addUserInfo(param) {
* @param {String} user 用户注册IM的id
*/
function
getUserSig
(
user
)
{
var
getUserSigUrl
=
config
.
url
.
getUserSig
;
var
data
=
{
let
getUserSigUrl
=
config
.
url
.
getUserSig
;
let
data
=
{
"user"
:
user
// "user": "oHhp80fVWvjJn2EYkB5XxhKnVBOo"
}
...
...
@@ -37,8 +37,8 @@ function getUserSig(user) {
* @param {string} code 用户code
*/
function
getOpenId
(
code
)
{
var
getOpenId
=
config
.
url
.
getOpenId
;
var
data
=
{};
let
getOpenId
=
config
.
url
.
getOpenId
;
let
data
=
{};
data
.
code
=
code
;
return
wxRequest
.
postRequest
(
getOpenId
,
data
);
};
...
...
@@ -47,8 +47,8 @@ function getOpenId(code) {
* @param {string} openid 小程序id
*/
function
getUserData
(
openid
)
{
var
getUserDataUrl
=
config
.
url
.
getUserData
;
var
data
=
{};
let
getUserDataUrl
=
config
.
url
.
getUserData
;
let
data
=
{};
data
.
openid
=
openid
;
return
wxRequest
.
postRequest
(
getUserDataUrl
,
data
);
};
...
...
@@ -57,7 +57,7 @@ function getUserData(openid) {
* @param {Object} param
*/
function
seeOpenId
(
param
)
{
var
seeOpenIdUrl
=
config
.
url
.
seeOpenId
;
let
seeOpenIdUrl
=
config
.
url
.
seeOpenId
;
return
wxRequest
.
postRequest
(
seeOpenIdUrl
,
param
);
};
/** 小程序强制更新
...
...
@@ -198,7 +198,7 @@ function editAddress(param) {
* 是否可修改收货地址
* @param {*} param.ordernumber //订单号
*/
function
isEditAddress
(
param
){
function
isEditAddress
(
param
)
{
var
isEditAddressUrl
=
config
.
url
.
isEditAddress
;
//支付
return
wxRequest
.
postRequest
(
isEditAddressUrl
,
param
);
}
...
...
@@ -450,6 +450,7 @@ 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
);
...
...
@@ -493,6 +494,11 @@ function buyDrugList(param) {
return
wxRequest
.
postRequest
(
buyDrugListUrl
,
param
);
}
function
buyProductList
(
param
)
{
var
buyProductListUrl
=
config
.
url
.
buyProductList
;
return
wxRequest
.
postRequest
(
buyProductListUrl
,
param
);
}
function
delBuyDrug
(
param
)
{
var
delBuyDrugUrl
=
config
.
url
.
delBuyDrug
;
return
wxRequest
.
postRequest
(
delBuyDrugUrl
,
param
);
...
...
@@ -546,9 +552,14 @@ function acceptFollowUp(param) {
return
wxRequest
.
postRequest
(
acceptFollowUpUrl
,
param
);
}
function
getPayStatus
(
param
)
{
var
getPayStatusUrl
=
config
.
url
.
getPayStatus
;
return
wxRequest
.
postRequest
(
getPayStatusUrl
,
param
);
function
getPayStatusA
(
param
)
{
var
getPayStatusAUrl
=
config
.
url
.
getPayStatusA
;
return
wxRequest
.
postRequest
(
getPayStatusAUrl
,
param
);
}
function
getPayStatusB
(
param
)
{
var
getPayStatusBUrl
=
config
.
url
.
getPayStatusB
;
return
wxRequest
.
postRequest
(
getPayStatusBUrl
,
param
);
}
function
paySucceedCallback
(
param
)
{
...
...
@@ -600,14 +611,37 @@ function drogOrderDetail(param) {
var
drogOrderDetailUrl
=
config
.
url
.
drogOrderDetail
;
return
wxRequest
.
postRequest
(
drogOrderDetailUrl
,
param
);
}
function
productOrderDetail
(
param
){
let
productOrderDetailUrl
=
config
.
url
.
productOrderDetail
;
return
wxRequest
.
postRequest
(
productOrderDetailUrl
,
param
);
}
/**
* 是否答题
* @param {*} param
*/
function
getIsAnswer
(
param
){
function
getIsAnswer
(
param
)
{
var
getIsAnswerUrl
=
config
.
url
.
getIsAnswer
;
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
)
{
var
getStopListUrl
=
config
.
url
.
getBusStopList
;
...
...
@@ -638,7 +672,7 @@ module.exports = {
prescriptionPay
:
prescriptionPay
,
//药方支付
addAddress
:
addAddress
,
//新增地址
editAddress
:
editAddress
,
//修改地址
isEditAddress
:
isEditAddress
,
//判断是否修改地址
isEditAddress
:
isEditAddress
,
//判断是否修改地址
addressList
:
addressList
,
//地址列表
defaultAddress
:
defaultAddress
,
//地址详情
isReport
:
isReport
,
//检测是否允许查看报告
...
...
@@ -678,7 +712,7 @@ module.exports = {
delFriend
:
delFriend
,
//删除好友
appAddFriend
:
appAddFriend
,
//app.js添加好友
loadScene
:
loadScene
,
//加载量表二维码场景
loadIMScene
:
loadIMScene
,
//加载IM量表支付场景
loadIMScene
:
loadIMScene
,
//加载IM量表支付场景
seeBuyStaus
:
seeBuyStaus
,
//用户购买服务状态
endInquiry
:
endInquiry
,
//同意结束服务
refuseInquiry
:
refuseInquiry
,
//拒绝结束服务
...
...
@@ -686,6 +720,7 @@ module.exports = {
getDrugList
:
getDrugList
,
//处方列表
getDrugDetail
:
getDrugDetail
,
//处方详情
buyDrugList
:
buyDrugList
,
//购药记录列表
buyProductList
:
buyProductList
,
//购买产品列表
delBuyDrug
:
delBuyDrug
,
//删除购药记录
confirmReceipt
:
confirmReceipt
,
//确认收货
getQuick
:
getQuick
,
//快速开药
...
...
@@ -697,7 +732,8 @@ module.exports = {
checkCard
:
checkCard
,
//验证身份证与姓名
getTestInfo
:
getTestInfo
,
//获取检测信息
acceptFollowUp
:
acceptFollowUp
,
//接受随访
getPayStatus
:
getPayStatus
,
//获取药方支付状态
getPayStatusA
:
getPayStatusA
,
//获取药方支付状态
getPayStatusB
:
getPayStatusB
,
//获取药方支付状态
paySucceedCallback
:
paySucceedCallback
,
//支付成功回调
getChatMsgLog
:
getChatMsgLog
,
//获取消息历史记录
myServerList
:
myServerList
,
//我的服务列表
...
...
@@ -705,5 +741,9 @@ module.exports = {
logisticsInfo
:
logisticsInfo
,
//物流信息
firendAfterRoom
:
firendAfterRoom
,
//成功加好友之后选择身份信息进入群聊房间
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