患者 3.1
This commit is contained in:
parent
42db3abf00
commit
faa8070ec3
@ -268,7 +268,7 @@ Component({
|
||||
return renderDom;
|
||||
}
|
||||
//13 赠送对话
|
||||
if (customMessage.message_type ===13){
|
||||
if (customMessage.message_type ===14 || customMessage.message_type ===13){
|
||||
let data = customMessage.data;
|
||||
const renderDom = [{
|
||||
type: 'send_talk',
|
||||
|
||||
@ -263,8 +263,6 @@ bindchange(e){
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log('2222222222')
|
||||
console.log(recieveStatus)
|
||||
this.setData({
|
||||
inquiry_type:order_type,
|
||||
inquiry_mode:inquiry_mode,
|
||||
@ -281,6 +279,25 @@ bindchange(e){
|
||||
}
|
||||
})
|
||||
},
|
||||
hasOtherInquiry(arr){
|
||||
if(arr){
|
||||
for (var i = 0; i < arr.length; ++i) {
|
||||
if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
|
||||
this.setData({
|
||||
canVideo:true,
|
||||
videoPrice:arr[i].inquiry_price
|
||||
})
|
||||
};
|
||||
if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
|
||||
this.setData({
|
||||
canDiffcult:true,
|
||||
yinanPrice:arr[i].inquiry_price
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
formatInquiryStatus(arr){
|
||||
var a='3';
|
||||
if(arr){
|
||||
@ -351,6 +368,7 @@ bindchange(e){
|
||||
console.log("inquiryType:"+inquiryType)
|
||||
if(inquiryType==1){
|
||||
this.loopArr(doctor_inquiry_config,3);
|
||||
this.hasOtherInquiry(doctor_inquiry_config)
|
||||
this.setData({
|
||||
canTuwen:true
|
||||
});
|
||||
|
||||
@ -9,10 +9,10 @@ let host=hostConfig().host;
|
||||
function request(url, method, data, loding = false) {
|
||||
if(isLock) return;
|
||||
if (loding) {
|
||||
wx.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
// wx.showLoading({
|
||||
// title: '加载中',
|
||||
// mask: true
|
||||
// })
|
||||
}
|
||||
let token = wx.getStorageSync('AUTH_TOKEN');
|
||||
if (!token) {
|
||||
@ -36,13 +36,16 @@ function request(url, method, data, loding = false) {
|
||||
'Authorization': 'Bearer ' + token
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
console.log('1111111111111111111');
|
||||
console.log(host + url)
|
||||
wx.request({
|
||||
url: host + url,
|
||||
method: method,
|
||||
data: data,
|
||||
header: header,
|
||||
success: function (res) {
|
||||
|
||||
console.log('-----------------------------');
|
||||
console.log(res);
|
||||
var Authorization_token = res.header.Authorization;
|
||||
if (Authorization_token) {
|
||||
wx.setStorageSync('AUTH_TOKEN', Authorization_token); //当token快过期时,服务器会返回新token,本地刷新
|
||||
@ -97,14 +100,16 @@ function request(url, method, data, loding = false) {
|
||||
}
|
||||
isLock=false;
|
||||
},
|
||||
// fail: function (res) {
|
||||
fail: function (res) {
|
||||
console.log(res)
|
||||
console.log(2222222222222222);
|
||||
// wx.showToast({
|
||||
// title: '网络错误,请稍后再试',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
// reject(false)
|
||||
// }
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user