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
285a4fa8
Commit
285a4fa8
authored
Mar 03, 2021
by
liuquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
107cfc10
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
1407 additions
and
33 deletions
+1407
-33
app.json
+2
-1
components/login/login.js
+1
-0
packageA/buyService/buyService.js
+4
-2
packageA/chat/chat.js
+7
-6
packageA/drugOrderDetail/drugOrderDetail.wxml
+1
-1
packageA/drugOrderInfo/drugOrderInfo.js
+6
-6
packageA/drugOrderInfo/drugOrderInfo.wxml
+1
-1
packageA/productOrderInfo/productOrderInfo.js
+499
-0
packageA/productOrderInfo/productOrderInfo.json
+9
-0
packageA/productOrderInfo/productOrderInfo.wxml
+181
-0
packageA/productOrderInfo/productOrderInfo.wxss
+652
-0
packageA/selectUser/selectUser.js
+4
-1
packageA/serviceDetails/serviceDetails.js
+1
-1
packageA/site/site.js
+2
-2
packageB/enterEmial/enterEmial.js
+1
-0
packageB/invoiceDetail/invoiceDetail.js
+3
-1
packageB/invoiceInfo/invoiceInfo.js
+1
-0
pages/chatNews/chatNews.js
+1
-1
pages/dati/dati.js
+1
-0
pages/dati03/dati03.js
+1
-0
pages/dati04/dati04.js
+1
-0
pages/dati05/dati05.js
+1
-0
pages/docuterInfo/docuterInfo.js
+1
-1
pages/index/index.js
+2
-2
pages/info/info.js
+5
-1
pages/info1/info1.js
+2
-0
pages/prescription/order/order.wxml
+1
-1
pages/search/search.js
+1
-1
project.config.json
+6
-0
utils/config.js
+4
-4
utils/service.js
+4
-0
utils/tim.js
+1
-0
No files found.
app.json
View file @
285a4fa8
...
...
@@ -40,7 +40,8 @@
"logistics/logistics"
,
"patientList/patientList"
,
"chattingRecords/chattingRecords"
,
"beBeingService/beBeingService"
"beBeingService/beBeingService"
,
"productOrderInfo/productOrderInfo"
]
},
{
...
...
components/login/login.js
View file @
285a4fa8
...
...
@@ -50,6 +50,7 @@ Component({
if
(
e
.
detail
.
userInfo
)
{
wx
.
showLoading
({
title
:
'正在登录'
,
mask
:
true
,
})
app
.
getUserInfo
(
function
(
cb
)
{
if
(
!
Util
.
isEmpty
(
cb
))
{
...
...
packageA/buyService/buyService.js
View file @
285a4fa8
...
...
@@ -179,7 +179,9 @@ Page({
},
//知情同意书
zqtys
:
function
(
e
)
{
wx
.
showLoading
();
wx
.
showLoading
({
mask
:
true
,
});
wx
.
navigateTo
({
url
:
'/packageA/consent/consent'
})
...
...
@@ -195,7 +197,7 @@ Page({
},
//更换用户
changeUser
:
function
()
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
,}
);
if
(
this
.
data
.
ServicePay_datas
.
counsel
==
20
)
{
wx
.
navigateTo
({
url
:
'/packageA/selectUser/selectUser?type=1'
...
...
packageA/chat/chat.js
View file @
285a4fa8
...
...
@@ -876,7 +876,7 @@ Page({
* 聊天记录
*/
chatLog
:
Util
.
debouce
(
function
()
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
,}
);
wx
.
navigateTo
({
url
:
'/packageA/chattingRecords/chattingRecords?id='
+
this
.
data
.
orderId
+
'&doctorimage='
+
this
.
data
.
doctorimage
,
})
...
...
@@ -1082,6 +1082,7 @@ Page({
*
* *********JSON解析两次的**********
* Prescription 处方药方
* RecommendedProducts 推荐产品
* UserDrug 医生推荐
* Checkup 心理体检
* report 量表报告
...
...
@@ -1094,7 +1095,7 @@ Page({
if
(
type
==
'InitiateEndService'
||
type
==
'NeverEndService'
||
type
==
'EndOfService'
||
type
==
'reminder'
||
type
==
'reminder2'
||
type
==
'followUp'
||
type
==
'UserInfo'
||
type
==
'LaunchVideo'
||
type
==
'closeVideo'
||
type
==
'hangUpVideo'
||
type
==
'groupTips'
)
{
item
.
payload
.
description
=
item
.
payload
.
data
.
content
;
item
.
payload
.
data
=
item
.
payload
.
data
.
type
;
}
else
if
(
type
==
'Prescription'
||
type
==
'UserDrug'
||
type
==
'Checkup'
||
type
==
'report'
)
{
}
else
if
(
type
==
'Prescription'
||
type
==
'UserDrug'
||
type
==
'Checkup'
||
type
==
'report'
||
type
==
'RecommendedProducts'
)
{
item
.
payload
.
description
=
JSON
.
parse
(
item
.
payload
.
data
.
content
);
item
.
payload
.
data
=
item
.
payload
.
data
.
type
;
}
...
...
@@ -1482,7 +1483,7 @@ Page({
* 查看报告
*/
lookReport
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
let
that
=
this
;
let
src
=
e
.
currentTarget
.
dataset
.
src
;
let
is_type
=
e
.
currentTarget
.
dataset
.
istype
;
...
...
@@ -1509,7 +1510,7 @@ Page({
},
1000
,
true
),
/**心理体检 */
getCheckup
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
let
that
=
this
;
let
data
=
{}
let
code
=
1
;
...
...
@@ -1615,7 +1616,7 @@ Page({
* @param {} e
*/
viewRecipe
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
let
item
=
e
.
currentTarget
.
dataset
.
item
;
console
.
log
(
"item"
,
item
)
wx
.
navigateTo
({
...
...
@@ -1636,7 +1637,7 @@ Page({
* payid 支付ID
*/
buyDrug
:
Util
.
debouce
(
function
(
e
)
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
let
that
=
this
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
// isQuick 开药方式 0-正常开药,1-二维码,2-快速开药
...
...
packageA/drugOrderDetail/drugOrderDetail.wxml
View file @
285a4fa8
...
...
@@ -119,7 +119,7 @@
<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点前支付药费,当天即可发货,下午1
6
点后支付一般在第二天发货;</view>
<view>①药品当天16点前支付药费,当天即可发货,下午1
9
点后支付一般在第二天发货;</view>
<view>②快递采用顺丰配送, 1-3天即可到达。具体派送时间,请自行留意或联系派件员;</view>
<view>③您可以在“小懂健康”公众号【我的医生-药品订单】或 “小懂健康”小程序【我的-药品订单】查询物流信息;</view>
<view>④请确保预留的联系方式通话畅通,以免因派送失败耽误用药。</view>
...
...
packageA/drugOrderInfo/drugOrderInfo.js
View file @
285a4fa8
...
...
@@ -92,7 +92,7 @@ Page({
},
// 处方笺
getPrescribe
:
function
(
id
,
patient_unionid
)
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
let
that
=
this
if
(
that
.
data
.
paySuccess
)
{
wx
.
hideLoading
();
...
...
@@ -137,7 +137,7 @@ Page({
},
// 快速开药
getQuick
:
function
(
quickid
,
patient_unionid
)
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
var
that
=
this
if
(
that
.
data
.
paySuccess
)
{
wx
.
hideLoading
();
...
...
@@ -227,7 +227,7 @@ Page({
* @param {Object} e 事件绑定值
*/
myDetails
:
function
(
e
)
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
var
that
=
this
;
if
(
wx
.
getStorageSync
(
'data'
).
unionid
==
undefined
)
{
that
.
login
.
showLogin
();
...
...
@@ -267,7 +267,7 @@ Page({
* 知情同意书
*/
goConsent
:
function
()
{
wx
.
showLoading
()
wx
.
showLoading
(
{
mask
:
true
}
)
wx
.
navigateTo
({
url
:
'/packageA/consent/consent'
})
...
...
@@ -277,7 +277,7 @@ Page({
* 同意知情同意书
*/
agree
:
function
()
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
var
that
=
this
;
var
agree
=
that
.
data
.
agree
?
false
:
true
;
that
.
setData
({
...
...
@@ -289,7 +289,7 @@ Page({
*选择地址
*/
gosite
()
{
wx
.
showLoading
()
wx
.
showLoading
(
{
mask
:
true
}
)
wx
.
navigateTo
({
url
:
'/packageA/site/site'
,
})
...
...
packageA/drugOrderInfo/drugOrderInfo.wxml
View file @
285a4fa8
...
...
@@ -25,7 +25,7 @@
<view class="sf-top">
<view class="sf-title">
<image class="sf-img" src="/images/sf.png"></image>
<text class="size-0 ml-15">顺丰配送 1
6
:00前下单当日发货。平台承诺100%正品,假一罚十。</text>
<text class="size-0 ml-15">顺丰配送 1
9
:00前下单当日发货。平台承诺100%正品,假一罚十。</text>
</view>
</view>
</view>
...
...
packageA/productOrderInfo/productOrderInfo.js
0 → 100644
View file @
285a4fa8
const
Service
=
require
(
'../../utils/service.js'
);
const
Util
=
require
(
'../../utils/util.js'
);
Page
({
/**
* 页面的初始数据
*/
data
:
{
showClose
:
true
,
name
:
''
,
phone
:
''
,
list
:
[],
receiveAddress
:
''
,
tel
:
''
,
agree
:
true
,
//同意知情书
iPhoneX
:
false
,
item
:
''
,
id
:
''
,
ishow
:
true
,
paySuccess
:
false
,
errshow
:
false
,
items
:
[{
name
:
'不需要'
,
value
:
'0'
},
{
name
:
'需要'
,
value
:
'1'
},
],
isInvoice
:
0
,
//是否开具发票
isBtnAsh
:
true
,
//支付按钮置灰
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
let
that
=
this
that
.
checkModal
();
if
(
Util
.
isEmpty
(
options
))
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'网络故障,请重新扫码。错误码:4002'
,
showCancel
:
false
,
success
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
)
}
}
})
return
;
}
console
.
log
(
"options"
,
options
)
that
.
data
.
options
=
options
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
var
that
=
this
that
.
login
=
that
.
selectComponent
(
"#login"
);
that
.
modal
=
that
.
selectComponent
(
"#modal"
);
that
.
answer
=
that
.
selectComponent
(
"#answer"
);
if
(
wx
.
getStorageSync
(
'data'
).
unionid
==
undefined
||
wx
.
getStorageSync
(
'data'
).
unionid
==
''
)
{
wx
.
login
({
success
:
function
(
msg
)
{
Service
.
getOpenId
(
msg
.
code
).
then
((
res
)
=>
{
wx
.
setStorageSync
(
'user'
,
res
)
return
Service
.
getUserData
(
res
.
openid
)
}).
then
((
res
)
=>
{
if
(
Util
.
isEmpty
(
res
.
unionid
))
{
that
.
login
.
showLogin
();
}
else
{
wx
.
setStorageSync
(
'data'
,
res
)
if
(
that
.
data
.
options
.
isQuick
==
0
)
{
// 正常开药
that
.
getPrescribe
(
that
.
data
.
options
.
scene
,
res
.
unionid
)
}
else
{
that
.
getQuick
(
that
.
data
.
options
.
scene
,
res
.
unionid
)
}
}
})
}
})
}
else
{
if
(
that
.
data
.
options
.
isQuick
==
0
)
{
// 正常开药
that
.
getPrescribe
(
that
.
data
.
options
.
scene
,
wx
.
getStorageSync
(
'data'
).
unionid
)
}
else
{
that
.
getQuick
(
that
.
data
.
options
.
scene
,
wx
.
getStorageSync
(
'data'
).
unionid
)
}
}
},
// 处方笺
getPrescribe
:
function
(
id
,
patient_unionid
)
{
let
that
=
this
if
(
that
.
data
.
paySuccess
)
{
return
;
}
let
data
=
{};
data
.
prescription
=
id
;
data
.
patient_unionid
=
patient_unionid
;
Service
.
getRecipeDetails
(
data
).
then
((
res
)
=>
{
console
.
log
(
"getDetail"
,
res
);
if
(
res
.
code
==
2
||
res
.
code
==
3
)
{
wx
.
showModal
({
content
:
res
.
msg
,
showCancel
:
false
,
success
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
switchTab
({
url
:
'/pages/index/index'
})
}
}
})
}
if
(
res
.
data
!=
null
)
{
that
.
setData
({
list
:
res
.
data
,
receiveAddress
:
res
.
data
.
address
?
res
.
data
.
address
:
''
,
tel
:
res
.
data
.
address
!=
null
?
res
.
data
.
address
.
phone
.
replace
(
/
(\d{3})\d{4}(\d{4})
/
,
'$1****$2'
)
:
""
})
if
(
that
.
data
.
item
==
""
)
{
that
.
setData
({
item
:
res
.
data
.
user
,
})
}
if
(
res
.
data
.
healthcare
.
length
>
0
)
{
that
.
isChecked
(
res
.
data
.
healthcare
);
}
}
})
},
// 快速开药
getQuick
:
function
(
quickid
,
patient_unionid
)
{
var
that
=
this
if
(
that
.
data
.
paySuccess
)
{
return
;
}
let
data
=
{};
data
.
prescription
=
quickid
;
data
.
patient_unionid
=
patient_unionid
;
Service
.
getQuick
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
2
||
res
.
code
==
3
)
{
wx
.
showModal
({
content
:
res
.
msg
,
showCancel
:
false
,
success
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
switchTab
({
url
:
'/pages/index/index'
})
}
}
})
}
if
(
res
.
data
!=
null
)
{
that
.
setData
({
list
:
res
.
data
,
receiveAddress
:
res
.
data
.
address
?
res
.
data
.
address
:
''
,
tel
:
res
.
data
.
address
!=
null
?
res
.
data
.
address
.
phone
.
replace
(
/
(\d{3})\d{4}(\d{4})
/
,
'$1****$2'
)
:
""
})
if
(
that
.
data
.
item
==
""
)
{
that
.
setData
({
item
:
res
.
data
.
user
,
})
}
if
(
res
.
data
.
healthcare
.
length
>
0
)
{
that
.
isChecked
(
res
.
data
.
healthcare
);
}
}
})
},
//如果有医生推荐药品加上选中状态
isChecked
(
healthcare
)
{
var
list
=
new
Array
();
var
healthcareArr
=
new
Array
();
for
(
var
i
=
0
;
i
<
healthcare
.
length
;
i
++
)
{
healthcare
[
i
].
checked
=
true
;
list
.
push
(
healthcare
[
i
]);
healthcareArr
.
push
(
healthcare
[
i
].
id
)
}
this
.
setData
({
'list.healthcare'
:
list
,
healthcare
:
healthcareArr
})
},
updataRadio
(
e
)
{
var
that
=
this
;
var
list
=
that
.
data
.
list
;
var
index
=
e
.
currentTarget
.
dataset
.
index
;
if
(
list
.
healthcare
[
index
].
checked
)
{
list
.
healthcare
[
index
].
checked
=
false
;
list
.
drug_money
=
(
Number
(
list
.
drug_money
)
-
Number
(
list
.
healthcare
[
index
].
drugPrice
)).
toFixed
(
2
);
list
.
money
=
(
Number
(
list
.
money
)
-
Number
(
list
.
healthcare
[
index
].
drugPrice
)).
toFixed
(
2
);
}
else
{
list
.
healthcare
[
index
].
checked
=
true
;
list
.
drug_money
=
(
Number
(
list
.
drug_money
)
+
Number
(
list
.
healthcare
[
index
].
drugPrice
)).
toFixed
(
2
);
list
.
money
=
(
Number
(
list
.
money
)
+
Number
(
list
.
healthcare
[
index
].
drugPrice
)).
toFixed
(
2
);
}
var
agree
=
that
.
data
.
agree
;
if
(
Number
(
list
.
drug_money
)
==
0
)
{
agree
=
false
}
else
{
agree
=
true
}
that
.
setData
({
list
:
list
,
agree
:
agree
})
},
myDetails
:
function
(
e
)
{
var
that
=
this
;
if
(
wx
.
getStorageSync
(
'data'
).
unionid
==
undefined
)
{
that
.
login
.
showLogin
();
return
}
if
(
that
.
data
.
item
==
null
)
{
wx
.
navigateTo
({
url
:
e
.
currentTarget
.
dataset
.
src
+
"?type=2&iShow=undefined"
,
})
}
else
{
wx
.
navigateTo
({
url
:
e
.
currentTarget
.
dataset
.
src
+
"?type=2&iShow="
+
that
.
data
.
item
.
id
+
"&item="
+
JSON
.
stringify
(
that
.
data
.
item
),
})
}
},
/**
* 是否需要开具纸质发票
* @param {*} e
*/
radioChange
:
function
(
e
)
{
this
.
setData
({
isInvoice
:
e
.
detail
.
value
,
})
},
/**
* 拨打电话
*/
tel
:
function
()
{
wx
.
makePhoneCall
({
phoneNumber
:
'95338'
})
},
//知情同意书
goConsent
:
function
(
e
)
{
wx
.
navigateTo
({
url
:
'/packageA/consent/consent'
})
},
//同意知情同意书
agree
:
function
(
e
)
{
var
that
=
this
;
var
agree
=
that
.
data
.
agree
?
false
:
true
;
that
.
setData
({
agree
:
agree
})
},
//选择地址
gosite
()
{
wx
.
navigateTo
({
url
:
'/packageA/site/site'
,
})
},
//判断是否是iPhonex
checkModal
:
function
()
{
let
that
=
this
;
wx
.
getSystemInfo
({
success
:
(
res
)
=>
{
// iPhone X iPhone XR iPhone XS Max iPhone XS
if
(
/^iPhone X.*/i
.
test
(
res
.
model
)
||
/^iPhone XR.*/i
.
test
(
res
.
model
)
||
/^iPhone XS.*/i
.
test
(
res
.
model
)
||
/^iPhone 11*/i
.
test
(
res
.
model
)
||
/^iPhone 11 Pro Max*/i
.
test
(
res
.
model
))
{
that
.
setData
({
iPhoneX
:
true
,
})
}
else
{
that
.
setData
({
iPhoneX
:
false
,
})
}
}
});
},
/**
* applyPay 立即支付
*/
applyPay
:
Util
.
debouce
(
function
()
{
let
that
=
this
;
that
.
setData
({
isBtnAsh
:
false
})
if
(
that
.
data
.
receiveAddress
.
id
==
undefined
)
{
wx
.
showToast
({
title
:
'请填写收货地址'
,
icon
:
'none'
})
that
.
setData
({
isBtnAsh
:
true
})
return
}
if
(
that
.
data
.
ishow
==
true
)
{
if
(
that
.
data
.
item
==
null
)
{
wx
.
showToast
({
title
:
'请补充患者信息'
,
icon
:
'none'
})
that
.
setData
({
isBtnAsh
:
true
})
return
}
if
(
Util
.
isEmpty
(
that
.
data
.
item
.
card
))
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'根据互联网医院管理规定,请您填写患者身份证号码。'
,
confirmText
:
'去填写'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
that
.
setData
({
isBtnAsh
:
true
})
wx
.
navigateTo
({
url
:
"/packageA/editPatientInfo/editPatientInfo?item="
+
JSON
.
stringify
(
that
.
data
.
item
)
+
"&btid=1"
,
})
}
}
})
that
.
setData
({
isBtnAsh
:
true
})
return
;
}
}
if
(
that
.
data
.
receiveAddress
==
''
)
{
wx
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
content
:
'请选择收货地址!'
,
})
}
else
{
wx
.
showLoading
({
title
:
'正在拉起支付'
,
mask
:
true
})
that
.
prescriptionPay
();
}
},
1000
,
true
),
prescriptionPay
:
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
);
}
}
let
data
=
{
payid
:
that
.
data
.
list
.
payid
,
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
,
// rise_need:that.data.isInvoice
}
Service
.
prescriptionPay
(
data
).
then
((
res
)
=>
{
console
.
log
(
'res1'
,
res
);
switch
(
res
.
code
)
{
case
1
:
var
orderNumber
=
res
.
data
.
dealarr
.
out_trade_no
;
wx
.
hideLoading
();
that
.
data
.
main
=
false
;
wx
.
requestPayment
({
timeStamp
:
res
.
data
.
parameter
.
timeStamp
,
nonceStr
:
res
.
data
.
parameter
.
nonceStr
,
package
:
res
.
data
.
parameter
.
package
,
signType
:
'MD5'
,
paySign
:
res
.
data
.
parameter
.
paySign
,
success
(
res
)
{
console
.
log
(
'res'
)
if
(
res
.
errMsg
&&
res
.
errMsg
==
"requestPayment:ok"
)
{
console
.
log
(
"requestPayment:ok"
)
wx
.
reLaunch
({
url
:
'/packageA/drugOrder/drugOrder'
})
that
.
data
.
paySuccess
=
true
;
return
;
}
else
{
wx
.
showLoading
({
title
:
'支付中'
,
mask
:
true
})
that
.
paySuccess
(
orderNumber
);
}
},
fail
(
res
)
{
wx
.
showToast
({
title
:
'支付失败'
,
icon
:
'none'
})
that
.
setData
({
isBtnAsh
:
true
})
that
.
data
.
main
=
true
;
that
.
onShow
();
},
complete
:
function
(
res
)
{
if
(
res
.
errMsg
==
"requestPayment:ok"
)
{
console
.
log
(
'支付成功'
)
that
.
data
.
paySuccess
=
true
;
}
}
})
wx
.
hideToast
();
return
;
case
-
1
:
//参数异常
case
2
:
//药方过期
case
3
:
//二维码无法使用
case
4
:
//请选择需要购买的药物
case
6
:
case
10001
:
//参数异常
case
10032
:
//请选择患者
case
10036
:
//请选择药方
case
30008
:
//请选择地址
wx
.
hideLoading
();
wx
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
content
:
res
.
msg
,
})
that
.
setData
({
isBtnAsh
:
true
})
return
;
case
5
:
case
7
:
//药方作废、下架提示
wx
.
hideLoading
();
this
.
setData
({
errshow
:
true
,
errmsg
:
res
.
msg
,
errList
:
res
.
data
})
that
.
setData
({
isBtnAsh
:
true
})
return
;
}
})
},
//支付成功回调
paySuccess
(
ordernumber
)
{
var
that
=
this
;
var
data
=
{
ordernumber
:
ordernumber
,
fromwhere
:
3
,
inquiry_id
:
0
}
Service
.
paySucceedCallback
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
setTimeout
(
function
()
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
'购买成功'
,
})
wx
.
reLaunch
({
url
:
'/packageA/drugOrder/drugOrder'
})
},
500
)
}
else
{
setTimeout
(
function
()
{
that
.
paySuccess
(
ordernumber
);
},
200
)
}
})
},
/**
*
*/
hideModal
()
{
this
.
setData
({
errshow
:
false
,
})
},
//登陆后组件回调方法刷新当前页面
_refreshEvent
()
{
console
.
log
(
"刷新"
);
this
.
onShow
();
},
//客服电话
dial
(
e
)
{
let
tel
=
e
.
currentTarget
.
dataset
.
tel
;
wx
.
makePhoneCall
({
phoneNumber
:
tel
,
})
},
})
\ No newline at end of file
packageA/productOrderInfo/productOrderInfo.json
0 → 100644
View file @
285a4fa8
{
"navigationBarTitleText"
:
"确认订单"
,
"usingComponents"
:
{
"modal"
:
"/components/modal/modal"
,
"login"
:
"/components/login/login"
,
"answer"
:
"/components/answer/answer"
}
}
\ No newline at end of file
packageA/productOrderInfo/productOrderInfo.wxml
0 → 100644
View file @
285a4fa8
<view class="wrap">
<view class="header" bindtap="gosite" wx:if='{{receiveAddress==""}}'>
<view class="dz">请选择收货地址</view>
<image src="/images/arrow@2x.png"></image>
</view>
<view class="header" bindtap="gosite" wx:else>
<view class="dz">
<view class="po-re">
<text class="uname">收货人:</text>
<text class="usname">{{receiveAddress.name}}</text>
<view>{{tel}}</view>
</view>
<view class="site-dz">
<text class="shouhdz">收货地址:</text>
<text class="site">{{receiveAddress.take_over}}{{receiveAddress.detail_address}}</text>
</view>
</view>
<image src="/images/arrow@2x.png"></image>
</view>
<image class="fengexian" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAGCAYAAACclRsMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM5NDEyRTJFMzBBNTExRTc4NkZEOEFCRjFBNDU5NTE4IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM5NDEyRTJGMzBBNTExRTc4NkZEOEFCRjFBNDU5NTE4Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Mzk0MTJFMkMzMEE1MTFFNzg2RkQ4QUJGMUE0NTk1MTgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Mzk0MTJFMkQzMEE1MTFFNzg2RkQ4QUJGMUE0NTk1MTgiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4gFPAsAAACi0lEQVR42uyaWytEURiG97hAOeR061CIO5G/gZSEUE7JIYr8CMKNHKJBIZSSH+AvkJTIhcNfQGbc8K5mJ5q99l4z3/j2NvOtem9m1to91ve9b2vtEYqchz8t87EH9f/8IHIedZpXAl1AldbfjzgmNYrKGgPJ9b1vDTde6xXrJVThO6tzjX+OUpu1nIF1FxrQfamp+68pNmsVA+sh1EPogWKblaNfD6BeQg9wsu5DfYQekByQHJAckByQHEjDHNDU3Xe/a2qclF+yEph7B40bzAtB20xmcGTSFM53rgSGYt1hMuktNJYC1nIm1kniM7aYzHsPjRKfEWbq1/sU9ECY0VtUVskByQHJAckByYHMyYGg+j0pv5ge3CNQN/RqcPOagNoYNsiRyWUEhsvgdj0FtTKxdkFvhNv1NNTCwPoOdbqxGrxhUeHZwcD6Ye/rC6EHFGt7IFi9e2CCiTXq5S2DHpAckByQHJAckBxIwxzQ1N13v2tqnLS3TQ/us1bsdb5XAZugJYtnxDG5FM53rgRMqlgXmFhnoCuCSZuheUbWa0JQNzD2wJwV+wk22R5Qf8wyY79eEHpAsS4GwVsGPSA5IDkgOSA5IDmQhjmgqbvvftfUmORtk4P7KbRmMK8AOoKyGTbIkUlTON+5EhiF0DET6wm0TmQ9YmTdIKzPs1lzGVjPoBXC+nwr9j9yOUysq4T1BYyspylglRyQHJAckByQHMiMHPDd75pDO9nbXgf3R2jI8OalNrKWYYMcmVxGYLgMbteKtYaJdcSV1ft2vQlVM7A+QMNuEwzesKhAqmdgfYYGoU/CM1TQ1/0T1nUm1icvbxn0gOSA5IDkgOSA5EAa5oCm7kH1O9nbXwIMALoZYR4r6iuTAAAAAElFTkSuQmCC"></image>
<view class="sf">
<view class="sf-top">
<view class="sf-title">
<image class="sf-img" src="/images/sf.png"></image>
<text class="size-0 ml-15">顺丰配送 19:00前下单当日发货。平台承诺100%正品,假一罚十。</text>
</view>
</view>
</view>
<view class="hzxx" wx:if="{{ishow}}" bindtap='myDetails' data-src="/packageA/selectUser/selectUser">
<text>患者信息</text>
<view class="hz-info">
<text>{{item==""||item==null?'请补充患者信息':item.name}}</text>
<image class="more" src="/images/more.png"></image>
</view>
</view>
<view class="line" wx:if='{{list.prescription.length>0}}'>
<text>推荐产品</text>
</view>
<block wx:for="{{list.prescription}}" 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.drugPrice}}</text>
</view>
</view>
<view class="number">x {{item.num}}</view>
</view>
</view>
</block>
<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 class="list">
<checkbox data-index="{{index}}" checked="{{item.checked}}" bindtap="updataRadio" color='#1384ff' />
<view class="list-item1">
<view class="image">
<image src="{{item.picture}}"></image>
</view>
<view class="item-name">
<view class="name" style="width:395rpx;">{{item.name}}</view>
<view class="firm" style="width:395rpx;">{{item.firm}}</view>
<view class="norms" style="width:395rpx;">{{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="order-list">
<!-- <view class="order-num">
<text>下单时间</text>
<text style="font-size:28rpx;">{{list.create_time}}</text>
</view> -->
<view class="order-num">
<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>
</view>
</view>
<view class="order-num">
<text>服务诊金</text>
<view>
<text style="color:#999999;font-size: 28rpx;">¥ </text>
<text style="color:#999999;font-size: 28rpx;">{{list.zj}}</text>
</view>
</view>
<view class="order-num">
<text>顺丰运费</text>
<view>
<text style=" color:#999999; font-size: 28rpx;">¥ </text>
<text class="fonw-400" style="font-size: 28rpx;">{{list.freight}}</text>
</view>
</view>
<!-- <view class="order-num">
<text>纸质发票</text>
<radio-group class="radio-group" bindchange="radioChange">
<label class="radio" wx:for="{{items}}" wx:key="key">
<radio value="{{item.value}}" checked="{{item.value==0?true : false}}" color='#1384ff' />{{item.name}}
</label>
</radio-group>
</view> -->
<view class="tys" bindtap="agree">
<view wx:if='{{!agree}}' class="unselected">
</view>
<view wx:if='{{agree}}' class="selected">
<image src="/images/on2x.png"></image>
</view>
<text class="tys-text">我已阅读并接受</text>
<text class="zqtys" catchtap="goConsent">《知情同意书》</text>
</view>
<view class="tsy">根据药品实际仓储位置,您的订单可能分开发货</view>
<view class="tsy">遇到任何问题请拨打客服电话:<text bindtap='dial' data-tel='4001199218' style="color:#2684ff;">4001199218</text></view>
<view class="user-logo">
<image src="/images/xdjklogo.png"></image>
</view>
<view wx:if="{{iPhoneX}}" class="height"></view>
</view>
<!-- 微信支付 -->
<view class="three-wrap" style="height:{{iPhoneX?160:100}}rpx;">
<view class="flex-zf">
<view class="jg">
<text>合计:</text>
<text class="text">¥ </text>
<text>{{list.money}}</text>
</view>
<view wx:if='{{!agree||!isBtnAsh}}' class="qzf1">立即支付</view>
<view wx:if='{{agree&&isBtnAsh}}' class="qzf" bindtap="applyPay">立即支付</view>
</view>
</view>
<!-- <view class="btn" bindtap="applyPay">微信支付</view> -->
</view>
<view class="cu-modal {{errshow?'show':''}} shade" bindtap='hideModal' catchtouchmove="true">
<view class='cu-dialog' catchtap style="width:650rpx;border-radius: 20rpx !important;">
<view class='modal-top'>
<view class='modal-title'>{{errmsg}}</view>
</view>
<view class='modal-body' style="margin:0">
<block wx:for="{{errList}}" wx:key='key'>
<view class="list1">
<view class="list-item" style="padding-top:0;">
<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="err_msg">
{{item.msg}}
</view>
</view>
<!-- <view class="number">x {{item.num}}</view> -->
</view>
</view>
</block>
</view>
<view class='modal-footer'>
<text class='sure width-100' catchtap='hideModal'>返回</text>
</view>
</view>
</view>
<login id='login' showClose='{{showClose}}' bind:refreshEvent="_refreshEvent">
</login>
<answer id='answer'></answer>
\ No newline at end of file
packageA/productOrderInfo/productOrderInfo.wxss
0 → 100644
View file @
285a4fa8
@import '/components/modal/modal.wxss';
@import '/components/cu-modal.wxss';
page {
width: 750rpx;
padding-bottom: env(safe-area-inset-bottom);
background: rgb(242, 242, 242)
}
checkbox {
padding-top: 90rpx;
transform: scale(.8);
}
radio {
transform: scale(.7);
color: #1384ff;
}
.radio {
font-size: 28rpx;
}
/*checkbox未选中时样式 */
checkbox .wx-checkbox-input {
/* 自定义样式.... */
border-radius: 50%;
}
/* 选中后的 背景样式 (红色背景 无边框 可根据UI需求自己修改) */
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
/* border: none; */
border-radius: 50%;
background-color: #2684ff;
}
/* 选中后的 对勾样式 (白色对勾 可根据UI需求自己修改) */
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
font-size: 36rpx;
color: #fff;
}
.wrap {
position: absolute;
width: 100%;
top: 0;
left: 0;
background: #fff;
}
.header {
display: flex;
align-items: center;
height: 140rpx;
padding: 0 30rpx;
}
.header image:first-child {
width: 22rpx;
height: 28rpx;
}
.dz {
margin-left: 16rpx;
font-weight: 700;
font-size: 34rpx;
letter-spacing: 2rpx;
}
.po-re {
position: relative;
}
.po-re view {
position: absolute;
right: 0;
top: 0;
font-size: 26rpx;
color: #000;
font-weight: 400;
margin-top: 7rpx;
}
.site {
display: block;
width: 479rpx;
color: #000;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
font-size: 26rpx;
font-weight: 400;
}
.sf {
margin-top: 30rpx;
padding: 0 30rpx 25rpx 30rpx;
font-size: 28rpx;
border-bottom: 1rpx solid #F5F8FB;
}
.sf-top {
display: flex;
justify-content: space-between;
}
.sf-title {
display: flex;
flex-direction: row;
/* align-items: center; */
}
.ml-15 {
font-size: 28rpx;
margin-left: 15rpx;
}
.size-0 {
color: #777;
max-width: 638rpx;
}
.size-1 {
color: #569efc;
}
.sf-img {
margin-top: 8rpx;
width: 32rpx;
height: 32rpx;
}
.tel-img {
width: 38rpx;
height: 38rpx;
}
.hzxx {
display: flex;
justify-content: space-between;
padding: 35rpx 30rpx;
font-size: 34rpx;
}
.line {
border-top: 20rpx solid rgb(242, 242, 242);
border-bottom: 1rpx solid rgb(242, 242, 242);
padding: 30rpx 0;
}
.line text {
margin-left: 30rpx;
font-size: 30rpx;
color: #666;
}
.hz-info {
display: flex;
align-items: center;
}
.hz-info text {
margin-right: 15rpx;
font-size: 30rpx;
color: #999999;
width: 400rpx;
text-align: right;
}
.more {
width: 15rpx;
height: 25rpx;
}
.shouhdz {
font-size: 26rpx;
color: #666666;
font-weight: 400;
width: 145rpx;
display: inline-block;
}
.site-dz {
display: flex;
align-items: center;
margin-top: 15rpx;
}
.user {
padding-top: 10rpx;
}
.uname {
width: 145rpx;
font-size: 26rpx;
font-weight: 400;
color: #666666;
display: inline-block;
}
.usname {
font-size: 26rpx;
font-weight: 400;
color: #000;
}
.uphone {
font-size: 26rpx;
color: #666666;
padding-left: 32rpx;
}
.header image:last-child {
width: 10rpx;
height: 20rpx;
position: absolute;
right: 0;
margin-right: 30rpx;
}
.list {
padding: 0 30rpx;
display: flex;
flex-direction: row;
}
.list1{
padding: 0;
display: flex;
flex-direction: row;
}
.list-item,
.list-item1 {
display: flex;
width: 100%;
border-bottom: 2rpx solid #F5F8FB;
padding-bottom: 42rpx;
padding-top: 42rpx;
}
.list-item2
{
display: flex;
width: 100%;
}
.br{
margin: 30rpx;
background-color:#F5F8FB;
height: 2rpx;
width: 530rpx;
}
.list-item image,
.list-item1 image {
width: 155rpx;
height: 155rpx;
}
.list-item1 {
margin-left: 20rpx;
width: 630rpx;
}
.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;
width: 455rpx;
overflow: hidden;
/*超出部分隐藏*/
white-space: nowrap;
/*不换行*/
text-overflow: ellipsis;
/*超出部分文字以...显示*/
}
.name {
font-size: 32rpx;
color: #333333;
font-weight: 600;
}
.errname{
width: 400rpx;
font-size: 24rpx;
color: #333333;
font-weight: 400;
text-align: left;
overflow: hidden;
/*超出部分隐藏*/
white-space: nowrap;
/*不换行*/
text-overflow: ellipsis;
/*超出部分文字以...显示*/
}
.firm {
font-size: 24rpx;
color: #666666;
overflow: hidden;
/*超出部分隐藏*/
white-space: nowrap;
/*不换行*/
text-overflow: ellipsis;
/*超出部分文字以...显示*/
}
.norms {
font-size: 24rpx;
color: #666666;
overflow: hidden;
/*超出部分隐藏*/
white-space: nowrap;
/*不换行*/
text-overflow: ellipsis;
/*超出部分文字以...显示*/
}
.pirce {
color: #EC5B68;
}
.err_msg{
color: #EC5B68;
font-weight: 700;
}
.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;
}
.errnumber{
display: flex;
margin-top: 5rpx;
font-size: 20rpx;
}
.order-list {
border-top: 20rpx solid rgb(242, 242, 242);
}
.order-num {
display: flex;
justify-content: space-between;
border-bottom: 2rpx solid #F5F8FB;
padding: 35rpx 30rpx;
font-size: 34rpx;
}
.orders-num {
display: flex;
justify-content: space-between;
padding: 35rpx 30rpx;
font-size: 34rpx;
}
.order-num text:first-child {
color: #000;
}
.fonw-400 {
font-weight: 400;
}
.order-num text:last-child {
color: #999999;
}
.red {
color: #EC5B68;
}
.btn {
width: 690rpx;
height: 90rpx;
background: #2684FF;
line-height: 90rpx;
text-align: center;
color: #fff;
font-size: 32rpx;
margin-bottom: 30rpx;
margin-left: 30rpx;
letter-spacing: 2rpx;
border-radius: 4rpx;
position: absolute;
bottom: 30rpx;
}
.three-wrap {
width: 100%;
background: #fff;
z-index: 1000;
position: fixed;
bottom: 0;
left: 0;
}
.tys {
font-size: 26rpx;
line-height: 42rpx;
padding: 30rpx 0 20rpx 30rpx;
flex-direction: row;
/* background: rgb(242, 242, 242); */
}
.tsy {
font-size: 26rpx;
line-height: 42rpx;
padding-left: 30rpx;
/* padding-bottom: 150rpx; */
flex-direction: row;
/* background: rgb(242, 242, 242); */
color: rgb(177, 177, 177);
}
.unselected {
border-radius: 50%;
height: 30rpx;
width: 30rpx;
border: 1rpx solid #ccc;
margin: 5rpx;
margin-right: 10rpx;
display: block;
float: left;
/* 自定义样式.... */
}
.selected image {
border-radius: 50%;
height: 32rpx;
width: 32rpx;
margin: 5rpx;
margin-right: 10rpx;
display: block;
float: left;
/* 自定义样式.... */
}
.tys-text {
color: #999;
font-size: 26rpx;
}
.zqtys {
color: #2684FF;
z-index: 100;
}
.flex-zf {
display: flex;
justify-content: space-between;
border-top: 1rpx solid #F5F8FB;
}
.jg {
width: 50%;
height: 100rpx;
line-height: 100rpx;
font-size: 28rpx;
padding-left: 30rpx;
color: #999;
}
.text {
margin-left: 20rpx;
color: #EC5B68;
}
.jg text:last-child {
color: #EC5B68;
font-weight: 700;
font-size: 36rpx;
}
.qzf {
width: 50%;
height: 100rpx;
background: #2684ff;
color: #fff;
line-height: 100rpx;
text-align: center;
font-size: 34rpx;
font-weight: 700;
}
.qzf1 {
width: 50%;
height: 100rpx;
background: #ccc;
color: #fff;
line-height: 100rpx;
text-align: center;
font-size: 34rpx;
font-weight: 700;
}
.height {
width: 100%;
height: 50rpx;
background: rgb(242, 242, 242);
}
.fengexian {
width: 100%;
height: 6rpx;
display: block;
border-bottom: 20rpx solid rgb(242, 242, 242);
}
/* 登录 */
/* 登录 */
.login-wrap {
width: 100%;
height: 100%;
position: fixed;
z-index: 9999;
background: rgba(0, 0, 0, .4);
bottom: 0;
}
.cu-modal {
width: 100%;
background: #fff;
position: absolute;
border-radius: 15rpx 15rpx 0 0;
bottom: 0;
left: 0;
z-index: 10000;
text-align: center;
height: 540rpx;
}
.login-content {
width: 100%;
height: 480rpx;
background: #ffffff;
position: absolute;
bottom: 0;
left: 0;
text-align: center;
}
.login-close {
position: absolute;
right: 15rpx;
top: 15rpx;
width: 40rpx;
height: 40rpx;
padding: 10rpx;
font-size: 40rpx;
color: #000000;
font-weight: 800;
}
.login-title {
font-size: 50rpx;
font-weight: bold;
color: #000000;
letter-spacing: 2rpx;
margin-top: 84rpx;
margin-bottom: 50rpx;
}
.login-text {
width: 620rpx;
font-size: 32rpx;
margin: 0 auto;
font-weight: 400;
text-align: left;
color: #555;
line-height: 46rpx;
letter-spacing: 2rpx;
}
.login-btn {
width: 620rpx;
height: 88rpx;
line-height: 88rpx;
background: #2684ff;
border-radius: 10rpx;
margin: 0 auto;
margin-top: 50rpx;
}
.cu-dialog {
min-height: 480rpx;
border-radius: 10rpx 10rpx 0 0 !important;
}
.user-logo {
display: flex;
justify-content: center;
width: 100%;
padding-bottom: 220rpx;
margin-top: 100rpx;
}
.user-logo image {
width: 650rpx;
height: 104rpx;
}
.err-title{
font-size: 32rpx;
font-weight: 700;
text-align: center;
color: #333333;
margin-bottom: 50rpx;
}
.err-image{
height: 120rpx!important;
width: 120rpx!important;
}
.err-btn{
margin:0rpx auto;
margin-top: 30rpx;
width: 510rpx;
height: 66rpx;
line-height: 66rpx;
background-color: #2684ff;
font-size: 26rpx;
border-radius: 33rpx;
}
/* 弹框 */
.shade {
display: block;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
background: rgba(0, 0, 0, 0.3);
z-index: 1001;
}
.modal-title{
font-size: 32rpx;
font-weight: bold;
}
\ No newline at end of file
packageA/selectUser/selectUser.js
View file @
285a4fa8
...
...
@@ -132,7 +132,10 @@ Page({
});
},
next
:
Util
.
debouce
(
function
(
e
){
wx
.
showLoading
();
wx
.
showLoading
({
mask
:
true
,
title
:
'加载中'
});
var
that
=
this
;
if
(
Util
.
isEmpty
(
that
.
data
.
item
))
{
wx
.
showModal
({
...
...
packageA/serviceDetails/serviceDetails.js
View file @
285a4fa8
...
...
@@ -53,7 +53,7 @@ Page({
},
1000
,
true
),
//重新购买
repurchase
:
function
()
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
var
op_openid
=
''
;
var
data
=
{};
data
.
unionid
=
this
.
data
.
info
.
consultant_unionid
;
...
...
packageA/site/site.js
View file @
285a4fa8
...
...
@@ -18,7 +18,7 @@ Page({
},
goback
(
e
){
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
console
.
log
(
e
)
var
data
=
{
addressId
:
e
.
currentTarget
.
dataset
.
item
.
id
,
...
...
@@ -32,7 +32,7 @@ Page({
wx
.
hideLoading
();
},
addsite
(
e
){
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
let
item
=
JSON
.
stringify
(
e
.
currentTarget
.
dataset
.
item
);
if
(
e
.
currentTarget
.
dataset
.
num
==
0
){
wx
.
navigateTo
({
...
...
packageB/enterEmial/enterEmial.js
View file @
285a4fa8
...
...
@@ -51,6 +51,7 @@ Page({
data
.
g_id
=
this
.
data
.
gid
;
wx
.
showLoading
({
title
:
'正在提交'
,
mask
:
true
})
data
.
email
=
this
.
data
.
email
;
if
(
this
.
data
.
gid
.
length
<
1
||
this
.
data
.
email
.
length
<
1
){
...
...
packageB/invoiceDetail/invoiceDetail.js
View file @
285a4fa8
...
...
@@ -21,6 +21,7 @@ Page({
onLoad
:
function
(
options
)
{
wx
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
let
that
=
this
;
let
gid
=
options
.
gid
;
...
...
@@ -109,8 +110,9 @@ Page({
/* 查看发票 */
vieTicket
()
{
let
that
=
this
;
wx
:
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
let
gid
=
this
.
data
.
gid
;
Service
.
seeInvoice
(
gid
).
then
((
res
)
=>
{
...
...
packageB/invoiceInfo/invoiceInfo.js
View file @
285a4fa8
...
...
@@ -68,6 +68,7 @@ Page({
let
gid
=
that
.
data
.
gid
wx
.
showLoading
({
title
:
'正在提交'
,
mask
:
true
})
Service
.
sendEmail
(
gid
).
then
(()
=>
{
wx
.
navigateTo
({
...
...
pages/chatNews/chatNews.js
View file @
285a4fa8
...
...
@@ -172,7 +172,7 @@ Page({
//去聊天页面
goChat
:
Util
.
debouce
(
function
(
e
)
{
// console.log(e);
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
let
item
=
e
.
currentTarget
.
dataset
.
item
;
var
datas
=
{};
var
user
=
wx
.
getStorageSync
(
'user'
);
...
...
pages/dati/dati.js
View file @
285a4fa8
...
...
@@ -261,6 +261,7 @@ Page({
console
.
log
(
"次数"
)
wx
.
showLoading
({
title
:
'正在上传'
,
mask
:
true
})
var
startTime
=
wx
.
getStorageSync
(
'startTime'
);
var
timeArr
=
wx
.
getStorageSync
(
'timeArr'
);
...
...
pages/dati03/dati03.js
View file @
285a4fa8
...
...
@@ -230,6 +230,7 @@ Page({
},
5000
)
wx
.
showLoading
({
title
:
'上传中...'
,
mask
:
true
})
wx
.
request
({
method
:
'POST'
,
...
...
pages/dati04/dati04.js
View file @
285a4fa8
...
...
@@ -488,6 +488,7 @@ Page({
// }, 7000)
wx
.
showLoading
({
title
:
'上传中...'
,
mask
:
true
})
wx
.
request
({
method
:
'POST'
,
...
...
pages/dati05/dati05.js
View file @
285a4fa8
...
...
@@ -543,6 +543,7 @@ Page({
})
wx
.
showLoading
({
title
:
'上传中...'
,
mask
:
true
})
var
startTime
=
wx
.
getStorageSync
(
'startTime'
);
var
timeArr
=
wx
.
getStorageSync
(
'timeArr'
);
...
...
pages/docuterInfo/docuterInfo.js
View file @
285a4fa8
...
...
@@ -207,7 +207,7 @@ Page({
})
},
goIntro
()
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
var
that
=
this
;
wx
.
navigateTo
({
url
:
'/pages/doctorIntro/doctorIntro?t_unionid='
+
that
.
data
.
t_unionid
+
'&t_unitid='
+
that
.
data
.
t_unitid
+
'&t_openid='
+
that
.
data
.
t_openid
,
...
...
pages/index/index.js
View file @
285a4fa8
...
...
@@ -75,7 +75,7 @@ Page({
},
///特色门诊
site
:
function
(
e
)
{
wx
.
showLoading
()
wx
.
showLoading
(
{
mask
:
true
}
)
var
that
=
this
if
(
e
.
currentTarget
.
dataset
.
door
)
{
that
.
nav
(
'door'
,
e
.
currentTarget
.
dataset
.
door
)
...
...
@@ -104,7 +104,7 @@ Page({
},
//医生详情
doctorInfo
:
function
(
e
)
{
wx
.
showLoading
()
wx
.
showLoading
(
{
mask
:
true
}
)
//医生详情页
wx
.
navigateTo
({
url
:
'/pages/docuterInfo/docuterInfo?t_unionid='
+
e
.
currentTarget
.
dataset
.
unionid
+
'&t_unitid='
+
e
.
currentTarget
.
dataset
.
unitid
+
'&t_openid='
+
e
.
currentTarget
.
dataset
.
openid
,
...
...
pages/info/info.js
View file @
285a4fa8
...
...
@@ -291,6 +291,7 @@ Page({
});
wx
.
showLoading
({
title
:
'正在加载'
,
mask
:
true
});
},
onShow
:
function
()
{
...
...
@@ -703,7 +704,7 @@ Page({
upPayBtn
:
Util
.
debouce
(
function
()
{
var
payInfo
=
wx
.
getStorageSync
(
'payInfo'
)
wx
.
showLoading
({
title
:
''
,
mask
:
true
})
var
that
=
this
;
if
(
that
.
data
.
btnFlag
)
{
...
...
@@ -1246,6 +1247,7 @@ Page({
},
5000
)
wx
.
showLoading
({
title
:
'请稍后'
,
mask
:
true
})
// 改变按钮状态
this
.
setData
({
...
...
@@ -1894,6 +1896,7 @@ Page({
var
urlt
=
Api
.
HOST
+
'appIteration.php?s=Home/stinfo'
;
wx
.
showLoading
({
title
:
'正在上传'
,
mask
:
true
})
var
uploadData
=
setTimeout
(
function
()
{
wx
.
hideLoading
()
...
...
@@ -2015,6 +2018,7 @@ Page({
var
urlt
=
Api
.
HOST
+
'appIteration.php?s=Home/stinfo'
;
wx
.
showLoading
({
title
:
'正在上传'
,
mask
:
true
})
var
uploadData
=
setTimeout
(
function
()
{
wx
.
hideLoading
()
...
...
pages/info1/info1.js
View file @
285a4fa8
...
...
@@ -45,6 +45,7 @@ Page({
var
loadPhoto
=
setTimeout
(
function
(){
wx
.
showLoading
({
title
:
'加载中...'
,
mask
:
true
})
},
1000
)
// 咨询师的openID 和时间
...
...
@@ -234,6 +235,7 @@ Page({
},
5000
)
wx
.
showLoading
({
title
:
'请稍后'
,
mask
:
true
})
this
.
setData
({
payInfo
:
false
})
Api
.
fetchPost
(
urlt
,
data
,
(
err
,
res
)
=>
{
...
...
pages/prescription/order/order.wxml
View file @
285a4fa8
...
...
@@ -22,7 +22,7 @@
<view class="sf-top">
<view class="sf-title">
<image class="sf-img" src="/images/sf.png"></image>
<text class="size-0 ml-15">顺丰配送 1
6
:00前下单当日发货。平台承诺100%正品,假一罚十。</text>
<text class="size-0 ml-15">顺丰配送 1
9
:00前下单当日发货。平台承诺100%正品,假一罚十。</text>
</view>
</view>
</view>
...
...
pages/search/search.js
View file @
285a4fa8
...
...
@@ -500,7 +500,7 @@ Page({
},
//详情
doctorInfo
:
function
(
e
)
{
wx
.
showLoading
();
wx
.
showLoading
(
{
mask
:
true
}
);
wx
.
navigateTo
({
url
:
'/pages/docuterInfo/docuterInfo?t_unionid='
+
e
.
currentTarget
.
dataset
.
unionid
+
'&t_unitid='
+
e
.
currentTarget
.
dataset
.
unitid
+
'&t_openid='
+
e
.
currentTarget
.
dataset
.
openid
,
})
...
...
project.config.json
View file @
285a4fa8
...
...
@@ -124,6 +124,12 @@
"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=33610"
,
"scene"
:
null
}
]
}
...
...
utils/config.js
View file @
285a4fa8
...
...
@@ -74,10 +74,10 @@ const url = {
drogOrderDetail
:
HOST
+
"wechatIteration.php?s=/Drugorder/prescription_order_detail"
,
//药品订单详情
/**end */
/**公共 begin*/
isReport
:
HOST
+
"wechatIteration.php?s=/Inquisition/check_istype"
,
//检测是否允许查看报告
forcedUpdate
:
HOST
+
'wechatIteration.php?s=/Public/wechatVer'
,
//强制更新
getWxUserPhone
:
HOST
+
"wechatIteration.php?s=/InquiryUser/getUserPhone"
,
//微信授权获取用户手机号
getCode
:
HOST
+
"wechatIteration.php?s=/Home/getCode"
,
//获取验证码
isReport
:
HOST
+
"wechatIteration.php?s=/Inquisition/check_istype"
,
//检测是否允许查看报告
forcedUpdate
:
HOST
+
'wechatIteration.php?s=/Public/wechatVer'
,
//强制更新
getWxUserPhone
:
HOST
+
"wechatIteration.php?s=/InquiryUser/getUserPhone"
,
//微信授权获取用户手机号
getCode
:
HOST
+
"wechatIteration.php?s=/Home/getCode"
,
//获取验证码
checkCard
:
HOST_yiyuan
+
'Idcard/checkCard'
,
//验证身份证与姓名
/**end */
/**量表 */
...
...
utils/service.js
View file @
285a4fa8
...
...
@@ -600,6 +600,10 @@ function drogOrderDetail(param) {
var
drogOrderDetailUrl
=
config
.
url
.
drogOrderDetail
;
return
wxRequest
.
postRequest
(
drogOrderDetailUrl
,
param
);
}
/**
* 是否答题
* @param {*} param
*/
function
getIsAnswer
(
param
){
var
getIsAnswerUrl
=
config
.
url
.
getIsAnswer
;
return
wxRequest
.
postRequest
(
getIsAnswerUrl
,
param
);
...
...
utils/tim.js
View file @
285a4fa8
...
...
@@ -117,6 +117,7 @@ function KICKED_OUT(event){
if
(
res
.
confirm
)
{
wx
.
showLoading
({
title
:
'正在登录'
,
mask
:
true
})
getApp
().
getUserInfo
(
function
(
cb
)
{
if
(
!
Util
.
isEmpty
(
cb
))
{
...
...
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