健康包4.28
This commit is contained in:
parent
dbfe69e7de
commit
a1853dbc34
@ -2,6 +2,7 @@
|
|||||||
import {doctorDetail} from "../../../api/consultExpert"
|
import {doctorDetail} from "../../../api/consultExpert"
|
||||||
import {family,addfamily} from "../../../api/familyDoc";
|
import {family,addfamily} from "../../../api/familyDoc";
|
||||||
import {getServiceDetail,createServiceChatOrder} from "../../../api/health"
|
import {getServiceDetail,createServiceChatOrder} from "../../../api/health"
|
||||||
|
import {doctorService} from "../../../api/consultExpert"
|
||||||
import {throttle} from "../../../utils/util"
|
import {throttle} from "../../../utils/util"
|
||||||
const app = getApp()
|
const app = getApp()
|
||||||
Page({
|
Page({
|
||||||
@ -354,6 +355,20 @@ openPicker(){
|
|||||||
show:true
|
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) {
|
onLoad(options) {
|
||||||
this.setData({
|
this.setData({
|
||||||
doctor_id:options.doctor_id,
|
doctor_id:options.doctor_id,
|
||||||
current_price:options.price
|
|
||||||
})
|
})
|
||||||
|
|
||||||
this.getDeatil(options.doctor_id);
|
this.getDeatil(options.doctor_id);
|
||||||
|
this.getService(options.doctor_id);
|
||||||
this.getFamily();
|
this.getFamily();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@ -38,7 +38,7 @@ Page({
|
|||||||
let {doctorid,price}=e.currentTarget.dataset;
|
let {doctorid,price}=e.currentTarget.dataset;
|
||||||
if(price){
|
if(price){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url:'/healthyService/pages/healthyDetail/healthyDetail?doctor_id='+doctorid+"&price="+price
|
url:'/healthyService/pages/healthyDetail/healthyDetail?doctor_id='+doctorid
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
@ -237,7 +237,7 @@ Page({
|
|||||||
}),
|
}),
|
||||||
goXuFei:throttle(function(){
|
goXuFei:throttle(function(){
|
||||||
let {order_service_type,user_doctor,amount_total}=this.data.order;
|
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({
|
app.method.navigateTo({
|
||||||
url:url
|
url:url
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
/* pages/sickInfo/sickInfo.wxss */
|
/* pages/sickInfo/sickInfo.wxss */
|
||||||
|
|
||||||
.page{
|
.page{
|
||||||
|
height:100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
background: #f2f2f2;
|
||||||
}
|
}
|
||||||
.wraper{
|
.wraper{
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user