|
@@ -14,9 +14,10 @@
|
|
<view style="width: 20%;">{{item.zhonglei}}</view>
|
|
<view style="width: 20%;">{{item.zhonglei}}</view>
|
|
<!-- 开通状态 -->
|
|
<!-- 开通状态 -->
|
|
<view style="width: 40%;">
|
|
<view style="width: 40%;">
|
|
- <text v-if="item.Opening == 2" style="text-decoration: underline; color: #888888;" @click="this.tcShow=true,num=index" >未开通</text>
|
|
|
|
|
|
+ <text v-if="item.Opening == 0||item.Opening == false" style="text-decoration: underline; color: #888888;" @click="this.tcShow=true,num=index" >未开通</text>
|
|
<text v-if="item.Opening == 1" style="color: #888888;">申请中</text>
|
|
<text v-if="item.Opening == 1" style="color: #888888;">申请中</text>
|
|
-
|
|
|
|
|
|
+ <text v-if="item.Opening == 3" style="color: #888888;">已拒绝</text>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<!-- 服务状态 -->
|
|
<!-- 服务状态 -->
|
|
<view style="width: 20%;color: #999999;">
|
|
<view style="width: 20%;color: #999999;">
|
|
@@ -25,7 +26,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 控制器 -->
|
|
<!-- 控制器 -->
|
|
<view style="width: 15%;">
|
|
<view style="width: 15%;">
|
|
- <u-switch v-model="item.state" :data-index="item.state" active-color="#84bb43" inactive-color="#eee" @change="openSave" :disabled="item.Opening"></u-switch>
|
|
|
|
|
|
+ <u-switch v-model="item.state" :data-index="item.state" active-color="#84bb43" inactive-color="#eee" @change="openSave" :disabled="item.disp"></u-switch>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -52,19 +53,22 @@
|
|
num:'',//点击的下标
|
|
num:'',//点击的下标
|
|
//zhonglei咨询种类
|
|
//zhonglei咨询种类
|
|
//state服务开启状态 true为开 false为关
|
|
//state服务开启状态 true为开 false为关
|
|
- //Opening开通状态 0为开通 1为申请中 2为未开通
|
|
|
|
|
|
+ //Opening开通状态 0为开通 1为申请中 2为未开通 修改为2=已通过,3=已经拒绝
|
|
serbicelist: [{
|
|
serbicelist: [{
|
|
zhonglei: '电话咨询',
|
|
zhonglei: '电话咨询',
|
|
state: false,
|
|
state: false,
|
|
- Opening: 0
|
|
|
|
|
|
+ Opening: 0,
|
|
|
|
+ disp:true,
|
|
}, {
|
|
}, {
|
|
zhonglei: '图文咨询',
|
|
zhonglei: '图文咨询',
|
|
state: false,
|
|
state: false,
|
|
- Opening: 0
|
|
|
|
|
|
+ Opening: 1,
|
|
|
|
+ disp:true,
|
|
}, {
|
|
}, {
|
|
zhonglei: '门诊预约',
|
|
zhonglei: '门诊预约',
|
|
state: false,
|
|
state: false,
|
|
- Opening: 0
|
|
|
|
|
|
+ Opening: 0,
|
|
|
|
+ disp:true,
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -75,10 +79,37 @@
|
|
*/
|
|
*/
|
|
getStatus:async function(){
|
|
getStatus:async function(){
|
|
let res = await this.$request.post('doctor/getSettingList',{'type':1});
|
|
let res = await this.$request.post('doctor/getSettingList',{'type':1});
|
|
|
|
+ console.log('我是res',res);
|
|
if(res.status==0){
|
|
if(res.status==0){
|
|
this.serbicelist[0].state = res.data.is_phone;
|
|
this.serbicelist[0].state = res.data.is_phone;
|
|
this.serbicelist[1].state = res.data.is_chat;
|
|
this.serbicelist[1].state = res.data.is_chat;
|
|
this.serbicelist[2].state = res.data.is_appoint
|
|
this.serbicelist[2].state = res.data.is_appoint
|
|
|
|
+ if(res.data.is_appoint_status){
|
|
|
|
+ this.serbicelist[2].Opening=res.data.is_appoint_status.status
|
|
|
|
+ if(res.data.is_appoint_status.status==2){
|
|
|
|
+ this.serbicelist[2].disp=false;
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.serbicelist[2].Opening=0
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(res.data.is_chat_status){
|
|
|
|
+ this.serbicelist[1].Opening=res.data.is_chat_status.status
|
|
|
|
+ if(res.data.is_chat_status.status==2){
|
|
|
|
+ this.serbicelist[1].disp=false;
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.serbicelist[1].Opening=0
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(res.data.is_phone_status){
|
|
|
|
+ this.serbicelist[0].Opening=res.data.is_phone_status.status
|
|
|
|
+ if(res.data.is_phone_status.status==2){
|
|
|
|
+ this.serbicelist[0].disp=false;
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.serbicelist[0].Opening=0
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -111,13 +142,28 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 确认申请
|
|
// 确认申请
|
|
- qrsq(){
|
|
|
|
- this.serbicelist[this.num].Opening = 1,
|
|
|
|
- this.num = ''
|
|
|
|
- }
|
|
|
|
|
|
+ qrsq:async function(){
|
|
|
|
+ let types = 0;
|
|
|
|
+ if(this.num==0){
|
|
|
|
+ types = 2;
|
|
|
|
+ }else if(this.num==1){
|
|
|
|
+ types = 1;
|
|
|
|
+ }else{
|
|
|
|
+ types = 3;
|
|
|
|
+ }
|
|
|
|
+ let res = await this.$request.post("ServiceApply/serviceExamine",{"service_type":types});
|
|
|
|
+ console.log('res,',res);
|
|
|
|
+ if(res.status==0){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ 'title':'请求成功',
|
|
|
|
+ duration:3000
|
|
|
|
+ })
|
|
|
|
+ this.serbicelist[this.num].Opening = 1;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
|
|
}
|
|
}
|
|
- };
|
|
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style>
|
|
<style>
|