diff --git a/healthyService/pages/healthyDetail/healthyDetail.js b/healthyService/pages/healthyDetail/healthyDetail.js index 6ffb9fd..26dcdbe 100644 --- a/healthyService/pages/healthyDetail/healthyDetail.js +++ b/healthyService/pages/healthyDetail/healthyDetail.js @@ -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(); }, diff --git a/healthyService/pages/healthyIntro/healthyIntro.js b/healthyService/pages/healthyIntro/healthyIntro.js index 7b7bffa..0a01ce7 100644 --- a/healthyService/pages/healthyIntro/healthyIntro.js +++ b/healthyService/pages/healthyIntro/healthyIntro.js @@ -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{ diff --git a/healthyService/pages/healthyOrderDetail/healthyOrderDetail.js b/healthyService/pages/healthyOrderDetail/healthyOrderDetail.js index 7265df2..9b077a8 100644 --- a/healthyService/pages/healthyOrderDetail/healthyOrderDetail.js +++ b/healthyService/pages/healthyOrderDetail/healthyOrderDetail.js @@ -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 }) diff --git a/healthyService/pages/sickInfo/sickInfo.wxss b/healthyService/pages/sickInfo/sickInfo.wxss index c238af3..9951a79 100644 --- a/healthyService/pages/sickInfo/sickInfo.wxss +++ b/healthyService/pages/sickInfo/sickInfo.wxss @@ -1,7 +1,10 @@ /* pages/sickInfo/sickInfo.wxss */ + .page{ + height:100vh; display: flex; flex-direction: column; + background: #f2f2f2; } .wraper{ overflow: scroll;