提醒tip
This commit is contained in:
parent
129db4f081
commit
4b51dcf33b
@ -39,8 +39,9 @@ Component({
|
|||||||
order_inquiry_id: {
|
order_inquiry_id: {
|
||||||
type: String,
|
type: String,
|
||||||
value: '',
|
value: '',
|
||||||
observer(){
|
observer(val){
|
||||||
this.getAudioMsg();
|
this.getAudioMsg();
|
||||||
|
this.checkChuFang(val)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
from:{
|
from:{
|
||||||
@ -132,6 +133,7 @@ Component({
|
|||||||
showTip:true
|
showTip:true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//修改为组件传值
|
//修改为组件传值
|
||||||
// this.getInquiryMessageBasic()
|
// this.getInquiryMessageBasic()
|
||||||
// console.log("app.globalData.scene from TUIchat ready: ", app.globalData.scene);
|
// console.log("app.globalData.scene from TUIchat ready: ", app.globalData.scene);
|
||||||
@ -233,10 +235,30 @@ Component({
|
|||||||
* 组件的方法列表
|
* 组件的方法列表
|
||||||
*/
|
*/
|
||||||
methods: {
|
methods: {
|
||||||
|
checkChuFang(order_inquiry_id){
|
||||||
|
api.getDoctorPrescriptionCheck({order_inquiry_id: order_inquiry_id}).then(response => {
|
||||||
|
let status = response.data.status
|
||||||
|
if(status == 2){
|
||||||
|
wx.setStorageSync('hasYaoTip',true);
|
||||||
|
this.setData({
|
||||||
|
showYaotip:true
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
wx.setStorageSync('hasYaoTip',false);
|
||||||
|
this.setData({
|
||||||
|
showYaotip:false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch(errors => {
|
||||||
|
console.error(errors);
|
||||||
|
})
|
||||||
|
},
|
||||||
closeYaotip(){
|
closeYaotip(){
|
||||||
this.setData({
|
this.setData({
|
||||||
showYaotip:true
|
showYaotip:true
|
||||||
})
|
})
|
||||||
|
wx.setStorageSync('hasYaoTip',true);
|
||||||
},
|
},
|
||||||
openTime(){
|
openTime(){
|
||||||
this.selectComponent("#MessageInput").openTimePicker();
|
this.selectComponent("#MessageInput").openTimePicker();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user