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