优化
This commit is contained in:
@@ -25,7 +25,7 @@ Page({
|
||||
onShow: function () {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
currentTab: 0 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ Page({
|
||||
onShow() {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
currentTab: 1 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
active: 1, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ Page({
|
||||
},
|
||||
onTabsChange(e){
|
||||
console.log(e);
|
||||
let list_name = "appraise_list_" + this.data.evaluation_type;
|
||||
let list_name = "appraise_list_" + e.detail.value;
|
||||
this.setData({
|
||||
evaluation_type: e.detail.value,
|
||||
current_page: 0,
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"appraise-data": "/commpents/appraise_data/index",
|
||||
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel"
|
||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||
"van-empty": "@vant/weapp/empty/index"
|
||||
},
|
||||
"enablePullDownRefresh": true,
|
||||
"onReachBottomDistance": 100
|
||||
|
||||
@@ -20,8 +20,9 @@
|
||||
date="{{item.created_at}}"
|
||||
wx:for="{{appraise_list_1}}"
|
||||
/>
|
||||
|
||||
</view>
|
||||
<van-empty description="暂无数据" wx:if="{{appraise_list_1.length == 0}}" />
|
||||
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="好评({{good_quantity}})" value="2">
|
||||
<view class="item_list">
|
||||
@@ -33,6 +34,7 @@
|
||||
wx:for="{{appraise_list_2}}"
|
||||
/>
|
||||
</view>
|
||||
<van-empty description="暂无数据" wx:if="{{appraise_list_2.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
|
||||
<t-tab-panel label="中/差评({{bad_quantity}})" value="3">
|
||||
@@ -45,6 +47,7 @@
|
||||
wx:for="{{appraise_list_3}}"
|
||||
/>
|
||||
</view>
|
||||
<van-empty description="暂无数据" wx:if="{{appraise_list_3.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
</t-tabs>
|
||||
</view>
|
||||
@@ -1,7 +1,8 @@
|
||||
page{
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.t-tab-panel,.t-tabs__content {
|
||||
background-color: #F6F6F6;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<view class="help_title">
|
||||
<text wx:if="{{ !banklist_empty }}">我的银行卡</text>
|
||||
</view>
|
||||
<view class="help_note">
|
||||
<view class="help_note" data-url="/Pages/yishi/manual/index" bindtap="go">
|
||||
操作手册-银行卡<t-icon size="26rpx" style="display: inline-block;" name="chevron-right" size="48rpx" data-name="chevron-right" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
@@ -6,5 +8,21 @@ Page({
|
||||
title: '病历信息', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
order_inquiry_id: "",
|
||||
case_detail: {}
|
||||
},
|
||||
onLoad(options){
|
||||
this.setData({
|
||||
order_inquiry_id: options.order_inquiry_id
|
||||
})
|
||||
},
|
||||
onShow(){
|
||||
//获取患者问诊病例
|
||||
api.getDoctorInquiryCase({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
case_detail: response.data
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
})
|
||||
+33
-28
@@ -1,56 +1,58 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
<view class="main_title">基础信息</view>
|
||||
<view class="data_box">
|
||||
<view class="data_box_top">
|
||||
<view class="name">张三三</view>
|
||||
<view class="sex">男|30岁 </view>
|
||||
<view class="name">{{case_detail.name}}</view>
|
||||
<view class="sex">{{case_detail.sex==1?'男':case_detail.sex==2?'女':'未知'}}|{{case_detail.age}}岁 </view>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="height info_item"><text class="info_title">身高:</text><text class="info_val">182cm</text></view>
|
||||
<view class="weight info_item"><text class="info_title">体重:</text><text class="info_val">98KG</text></view>
|
||||
<view class="minzu info_item"><text class="info_title">民族:</text><text class="info_val">汉族</text></view>
|
||||
<view class="zhiye info_item"><text class="info_title">职业:</text><text class="info_val">学生</text></view>
|
||||
<view class="hunyin info_item"><text class="info_title">婚姻:</text><text class="info_val">已婚</text></view>
|
||||
<view class="height info_item"><text class="info_title">身高:</text><text class="info_val">{{case_detail.height}}cm</text></view>
|
||||
<view class="weight info_item"><text class="info_title">体重:</text><text class="info_val">{{case_detail.weight}}KG</text></view>
|
||||
<view class="minzu info_item"><text class="info_title">民族:</text><text class="info_val">{{case_detail.nation_name}}</text></view>
|
||||
<view class="zhiye info_item"><text class="info_title">职业:</text><text class="info_val">{{case_detail.job_name}}</text></view>
|
||||
<view class="hunyin info_item"><text class="info_title">婚姻:</text><text class="info_val">{{case_detail.nation_name}}</text></view>
|
||||
</view>
|
||||
<view class="disease_box">
|
||||
<view class="disease_box_item">
|
||||
<view class="title">所患疾病:</view>
|
||||
<view class="conent">肝炎</view>
|
||||
<view class="conent">{{case_detail.disease_class_name}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">确诊日期:</view>
|
||||
<view class="conent">2022年8月29日 10:23</view>
|
||||
<view class="conent">{{case_detail.diagnosis_date}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<!-- <view class="disease_box_item">
|
||||
<view class="title">医生诊断:</view>
|
||||
<view class="conent">过度劳累,失眠不足导致可以多</view>
|
||||
</view>
|
||||
<view class="conent">{{case_detail.disease_class_name}}</view>
|
||||
</view> -->
|
||||
<view class="disease_box_item">
|
||||
<view class="title">确诊医院:</view>
|
||||
<view class="conent">首都医科大学附属北京佑安医院</view>
|
||||
<view class="conent">{{case_detail.diagnosis_hospital}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">正在服用的药品信息:</view>
|
||||
<view class="conent">无/有</view>
|
||||
<view class="conent">{{case_detail.disease_class_name}}</view>
|
||||
</view>
|
||||
<view class="disease_info">
|
||||
详细描述:阿托伐他汀钙片8片 (用法用量:常用的起始剂量为10mg每日一次
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">病情描述:</view>
|
||||
<view class="conent">过度劳累,失眠不足导致可以多休息几天,没有好转的话可以去医院看看先吧...</view>
|
||||
<view class="conent">{{case_detail.disease_desc}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">用药意向::</view>
|
||||
<view class="conent">阿托伐他汀钙片8片(用法用量:常用的起始剂量为10mg每日一次剂量调整时间为4周或更长。阿托伐他汀每日用量可在一天内的任何时间一次服用,并不受进餐影响。)</view>
|
||||
<view class="title">用药意向:</view>
|
||||
<view class="conent">
|
||||
<text wx:for="{{case_detail.product}}">{{item}};</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">问诊本人复诊凭证(病例/处方单/检查报告/住院单可任选其一):</view>
|
||||
<view class="conent">无</view>
|
||||
</view>
|
||||
<view class="img_box">
|
||||
<t-image id="loading-img" shape="round" src="" width="72" height="72" />
|
||||
<t-image id="loading-img" shape="round" src="{{item.url}}" width="72" height="72" wx:for="{{case_detail.diagnose_images}}"/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -59,35 +61,38 @@
|
||||
<view class="disease_box">
|
||||
<view class="disease_box_item">
|
||||
<view class="title">过敏史:</view>
|
||||
<view class="conent">无/有(显示内容)</view>
|
||||
<view class="conent">{{case_detail.is_allergy_history==0?'否':case_detail.allergy_history}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">家族史:</view>
|
||||
<view class="conent">无/有(显示内容)</view>
|
||||
<view class="conent">{{case_detail.is_family_history==0?'否':case_detail.family_history}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">是否备孕、妊娠或者哺乳期:</view>
|
||||
<view class="conent">不是/是(显示内容)</view>
|
||||
<view class="conent">{{case_detail.is_pregnant==0?'否':case_detail.pregnant}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">饮酒史:</view>
|
||||
<view class="conent">从不、偶尔、经常、每天、已解酒</view>
|
||||
<view class="conent">{{case_detail.drink_wine_status==1?'从不':case_detail.drink_wine_status==2?'偶尔':case_detail.drink_wine_status==3?'经常':case_detail.drink_wine_status==4?'每天':case_detail.drink_wine_status==5?'已戒酒':'其他'}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">吸烟史:</view>
|
||||
<view class="conent">从不、偶尔、经常、每天、已解酒</view>
|
||||
<view class="conent">{{case_detail.smoke_status==1?'从不':case_detail.smoke_status==2?'偶尔':case_detail.smoke_status==3?'经常':case_detail.smoke_status==4?'每天':case_detail.smoke_status==5?'已戒烟':'其他'}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">手术史:</view>
|
||||
<view class="conent">无/有(手术名称)</view>
|
||||
<view class="conent">{{case_detail.is_operation==0?'否':case_detail.operation}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="title">接触化学物:</view>
|
||||
<view class="conent">从不、偶尔、经常、每天</view>
|
||||
<view class="conent">{{case_detail.chemical_compound_status==1?'从不':case_detail.chemical_compound_status==2?'偶尔':case_detail.chemical_compound_status==3?'经常':case_detail.chemical_compound_status==4?'每天':'其他'}}</view>
|
||||
</view>
|
||||
<view class="disease_info">
|
||||
详细描述:如经常染发、接触油漆或者甲醛等
|
||||
<view class="disease_info" wx:if="{{case_detail.chemical_compound_status > 1}}">
|
||||
详细描述:{{case_detail.chemical_compound_describe}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 50rpx;">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -1,6 +1,8 @@
|
||||
page{
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
background-color: #F6F6F6;
|
||||
padding: 0 4vw;
|
||||
}
|
||||
.main_title{
|
||||
|
||||
@@ -18,8 +18,6 @@ Page({
|
||||
income_tax: "12"
|
||||
},
|
||||
onLoad(options){
|
||||
|
||||
|
||||
//获取提现数据
|
||||
api.getDoctorWithdrawal().then(response => {
|
||||
console.log(response);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!-- 提现页面 -->
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<view class="txt_title">结算银行卡</view>
|
||||
<view class="rule">提现规则</view>
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
.container{
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.container{
|
||||
margin-top: 20rpx;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
.top{
|
||||
display: flex;
|
||||
width: 92vw;
|
||||
margin: 30rpx auto;
|
||||
margin: 0 auto 20rpx auto;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.txt_title{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!-- 提现记录 -->
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<view class="top_txt">
|
||||
<view class="month">2022年<van-icon name="arrow-down" color="#fff" size="40rpx" /></view>
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
.container{
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
.top{
|
||||
width: 92vw;
|
||||
margin: 50rpx auto 0 auto;
|
||||
margin: 20rpx auto 0 auto;
|
||||
background-color: #3CC7C0;
|
||||
height: 150rpx;
|
||||
border-radius: 20rpx;
|
||||
|
||||
+19
-44
@@ -1,63 +1,38 @@
|
||||
// index.js
|
||||
import TIM from '../../../TUIKit/lib/tim-wx-sdk';
|
||||
import { genTestUserSig } from '../../../TUIKit/debug/GenerateTestUserSig';
|
||||
import TIMUploadPlugin from '../../../TUIKit/lib/tim-upload-plugin';
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
config: {
|
||||
userID: "xiaobeibei", //User ID
|
||||
SDKAPPID: 1400793692, // Your SDKAppID
|
||||
SECRETKEY: "44d97cf741fc758be98cdad100015582b6ad1dc5a3b6676c1997a57279eecfa9", // Your secretKey
|
||||
EXPIRETIME: 604800,
|
||||
},
|
||||
patient_account: "ayu",
|
||||
patient_account: "10000",
|
||||
title: '患者姓名',
|
||||
height: app.globalData.height,
|
||||
height: app.globalData.height,
|
||||
order_inquiry_id: ""
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(option) {
|
||||
console.log("chat onload");
|
||||
let sign = genTestUserSig(this.data.config);
|
||||
console.log("sign: ", sign);
|
||||
const userSig = sign.userSig;
|
||||
console.log("userSig: ", userSig);
|
||||
wx.$TUIKit = TIM.create({
|
||||
SDKAppID: this.data.config.SDKAPPID
|
||||
});
|
||||
|
||||
wx.$chat_SDKAppID = this.data.config.SDKAPPID;
|
||||
wx.$chat_userID = this.data.config.userID;
|
||||
wx.$chat_userSig = userSig;
|
||||
wx.$TUIKitTIM = TIM;
|
||||
wx.$TUIKit.registerPlugin({ 'tim-upload-plugin': TIMUploadPlugin });
|
||||
wx.$TUIKit.login({
|
||||
userID: this.data.config.userID,
|
||||
userSig
|
||||
});
|
||||
wx.$TUIKit.setLogLevel(3);//设置日志级别
|
||||
wx.setStorage({
|
||||
key: 'currentUserID',
|
||||
data: [],
|
||||
});
|
||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady,this);
|
||||
let from_account = option.from_account;
|
||||
let order_inquiry_id = option.order_inquiry_id;
|
||||
this.setData({
|
||||
patient_account: from_account,
|
||||
order_inquiry_id: order_inquiry_id,
|
||||
})
|
||||
},
|
||||
onUnload() {
|
||||
console.log("chat onUnload");
|
||||
wx.$TUIKit.off(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady,this);
|
||||
},
|
||||
onShow(){
|
||||
let _this = this;
|
||||
let interval = setInterval(() => {
|
||||
console.log("chat init ,");
|
||||
console.log("app.globalData.chat_sdk_ready: ", app.globalData.chat_sdk_ready);
|
||||
if(app.globalData.chat_sdk_ready){
|
||||
_this.onSDKReady();
|
||||
const TUIChat = _this.selectComponent('#TUIChat');
|
||||
TUIChat.init();
|
||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, _this.$onMessageReceived, _this);
|
||||
clearInterval(interval);
|
||||
}
|
||||
}, 100);
|
||||
}, 1000);
|
||||
},
|
||||
onSDKReady() {
|
||||
console.error("chat js: onSDKReady")
|
||||
const TUIChat = this.selectComponent('#TUIChat');
|
||||
TUIChat.init();
|
||||
app.globalData.chat_sdk_ready = true
|
||||
$onMessageReceived(value) {
|
||||
const message = value.data[0];
|
||||
console.log("message from chat: ",message)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<!-- 一对一聊天 -->
|
||||
<!-- 一对一聊天 不带会话列表 -->
|
||||
<view>
|
||||
<TUIChat id="TUIChat" currentConversationID="C2C{{patient_account}}"
|
||||
unreadCount="9" hasCallKit="{{ true }}" bind:handleCall="handleCall"
|
||||
|
||||
></TUIChat>
|
||||
</view>
|
||||
<TUIChat id="TUIChat" currentConversationID="C2C{{patient_account}}" order_inquiry_id="{{order_inquiry_id}}"
|
||||
hasCallKit="{{ true }}" bind:handleCall="handleCall"></TUIChat>
|
||||
</view>
|
||||
|
||||
@@ -1,50 +1,24 @@
|
||||
// index.js
|
||||
import TIM from '../../../TUIKit/lib/tim-wx-sdk';
|
||||
import { genTestUserSig } from '../../../TUIKit/debug/GenerateTestUserSig';
|
||||
import TIMUploadPlugin from '../../../TUIKit/lib/tim-upload-plugin';
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
config: {
|
||||
userID: "xiaobeibei", //User ID
|
||||
SDKAPPID: 1400793692, // Your SDKAppID
|
||||
SECRETKEY: "44d97cf741fc758be98cdad100015582b6ad1dc5a3b6676c1997a57279eecfa9", // Your secretKey
|
||||
EXPIRETIME: 604800,
|
||||
},
|
||||
title: '患者姓名',
|
||||
height: app.globalData.height,
|
||||
},
|
||||
onLoad() {
|
||||
let sign = genTestUserSig(this.data.config);
|
||||
console.log("sign: ", sign);
|
||||
const userSig = sign.userSig;
|
||||
console.log("userSig: ", userSig);
|
||||
wx.$TUIKit = TIM.create({
|
||||
SDKAppID: this.data.config.SDKAPPID
|
||||
});
|
||||
|
||||
wx.$chat_SDKAppID = this.data.config.SDKAPPID;
|
||||
wx.$chat_userID = this.data.config.userID;
|
||||
wx.$chat_userSig = userSig;
|
||||
wx.$TUIKitTIM = TIM;
|
||||
wx.$TUIKit.registerPlugin({ 'tim-upload-plugin': TIMUploadPlugin });
|
||||
wx.$TUIKit.login({
|
||||
userID: this.data.config.userID,
|
||||
userSig
|
||||
});
|
||||
wx.$TUIKit.setLogLevel(3);//设置日志级别
|
||||
wx.setStorage({
|
||||
key: 'currentUserID',
|
||||
data: [],
|
||||
});
|
||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady,this);
|
||||
console.log("onLoad chat_session")
|
||||
},
|
||||
onUnload() {
|
||||
wx.$TUIKit.off(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady,this);
|
||||
|
||||
},
|
||||
onSDKReady() {
|
||||
console.warn("chat js: onSDKReady")
|
||||
const TUIKit = this.selectComponent('#TUIKit');
|
||||
TUIKit.init();
|
||||
onShow(){
|
||||
let _this = this;
|
||||
let interval = setInterval(() => {
|
||||
if(app.globalData.chat_sdk_ready){
|
||||
const TUIKit = _this.selectComponent('#TUIKit');
|
||||
TUIKit.init();
|
||||
clearInterval(interval);
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
})
|
||||
|
||||
@@ -61,7 +61,7 @@ Page({
|
||||
getList(){
|
||||
//获取处方列表
|
||||
let params = {};
|
||||
params.prescription_status = this.data.prescription_status;//处方审核状态(0:审核中 2:审核驳回)
|
||||
params.pharmacist_audit_status = this.data.prescription_status;//处方审核状态(0:审核中 2:审核驳回)
|
||||
params.page = this.data.current_page + 1;
|
||||
api.getDoctorPrescription(params).then(response => {
|
||||
console.log(response);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel"
|
||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||
"van-empty": "@vant/weapp/empty/index"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
<view class="tabs">
|
||||
<t-tabs
|
||||
defaultValue="{{0}}"
|
||||
@@ -52,6 +52,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{chufang_list_0.length == 0}}" />
|
||||
</view>
|
||||
</t-tab-panel>
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
page{
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.t-tabs__content{
|
||||
background-color: #F6F6F6;
|
||||
@@ -14,7 +15,7 @@
|
||||
}
|
||||
.item_list{
|
||||
width: 90vw;
|
||||
margin: 0 auto;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
.item{
|
||||
width: 100%;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// Pages/yishi/identity/index.js
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import { API } from './../../../utils/network/api'
|
||||
import { FileUtil } from './../../../utils/fileutil'
|
||||
|
||||
@@ -16,70 +15,7 @@ Page({
|
||||
stickyProps: {
|
||||
zIndex: 2,
|
||||
},
|
||||
realname:"",
|
||||
idcard:"",
|
||||
avatar: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png",
|
||||
is_avatar: false,
|
||||
city_show: false,
|
||||
keshi_show: false,
|
||||
yiyuan_show: false,
|
||||
zhuanchang_show: false,
|
||||
zhiye_show: false,
|
||||
zige_show: false,
|
||||
zhicheng_show: false,
|
||||
zhicheng_img_show: false,
|
||||
next_btn_txt: "下一步",
|
||||
next_btn_disabled: false,
|
||||
office_phone: "",
|
||||
keshi_note: "请选择科室",
|
||||
keshi_columns: [],
|
||||
select_keshi_id: "",
|
||||
select_keshi_index: "",
|
||||
custom_keshi: "",
|
||||
zhicheng_note: "请选择职称",
|
||||
zhicheng_columns: [
|
||||
{
|
||||
text: "执业医师",
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
text: "主治医师",
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
text: "副主任医师",
|
||||
value: 3
|
||||
},
|
||||
{
|
||||
text: "主任医师",
|
||||
value: 4
|
||||
}
|
||||
],
|
||||
select_zhicheng_id: "",
|
||||
select_zhicheng_index: "",
|
||||
select_yiyuan_index: "",
|
||||
yiyuan_columns: [],
|
||||
zhuanchang_columns: [],
|
||||
zhuanchang_selected_columns: [],
|
||||
select_province_id: "",
|
||||
select_city_id: "",
|
||||
select_county_id: "",
|
||||
city_note: "请选择城市",
|
||||
yiyuan_note: "请选择医院",
|
||||
select_yiyuan_id: "",
|
||||
area_sub_titles: ["省份","市区","区县"],
|
||||
areaList: [],
|
||||
textarea_jianjie: "",
|
||||
textarea_shanchang: "",
|
||||
zhiye_file_list:[],
|
||||
zige_file_list:[],
|
||||
zhicheng_file_list:[],
|
||||
doctorauthiden_data_ready: false,
|
||||
basicdepartment_data_ready: false,
|
||||
areaprovince_data_ready: false,
|
||||
iden_auth_status: 0,
|
||||
iden_auth_disabled: 0,
|
||||
iden_auth_status_txt: "未认证",
|
||||
|
||||
},
|
||||
onLoad(){
|
||||
let _this = this;
|
||||
|
||||
@@ -1,27 +1,7 @@
|
||||
.required{
|
||||
color: #e34d59;
|
||||
}
|
||||
.photo{
|
||||
position: relative;
|
||||
padding: 32rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 32rpx;
|
||||
font-weight: 400;
|
||||
align-items: center;
|
||||
}
|
||||
.photo::after {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
content: ' ';
|
||||
pointer-events: none;
|
||||
right: 0;
|
||||
left: 32rpx;
|
||||
bottom: 0;
|
||||
border-bottom: 1px solid var(--td-cell-border-color, var(--td-gray-color-3, #e7e7e7));
|
||||
transform: scaleY(0.5);
|
||||
left: 32rpx;
|
||||
}
|
||||
|
||||
.title{
|
||||
font-size: 30rpx;
|
||||
color: #1C2023;
|
||||
|
||||
@@ -110,6 +110,17 @@ Page({
|
||||
},
|
||||
|
||||
onLoad(){
|
||||
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
this.getMenuButtonBound();
|
||||
|
||||
api.yiShiIndex().then(response => {
|
||||
console.log(response);
|
||||
let avatar = response.data.info.avatar;
|
||||
@@ -180,15 +191,6 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
currentTab: 0 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
this.getMenuButtonBound();
|
||||
},
|
||||
|
||||
onADChange(){
|
||||
// console.log("onADChange");
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!-- 操作手册 -->
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
<view class="item_list">
|
||||
<van-cell url="/Pages/yishi/manual_detail/index?manual_id={{item.manual_id}}" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{item.title}}" is-link wx:for="{{list}}" />
|
||||
</view>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
page{
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.container{
|
||||
margin-top: 20rpx;
|
||||
width: 100vw;
|
||||
}
|
||||
.item_list{
|
||||
width: 92vw;
|
||||
margin: 20rpx auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"m-nav-bar": "/commpents/mynavbar/index"
|
||||
"te-nav-bar": "/commpents/te_navbar"
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<!-- 操作手册详情 -->
|
||||
<m-nav-bar navbarData="{{navbarData}}">
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<rich-text nodes="{{html_content}}" space="nbsp"></rich-text>
|
||||
</m-nav-bar>
|
||||
</view>
|
||||
|
||||
@@ -1 +1,8 @@
|
||||
/* Pages/yishi/manual_detail/index.wxss */
|
||||
/* Pages/yishi/manual_detail/index.wxss */
|
||||
page{
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.container{
|
||||
width: 92vw;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
@@ -9,8 +9,8 @@
|
||||
<view class="info">
|
||||
<view class="name">{{user_name}}</view>
|
||||
<view class="renzheng">
|
||||
<view class="yishi">已医师认证></view>
|
||||
<view class="zhiye">未多点执业认证></view>
|
||||
<view class="yishi">{{iden_auth_status==1?'已医师认证':'未医师认证'}}></view>
|
||||
<view class="zhiye">{{multi_point_status==1?'已多点执业认证':'未多点执业认证'}}></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="icon">
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item",
|
||||
"van-icon": "@vant/weapp/icon/index",
|
||||
"van-cell": "@vant/weapp/cell/index",
|
||||
"van-cell-group": "@vant/weapp/cell-group/index"
|
||||
"van-cell-group": "@vant/weapp/cell-group/index",
|
||||
"van-empty": "@vant/weapp/empty/index"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<view class="top_txt">
|
||||
<view style="font-size: 30rpx;">
|
||||
@@ -20,6 +20,7 @@
|
||||
<view class="txt_title">账单</view>
|
||||
<view class="content">
|
||||
<van-cell bindtap="goDetail" data-url="/Pages/yishi/orderdetail/index" data-md="{{item.month}}-{{item.day}}" title-style="font-size: 30rpx;" title="{{item.month}}月{{item.day}}日" value="+{{item.total_amount}}元" is-link wx:for="{{bill}}" />
|
||||
<van-empty description="暂无账单" wx:if="{{ bill }}" />
|
||||
</view>
|
||||
|
||||
<t-image custom-style="position: fixed; right: 0;bottom: 262rpx;" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/account_rule.png" mode="heightFix" height="84rpx" aria-label="role" />
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
.container{
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
.top{
|
||||
width: 92vw;
|
||||
margin: 50rpx auto 0 auto;
|
||||
margin: 20rpx auto 0 auto;
|
||||
background-color: #3CC7C0;
|
||||
height: 150rpx;
|
||||
border-radius: 20rpx;
|
||||
|
||||
@@ -14,7 +14,7 @@ Page({
|
||||
idcard_status: 0,
|
||||
iden_auth_status: 0,
|
||||
user_name: "",
|
||||
brief_introduction: "点击编辑"
|
||||
brief_introduction: "我的简介"
|
||||
},
|
||||
onLoad(){
|
||||
//获取医生我的账户数据
|
||||
|
||||
@@ -17,7 +17,8 @@ Page({
|
||||
list_2: [],
|
||||
show: false,
|
||||
add_message: "",
|
||||
current_words_type: 1
|
||||
current_words_type: 1,
|
||||
focus: true
|
||||
},
|
||||
onTabChange(e){
|
||||
this.setData({
|
||||
@@ -68,5 +69,9 @@ Page({
|
||||
show: false,
|
||||
});
|
||||
},
|
||||
|
||||
onInput(){
|
||||
this.setData({
|
||||
focus: true
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1,5 +1,5 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
|
||||
<t-tabs
|
||||
defaultValue="{{ current_words_type }}"
|
||||
@@ -45,7 +45,11 @@
|
||||
type="textarea"
|
||||
placeholder="请输入文字"
|
||||
autosize
|
||||
maxlength="500"
|
||||
custom-style="height: 100%;"
|
||||
border="{{ false }}"
|
||||
focus="{{focus}}"
|
||||
bindtap="onInput"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
page{
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.item_list{
|
||||
width: 92vw;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
<view class="list">
|
||||
|
||||
<view class="item">
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
.container{
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
height: 100vh;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.list{
|
||||
width: 92vw;
|
||||
margin: 20rpx auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.item{
|
||||
display: flex;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
<view class="list">
|
||||
|
||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
.container{
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
height: 100vh;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.list{
|
||||
width: 92vw;
|
||||
margin: 20rpx auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.item{
|
||||
display: flex;
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import { getTimeAgo } from './../../../utils/util'
|
||||
import TIM from '../../../TUIKit/lib/tim-wx-sdk';
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
@@ -6,17 +10,46 @@ Page({
|
||||
title: '问诊消息', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
has_data: true
|
||||
has_data: true,
|
||||
data_list_1: [],
|
||||
data_list_2: [],
|
||||
data_list_3: [],
|
||||
data_list_4: [],
|
||||
data_list_5: [],
|
||||
message_inquiry_type: 2,
|
||||
},
|
||||
onLoad() {
|
||||
console.log("wenzhen onload");
|
||||
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
active: 1 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
let session_data_list_1 = wx.getStorageSync('session_data_list_1');
|
||||
let session_data_list_2 = wx.getStorageSync('session_data_list_2');
|
||||
let session_data_list_3 = wx.getStorageSync('session_data_list_3');
|
||||
let session_data_list_4 = wx.getStorageSync('session_data_list_4');
|
||||
if(!session_data_list_1) wx.setStorageSync('session_data_list_1', []);
|
||||
if(!session_data_list_2) wx.setStorageSync('session_data_list_2', []);
|
||||
if(!session_data_list_3) wx.setStorageSync('session_data_list_3', []);
|
||||
if(!session_data_list_4) wx.setStorageSync('session_data_list_4', []);
|
||||
this.setData({"data_list_1": session_data_list_1});
|
||||
this.setData({"data_list_2": session_data_list_2});
|
||||
this.setData({"data_list_3": session_data_list_3});
|
||||
this.setData({"data_list_4": session_data_list_4});
|
||||
if(session_data_list_1.length == 0) this.getDoctorInquiryMessage(1);
|
||||
if(session_data_list_2.length == 0) this.getDoctorInquiryMessage(2);
|
||||
if(session_data_list_3.length == 0) this.getDoctorInquiryMessage(3);
|
||||
if(session_data_list_4.length == 0) this.getDoctorInquiryMessage(4);
|
||||
|
||||
|
||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onMessageReceived, this);
|
||||
|
||||
},
|
||||
go(e){
|
||||
wx.navigateTo({
|
||||
url: e.currentTarget.dataset.url,
|
||||
@@ -34,5 +67,129 @@ Page({
|
||||
res.eventChannel.emit('acceptDataFromOpenerPage', { data: 'test' })
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
$onMessageReceived(value) {
|
||||
const message = value.data[0];
|
||||
console.log("message from wenzhen: ",message)
|
||||
let cloudCustomData = JSON.parse(message.cloudCustomData);
|
||||
let inquiry_type = cloudCustomData.inquiry_type;
|
||||
let order_inquiry_id = cloudCustomData.order_inquiry_id;
|
||||
let type = message.type;
|
||||
let message_txt = "新消息";
|
||||
console.log(type)
|
||||
switch (type) {
|
||||
case TIM.TYPES.MSG_TEXT:
|
||||
console.log("文本消息");
|
||||
message_txt = message.payload.text;
|
||||
break;
|
||||
case TIM.TYPES.MSG_IMAGE:
|
||||
console.log("图片消息");
|
||||
message_txt = "[图片]";
|
||||
break;
|
||||
case TIM.TYPES.MSG_AUDIO:
|
||||
console.log("音频消息")
|
||||
message_txt = "[语言]";
|
||||
break;
|
||||
case TIM.TYPES.MSG_VIDEO:
|
||||
console.log("视频消息");
|
||||
message_txt = "[视频]";
|
||||
break;
|
||||
case TIM.TYPES.MSG_FILE:
|
||||
console.log("文件消息")
|
||||
message_txt = "[文件]";
|
||||
break;
|
||||
case TIM.TYPES.MSG_CUSTOM:
|
||||
console.log("自定义消息")
|
||||
break;
|
||||
case TIM.TYPES.MSG_MERGER:
|
||||
console.log("合并消息")
|
||||
break;
|
||||
case TIM.TYPES.MSG_LOCATION:
|
||||
console.log("位置消息")
|
||||
message_txt = "[位置]";
|
||||
break;
|
||||
case TIM.TYPES.MSG_FACE:
|
||||
console.log("表情消息")
|
||||
message_txt = "[表情]";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
let list_name = "data_list_" + inquiry_type;
|
||||
let _index = this.data[list_name].findIndex(item => {
|
||||
return item.order_inquiry_id == order_inquiry_id;
|
||||
})
|
||||
|
||||
let new_list = [];
|
||||
//没有当前会话
|
||||
if(_index > -1){
|
||||
let target = list_name + "[" + _index + "].last_message_content.Text";
|
||||
let target_dot = list_name + "[" + _index + "].message_dot";
|
||||
console.log("target: ",target);
|
||||
this.setData({
|
||||
[target]: message_txt,
|
||||
[target_dot]: true
|
||||
})
|
||||
new_list.push(this.data[list_name][_index]);//先放入目标
|
||||
}else{
|
||||
let item = {};
|
||||
item.inquiry_status = message.inquiry_status;
|
||||
let txt = {};
|
||||
txt.Text= message_txt;
|
||||
item.last_message_content = txt;
|
||||
item.message_send_time = message.message_send_time;
|
||||
item.message_seq = message.message_seq;
|
||||
item.message_type = message.message_type;
|
||||
item.order_inquiry_id = message.order_inquiry_id;
|
||||
item.patient_age = message.patient_age;
|
||||
item.patient_name = message.patient_name;
|
||||
item.patient_sex = message.patient_sex;
|
||||
item.to_user_id = message.to_user_id;
|
||||
item.message_dot = true;
|
||||
new_list.push(item);
|
||||
}
|
||||
|
||||
//置顶
|
||||
this.data[list_name].forEach((item, index) => {
|
||||
if(index != _index){
|
||||
new_list.push(item)
|
||||
}
|
||||
})
|
||||
|
||||
this.setData({
|
||||
[list_name]: new_list
|
||||
})
|
||||
|
||||
wx.setStorageSync('session_'+list_name, new_list);
|
||||
},
|
||||
getDoctorInquiryMessage(message_inquiry_type){
|
||||
let list_name = "data_list_" + message_inquiry_type;
|
||||
this.setData({
|
||||
[list_name]: []
|
||||
})
|
||||
//获取医生问诊消息列表
|
||||
api.getDoctorInquiryMessage({message_inquiry_type: message_inquiry_type}).then(response => {
|
||||
console.log(response);
|
||||
if(response.data){
|
||||
console.log(list_name);
|
||||
let data_list = this.data[list_name];
|
||||
response.data.forEach((item) => {
|
||||
item.message_send_time = getTimeAgo(item.message_send_time);
|
||||
data_list.push(item);
|
||||
})
|
||||
this.setData({
|
||||
[list_name]: data_list,
|
||||
})
|
||||
wx.setStorageSync('session_'+list_name, data_list);
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
onTabsChange(e){
|
||||
console.log(e);
|
||||
this.setData({
|
||||
message_inquiry_type: e.detail.value,
|
||||
})
|
||||
this.getDoctorInquiryMessage(e.detail.value)
|
||||
}
|
||||
})
|
||||
@@ -6,6 +6,8 @@
|
||||
"t-image": "tdesign-miniprogram/image/image",
|
||||
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
"t-badge": "tdesign-miniprogram/badge/badge",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-empty": "@vant/weapp/empty/index"
|
||||
}
|
||||
}
|
||||
@@ -3,11 +3,16 @@
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="top">
|
||||
<view class="top_left" bindtap="go" data-url="/Pages/yishi/service_notice/index">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
||||
<t-badge dot offset="{{ [1, 1] }}" class="wrapper">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
||||
</t-badge>
|
||||
|
||||
服务通知
|
||||
</view>
|
||||
<view class="top_right" bindtap="go" data-url="/Pages/yishi/system_notice/index">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
||||
<t-badge count="8" offset="{{ [1, 1] }}" class="wrapper">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
||||
</t-badge>
|
||||
系统公告
|
||||
</view>
|
||||
</view>
|
||||
@@ -20,21 +25,20 @@
|
||||
|
||||
<view class="tabs" wx:if="{{ has_data }}" >
|
||||
<t-tabs
|
||||
defaultValue="{{0}}"
|
||||
defaultValue="{{ message_inquiry_type }}"
|
||||
sticky
|
||||
bind:change="onTabsChange"
|
||||
bind:click="onTabsClick"
|
||||
bind:scroll="onStickyScroll"
|
||||
t-class="custom-tabs"
|
||||
theme="line"
|
||||
custom-style="font-size: 32rpx"
|
||||
|
||||
>
|
||||
<t-tab-panel label="快速问诊" value="0">
|
||||
<t-tab-panel label="快速问诊" value="1">
|
||||
<wenzhen-data
|
||||
name="李四"
|
||||
sex="女"
|
||||
age="19"
|
||||
age="199"
|
||||
desc="VVVVVVVV"
|
||||
status="0"
|
||||
status_text="待接诊"
|
||||
@@ -44,26 +48,48 @@
|
||||
<wenzhen-data
|
||||
name="李放四"
|
||||
sex="女"
|
||||
age="199"
|
||||
age="19"
|
||||
desc="VVVVVVVV"
|
||||
status="1"
|
||||
status_text="接诊中"
|
||||
/>
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_1 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_1.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
|
||||
<t-tab-panel label="问诊购药" value="1">
|
||||
<t-tab-panel label="问诊购药" value="2">
|
||||
<!-- 1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消 -->
|
||||
<wenzhen-data
|
||||
name="张三"
|
||||
sex="男"
|
||||
age="19"
|
||||
desc="VVVVVVVV"
|
||||
status="0"
|
||||
status_text="待接诊"
|
||||
note="xxx"
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_2 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_2.length == 0}}" />
|
||||
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="在线问诊" value="2">
|
||||
<wenzhen-data
|
||||
<t-tab-panel label="在线问诊" value="3">
|
||||
<!-- <wenzhen-data
|
||||
name="王五"
|
||||
sex="女"
|
||||
age="19"
|
||||
@@ -71,9 +97,25 @@
|
||||
status="0"
|
||||
status_text="待接诊"
|
||||
note="xxx"
|
||||
/> -->
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_3 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_3.length == 0}}" />
|
||||
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="公益问诊" value="3">
|
||||
<t-tab-panel label="公益问诊" value="4">
|
||||
<wenzhen-data
|
||||
name="赵柳"
|
||||
sex="女"
|
||||
@@ -83,8 +125,23 @@
|
||||
status_text="待接诊"
|
||||
note="xxx"
|
||||
/>
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_4 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_4.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="问诊结束" value="4">
|
||||
<t-tab-panel label="问诊结束" value="5">
|
||||
<wenzhen-data
|
||||
name="谢广坤"
|
||||
sex="女"
|
||||
@@ -94,6 +151,21 @@
|
||||
status_class="status_end"
|
||||
status_text="快速问诊"
|
||||
/>
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_5 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_5.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
</t-tabs>
|
||||
</view>
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
.container{
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.top{
|
||||
margin: 30rpx auto;
|
||||
margin: 0 auto 30rpx auto;
|
||||
display: flex;
|
||||
padding: 20rpx 20rpx;
|
||||
background-color: rgb(255, 255, 255);
|
||||
|
||||
@@ -0,0 +1,270 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import { getTimeAgo } from './../../../utils/util'
|
||||
// import TIM from '../../../TUIKit/lib/tim-wx-sdk';
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
navbarData: {
|
||||
showCapsule: 0, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '问诊消息', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
has_data: true,
|
||||
data_list_1: [],
|
||||
data_list_2: [],
|
||||
data_list_3: [],
|
||||
data_list_4: [],
|
||||
data_list_5: [],
|
||||
conversationList: [],
|
||||
message_inquiry_type: 2,
|
||||
},
|
||||
onLoad() {
|
||||
console.log("wenzhen onload");
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
console.log("onShow from wenzhen V2")
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
active: 1 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
this.getConversationList();
|
||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onMessageReceived, this);
|
||||
},
|
||||
getConversationList(){
|
||||
wx.$TUIKit.getConversationList().then((imResponse) => {
|
||||
console.log("imResponse.data.conversationList from wenzhen_v2: ", imResponse.data.conversationList);
|
||||
this.setData({
|
||||
conversationList: imResponse.data.conversationList,
|
||||
});
|
||||
}).then(() => {
|
||||
console.log("开始查询订单状态")
|
||||
this.formatStatus();
|
||||
});
|
||||
},
|
||||
go(e){
|
||||
wx.navigateTo({
|
||||
url: e.currentTarget.dataset.url,
|
||||
events: {
|
||||
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
|
||||
acceptDataFromOpenedPage: function(data) {
|
||||
console.log(data)
|
||||
},
|
||||
someEvent: function(data) {
|
||||
console.log(data)
|
||||
}
|
||||
},
|
||||
success: function(res) {
|
||||
// 通过 eventChannel 向被打开页面传送数据
|
||||
res.eventChannel.emit('acceptDataFromOpenerPage', { data: 'test' })
|
||||
}
|
||||
})
|
||||
},
|
||||
$onMessageReceived(value) {
|
||||
const message = value.data[0];
|
||||
console.log("message from wenzhen: ",message)
|
||||
this.getConversationList();
|
||||
// let cloudCustomData = JSON.parse(message.cloudCustomData);
|
||||
// let inquiry_type = cloudCustomData.inquiry_type;
|
||||
// let order_inquiry_id = cloudCustomData.order_inquiry_id;
|
||||
// let type = message.type;
|
||||
// let message_txt = "新消息";
|
||||
// console.log(type)
|
||||
// switch (type) {
|
||||
// case TIM.TYPES.MSG_TEXT:
|
||||
// console.log("文本消息");
|
||||
// message_txt = message.payload.text;
|
||||
// break;
|
||||
// case TIM.TYPES.MSG_IMAGE:
|
||||
// console.log("图片消息");
|
||||
// message_txt = "[图片]";
|
||||
// break;
|
||||
// case TIM.TYPES.MSG_AUDIO:
|
||||
// console.log("音频消息")
|
||||
// message_txt = "[语言]";
|
||||
// break;
|
||||
// case TIM.TYPES.MSG_VIDEO:
|
||||
// console.log("视频消息");
|
||||
// message_txt = "[视频]";
|
||||
// break;
|
||||
// case TIM.TYPES.MSG_FILE:
|
||||
// console.log("文件消息")
|
||||
// message_txt = "[文件]";
|
||||
// break;
|
||||
// case TIM.TYPES.MSG_CUSTOM:
|
||||
// console.log("自定义消息")
|
||||
// break;
|
||||
// case TIM.TYPES.MSG_MERGER:
|
||||
// console.log("合并消息")
|
||||
// break;
|
||||
// case TIM.TYPES.MSG_LOCATION:
|
||||
// console.log("位置消息")
|
||||
// message_txt = "[位置]";
|
||||
// break;
|
||||
// case TIM.TYPES.MSG_FACE:
|
||||
// console.log("表情消息")
|
||||
// message_txt = "[表情]";
|
||||
// break;
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
// let list_name = "data_list_" + inquiry_type;
|
||||
// let _index = this.data[list_name].findIndex(item => {
|
||||
// return item.order_inquiry_id == order_inquiry_id;
|
||||
// })
|
||||
|
||||
// let new_list = [];
|
||||
// //没有当前会话
|
||||
// if(_index > -1){
|
||||
// let target = list_name + "[" + _index + "].last_message_content.Text";
|
||||
// let target_dot = list_name + "[" + _index + "].message_dot";
|
||||
// console.log("target: ",target);
|
||||
// this.setData({
|
||||
// [target]: message_txt,
|
||||
// [target_dot]: true
|
||||
// })
|
||||
// new_list.push(this.data[list_name][_index]);//先放入目标
|
||||
// }else{
|
||||
// let item = {};
|
||||
// item.inquiry_status = message.inquiry_status;
|
||||
// let txt = {};
|
||||
// txt.Text= message_txt;
|
||||
// item.last_message_content = txt;
|
||||
// item.message_send_time = message.message_send_time;
|
||||
// item.message_seq = message.message_seq;
|
||||
// item.message_type = message.message_type;
|
||||
// item.order_inquiry_id = message.order_inquiry_id;
|
||||
// item.patient_age = message.patient_age;
|
||||
// item.patient_name = message.patient_name;
|
||||
// item.patient_sex = message.patient_sex;
|
||||
// item.to_user_id = message.to_user_id;
|
||||
// item.message_dot = true;
|
||||
// new_list.push(item);
|
||||
// }
|
||||
|
||||
// //置顶
|
||||
// this.data[list_name].forEach((item, index) => {
|
||||
// if(index != _index){
|
||||
// new_list.push(item)
|
||||
// }
|
||||
// })
|
||||
|
||||
// this.setData({
|
||||
// [list_name]: new_list
|
||||
// })
|
||||
|
||||
},
|
||||
formatStatus(){
|
||||
|
||||
|
||||
let order_inquiry_id_list = [];
|
||||
|
||||
this.data.conversationList.forEach(item => {
|
||||
let conversationID = item.conversationID;
|
||||
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
|
||||
let lastMessage = item.lastMessage;
|
||||
if(!lastMessage) return;
|
||||
let cloudCustomData = lastMessage.cloudCustomData;
|
||||
if(!cloudCustomData) return;
|
||||
let cloudCustomDataJson = JSON.parse(cloudCustomData);
|
||||
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
||||
order_inquiry_id_list.push(order_inquiry_id);//准备去请求后端那订单状态
|
||||
})
|
||||
|
||||
let conversationList = this.data.conversationList;
|
||||
//获取医生问诊消息用户属性
|
||||
api.getDoctorInquiryMessageAttr({order_inquiry_ids: order_inquiry_id_list.join(",")}).then(response => {
|
||||
if(response.data.length > 0){
|
||||
let new_conversationList = [];
|
||||
conversationList.forEach(item => {
|
||||
let conversationID = item.conversationID;
|
||||
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
|
||||
let lastMessage = item.lastMessage;
|
||||
if(!lastMessage) return;
|
||||
let cloudCustomData = lastMessage.cloudCustomData;
|
||||
if(!cloudCustomData) return;
|
||||
let cloudCustomDataJson = JSON.parse(item.lastMessage.cloudCustomData);
|
||||
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
||||
let order = response.data.find(attr_item => {
|
||||
return attr_item.order_inquiry_id == order_inquiry_id;
|
||||
})
|
||||
if(!order) return;
|
||||
|
||||
item.inquiry_status = order.inquiry_status;
|
||||
item.patient_age = order.patient_age;
|
||||
item.patient_name = order.patient_name;
|
||||
item.patient_sex = order.patient_sex;
|
||||
|
||||
new_conversationList.push(item);
|
||||
})
|
||||
|
||||
this.setData({
|
||||
conversationList: new_conversationList
|
||||
})
|
||||
|
||||
}
|
||||
}).then(() => {
|
||||
console.log("开始格式化formatConversationList")
|
||||
this.formatConversationList();
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
formatConversationList(){
|
||||
let session_list = [];
|
||||
let session_data_list_1 = [];
|
||||
let session_data_list_2 = [];
|
||||
let session_data_list_3 = [];
|
||||
let session_data_list_4 = [];
|
||||
session_list.push(session_data_list_1);
|
||||
session_list.push(session_data_list_2);
|
||||
session_list.push(session_data_list_3);
|
||||
session_list.push(session_data_list_4);
|
||||
|
||||
this.data.conversationList.forEach(item => {
|
||||
let conversationID = item.conversationID;
|
||||
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
|
||||
let type = item.type;
|
||||
let lastMessage = item.lastMessage;
|
||||
let userProfile = item.userProfile;
|
||||
if(!lastMessage) return;
|
||||
let cloudCustomData = lastMessage.cloudCustomData;
|
||||
if(!cloudCustomData) return;
|
||||
let cloudCustomDataJson = JSON.parse(cloudCustomData);
|
||||
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
||||
if(!order_inquiry_id) return;
|
||||
let inquiry_type = cloudCustomDataJson.inquiry_type;
|
||||
let session_item = {};
|
||||
session_item.inquiry_status = item.inquiry_status;//订单状态暂无
|
||||
let txt = {};
|
||||
txt.Text= lastMessage.messageForShow;
|
||||
session_item.last_message_content = txt;
|
||||
session_item.message_send_time = getTimeAgo(lastMessage.lastTime);
|
||||
session_item.message_type = type;
|
||||
session_item.order_inquiry_id = order_inquiry_id;
|
||||
session_item.patient_age = item.patient_age;//暂无
|
||||
session_item.patient_name = userProfile.nick;
|
||||
session_item.from_account = userProfile.userID;
|
||||
session_item.patient_sex = item.patient_sex;//暂无
|
||||
let unreadCount = item.unreadCount;
|
||||
if(unreadCount > 0){
|
||||
session_item.message_dot = true;
|
||||
}else{
|
||||
session_item.message_dot = false;
|
||||
}
|
||||
session_list[inquiry_type - 1].push(session_item);
|
||||
})
|
||||
|
||||
|
||||
|
||||
this.setData({
|
||||
data_list_1: session_data_list_1,
|
||||
data_list_2: session_data_list_2,
|
||||
data_list_3: session_data_list_3,
|
||||
data_list_4: session_data_list_4,
|
||||
})
|
||||
},
|
||||
onTabsChange(e){
|
||||
console.log(e);
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"wenzhen-data": "/commpents/wenzhen_data/index",
|
||||
"t-image": "tdesign-miniprogram/image/image",
|
||||
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||
"t-badge": "tdesign-miniprogram/badge/badge",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-empty": "@vant/weapp/empty/index"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
<!-- 问诊页面 -->
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="top">
|
||||
<view class="top_left" bindtap="go" data-url="/Pages/yishi/service_notice/index">
|
||||
<t-badge dot offset="{{ [1, 1] }}" class="wrapper">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
||||
</t-badge>
|
||||
|
||||
服务通知
|
||||
</view>
|
||||
<view class="top_right" bindtap="go" data-url="/Pages/yishi/system_notice/index">
|
||||
<t-badge count="8" offset="{{ [1, 1] }}" class="wrapper">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
||||
</t-badge>
|
||||
系统公告
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="empty" wx:if="{{ !has_data }}" >
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wnzhen_empty.png" mode="heightFix" height="108rpx" aria-label="empty" />
|
||||
<view class="empty_note">您还未设置在线问诊价格</view>
|
||||
</view>
|
||||
<van-button color="#3CC7C0" custom-style="width: 92vw;margin: 0 auto;border-radius: 10rpx;" block wx:if="{{ !has_data }}">开通图文问诊</van-button>
|
||||
|
||||
<view class="tabs" wx:if="{{ has_data }}" >
|
||||
<t-tabs
|
||||
defaultValue="{{ message_inquiry_type }}"
|
||||
sticky
|
||||
bind:change="onTabsChange"
|
||||
bind:scroll="onStickyScroll"
|
||||
t-class="custom-tabs"
|
||||
theme="line"
|
||||
custom-style="font-size: 32rpx"
|
||||
|
||||
>
|
||||
<t-tab-panel label="快速问诊" value="1">
|
||||
<wenzhen-data
|
||||
name="李四"
|
||||
sex="女"
|
||||
age="19"
|
||||
desc="VVVVVVVV"
|
||||
status="0"
|
||||
status_text="待接诊"
|
||||
note="xxx"
|
||||
/>
|
||||
|
||||
<wenzhen-data
|
||||
name="李放四"
|
||||
sex="女"
|
||||
age="199"
|
||||
desc="VVVVVVVV"
|
||||
status="1"
|
||||
status_text="接诊中"
|
||||
/>
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_1 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_1.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
|
||||
<t-tab-panel label="问诊购药" value="2">
|
||||
<!-- 1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消 -->
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
order_inquiry_id="{{ item.order_inquiry_id }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
from_account="{{item.from_account}}"
|
||||
wx:for="{{ data_list_2 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_2.length == 0}}" />
|
||||
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="在线问诊" value="3">
|
||||
<!-- <wenzhen-data
|
||||
name="王五"
|
||||
sex="女"
|
||||
age="19"
|
||||
desc="VVVVVVVV"
|
||||
status="0"
|
||||
status_text="待接诊"
|
||||
note="xxx"
|
||||
/> -->
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_3 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_3.length == 0}}" />
|
||||
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="公益问诊" value="4">
|
||||
<wenzhen-data
|
||||
name="赵柳"
|
||||
sex="女"
|
||||
age="19"
|
||||
desc="VVVVVVVV"
|
||||
status="0"
|
||||
status_text="待接诊"
|
||||
note="xxx"
|
||||
/>
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_4 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_4.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="问诊结束" value="5">
|
||||
<wenzhen-data
|
||||
name="谢广坤"
|
||||
sex="女"
|
||||
age="199"
|
||||
desc="VVVVVVVV"
|
||||
status="2"
|
||||
status_class="status_end"
|
||||
status_text="快速问诊"
|
||||
/>
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
sex="{{ item.patient_sex==1?'男':'女' }}"
|
||||
age="{{ item.patient_age }}"
|
||||
date="{{ item.message_send_time }}"
|
||||
desc="{{ item.last_message_content.Text }}"
|
||||
status="{{ item.inquiry_status }}"
|
||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||
message_dot="{{item.message_dot}}"
|
||||
wx:for="{{ data_list_5 }}"
|
||||
/>
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_5.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
</t-tabs>
|
||||
</view>
|
||||
|
||||
<view style="height: 200rpx;"></view>
|
||||
</view>
|
||||
@@ -0,0 +1,51 @@
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.top{
|
||||
margin: 0 auto 30rpx auto;
|
||||
display: flex;
|
||||
padding: 20rpx 20rpx;
|
||||
background-color: rgb(255, 255, 255);
|
||||
}
|
||||
.top_left, .top_right{
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #666666;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.top_left{
|
||||
border-right: 1px solid #F4F4F4;
|
||||
}
|
||||
.t-tab-panel,.t-tabs__content {
|
||||
background-color: #F4F4F4 !important;
|
||||
}
|
||||
.t-tabs__item--active{
|
||||
color: #49B9AD !important;
|
||||
font-size: 32rpx !important;
|
||||
}
|
||||
.t-tabs__item-inner--line{
|
||||
font-size: 28rpx !important;
|
||||
}
|
||||
.t-tabs__track{
|
||||
background-color: var(--td-tab-track-color, var(--td-primary-color, #49B9AD)) !important;
|
||||
}
|
||||
.empty{
|
||||
width: 92vw;
|
||||
margin: 0 auto;
|
||||
height: 500rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.empty_note{
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
<van-cell-group border="{{ false }}">
|
||||
<van-cell
|
||||
url="/Pages/yishi/manual/index"
|
||||
title="多点执业认证流程"
|
||||
border="{{ false }}"
|
||||
value='查看操作手册'
|
||||
|
||||
Reference in New Issue
Block a user