健康包4.28
This commit is contained in:
parent
dbfe69e7de
commit
a1853dbc34
@ -2,6 +2,7 @@
|
||||
import {doctorDetail} from "../../../api/consultExpert"
|
||||
import {family,addfamily} from "../../../api/familyDoc";
|
||||
import {getServiceDetail,createServiceChatOrder} from "../../../api/health"
|
||||
import {doctorService} from "../../../api/consultExpert"
|
||||
import {throttle} from "../../../utils/util"
|
||||
const app = getApp()
|
||||
Page({
|
||||
@ -354,6 +355,20 @@ openPicker(){
|
||||
show:true
|
||||
})
|
||||
},
|
||||
getService(id){
|
||||
doctorService(id).then(res=>{
|
||||
for (let i = 0; i < res.length; i++) {
|
||||
if(res[i].inquiry_mode==8 && res[i].inquiry_type==1){
|
||||
this.setData({
|
||||
current_price:res[i].inquiry_price
|
||||
})
|
||||
};
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
@ -361,11 +376,10 @@ openPicker(){
|
||||
onLoad(options) {
|
||||
this.setData({
|
||||
doctor_id:options.doctor_id,
|
||||
current_price:options.price
|
||||
})
|
||||
|
||||
this.getDeatil(options.doctor_id);
|
||||
|
||||
this.getService(options.doctor_id);
|
||||
this.getFamily();
|
||||
|
||||
},
|
||||
|
||||
@ -38,7 +38,7 @@ Page({
|
||||
let {doctorid,price}=e.currentTarget.dataset;
|
||||
if(price){
|
||||
app.method.navigateTo({
|
||||
url:'/healthyService/pages/healthyDetail/healthyDetail?doctor_id='+doctorid+"&price="+price
|
||||
url:'/healthyService/pages/healthyDetail/healthyDetail?doctor_id='+doctorid
|
||||
})
|
||||
}
|
||||
else{
|
||||
|
||||
@ -237,7 +237,7 @@ Page({
|
||||
}),
|
||||
goXuFei:throttle(function(){
|
||||
let {order_service_type,user_doctor,amount_total}=this.data.order;
|
||||
let url=order_service_type==2?'/healthyService/pages/visitDetail/visitDetail?doctor_id='+user_doctor.doctor_id:'/healthyService/pages/healthyDetail/healthyDetail?doctor_id='+user_doctor.doctor_id+"&price="+amount_total
|
||||
let url=order_service_type==2?'/healthyService/pages/visitDetail/visitDetail?doctor_id='+user_doctor.doctor_id:'/healthyService/pages/healthyDetail/healthyDetail?doctor_id='+user_doctor.doctor_id
|
||||
app.method.navigateTo({
|
||||
url:url
|
||||
})
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
/* pages/sickInfo/sickInfo.wxss */
|
||||
|
||||
.page{
|
||||
height:100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #f2f2f2;
|
||||
}
|
||||
.wraper{
|
||||
overflow: scroll;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user