医生3.1
This commit is contained in:
parent
1e13c0a234
commit
4feeebb21b
@ -1,4 +1,6 @@
|
|||||||
// commpents/mynavbar/index.js
|
// commpents/mynavbar/index.js
|
||||||
|
import { API } from '../../../utils/network/api'
|
||||||
|
const api = new API()
|
||||||
Component({
|
Component({
|
||||||
/**
|
/**
|
||||||
* 组件的属性列表
|
* 组件的属性列表
|
||||||
@ -15,7 +17,7 @@ Component({
|
|||||||
* 组件的初始数据
|
* 组件的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
|
static_host: api.getStaticHost()
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="tui-navigatorbar">
|
<view class="tui-navigatorbar">
|
||||||
<image wx:if="{{ navbarData.showCapsule==1 }}" class="tui-navigatorbar-back" bindtap="_navback" src="/TUIKit/static/assets/ic_back_black.svg" />
|
<image wx:if="{{ navbarData.showCapsule==1 }}" class="tui-navigatorbar-back" bindtap="_navback" src="{{static_host}}/applet/doctor/static/images/yishi/back.png" />
|
||||||
<view class="conversation-title">{{ navbarData.title }}</view>
|
<view class="conversation-title">{{ navbarData.title }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { API } from '../../../utils/network/api'
|
||||||
const app = getApp()
|
const app = getApp()
|
||||||
const api = new API()
|
const api = new API()
|
||||||
Component({
|
Component({
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"m-nav-bar": "../../../commpents/mynavbar/index",
|
"m-nav-bar": "../../commpents/mynavbar/index",
|
||||||
"van-field": "@vant/weapp/field/index",
|
"van-field": "@vant/weapp/field/index",
|
||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"van-checkbox": "@vant/weapp/checkbox/index",
|
"van-checkbox": "@vant/weapp/checkbox/index",
|
||||||
|
|||||||
@ -261,6 +261,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){
|
||||||
@ -312,6 +331,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
|
||||||
})
|
})
|
||||||
|
|||||||
@ -38,7 +38,8 @@ Page({
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
sub_visible: false,
|
sub_visible: false,
|
||||||
showSetting:false
|
showSetting:false,
|
||||||
|
difficultSetting:false
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
|
|
||||||
@ -94,7 +95,12 @@ Page({
|
|||||||
'config_setting.service_process':result.service_process,
|
'config_setting.service_process':result.service_process,
|
||||||
'config_setting.service_period':result.service_period,
|
'config_setting.service_period':result.service_period,
|
||||||
'config_setting.service_rounds':result.service_rounds,
|
'config_setting.service_rounds':result.service_rounds,
|
||||||
'config_setting.config_service_id':result.config_service_id
|
'config_setting.config_service_id':result.config_service_id,
|
||||||
|
difficultSetting:true
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.setData({
|
||||||
|
difficultSetting:false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
@ -116,6 +122,15 @@ Page({
|
|||||||
})
|
})
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if(this.data.active==2){
|
||||||
|
if(!this.data.difficultSetting){
|
||||||
|
wx.showToast({
|
||||||
|
title: '请先设置服务设置',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.setData({ note: this.data.open_note });
|
this.setData({ note: this.data.open_note });
|
||||||
wx.vibrateShort({
|
wx.vibrateShort({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user