优化
This commit is contained in:
parent
589c2cf823
commit
cfa69efd15
@ -21,72 +21,15 @@ Page({
|
||||
let url = e.currentTarget.dataset.url;
|
||||
wx.setStorageSync('usertype', usertype);
|
||||
wx.setStorageSync('next_url', url);
|
||||
let user_uuid = wx.getStorageSync('user_id');
|
||||
console.log(user_uuid);
|
||||
if(user_uuid){
|
||||
let token = wx.getStorageSync('AUTH_TOKEN_'+usertype);
|
||||
console.log(token);
|
||||
if(token){
|
||||
wx.switchTab({
|
||||
url: url
|
||||
})
|
||||
}else{
|
||||
app.go(app.globalData.login_url);
|
||||
}
|
||||
},
|
||||
bindGetUserInfo(){
|
||||
wx.getUserInfo({
|
||||
success: function(res) {
|
||||
var userInfo = res.userInfo
|
||||
var nickName = userInfo.nickName
|
||||
var avatarUrl = userInfo.avatarUrl
|
||||
var gender = userInfo.gender //性别 0:未知、1:男、2:女
|
||||
var province = userInfo.province
|
||||
var city = userInfo.city
|
||||
var country = userInfo.country
|
||||
console.log(res.userInfo)
|
||||
}
|
||||
})
|
||||
},
|
||||
shenfang(){
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: [
|
||||
"5Tl-xmaWXrKP5BB8E6b3oTdPHbHa7WYWbmvZiuz4TLs",
|
||||
"kUy70xHlr7ADo4aIHiictM4Te7MSec3E5kHsYvFQu40"
|
||||
],
|
||||
success(res){
|
||||
console.log(res)
|
||||
},
|
||||
fail(res){
|
||||
console.log(res)
|
||||
},
|
||||
complete(res){
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
},
|
||||
yici(){
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: [
|
||||
"jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM",
|
||||
"JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc"
|
||||
],
|
||||
success(res){
|
||||
console.log(res)
|
||||
},
|
||||
fail(res){
|
||||
console.log(res)
|
||||
},
|
||||
complete(res){
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
},
|
||||
check(){
|
||||
wx.getSetting({
|
||||
withSubscriptions: true,
|
||||
success (res) {
|
||||
console.log(res.authSetting)
|
||||
console.log(res.subscriptionsSetting)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
@ -27,9 +27,5 @@
|
||||
</t-image>
|
||||
</view>
|
||||
|
||||
<!-- <button bindtap="shenfang">审方提醒(长期)</button>
|
||||
<button bindtap="yici">患者回复通知(一次)</button>
|
||||
<button bindtap="check">获取订阅状态</button> -->
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ Page({
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '登录', //导航栏 中间的标题
|
||||
},
|
||||
checked: true
|
||||
checked: false
|
||||
},
|
||||
onChange(event) {
|
||||
this.setData({
|
||||
@ -26,6 +26,13 @@ Page({
|
||||
getPhoneNumber (e) {
|
||||
console.log(e);
|
||||
console.log(e.detail.code);
|
||||
if(!this.data.checked){
|
||||
wx.showToast({
|
||||
title: '请同意协议',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
let next_url = wx.getStorageSync('next_url');
|
||||
wx.login({
|
||||
@ -39,7 +46,7 @@ Page({
|
||||
}
|
||||
api.wechatMobileLogin(params).then(response => {
|
||||
console.log(response);
|
||||
wx.setStorageSync('AUTH_TOKEN', response.data.token);
|
||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, response.data.token);
|
||||
wx.setStorageSync('user_id', response.data.user_id);
|
||||
wx.setStorageSync('client_user_id', response.data.client_user_id);
|
||||
app.globalData.config.userID = response.data.user_id;
|
||||
|
||||
@ -15,9 +15,14 @@
|
||||
|
||||
<view class="btn">
|
||||
<van-button
|
||||
wx:if="{{ checked }}"
|
||||
open-type="getPhoneNumber"
|
||||
bindgetphonenumber="getPhoneNumber"
|
||||
color="#09BB07" custom-style="font-size: 36rpx;" type="primary" round block>微信授权手机号登录</van-button>
|
||||
<van-button
|
||||
wx:else
|
||||
bindtap="getPhoneNumber"
|
||||
color="#09BB07" custom-style="font-size: 36rpx;" type="primary" round block>微信授权手机号登录</van-button>
|
||||
<van-checkbox value="{{ checked }}" bind:change="onChange">我已阅读并同意协议<text style="color: #4384FE;">《肝胆相照用户服务协议》</text></van-checkbox>
|
||||
</view>
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ Page({
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '手机号登录', //导航栏 中间的标题
|
||||
},
|
||||
checked: true,
|
||||
checked: false,
|
||||
phone: "",
|
||||
sms: "",
|
||||
btn_msg: "获取验证码",
|
||||
@ -55,22 +55,37 @@ Page({
|
||||
})
|
||||
return;
|
||||
}
|
||||
var params = {};
|
||||
params.phone = this.data.phone;
|
||||
params.code = this.data.sms;
|
||||
params.user_type = wx.getStorageSync('usertype');
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
wx.login({
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
if (res.code) {
|
||||
var params = {};
|
||||
params.phone = this.data.phone;
|
||||
params.code = this.data.sms;
|
||||
params.user_type = usertype;
|
||||
params.wx_code = res.code;
|
||||
|
||||
api.mobileLogin(params).then(response => {
|
||||
console.log(response);
|
||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, response.data.token);
|
||||
wx.setStorageSync('user_id', response.data.user_id);
|
||||
wx.setStorageSync('client_user_id', response.data.client_user_id);
|
||||
app.globalData.config.userID = response.data.user_id;
|
||||
app.imInit();
|
||||
wx.switchTab({
|
||||
url: wx.getStorageSync('next_url')
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: '登录失败',
|
||||
icon: "error"
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
api.mobileLogin(params).then(response => {
|
||||
console.log(response);
|
||||
wx.setStorageSync('AUTH_TOKEN', response.data.token);
|
||||
wx.setStorageSync('user_id', response.data.user_id);
|
||||
wx.setStorageSync('client_user_id', response.data.client_user_id);
|
||||
app.globalData.config.userID = response.data.user_id;
|
||||
app.imInit();
|
||||
wx.switchTab({
|
||||
url: wx.getStorageSync('next_url')
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
beginDaoJiShi(){
|
||||
console.log("开始倒计时")
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// Pages/authentication/authentication.js
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
@ -8,9 +9,8 @@ Page({
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '实名认证', //导航栏 中间的标题
|
||||
},
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height,
|
||||
info: {}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
@ -19,5 +19,14 @@ Page({
|
||||
this.setData({
|
||||
nbLoading: false,
|
||||
})
|
||||
|
||||
api.getPharmacistInfo().then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
info: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -1,18 +1,18 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<van-cell-group>
|
||||
<van-cell size="large" title="真实姓名" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="身份证号" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="联系邮箱" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="手机号码" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="所在医疗机构" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="所在科室" title-width="120rpx" is-link required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="职称" title-width="120rpx" is-link required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="医龄" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="执业经历" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="擅长" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="真实姓名" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.card_name}}" />
|
||||
<van-cell size="large" title="身份证号" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.card_num}}" />
|
||||
<van-cell size="large" title="联系邮箱" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="手机号码" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="所在医疗机构" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="所在科室" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.department_custom_name}}" />
|
||||
<van-cell size="large" title="职称" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.pharmacist_title}}" />
|
||||
<van-cell size="large" title="医龄" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="执业经历" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="擅长" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
</van-cell-group>
|
||||
<view class="submit">
|
||||
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">下一步</van-button>
|
||||
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">下一步(去干啥?)</van-button>
|
||||
</view>
|
||||
</view>
|
||||
@ -1,4 +1,5 @@
|
||||
// Pages/home.js
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
/**
|
||||
@ -12,7 +13,13 @@ Page({
|
||||
title: '药师端', //导航栏 中间的标题
|
||||
},
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height
|
||||
height: app.globalData.height,
|
||||
pharmacist: {},
|
||||
audit_number: 0,
|
||||
data_list_0: [],
|
||||
data_list_1: [],
|
||||
data_list_2: [],
|
||||
data_list_3: [],
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
@ -28,5 +35,74 @@ Page({
|
||||
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
api.getPharmacistIndex().then(response => {
|
||||
this.setData({
|
||||
pharmacist: response.data.pharmacist,
|
||||
audit_number: response.data.audit_number
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
|
||||
this.getPharmacistPrescription();
|
||||
},
|
||||
getPharmacistPrescription(){
|
||||
let params = {};
|
||||
let active = this.data.active;
|
||||
let pharmacist_audit_status = 0;
|
||||
let platform_audit_status = 1;
|
||||
|
||||
if(active == 0){
|
||||
pharmacist_audit_status = 0;
|
||||
platform_audit_status = 0;
|
||||
}
|
||||
if(active == 1){
|
||||
pharmacist_audit_status = 1;
|
||||
platform_audit_status = 1;
|
||||
}
|
||||
if(active == 2){
|
||||
pharmacist_audit_status = 2;
|
||||
platform_audit_status = 0;
|
||||
}
|
||||
if(active == 3){
|
||||
pharmacist_audit_status = 1;
|
||||
platform_audit_status = 2;
|
||||
}
|
||||
params.pharmacist_audit_status = pharmacist_audit_status;
|
||||
params.platform_audit_status = platform_audit_status;
|
||||
let data_name = "data_list_"+active;
|
||||
api.getPharmacistPrescription(params).then(response => {
|
||||
this.setData({
|
||||
[data_name]: response.data.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
},
|
||||
onChange(e){
|
||||
console.log(e)
|
||||
this.setData({
|
||||
active: e.detail.index
|
||||
})
|
||||
this.getPharmacistPrescription();
|
||||
},
|
||||
go(e){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url)
|
||||
},
|
||||
switchStatus(){
|
||||
let is_online = this.data.pharmacist.is_online;
|
||||
if(is_online == 0){
|
||||
is_online = 1
|
||||
}else if(is_online == 1){
|
||||
is_online = 0
|
||||
}
|
||||
api.putPharmacistOnOff({is_online: is_online}).then(response => {
|
||||
this.setData({
|
||||
"pharmacist.is_online": is_online
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
@ -2,64 +2,39 @@
|
||||
<view class="container">
|
||||
<view class="main title">
|
||||
<view class="photo">
|
||||
<t-avatar class="avatar-example" width="20" image="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png" />
|
||||
<t-avatar class="avatar-example" width="20" image="{{pharmacist.avatar}}" />
|
||||
</view>
|
||||
<view class="name">
|
||||
<view class="realname">李四</view>
|
||||
<view class="today_num">今日审方 9</view>
|
||||
<view class="realname">{{pharmacist.user_name}}</view>
|
||||
<view class="today_num">今日审方 {{audit_number}}</view>
|
||||
</view>
|
||||
<view class="status">
|
||||
<view class="status_text status_offline">离线</view>
|
||||
<view class="status" bindtap="switchStatus">
|
||||
<view class="status_text {{pharmacist.is_online==1?'status_online':'status_offline'}}">{{pharmacist.is_online==1?'在线':'离线'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main content">
|
||||
<van-tabs active="{{ active }}" color="{{ active_color }}" bind:change="onChange">
|
||||
<van-tab title="待审核处方">
|
||||
<view class="item">
|
||||
<view class="item" wx:for="{{data_list_0}}">
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="pre_content">处方订单号:{{item.prescription_code}}</view>
|
||||
<view class="end_content">
|
||||
<navigator url="/Pages/yaoshi/medicalrecord/medicalrecord" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<!-- <navigator url="/Pages/yaoshi/medicalrecord/medicalrecord" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</navigator>
|
||||
</navigator> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content">
|
||||
<navigator url="/Pages/yaoshi/medicalrecord/medicalrecord" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</navigator>
|
||||
<view class="pre_content">开方时间:{{item.created_at}}</view>
|
||||
<view class="end_content" bindtap="go" data-url="/Pages/yaoshi/medicalrecord/medicalrecord?order_inquiry_id={{item.order_inquiry_id }}&order_prescription_id={{item.order_prescription_id}}">
|
||||
<van-button type="primary" color="#ec871e" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item">
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<view class="pre_content">{{item.patient_name}}/{{item.patient_sex==1?'男':'女'}}/{{item.patient_age}}岁</view>
|
||||
<view class="end_content" bindtap="go" data-url="/Pages/yaoshi/prescription/prescription?order_prescription_id={{item.order_prescription_id}}">
|
||||
<van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button>
|
||||
</view>
|
||||
</view>
|
||||
@ -68,34 +43,73 @@
|
||||
</van-tab>
|
||||
<van-tab title="已审核处方">
|
||||
<view class="item">
|
||||
<view class="pre_content">
|
||||
处方订单号 2023010510324649
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="mini">迷你按钮</van-button>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content" style="color: #2196f3;">通过</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<!-- <van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-tab>
|
||||
<van-tab title="驳回处方">
|
||||
<view class="item">
|
||||
<view class="pre_content">
|
||||
处方订单号 2023010510324649
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="mini">迷你按钮</van-button>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content" style="color: red;">驳回</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<!-- <van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-tab>
|
||||
<van-tab title="不通过">
|
||||
<view class="item">
|
||||
<view class="pre_content">
|
||||
处方订单号 2023010510324649
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="mini">迷你按钮</van-button>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content" style="color: red;">驳回</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<!-- <van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
</view>
|
||||
<view style="height: 60px;">
|
||||
<!-- 适配底部tabbar -->
|
||||
</view>
|
||||
</view>
|
||||
@ -40,15 +40,18 @@ page{
|
||||
.status_offline{
|
||||
background-color: #BFBFBF;
|
||||
}
|
||||
.status_online{
|
||||
background-color: rgb(124, 231, 124);
|
||||
}
|
||||
.status_text{
|
||||
display: inline-block;
|
||||
padding: 10rpx 20rpx;
|
||||
border-radius: 20rpx;
|
||||
word-spacing: 10rpx;
|
||||
letter-spacing: 10rpx;
|
||||
float: right;
|
||||
margin-right: 25rpx;
|
||||
font-size: 20rpx;
|
||||
display: flex;
|
||||
width: 50rpx;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
.custom-tabs {
|
||||
margin-bottom: 32rpx;
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
//index.js
|
||||
//获取应用实例
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
|
||||
Page({
|
||||
data: {
|
||||
// 组件所需的参数
|
||||
@ -11,9 +10,21 @@ Page({
|
||||
},
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height ,
|
||||
height: app.globalData.height,
|
||||
info: ""
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
onShow(){
|
||||
|
||||
api.getPharmacistInfo().then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
info: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@ -1,19 +1,19 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<t-avatar class="avatar" size="large" image="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yaoshi_default_photo.png" />
|
||||
<text class="name">李四</text>
|
||||
<t-avatar class="avatar" size="large" image="{{info.avatar}}" />
|
||||
<text class="name">{{info.user_name}}</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<van-cell-group>
|
||||
<van-cell size="large" title="姓名" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="李四" />
|
||||
<van-cell size="large" title="性别" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="年龄" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="身份证号" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="手机号码" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="我的地址" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="科室" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="职称" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="姓名" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.user_name}}" />
|
||||
<van-cell size="large" title="性别" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.sex==1?'男':'女'}}" />
|
||||
<van-cell size="large" title="年龄" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.age}}" />
|
||||
<van-cell size="large" title="身份证号" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.card_num}}" />
|
||||
<!-- <van-cell size="large" title="手机号码" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.user_name}}" /> -->
|
||||
<!-- <van-cell size="large" title="我的地址" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.user_name}}" /> -->
|
||||
<van-cell size="large" title="科室" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.department_custom_name}}" />
|
||||
<van-cell size="large" title="职称" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.pharmacist_title}}" />
|
||||
</van-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
@ -14,6 +14,5 @@
|
||||
text-align: justify;
|
||||
text-justify:distribute-all-lines;
|
||||
text-align-last: justify;
|
||||
width: 60rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
//index.js
|
||||
//获取应用实例
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
|
||||
Page({
|
||||
data: {
|
||||
// 组件所需的参数
|
||||
@ -9,11 +8,34 @@ Page({
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '患者病历', //导航栏 中间的标题
|
||||
},
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height ,
|
||||
height: app.globalData.height,
|
||||
order_inquiry_id: "",
|
||||
order_prescription_id: "",
|
||||
case_detail: {}
|
||||
},
|
||||
onLoad(options) {
|
||||
let order_inquiry_id = options.order_inquiry_id;
|
||||
let order_prescription_id = options.order_prescription_id;
|
||||
console.log("order_inquiry_id: ", order_inquiry_id);
|
||||
this.setData({
|
||||
order_inquiry_id: order_inquiry_id,
|
||||
order_prescription_id: order_prescription_id,
|
||||
})
|
||||
},
|
||||
onShow(){
|
||||
|
||||
api.getCase({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
case_detail: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
},
|
||||
go(e){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url)
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
}
|
||||
})
|
||||
|
||||
@ -3,27 +3,26 @@
|
||||
<view class="user_info">
|
||||
<view class="user_item">患者信息</view>
|
||||
<view class="user_item">
|
||||
<text class="item_title">姓名:</text>张三
|
||||
<text class="item_title">性别:</text>男
|
||||
<text class="item_title">年龄:</text>30岁
|
||||
<text class="item_title">姓名:</text>{{case_detail.name}}
|
||||
<text class="item_title">性别:</text>{{case_detail.sex==1?'男':'女'}}
|
||||
<text class="item_title">年龄:</text>{{case_detail.age}}岁
|
||||
</view>
|
||||
</view>
|
||||
<view class="case_info">
|
||||
<view class="item">疾病资料</view>
|
||||
<view class="item"><text class="item_title">病情主要述:</text>我问问</view>
|
||||
<view class="item"><text class="item_title">用药意向:</text>【未匹配】连花清瘟胶囊*1</view>
|
||||
<view class="item"><text class="item_title">体重:</text>56KG</view>
|
||||
<view class="item"><text class="item_title">本次用药已相关确认病症:</text>无</view>
|
||||
<view class="item"><text class="item_title">是否服用过您想购买的药品且无相关禁忌症:</text>是</view>
|
||||
<view class="item"><text class="item_title">是否有药物过敏史:</text>否</view>
|
||||
<view class="item"><text class="item_title">您的肝功能、肾功能是否存在异常:</text>否</view>
|
||||
<view class="item"><text class="item_title">您是否处于备孕、妊娠、哺乳期:</text>否</view>
|
||||
<view class="item"><text class="item_title">病情主要述:</text>{{case_detail.disease_desc}}</view>
|
||||
<view class="item">
|
||||
<text class="item_title">用药意向:</text>
|
||||
<text wx:for="{{case_detail.product}}">{{item}}</text>
|
||||
</view>
|
||||
<view class="item"><text class="item_title">体重:</text>{{case_detail.weight}}KG</view>
|
||||
<view class="item"><text class="item_title">是否服用过您想购买的药品且无相关禁忌症:</text>{{case_detail.is_taboo==0?'否':'是'}}</view>
|
||||
<view class="item"><text class="item_title">是否有药物过敏史:</text>{{case_detail.is_allergy_history==0?'否':'是'}}</view>
|
||||
<view class="item"><text class="item_title">您是否处于备孕、妊娠、哺乳期:</text>{{case_detail.is_pregnant==0?'否':'是'}}</view>
|
||||
<view class="item"><text class="item_title">复诊凭证</text></view>
|
||||
</view>
|
||||
<view class="go_check">
|
||||
<navigator url="/Pages/yaoshi/prescription/prescription" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">前往审方</van-button>
|
||||
</navigator>
|
||||
<view class="go_check" bindtap="go" data-url="/Pages/yaoshi/prescription/prescription?order_prescription_id={{order_prescription_id}}">
|
||||
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">前往审方</van-button>
|
||||
</view>
|
||||
<view class="bottom">肝胆相照提供技术支持</view>
|
||||
<view class="bottom"></view>
|
||||
</view>
|
||||
@ -1,7 +1,8 @@
|
||||
page{
|
||||
background-color: #F3F5F7;
|
||||
}
|
||||
.container{
|
||||
letter-spacing: 3rpx;
|
||||
background-color: #F3F5F7;
|
||||
height: 100vh;
|
||||
}
|
||||
.user_info{
|
||||
background-color: #fff;
|
||||
|
||||
@ -1,31 +1,29 @@
|
||||
// Pages/my/my.js
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '个人中心', //导航栏 中间的标题
|
||||
},
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height,
|
||||
info:{}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
active: 1, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
|
||||
api.getPharmacistInfo().then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
info: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -1,7 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||
"van-icon": "@vant/weapp/icon/index"
|
||||
},
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<t-avatar class="avatar" size="large" image="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yaoshi_default_photo.png" />
|
||||
<text class="name">李四</text>
|
||||
<t-avatar class="avatar" size="large" image="{{info.avatar}}" />
|
||||
<text class="name">{{info.user_name}}</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<navigator url="/Pages/yaoshi/info/info" open-type="navigate" hover-class="other-navigator-hover">
|
||||
|
||||
@ -14,7 +14,6 @@
|
||||
text-align: justify;
|
||||
text-justify:distribute-all-lines;
|
||||
text-align-last: justify;
|
||||
width: 60rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.my{
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import Toast from '@vant/weapp/toast/toast'
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
@ -13,9 +15,14 @@ Page({
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height,
|
||||
order_prescription_id: ""
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
onLoad(options) {
|
||||
let order_prescription_id = options.order_prescription_id;
|
||||
console.log("order_prescription_id: ", order_prescription_id)
|
||||
this.setData({
|
||||
order_prescription_id: order_prescription_id
|
||||
})
|
||||
},
|
||||
|
||||
onConfirmReason(event) {
|
||||
@ -27,7 +34,6 @@ Page({
|
||||
},
|
||||
|
||||
onCancelReason() {
|
||||
Toast('取消');
|
||||
this.setData({ reasonshow: false });
|
||||
},
|
||||
|
||||
@ -53,21 +59,34 @@ Page({
|
||||
this.setData({ bohuishow: false });
|
||||
},
|
||||
|
||||
submitBohui() {
|
||||
submitBohui(e) {
|
||||
console.log(444);
|
||||
Toast.loading({
|
||||
message: '加载中...',
|
||||
forbidClick: true,
|
||||
onClose: () => {
|
||||
console.log('执行OnClose函数');
|
||||
this.setData({ bohuishow: false });
|
||||
},
|
||||
});
|
||||
|
||||
this.putPharmacistPrescriptionVerify(e);
|
||||
},
|
||||
|
||||
submit(){
|
||||
console.log(555);
|
||||
},
|
||||
onShow(){
|
||||
api.getPharmacistPrescriptioninfo({order_prescription_id: this.data.order_prescription_id}).then(response => {
|
||||
console.log(response.data);
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
putPharmacistPrescriptionVerify(e){
|
||||
console.log(e)
|
||||
let params = {};
|
||||
params.pharmacist_audit_status = e.currentTarget.dataset.pharmacist_audit_status;
|
||||
if(params.pharmacist_audit_status == 2){
|
||||
params.pharmacist_fail_reason = this.data.resonText;
|
||||
}
|
||||
params.order_prescription_id = this.data.order_prescription_id;
|
||||
api.putPharmacistPrescriptionVerify(params).then(response => {
|
||||
console.log(response.data);
|
||||
Toast.success("处理成功");
|
||||
setTimeout(() => {
|
||||
wx.navigateBack();
|
||||
}, 1000);
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
|
||||
})
|
||||
@ -14,19 +14,22 @@
|
||||
<text decode="true"> 驳回 </text>
|
||||
</van-button>
|
||||
</view>
|
||||
<view class="button_item">
|
||||
<view class="button_item" bindtap="putPharmacistPrescriptionVerify" data-pharmacist_audit_status="1">
|
||||
<van-button round type="primary" bind:click="submit">
|
||||
<text decode="true"> 通过 </text>
|
||||
</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 20rpx;">
|
||||
|
||||
</view>
|
||||
|
||||
<van-popup show="{{ bohuishow }}" bind:close="onClose">
|
||||
<view class="pop">
|
||||
<van-cell size="large" title="驳回理由:" is-link value="{{ resonText }}" bind:click="showReasonPopup"/>
|
||||
<view class="pop_button">
|
||||
<view class="pop_button_txt" bindtap="closePopup">取消</view>
|
||||
<view class="pop_button_txt" bindtap="submitBohui">确认驳回</view>
|
||||
<view class="pop_button_txt" bindtap="submitBohui" data-pharmacist_audit_status="2">确认驳回</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
.container{
|
||||
page{
|
||||
|
||||
background-color: #F3F5F7;
|
||||
}
|
||||
|
||||
.img_box{
|
||||
width: 90vw;
|
||||
margin: 20rpx auto;
|
||||
|
||||
@ -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="help">
|
||||
<view class="help_title">
|
||||
<text wx:if="{{ !banklist_empty }}">我的银行卡</text>
|
||||
@ -11,14 +11,14 @@
|
||||
</view>
|
||||
<view class="bankcard_empty_box" wx:if="{{ banklist_empty }}">
|
||||
<view class="bankcard_empty">
|
||||
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard_empty.png" fit="heightFix" width="200rpx" aria-label="空" />
|
||||
<van-image src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/bankcard_empty.png" fit="widthFix" width="500rpx" aria-label="空" />
|
||||
</view>
|
||||
<van-button data-url="/Pages/yishi/bindcard/index" bind:click="go" custom-style="font-size: 30rpx;border-radius: 10rpx;background-color:#3CC7C0;border: none;width: 92vw;margin: 50rpx auto;" type="primary" block>添加结算银行卡</van-button>
|
||||
<view class="note">提示:每人只能绑定一张银行卡,银行卡绑定成功后每月只能修改结算银行卡一次,请谨慎绑定。</view>
|
||||
</view>
|
||||
<view class="bankcard_list" wx:if="{{ !banklist_empty }}">
|
||||
<view class="bankcard_list_item">
|
||||
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/gs.png" fit="widthFix" width="100%" aria-label="空" />
|
||||
<van-image src="{{bank_img_path}}" fit="widthFix" width="100%" aria-label="空" />
|
||||
<view class="bankcard_list_item_name">{{bank_name}}</view>
|
||||
<view class="bankcard_list_item_num">{{bank_card_code_mask}}</view>
|
||||
</view>
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.help{
|
||||
display: flex;
|
||||
|
||||
@ -16,11 +16,13 @@
|
||||
<van-cell size="large" title="所在城市" value="{{city_note}}" is-link bindtap="onCityShow"/>
|
||||
<van-cell size="large" title="开户行" value="{{bank_note}}" is-link bindtap="onBankShow"/>
|
||||
<van-field
|
||||
label="银行卡号"
|
||||
placeholder="请输入卡号"
|
||||
model:value="{{ bankcard }}"
|
||||
input-align="right"
|
||||
/>
|
||||
placeholder-style="font-size: 16px;"
|
||||
>
|
||||
<text slot="label" style="font-size: 30rpx;">银行卡号</text>
|
||||
</van-field>
|
||||
</van-cell-group>
|
||||
</view>
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.bankcard{
|
||||
margin-top: 50rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.note{
|
||||
font-size: 28rpx;
|
||||
|
||||
@ -7,10 +7,10 @@
|
||||
<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">{{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="height info_item"><text class="info_title">身高:</text><text class="info_val">{{case_detail.height==null?'未知':case_detail.height}}cm</text></view>
|
||||
<view class="weight info_item"><text class="info_title">体重:</text><text class="info_val">{{case_detail.weight==null?'未知':case_detail.weight}}KG</text></view>
|
||||
<view class="minzu info_item"><text class="info_title">民族:</text><text class="info_val">{{case_detail.nation_name==''?'未知':case_detail.nation_name}}</text></view>
|
||||
<view class="zhiye info_item"><text class="info_title">职业:</text><text class="info_val">{{case_detail.job_name==''?'未知':case_detail.job_name}}</text></view>
|
||||
<view class="hunyin info_item"><text class="info_title">婚姻:</text><text class="info_val">{{case_detail.marital_status==0?'未婚':case_detail.marital_status==1?'已婚':case_detail.marital_status==2?'离异':'未知'}}</text></view>
|
||||
</view>
|
||||
<view class="disease_box">
|
||||
@ -26,7 +26,7 @@
|
||||
<view class="title">医生诊断:</view>
|
||||
<view class="conent">{{case_detail.disease_class_name}}</view>
|
||||
</view> -->
|
||||
<view class="disease_box_item">
|
||||
<view class="disease_box_item" wx:if="{{case_detail.diagnosis_hospital != ''}}">
|
||||
<view class="title">确诊医院:</view>
|
||||
<view class="conent">{{case_detail.diagnosis_hospital}}</view>
|
||||
</view>
|
||||
@ -41,7 +41,7 @@
|
||||
<view class="title">病情描述:</view>
|
||||
<view class="conent">{{case_detail.disease_desc}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="disease_box_item" wx:if="{{case_detail.product.length > 0}}">
|
||||
<view class="title">用药意向:</view>
|
||||
<view class="conent">
|
||||
<text wx:for="{{case_detail.product}}">{{item}};</text>
|
||||
|
||||
@ -12,10 +12,10 @@ Page({
|
||||
bank_card_id: "",
|
||||
bank_icon_path: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png",
|
||||
realname: "默认姓名",
|
||||
bank_name : "招商银行",
|
||||
bank_card_code_mask: "2233 9988 9989 9900",
|
||||
withdrawal_amount: "987",
|
||||
income_tax: "12",
|
||||
bank_name : "xx银行",
|
||||
bank_card_code_mask: "888 xxxx xxxx 888",
|
||||
withdrawal_amount: "xxxx",
|
||||
income_tax: "xx",
|
||||
contactKeFu: false
|
||||
},
|
||||
onLoad(options){
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"t-image": "tdesign-miniprogram/image/image",
|
||||
"van-image": "@vant/weapp/image/index",
|
||||
"van-icon": "@vant/weapp/icon/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-dialog": "@vant/weapp/dialog/index"
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
</view>
|
||||
<view class="bankcard">
|
||||
<view class="bankcard_icon">
|
||||
<t-image custom-style="" src="{{bank_icon_path}}" mode="heightFix" height="50rpx" aria-label="role" />
|
||||
<van-image custom-style="" src="{{bank_icon_path}}" fit="heightFix" height="50rpx" aria-label="role" />
|
||||
</view>
|
||||
<view class="bankcard_info">
|
||||
<view class="bankcard_info_top">{{realname}}<text style="margin-left: 20rpx; font-size: 28rpx;color: #999999;">{{bank_name}}</text></view>
|
||||
|
||||
@ -46,7 +46,13 @@ Page({
|
||||
"stickyProps.offsetTop": this.data.stateHeight + this.data.navHeight + 10
|
||||
})
|
||||
},
|
||||
onLoad(){
|
||||
onLoad(options){
|
||||
let selected_tab = options.selected_tab;
|
||||
if(selected_tab){
|
||||
this.setData({
|
||||
selected_tab: selected_tab
|
||||
})
|
||||
}
|
||||
let _this = this;
|
||||
//获取实名认证信息
|
||||
api.getDoctorAuthReal().then(response => {
|
||||
@ -373,9 +379,16 @@ Page({
|
||||
}
|
||||
api.postDoctorAuthReal(params).then(response => {
|
||||
console.log(response);
|
||||
wx.showToast({
|
||||
title: '认证成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
_this.setData({
|
||||
panel_2_disabled: false,
|
||||
selected_tab: 1
|
||||
selected_tab: 1,
|
||||
next_btn_disabled: true,
|
||||
next_btn_txt: '已认证,不可修改'
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
|
||||
@ -20,26 +20,29 @@
|
||||
<van-cell-group>
|
||||
<van-field
|
||||
model:value="{{ realname }}"
|
||||
label="真实姓名"
|
||||
|
||||
type="text"
|
||||
placeholder="请填写真实姓名,提交后不能修改"
|
||||
placeholder-style="font-size:28rpx; color: #C5C8CB;"
|
||||
input-align="right"
|
||||
required
|
||||
clearable
|
||||
custom-style="font-size:30rpx;"
|
||||
/>
|
||||
disabled="{{next_btn_disabled}}"
|
||||
>
|
||||
<text slot="label">真实姓名 <text style="color: #e34d59;">*</text> </text>
|
||||
</van-field>
|
||||
<van-field
|
||||
model:value="{{ idcard }}"
|
||||
type="idcard"
|
||||
label="身份证号"
|
||||
placeholder="请填写身份证号"
|
||||
placeholder-style="font-size:28rpx; color: #C5C8CB;"
|
||||
input-align="right"
|
||||
required
|
||||
clearable
|
||||
custom-style="font-size:30rpx;"
|
||||
/>
|
||||
disabled="{{next_btn_disabled}}"
|
||||
>
|
||||
<text slot="label">身份证号 <text style="color: #e34d59;">*</text> </text>
|
||||
</van-field>
|
||||
</van-cell-group>
|
||||
|
||||
<!-- <t-cell title="真实姓名" hover required arrow note="请填写真实姓名,提交后不能修改"/> -->
|
||||
@ -59,14 +62,16 @@
|
||||
<!-- 医师身份认证 -->
|
||||
<t-tab-panel label="医师身份认证" value="1" disabled style="{{tabPanelstyle}}" wx:if="{{panel_2_disabled}}">
|
||||
<myprofile wx:if="{{selected_tab == 1}}" />
|
||||
<view style="height: 50rpx;"></view>
|
||||
</t-tab-panel>
|
||||
|
||||
<t-tab-panel label="医师身份认证" value="1" style="{{tabPanelstyle}}" wx:if="{{!panel_2_disabled}}">
|
||||
<myprofile wx:if="{{selected_tab == 1}}" />
|
||||
<view style="height: 50rpx;"></view>
|
||||
</t-tab-panel>
|
||||
|
||||
|
||||
</t-tabs>
|
||||
</view>
|
||||
<van-toast id="van-toast" />
|
||||
<!-- <van-toast id="van-toast" /> -->
|
||||
</view>
|
||||
@ -109,10 +109,7 @@
|
||||
height: 300rpx;
|
||||
background-color: cadetblue;
|
||||
}
|
||||
/* 自定义 vant required 小红点位置 */
|
||||
.van-cell--required::before {
|
||||
left: 4.7rem !important;
|
||||
}
|
||||
|
||||
.zhuanchang_box{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@ -132,7 +129,6 @@
|
||||
}
|
||||
.zhuanchang_block {
|
||||
width: 100vw;
|
||||
height: 240px;
|
||||
background: #fff;
|
||||
border-top-left-radius: 16rpx;
|
||||
border-top-right-radius: 16rpx;
|
||||
|
||||
@ -8,15 +8,15 @@ Page({
|
||||
navHeight: 0,
|
||||
stateHeight: 0,
|
||||
info:{
|
||||
user_name: "手机号后四位",
|
||||
not_accepted_inquiry_num: 6,
|
||||
accepting_inquiry_num: 12,
|
||||
user_name: "xxx",
|
||||
not_accepted_inquiry_num: 0,
|
||||
accepting_inquiry_num: 0,
|
||||
info_shiming_status_txt: "未认证",
|
||||
info_shiming_status: "info_shiming_status_no",
|
||||
show_info_note: false,
|
||||
praise_rate: "99%",
|
||||
avg_response_time: 125,
|
||||
number_of_fans: 9254,
|
||||
praise_rate: "100%",
|
||||
avg_response_time: 0,
|
||||
number_of_fans: 0,
|
||||
avatar: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png",
|
||||
reject_prescription_number: false,//处方管理小红点
|
||||
},
|
||||
@ -27,11 +27,7 @@ Page({
|
||||
multi_point_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
duration: 500,
|
||||
interval: 5000,
|
||||
swiperList: [
|
||||
`https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/ad1.jpg`,
|
||||
`https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/ad2.jpg`,
|
||||
`https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/ad3.jpg`,
|
||||
],
|
||||
swiperList: [],
|
||||
banner: [],
|
||||
default_dialog_show: false,//只弹框一次
|
||||
dialog_visible: false,
|
||||
@ -60,17 +56,17 @@ Page({
|
||||
{
|
||||
case_status: 0,
|
||||
case_module: [0,1,2,3,4,5,6,7,8],
|
||||
case_text: "未实名认证"
|
||||
case_text: "请您先实名认证"
|
||||
},
|
||||
{
|
||||
case_status: 1,
|
||||
case_module: [0,1,2,3,4,5,6,7,8],
|
||||
case_text: "未医师身份认证"
|
||||
case_text: "请您先医师身份认证"
|
||||
},
|
||||
{
|
||||
case_status: 2,
|
||||
case_module: [0,1,4,5,6],
|
||||
case_text: "未绑定结算银行卡"
|
||||
case_text: "请您先绑定结算银行卡"
|
||||
},
|
||||
{
|
||||
case_status: 3,
|
||||
@ -116,6 +112,9 @@ Page({
|
||||
},
|
||||
onUnload(){
|
||||
console.log("index onUnload() onUnload() ");
|
||||
this.setData({
|
||||
swiperList: []
|
||||
})
|
||||
},
|
||||
onHide(){
|
||||
console.log("index onHide() onHide() ");
|
||||
@ -170,13 +169,13 @@ Page({
|
||||
|
||||
//iden_auth_status 0:未认证 1:认证通过 2:审核中 3:认证失败
|
||||
if(iden_auth_status == 0) this.setData({iden_auth_status_txt: "未认证"});
|
||||
if(iden_auth_status == 1) this.setData({iden_auth_status_txt: "认证通过", iden_auth_status_url: "/Pages/yishi/attestation/index"});
|
||||
if(iden_auth_status == 1) this.setData({iden_auth_status_txt: "已认证", iden_auth_status_url: "/Pages/yishi/attestation/index"});
|
||||
if(iden_auth_status == 2) this.setData({iden_auth_status_txt: "审核中"});
|
||||
if(iden_auth_status == 3) this.setData({iden_auth_status_txt: "认证失败"});
|
||||
|
||||
//multi_point_status 0:未认证 1:认证通过 2:审核中 3:认证失败
|
||||
if(multi_point_status == 0) this.setData({multi_point_status_txt: "未认证"});
|
||||
if(multi_point_status == 1) this.setData({multi_point_status_txt: "认证通过", multi_point_status_url: "/Pages/yishi/practicing/index"});
|
||||
if(multi_point_status == 1) this.setData({multi_point_status_txt: "已认证", multi_point_status_url: "/Pages/yishi/practicing/index"});
|
||||
if(multi_point_status == 2) this.setData({multi_point_status_txt: "审核中"});
|
||||
if(multi_point_status == 3) this.setData({multi_point_status_txt: "认证失败"});
|
||||
|
||||
@ -241,6 +240,27 @@ Page({
|
||||
app.go(e.currentTarget.dataset.url)
|
||||
}
|
||||
},
|
||||
gozhiye(e){
|
||||
let idcard_status = this.data.info.idcard_status;
|
||||
let iden_auth_status = this.data.info.iden_auth_status;
|
||||
if(idcard_status != 1){
|
||||
this.setData({
|
||||
dialog_content: "请您先实名认证",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
dialog_visible: true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(iden_auth_status != 1){
|
||||
this.setData({
|
||||
dialog_content: "请您先医师身份认证",
|
||||
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_visible: true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
app.go(e.currentTarget.dataset.url);
|
||||
},
|
||||
confirmDialog(){
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
@ -259,72 +279,105 @@ Page({
|
||||
let iden_auth_status = this.data.info.iden_auth_status;
|
||||
//多点执业认证
|
||||
let multi_point_status = this.data.info.multi_point_status;
|
||||
//绑定结算银行卡
|
||||
var is_bind_bank = this.data.info.is_bind_bank;
|
||||
|
||||
wx.setStorageSync('idcard_status', idcard_status);
|
||||
wx.setStorageSync('iden_auth_status', iden_auth_status);
|
||||
let userID = wx.getStorageSync('user_id');
|
||||
wx.setStorageSync(userID+'_idcard_status', idcard_status);
|
||||
wx.setStorageSync(userID+'_iden_auth_status', iden_auth_status);
|
||||
wx.setStorageSync(userID+'_multi_point_status', multi_point_status);
|
||||
wx.setStorageSync(userID+'_is_bind_bank', is_bind_bank);
|
||||
|
||||
if(idcard_status == 0){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
dialog_content: "请您先实名认证",
|
||||
dialog_visible: true,
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
dialog_content: "请您先实名认证",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
if(idcard_status == 2){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "认证失败",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
dialog_content: "实名认证失败",
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "认证失败",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
dialog_content: "实名认证失败",
|
||||
default_dialog_show: true
|
||||
});
|
||||
return false;;
|
||||
}
|
||||
|
||||
if(iden_auth_status == 0){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "前往医师身份认证",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
dialog_content: "请您前往医师身份认证",
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "前往医师身份认证",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_content: "请您先医师身份认证",
|
||||
default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(iden_auth_status == 2){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "审核中",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
dialog_content: "您的医师身份认证正在审核中",
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
// dialog_visible: true,
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "审核中",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_content: "您的医师身份认证正在审核中",
|
||||
// default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(iden_auth_status == 3){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "认证失败",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
dialog_content: "您的医师身份认证失败",
|
||||
// dialog_visible: true,
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "认证失败",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_content: "您的医师身份认证失败",
|
||||
// default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if(is_bind_bank == 0){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "绑定结算银行卡",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/bankcard/index",
|
||||
dialog_content: "请您先绑定结算银行卡",
|
||||
default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -332,72 +385,64 @@ Page({
|
||||
if(multi_point_status == 0){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "前往多点执业认证",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "请您先进行多点执业认证",
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
return false;
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "前往多点执业认证",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "请您先进行多点执业认证",
|
||||
default_dialog_show: true
|
||||
});
|
||||
// return false;
|
||||
}
|
||||
if(multi_point_status == 2){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "审核中",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "您的多点执业认证正在审核中",
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
return false;
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "审核中",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "您的多点执业认证正在审核中",
|
||||
default_dialog_show: true
|
||||
});
|
||||
// return false;
|
||||
}
|
||||
if(multi_point_status == 3){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "认证失败",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "您的多点执业认证失败",
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "认证失败",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "您的多点执业认证失败",
|
||||
default_dialog_show: true
|
||||
});
|
||||
// return false;
|
||||
}
|
||||
|
||||
|
||||
//绑定结算银行卡
|
||||
var is_bind_bank = this.data.info.is_bind_bank;
|
||||
if(is_bind_bank == 0){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "绑定结算银行卡",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/bankcard/index",
|
||||
dialog_content: "请您先绑定结算银行卡",
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//开启在线问诊
|
||||
var is_img_expert_reception = this.data.info.is_img_expert_reception;
|
||||
if(is_img_expert_reception == 0 ){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "开启在线问诊",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/onlinesetup/index",
|
||||
dialog_content: "请您先前往在线问诊管理中开通在线问诊",
|
||||
dialog_visible: true,
|
||||
default_dialog_show: true
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "开启在线问诊",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/onlinesetup/index",
|
||||
dialog_content: "请您先前往在线问诊管理中开通在线问诊",
|
||||
default_dialog_show: true
|
||||
})
|
||||
return false;
|
||||
}
|
||||
this.setData({
|
||||
@ -447,13 +492,13 @@ Page({
|
||||
// 已实名认证和医师身份认证且绑定结算银行卡,开通了在线问诊,已开通多点执业认证 5
|
||||
if(idcard_status == 0 && iden_auth_status == 0){
|
||||
status = 0;
|
||||
}else if(idcard_status == 1 && iden_auth_status == 0){
|
||||
}else if(idcard_status == 1 && iden_auth_status != 1){
|
||||
status = 1;
|
||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 0){
|
||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank != 1){
|
||||
status = 2;
|
||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception == 0){
|
||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception != 1){
|
||||
status = 3;
|
||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception == 1 && multi_point_status == 0){
|
||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception == 1 && multi_point_status != 1){
|
||||
status = 4;
|
||||
}else{
|
||||
status = 5;
|
||||
|
||||
@ -57,7 +57,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="renzheng_right" bindtap="go" data-url="/Pages/yishi/zhiye_identity/index">
|
||||
<view class="renzheng_right" bindtap="gozhiye" data-url="/Pages/yishi/zhiye_identity/index">
|
||||
<view class="renzheng_content_left">
|
||||
<view class="renzheng_content_name">多点执业认证</view>
|
||||
<view class="renzheng_content_status">
|
||||
@ -75,7 +75,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 广告版块 -->
|
||||
<view class="ad">
|
||||
<view class="ad" wx:if="{{swiperList.length > 0}}">
|
||||
<t-swiper
|
||||
height="110rpx"
|
||||
duration="{{duration}}"
|
||||
@ -97,28 +97,28 @@
|
||||
custom-style="width: 70rpx;"
|
||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/jianjie.png"
|
||||
/>
|
||||
<text class="fun_box_item_txt">我的简介</text>
|
||||
<text class="fun_box_item_txt">简介管理</text>
|
||||
</view>
|
||||
<view bindtap="go" data-moudle="4" data-url="/Pages/yishi/onlinesetup/index" class="fun_box_item">
|
||||
<image class="fun_box_item_img"
|
||||
mode="widthFix"
|
||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zaixian.png"
|
||||
/>
|
||||
<text class="fun_box_item_txt">在线问诊</text>
|
||||
<text class="fun_box_item_txt">在线问诊管理</text>
|
||||
</view>
|
||||
<view bindtap="go" data-moudle="5" data-url="/Pages/yishi/kuaisusetup/index" class="fun_box_item">
|
||||
<image class="fun_box_item_img"
|
||||
mode="widthFix"
|
||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kuaisu.png"
|
||||
/>
|
||||
<text class="fun_box_item_txt">快速问诊</text>
|
||||
<text class="fun_box_item_txt">快速问诊管理</text>
|
||||
</view>
|
||||
<view bindtap="go" data-moudle="6" data-url="/Pages/yishi/yizhensetup/index" class="fun_box_item">
|
||||
<image class="fun_box_item_img"
|
||||
mode="widthFix"
|
||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yizhen.png"
|
||||
/>
|
||||
<text class="fun_box_item_txt">公益问诊</text>
|
||||
<text class="fun_box_item_txt">公益问诊管理</text>
|
||||
</view>
|
||||
<view bindtap="go" data-moudle="7" data-url="/Pages/yishi/chufangsetup/index" class="fun_box_item">
|
||||
<image class="fun_box_item_img"
|
||||
@ -137,7 +137,9 @@
|
||||
<text class="fun_box_item_txt">联系客服</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="width: 100%;height: 55px;">
|
||||
<!-- 处理底部tabbar遮挡 50px -->
|
||||
</view>
|
||||
<t-dialog
|
||||
visible="{{ dialog_visible }}"
|
||||
title="温馨提示"
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ info.is_open==1 }}" class="checked_box">
|
||||
<view class="checked_box">
|
||||
<view class="price_title">价格设置</view>
|
||||
<view class="price_steup_box">
|
||||
<view class="price_steup_box_bottom">
|
||||
@ -41,8 +41,8 @@
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="go" wx:if="{{ info.is_open==1 }}">
|
||||
<van-button bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
|
||||
<view class="go">
|
||||
<van-button disabled="{{info.is_open!=1}}" bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
|
||||
</view>
|
||||
|
||||
<van-toast id="van-toast" />
|
||||
|
||||
@ -14,7 +14,10 @@ Page({
|
||||
idcard_status: 0,
|
||||
iden_auth_status: 0,
|
||||
user_name: "",
|
||||
brief_introduction: "我的简介"
|
||||
brief_introduction: "我的简介",
|
||||
v_show: false,
|
||||
v_message: "",
|
||||
next_url: "/Pages/yishi/identity/index"
|
||||
},
|
||||
onLoad(){
|
||||
//获取医生我的账户数据
|
||||
@ -32,13 +35,14 @@ Page({
|
||||
},
|
||||
logOut(){
|
||||
console.log("退出登录");
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
wx.showModal({
|
||||
title: '确认退出登录',
|
||||
content: '退出登录后您需要重新登录',
|
||||
success (res) {
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定')
|
||||
wx.setStorageSync('AUTH_TOKEN', "");
|
||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
|
||||
wx.setStorageSync('user_id', "");
|
||||
wx.setStorageSync('client_user_id', "");
|
||||
app.go("/Pages/index/index");
|
||||
@ -47,6 +51,50 @@ Page({
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
go(e){
|
||||
if(this.data.idcard_status != 1){
|
||||
this.setData({
|
||||
v_show: true,
|
||||
v_message: "请先进行实名认证",
|
||||
next_url: "/Pages/yishi/identity/index"
|
||||
})
|
||||
return;
|
||||
}
|
||||
if(this.data.iden_auth_status != 1){
|
||||
this.setData({
|
||||
v_show: true,
|
||||
v_message: "请先进行医师身份认证",
|
||||
next_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
})
|
||||
return;
|
||||
}
|
||||
app.go(e.currentTarget.dataset.url)
|
||||
},
|
||||
go1(e){
|
||||
if(this.data.idcard_status != 1){
|
||||
this.setData({
|
||||
v_show: true,
|
||||
v_message: "请先进行实名认证",
|
||||
next_url: "/Pages/yishi/identity/index"
|
||||
})
|
||||
return;
|
||||
}
|
||||
app.go(e.currentTarget.dataset.url)
|
||||
},
|
||||
go2(e){
|
||||
if(this.data.iden_auth_status != 1){
|
||||
this.setData({
|
||||
v_show: true,
|
||||
v_message: "请先进行医师身份认证",
|
||||
next_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
})
|
||||
return;
|
||||
}
|
||||
app.go(e.currentTarget.dataset.url)
|
||||
},
|
||||
goIn(){
|
||||
app.go(this.data.next_url)
|
||||
}
|
||||
|
||||
})
|
||||
@ -4,6 +4,7 @@
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"van-cell": "@vant/weapp/cell/index",
|
||||
"van-cell-group": "@vant/weapp/cell-group/index",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-dialog": "@vant/weapp/dialog/index"
|
||||
}
|
||||
}
|
||||
@ -1,13 +1,22 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<van-cell-group>
|
||||
<van-cell size="large" url="/Pages/yishi/mycard/index" title="我的名片" value="分享名片" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/myprofile/index" title="我的简介" value="{{brief_introduction}}" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/attestation/index?card_name={{card_name}}&card_num_mask={{card_num_mask}}" link-type="navigateTo" title="实名认证"
|
||||
value="{{idcard_status==0?'未认证':idcard_status==1?'认证通过':'认证失败'}}" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/practicing/index" link-type="navigateTo" title="医师认证"
|
||||
value="{{iden_auth_status==0?'未认证':iden_auth_status==1?'认证通过':iden_auth_status==2?'审核中':'认证失败'}}" is-link />
|
||||
<van-cell size="large" bindtap="go" data-url="/Pages/yishi/mycard/index" title="我的名片" value="分享名片" is-link />
|
||||
<van-cell size="large" bindtap="go" data-url="/Pages/yishi/myprofile/index" title="我的简介" value="{{brief_introduction}}" is-link />
|
||||
<van-cell size="large" bindtap="go1" data-url="/Pages/yishi/attestation/index?card_name={{card_name}}&card_num_mask={{card_num_mask}}" link-type="navigateTo" title="实名认证"
|
||||
value="{{idcard_status==0?'未认证':idcard_status==1?'已认证':'认证失败'}}" is-link />
|
||||
<van-cell size="large" bindtap="go" data-url="/Pages/yishi/practicing/index" link-type="navigateTo" title="医师认证"
|
||||
value="{{iden_auth_status==0?'未认证':iden_auth_status==1?'已认证':iden_auth_status==2?'审核中':'认证失败'}}" is-link />
|
||||
</van-cell-group>
|
||||
|
||||
<van-button bind:click="logOut" custom-style="width: 92vw;margin: 50rpx auto;border-radius: 10rpx;" type="primary" color="#3CC7C0" block>退出登录</van-button>
|
||||
|
||||
<van-dialog
|
||||
title="温馨提示"
|
||||
message="{{v_message}}"
|
||||
show="{{ v_show }}"
|
||||
show-cancel-button
|
||||
confirm-button-color="#3CC7C0"
|
||||
bind:confirm="goIn"
|
||||
/>
|
||||
</view>
|
||||
@ -0,0 +1,5 @@
|
||||
.van-cell__value {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<myprofile indentity="{{false}}" />
|
||||
|
||||
<view style="height: 50rpx;"></view>
|
||||
</view>
|
||||
@ -1,6 +1,5 @@
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import { API } from './../../../utils/network/api'
|
||||
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@ -29,9 +28,30 @@ Page({
|
||||
save_durg_single_use: "",
|
||||
save_durg_packaging_unit: "",
|
||||
save_durg_frequency_use: "",
|
||||
save_durg_available_days: ""
|
||||
save_durg_available_days: "",
|
||||
order_inquiry_id: "",
|
||||
doctor_advice: "",
|
||||
doctors_advice_focus: false,
|
||||
case_detail: {}
|
||||
},
|
||||
onDoctorsAdviceFocus(){
|
||||
this.setData({
|
||||
doctors_advice_focus: true
|
||||
})
|
||||
},
|
||||
onLoad(options){
|
||||
let order_inquiry_id = options.order_inquiry_id;
|
||||
//获取患者问诊病例
|
||||
api.getDoctorInquiryCase({order_inquiry_id: order_inquiry_id}).then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
case_detail: response.data
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
this.setData({
|
||||
order_inquiry_id: order_inquiry_id
|
||||
})
|
||||
},
|
||||
|
||||
select_drug(e){
|
||||
this.setData({
|
||||
drug_content_show: true,
|
||||
@ -253,5 +273,44 @@ Page({
|
||||
drugs_box_item_list: list
|
||||
})
|
||||
}
|
||||
},
|
||||
getAdvice(e){
|
||||
console.log(e.detail.value)
|
||||
this.setData({
|
||||
doctor_advice: e.detail.value
|
||||
})
|
||||
},
|
||||
postDoctorPrescription(){//新增处方
|
||||
console.log("postDoctorPrescription postDoctorPrescription");
|
||||
let params = {};
|
||||
params.order_inquiry_id = this.data.order_inquiry_id;
|
||||
params.doctor_advice = this.data.doctor_advice;
|
||||
let prescription_icd = [];
|
||||
this.data.zhenduan_list.forEach(item => {
|
||||
prescription_icd.push(item.disease_class_id);
|
||||
})
|
||||
params.prescription_icd = prescription_icd;
|
||||
params.prescription_product = this.data.drugs_box_item_list;
|
||||
|
||||
console.log(params);
|
||||
|
||||
api.postDoctorPrescription(params).then(response => {
|
||||
console.log(response);
|
||||
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
putDoctorPrescription(){//修改处方
|
||||
let params = {};
|
||||
api.putDoctorPrescription(params).then(response => {
|
||||
console.log(response);
|
||||
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
getDoctorPrescriptionInfo(){//获取处方详情
|
||||
let params = {};
|
||||
api.getDoctorPrescriptionInfo(params).then(response => {
|
||||
console.log(response);
|
||||
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
})
|
||||
@ -1,21 +1,21 @@
|
||||
<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">
|
||||
<!-- 头部 -->
|
||||
<view class="item_top">
|
||||
<view class="item_top_name">张三三</view>
|
||||
<view class="item_top_sex">男 | 30岁</view>
|
||||
<view class="check">查看病历</view>
|
||||
<view class="item_top_name">{{case_detail.name}}</view>
|
||||
<view class="item_top_sex">{{case_detail.sex==1?'男':case_detail.sex==2?'女':'未知'}}|{{case_detail.age}}岁 </view>
|
||||
<view class="check" bindtap="go" data-url="/Pages/yishi/case/index?order_inquiry_id={{order_inquiry_id}}">查看病历</view>
|
||||
</view>
|
||||
<!-- 中间内容部分 -->
|
||||
<view class="item_content">
|
||||
<view class="item_content_li">
|
||||
<view class="item_content_li_title">病情主诉:</view>
|
||||
<view class="item_content_li_txt">头疼,腰疼、肩膀酸、等症状已经困,头疼,腰疼、肩膀酸、等症状已经困</view>
|
||||
<view class="item_content_li_txt">{{case_detail.disease_desc}}</view>
|
||||
</view>
|
||||
<view class="item_content_li">
|
||||
<view class="item_content_li_title">用药意向:</view>
|
||||
<view class="item_content_li_txt">肝功能异常</view>
|
||||
<view class="item_content_li_txt"><text wx:for="{{case_detail.product}}">{{item}};</text></view>
|
||||
</view>
|
||||
<!-- <view class="item_content_li">
|
||||
<view class="item_content_li_title">处方时间:</view>
|
||||
@ -60,13 +60,13 @@
|
||||
</view>
|
||||
|
||||
<view class="txt_title">医嘱</view>
|
||||
<view class="doctors_advice">
|
||||
<textarea maxlength="1000" style="width: 100%;" placeholder-style="font-size:24rpx; color:#999" placeholder="请选择常用于"></textarea>
|
||||
<view class="doctors_advice" bindtap="onDoctorsAdviceFocus">
|
||||
<textarea auto-height focus="{{doctors_advice_focus}}" maxlength="1000" bindblur="getAdvice" style="width: 100%;" placeholder-style="font-size:24rpx; color:#999" placeholder="请输入医嘱"></textarea>
|
||||
</view>
|
||||
<view class="sub_btn">
|
||||
<van-button bind:click="postDoctorPrescription" color="#3CC7C0; font-size:30rpx; border-radius: 10rpx;" type="primary" block>提交审核</van-button>
|
||||
</view>
|
||||
|
||||
<view class="sub_btn">
|
||||
<van-button color="#3CC7C0; font-size:30rpx; border-radius: 10rpx;" type="primary" block>提交审核</van-button>
|
||||
</view>
|
||||
|
||||
<van-popup
|
||||
show="{{ drugs_popshow }}"
|
||||
|
||||
@ -3,7 +3,6 @@ page{
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #F6F6F6;
|
||||
letter-spacing: 3rpx;
|
||||
}
|
||||
@ -104,7 +103,7 @@ page{
|
||||
.doctors_advice{
|
||||
position: relative;
|
||||
width: calc(92vw - 40rpx);
|
||||
height: 100rpx;
|
||||
min-height: 100rpx;
|
||||
margin: 20rpx auto;
|
||||
background-color: rgb(255, 255, 255);
|
||||
border-radius: 20rpx;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import Toast from 'tdesign-miniprogram/toast/index';
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@ -19,6 +19,7 @@ Page({
|
||||
inquiry_price: 0,
|
||||
work_num_day: 0
|
||||
},
|
||||
myprice: "",
|
||||
config:{
|
||||
"max_work_num_day": 30,
|
||||
"min_inquiry_price": 0,
|
||||
@ -34,7 +35,7 @@ Page({
|
||||
}
|
||||
},
|
||||
onLoad(){
|
||||
this.setData({ note: this.data.open_note });
|
||||
|
||||
},
|
||||
onShow(){
|
||||
let params = {};
|
||||
@ -46,12 +47,17 @@ Page({
|
||||
this.setData({
|
||||
info: response.data.info,
|
||||
config: response.data.config,
|
||||
note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
onChange({ detail }) {
|
||||
console.log("onChange: ", detail);
|
||||
|
||||
if(detail){
|
||||
let inquiry_price = this.data.info.inquiry_price;
|
||||
let check = this.checkPrice(inquiry_price);
|
||||
if(!check) return;
|
||||
this.setData({ note: this.data.open_note });
|
||||
}else{
|
||||
this.setData({ note: this.data.close_note });
|
||||
@ -61,7 +67,7 @@ Page({
|
||||
//修改开关
|
||||
let params = {};
|
||||
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
||||
params.inquiry_mode = this.data.inquiry_mode;//接诊方式(1:图文 2:视频 3:语音 4:电话 5:会员)
|
||||
params.inquiry_mode = this.data.inquiry_mode;//接诊方式(1:图文 2:视频 3:语音 4:电话 5:会员)
|
||||
params.is_open = detail?1:0;
|
||||
api.putDoctorInquiryOpen(params).then(response => {
|
||||
console.log(response);
|
||||
@ -91,20 +97,36 @@ Page({
|
||||
},
|
||||
onPriceChange(e){
|
||||
console.log(e.detail);
|
||||
let value = Number(e.detail.value);
|
||||
this.checkPrice(e.detail.value)
|
||||
this.setData({
|
||||
"info.inquiry_price": e.detail.value
|
||||
})
|
||||
},
|
||||
myToast(message){
|
||||
Toast({
|
||||
context: this,
|
||||
selector: '#t-toast',
|
||||
message: message,
|
||||
theme: 'warning',
|
||||
direction: 'column',
|
||||
});
|
||||
},
|
||||
checkPrice(price){
|
||||
let value = Number(price);
|
||||
let min = Number(this.data.config.min_inquiry_price);
|
||||
let max = Number(this.data.config.max_inquiry_price);
|
||||
if(value < min){
|
||||
value = min;
|
||||
Toast.fail('价格不能低于' + min + '元');
|
||||
let message = '价格不能低于' + min + '元';
|
||||
this.myToast(message);
|
||||
return false;
|
||||
}else if(value >= min && value <=max ){
|
||||
value = value;
|
||||
return true;
|
||||
}else{
|
||||
value = max;
|
||||
Toast.fail('价格不能高于' + max + '元');
|
||||
let message = '价格不能高于' + max + '元';
|
||||
this.myToast(message);
|
||||
return false;
|
||||
}
|
||||
this.setData({
|
||||
"info.inquiry_price": value
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -7,6 +7,6 @@
|
||||
"van-stepper": "@vant/weapp/stepper/index",
|
||||
"van-switch": "@vant/weapp/switch/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-toast": "@vant/weapp/toast/index"
|
||||
"t-toast": "tdesign-miniprogram/toast/toast"
|
||||
}
|
||||
}
|
||||
@ -20,7 +20,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ info.is_open==1 }}" class="checked_box">
|
||||
<view class="checked_box">
|
||||
<view class="price_title">价格设置</view>
|
||||
<view class="price_steup_box">
|
||||
<view class="price_steup_box_top">
|
||||
@ -32,7 +32,7 @@
|
||||
<view class="price_steup_box_bottom">
|
||||
<view class="price_steup_box_bottom_title">问诊单价(元)</view>
|
||||
<view class="price_steup_box_bottom_num">
|
||||
<input class="weui-input" bindblur="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
|
||||
<input class="weui-input" bindinput="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
|
||||
<text class="price">元</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -49,9 +49,9 @@
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="go" wx:if="{{ info.is_open==1 }}">
|
||||
<van-button bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
|
||||
<view class="go">
|
||||
<van-button disabled="{{info.is_open!=1}}" bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
|
||||
</view>
|
||||
|
||||
<van-toast id="van-toast" />
|
||||
<t-toast id="t-toast" />
|
||||
</view>
|
||||
@ -52,7 +52,7 @@
|
||||
}
|
||||
.price_title{
|
||||
width: 90vw;
|
||||
margin: 0 auto;
|
||||
margin: 20rpx auto 0 auto;
|
||||
font-size: 32rpx;
|
||||
margin-bottom: 20rpx;
|
||||
font-family: "AlibabaPuHuiTi-2-55-Regular";
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
id="loading-img"
|
||||
shape="round" src="{{item}}"
|
||||
mode="heightFix"
|
||||
style="margin: 0 50rpx 0 20rpx;"
|
||||
style="margin: 0 50rpx 20rpx 20rpx;"
|
||||
width="220rpx" height="220rpx"
|
||||
aria-label="img" wx:for="{{work_cert}}" />
|
||||
</view>
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
}
|
||||
.imgbox{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.imgbox_title{
|
||||
padding: 20rpx;
|
||||
|
||||
@ -11,7 +11,14 @@ Page({
|
||||
height: app.globalData.height,
|
||||
ctx: null,
|
||||
canvas: null,
|
||||
txt_show: true
|
||||
txt_show: true,
|
||||
template:{
|
||||
width: '676rpx',
|
||||
height: '414rpx',
|
||||
views: [
|
||||
{}
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
onReady() {
|
||||
@ -39,7 +46,6 @@ Page({
|
||||
console.log("onReady onReady end")
|
||||
})
|
||||
},
|
||||
|
||||
ontouchmove(e){
|
||||
console.log("ontouchmove ontouchmove ontouchmove");
|
||||
console.log(e);
|
||||
@ -58,17 +64,19 @@ Page({
|
||||
this.data.ctx.beginPath();
|
||||
this.data.ctx.moveTo(e.touches[0].x,e.touches[0].y);
|
||||
},
|
||||
|
||||
toClear() {
|
||||
this.setData({
|
||||
txt_show: true
|
||||
});
|
||||
this.data.ctx.clearRect(0,0,this.data.canvas.width,this.data.canvas.height)
|
||||
},
|
||||
|
||||
rotate(){
|
||||
let ctx = this.data.ctx;
|
||||
ctx.rotate(90);
|
||||
},
|
||||
toSave(event) {
|
||||
let _this = this;
|
||||
let base64Img = _this.data.canvas.toDataURL()
|
||||
let base64Img = _this.data.canvas.toDataURL();
|
||||
console.log("sign: ", base64Img);
|
||||
wx.canvasToTempFilePath({
|
||||
canvasId: "sign_panels",
|
||||
@ -78,11 +86,32 @@ Page({
|
||||
success(res) {
|
||||
console.log(res.tempFilePath)
|
||||
let filePath = res.tempFilePath;
|
||||
_this.doUploadFile(event, 2, filePath);
|
||||
console.log(_this.data.canvas)
|
||||
console.log(_this.data.canvas.width)
|
||||
console.log(_this.data.canvas.height)
|
||||
let cs = (_this.data.canvas.height - _this.data.canvas.width)/2;
|
||||
_this.setData({
|
||||
"template.width": _this.data.canvas.height+"rpx",
|
||||
"template.height": _this.data.canvas.width+"rpx",
|
||||
"template.views[0].css.width": _this.data.canvas.width+"rpx",
|
||||
"template.views[0].css.left": cs+"rpx",
|
||||
"template.views[0].css.top": "-"+cs+"rpx",
|
||||
"template.views[0].url": filePath,
|
||||
"template.views[0].type": "image",
|
||||
"template.views[0].css.rotate": "-90",
|
||||
})
|
||||
// _this.doUploadFile(event, 2, filePath);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
onImgOK(e){
|
||||
console.log("onImgOK onImgOK onImgOK onImgOK");
|
||||
console.log(e.detail.path);
|
||||
let txt_show = this.data.txt_show;
|
||||
if(!txt_show){
|
||||
this.doUploadFile(e, 2, e.detail.path);
|
||||
}
|
||||
},
|
||||
doUploadFile(event, scene, filePath) {
|
||||
console.log("index douploadFIle: ", event);
|
||||
console.log("scene: ", scene);
|
||||
@ -128,5 +157,4 @@ Page({
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
@ -2,6 +2,8 @@
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
}
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"painter":"/commpents/painter/painter"
|
||||
},
|
||||
"disableScroll": true
|
||||
}
|
||||
@ -8,3 +8,4 @@
|
||||
<van-button bindtap="toSave" custom-style="height: 70rpx;border-radius: 10rpx;color:#fff;width: 230rpx;background: linear-gradient(315deg, #33BFB8 0%, #34BFB8 0%, #3CC7C0 100%);">确认</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<painter palette="{{template}}" style="position: absolute;top: 999999999999999999999999999999999900px;left: 999999999999999999999999999999999px;" bind:imgOK="onImgOK" />
|
||||
@ -267,15 +267,18 @@ Page({
|
||||
}
|
||||
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,
|
||||
})
|
||||
|
||||
if(session_data_list_1.length > 0 && session_data_list_2.length > 0 && session_data_list_3.length > 0 && session_data_list_4.length > 0 && session_data_list_5.length > 0){
|
||||
this.setData({has_data: false})
|
||||
}else{
|
||||
this.setData({has_data: true})
|
||||
}
|
||||
},
|
||||
onTabsChange(e){
|
||||
console.log(e);
|
||||
|
||||
@ -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_left" bindtap="go" data-name="service_notice_unreadnnum" data-url="/Pages/yishi/service_notice/index">
|
||||
<t-badge dot="{{service_notice_unreadnnum > 0}}" offset="{{ [1, 1] }}" class="wrapper">
|
||||
@ -22,9 +22,9 @@
|
||||
|
||||
<view class="empty" wx:if="{{ !has_data }}" >
|
||||
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wnzhen_empty.png" fit="heightFix" height="108rpx" aria-label="empty" />
|
||||
<view class="empty_note">您还未设置在线问诊价格</view>
|
||||
<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>
|
||||
<!-- <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
|
||||
@ -37,7 +37,7 @@
|
||||
custom-style="font-size: 32rpx"
|
||||
|
||||
>
|
||||
<t-tab-panel label="在线问诊" value="1">
|
||||
<t-tab-panel label="在线问诊" value="1" wx:if="{{data_list_1.length > 0}}">
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
@ -58,7 +58,7 @@
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_1.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
|
||||
<t-tab-panel label="快速问诊" value="2">
|
||||
<t-tab-panel label="快速问诊" value="2" wx:if="{{data_list_2.length > 0}}">
|
||||
<!-- 1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消 -->
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
@ -80,7 +80,7 @@
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_2.length == 0}}" />
|
||||
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="公益问诊" value="3">
|
||||
<t-tab-panel label="公益问诊" value="3" wx:if="{{data_list_3.length > 0}}">
|
||||
<!-- <wenzhen-data
|
||||
name="王五"
|
||||
sex="女"
|
||||
@ -110,7 +110,7 @@
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_3.length == 0}}" />
|
||||
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="问诊购药" value="4">
|
||||
<t-tab-panel label="问诊购药" value="4" wx:if="{{data_list_4.length > 0}}">
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
@ -130,7 +130,7 @@
|
||||
|
||||
<van-empty description="暂无数据" wx:if="{{data_list_4.length == 0}}" />
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="问诊结束" value="5">
|
||||
<t-tab-panel label="问诊结束" value="5" wx:if="{{data_list_5.length > 0}}">
|
||||
|
||||
<wenzhen-data
|
||||
name="{{ item.patient_name }}"
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ info.is_open==1 }}" class="checked_box">
|
||||
<view class="checked_box">
|
||||
<view class="price_title">价格设置</view>
|
||||
<view class="price_steup_box">
|
||||
<view class="price_steup_box_top">
|
||||
@ -48,7 +48,7 @@
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="go" wx:if="{{ info.is_open==1 }}">
|
||||
<view class="go">
|
||||
<van-button bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
|
||||
</view>
|
||||
|
||||
|
||||
@ -11,15 +11,13 @@ Page({
|
||||
height: app.globalData.height,
|
||||
id_card_front: [],
|
||||
id_card_back: [],
|
||||
sign_image: "",
|
||||
sign_image: [],
|
||||
btn_txt: "提交",
|
||||
multi_point_status: "",
|
||||
btn_disabled: true
|
||||
|
||||
},
|
||||
|
||||
onLoad(){
|
||||
|
||||
console.log("onlosd");
|
||||
//获得多点执业信息
|
||||
api.getDoctorAuthMulti().then(response => {
|
||||
@ -62,9 +60,15 @@ Page({
|
||||
}
|
||||
|
||||
let sign_image = response.data.sign_image;
|
||||
|
||||
if(sign_image){
|
||||
let arr = [];
|
||||
let item = {};
|
||||
item.isImg = true;
|
||||
item.url = sign_image;
|
||||
arr.push(item);
|
||||
this.setData({
|
||||
sign_image: sign_image
|
||||
sign_image: arr
|
||||
})
|
||||
}
|
||||
|
||||
@ -75,18 +79,20 @@ Page({
|
||||
btn_txt: btn_txt
|
||||
})
|
||||
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
onShow(){
|
||||
console.log("onshow")
|
||||
let sign_image = wx.getStorageSync("sign_image");
|
||||
console.log("sign_image: ",sign_image);
|
||||
if(sign_image){
|
||||
let arr = [];
|
||||
let item = {};
|
||||
item.isImg = true;
|
||||
item.url = sign_image;
|
||||
arr.push(item);
|
||||
this.setData({
|
||||
sign_image: sign_image
|
||||
sign_image: arr
|
||||
})
|
||||
}
|
||||
},
|
||||
@ -96,29 +102,33 @@ Page({
|
||||
tmplIds: ['kUy70xHlr7ADo4aIHiictM4Te7MSec3E5kHsYvFQu40'],
|
||||
success (res) {
|
||||
console.log(res);
|
||||
console.log(_this.data.id_card_front);
|
||||
console.log(_this.data.id_card_back);
|
||||
|
||||
if(_this.data.id_card_front.length == 0){
|
||||
wx.showToast({
|
||||
title: '身份证正面为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
if(_this.data.id_card_back.length == 0){
|
||||
wx.showToast({
|
||||
title: '身份证反面为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
let id_card_front = _this.data.id_card_front[0].url;
|
||||
console.log("id_card_front: ", id_card_front);
|
||||
if(id_card_front == ""){
|
||||
wx.showToast({
|
||||
title: '请上传身份证',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
let id_card_back = _this.data.id_card_back[0].url;
|
||||
let sign_image = _this.data.sign_image[0].url;
|
||||
console.log("id_card_front: ", id_card_front);
|
||||
console.log("id_card_back: ", id_card_back);
|
||||
if(id_card_back == ""){
|
||||
wx.showToast({
|
||||
title: '请上传身份证',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
let sign_image = _this.data.sign_image;
|
||||
console.log("sign_image: ", sign_image);
|
||||
if(sign_image == ""){
|
||||
wx.showToast({
|
||||
title: '请上传签名',
|
||||
title: '手写签名为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
@ -133,15 +143,10 @@ Page({
|
||||
title: '提交成功',
|
||||
icon: "success"
|
||||
})
|
||||
|
||||
|
||||
// 订阅处方审核结果通知(长期)
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['kUy70xHlr7ADo4aIHiictM4Te7MSec3E5kHsYvFQu40'],
|
||||
success (res) { console.log(res); }
|
||||
_this.setData({
|
||||
btn_txt: "审核中",
|
||||
btn_disabled: true
|
||||
})
|
||||
|
||||
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
@ -192,7 +197,7 @@ Page({
|
||||
img.isImg = true;
|
||||
|
||||
|
||||
let img_list = _this.data[field_name];
|
||||
let img_list = [];
|
||||
|
||||
console.log("img_list: ", img_list);
|
||||
img_list.push(img);
|
||||
|
||||
@ -44,20 +44,34 @@
|
||||
|
||||
<view class="sign_box">
|
||||
<view class="sign_title">医生手写签名 *</view>
|
||||
<view class="sign" wx:if="{{sign_image == ''}}" data-url="/Pages/yishi/signcanvas/index" bindtap="go">
|
||||
<view class="sign" wx:if="{{sign_image.length == 0}}" data-url="/Pages/yishi/signcanvas/index" bindtap="go">
|
||||
<van-button custom-style="height:130rpx;margin-top:20rpx;border-radius: 20rpx;border: 1px dashed #999;width:100%;font-size:30rpx;background-color: #fff;color: #3CC7C0;" icon="edit">点击签名</van-button>
|
||||
</view>
|
||||
<view class="sign_img" wx:if="{{sign_image != ''}}" data-url="/Pages/yishi/signcanvas/index" bindtap="go">
|
||||
<image mode="heightFix" style="transform: rotate(-90deg);width: 100%;" src="{{sign_image}}"></image>
|
||||
<view style="margin-top:20rpx;border-radius: 20rpx;border: 1px dashed #999;" class="sign_img" wx:if="{{sign_image.length > 0}}" data-url="/Pages/yishi/signcanvas/index" bindtap="go">
|
||||
<image mode="heightFix" style="transform: rotate(-0deg);width: 100%;" src="{{sign_image[0].url}}"></image>
|
||||
</view>
|
||||
<view class="sign_note">提示:平台会在1~3天内审核您提交的资料,审核结果会第一时间通知您。</view>
|
||||
</view>
|
||||
|
||||
<!-- <van-button custom-style="font-size:30rpx; color:#fff; border-radius: 20rpx; background-color: #999" block>资料未填写完</van-button> -->
|
||||
<m-upload-cell
|
||||
upload_cell_name="或选择上传"
|
||||
t_icon_name="view-module"
|
||||
bind:showNote="onShowSignImage"
|
||||
upload_cell_desc=""
|
||||
upload_cell_note=""
|
||||
required="{{false}}"
|
||||
disabled="{{btn_disabled}}"
|
||||
max_count="1"
|
||||
data-scene="2"
|
||||
data-field_name="sign_image"
|
||||
data-file_multiple="true"
|
||||
bindUploadFile="doUploadFile"
|
||||
bindDeleteFile="doDeleteFile"
|
||||
/>
|
||||
<view class="sign_box">
|
||||
<view class="sign_note">提示:平台会在1~3天内审核您提交的资料,审核结果会第一时间通知您。</view>
|
||||
<van-button bind:click="add"
|
||||
custom-style="font-size:30rpx; color:#fff; border-radius: 20rpx; background-color: #3CC7C0" disabled="{{btn_disabled}}" block>{{btn_txt}}</van-button>
|
||||
</view>
|
||||
<view style="height: 50rpx;">
|
||||
|
||||
</view>
|
||||
<view style="height: 50rpx;"></view>
|
||||
</van-cell-group>
|
||||
</view>
|
||||
@ -342,7 +342,7 @@ Component({
|
||||
app.go("/Pages/yishi/case/index?order_inquiry_id="+this.data.order_inquiry_id)
|
||||
break;
|
||||
case '11'://在线开方
|
||||
app.go("/Pages/yishi/onlinechufang/index")
|
||||
app.go("/Pages/yishi/onlinechufang/index?order_inquiry_id="+this.data.order_inquiry_id)
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@ -96,6 +96,7 @@ Component({
|
||||
license_cert_reason: "",
|
||||
qualification_cert_reason: "",
|
||||
work_cert_reason: "",
|
||||
department_custom_name_reason: ''
|
||||
},
|
||||
|
||||
options: {
|
||||
@ -108,15 +109,14 @@ Component({
|
||||
console.log("myprofile attached")
|
||||
let _this = this;
|
||||
console.log(_this.data.zhicheng_columns);
|
||||
_this.setData({
|
||||
"zhicheng_columns[0].text": "AAA"
|
||||
})
|
||||
console.log(_this.data.zhicheng_columns);
|
||||
|
||||
|
||||
//获得医师身份认证
|
||||
api.getDoctorAuthIden().then(response => {
|
||||
api.getDoctorAuthIden({source: this.data.indentity?1:2}).then(response => {
|
||||
console.log("getDoctorAuthIden: ",response);
|
||||
this.setData({
|
||||
is_avatar: true,
|
||||
|
||||
doctorauthiden_data_ready: true,
|
||||
textarea_jianjie: response.data.brief_introduction,
|
||||
textarea_shanchang: response.data.be_good_at,
|
||||
@ -137,12 +137,13 @@ Component({
|
||||
license_cert_reason: response.data.license_cert_reason,
|
||||
qualification_cert_reason: response.data.qualification_cert_reason,
|
||||
work_cert_reason: response.data.work_cert_reason,
|
||||
department_custom_name_reason: response.data.department_custom_name_reason,
|
||||
});
|
||||
let iden_auth_status = response.data.iden_auth_status;
|
||||
console.log("iden_auth_status: ",iden_auth_status)
|
||||
let iden_auth_status_txt = iden_auth_status == 0?'请完善资料后提交':iden_auth_status == 1?'认证通过': iden_auth_status==2?'资料已提交,审核中':iden_auth_status==3?'认证失败':'未认证';
|
||||
|
||||
let iden_auth_disabled = iden_auth_status == 0?false:iden_auth_status == 1?false: iden_auth_status==2?true:iden_auth_status==3?false:true;
|
||||
let iden_auth_disabled = iden_auth_status == 0?false:iden_auth_status == 1?true: iden_auth_status==2?true:iden_auth_status==3?false:true;
|
||||
console.log("iden_auth_disabled: ",iden_auth_disabled)
|
||||
this.setData({
|
||||
iden_auth_status_txt: iden_auth_status_txt,
|
||||
@ -182,12 +183,12 @@ Component({
|
||||
})
|
||||
}
|
||||
let avatar = response.data.avatar;
|
||||
if(avatar && (avatar.indexOf("http") == -1)){
|
||||
avatar = api.getStaticHost() + avatar;
|
||||
if(avatar){
|
||||
this.setData({
|
||||
"avatar": avatar,
|
||||
is_avatar: true,
|
||||
})
|
||||
}
|
||||
this.setData({
|
||||
"avatar": avatar
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
|
||||
//加载省份列表
|
||||
@ -471,7 +472,18 @@ Component({
|
||||
},
|
||||
onYiYuanShow(e) {
|
||||
console.log("onYiYuanShow");
|
||||
this.setData({ yiyuan_show: true });
|
||||
let select_province_id = this.data.select_province_id;
|
||||
let select_city_id = this.data.select_city_id;
|
||||
let select_county_id = this.data.select_county_id;
|
||||
if(select_province_id && select_city_id && select_county_id){
|
||||
this.setData({ yiyuan_show: true });
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: '请先选择省市',
|
||||
icon: "error"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
onYiYuanClose(e) {
|
||||
console.log("onYiYuanClose");
|
||||
@ -490,11 +502,19 @@ Component({
|
||||
console.log("onYiYuanConfirm");
|
||||
const { picker, value, index } = event.detail;
|
||||
console.log(event.detail);
|
||||
this.setData({
|
||||
yiyuan_show: false,
|
||||
select_yiyuan_id: `${value.value}`,
|
||||
yiyuan_note: `${value.text}`
|
||||
});
|
||||
if(value.value){
|
||||
this.setData({
|
||||
yiyuan_show: false,
|
||||
select_yiyuan_id: `${value.value}`,
|
||||
yiyuan_note: `${value.text}`
|
||||
});
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: '请先选择医院',
|
||||
icon: "error"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
onYiYuanChange(event) {
|
||||
console.log("onYiYuanChange");
|
||||
@ -598,29 +618,48 @@ Component({
|
||||
console.log("onZhiChengClose");
|
||||
this.setData({ zhicheng_img_show: false });
|
||||
},
|
||||
getTextAreaVal(e){
|
||||
console.log("myindex: ", e);
|
||||
let textarea_name = e.currentTarget.dataset.textarea_name;
|
||||
onCustomKeshiChange(){
|
||||
this.setData({
|
||||
[textarea_name]: e.detail.value
|
||||
department_custom_name_reason: ""
|
||||
})
|
||||
},
|
||||
getTextAreaVal(e){
|
||||
console.log("myindex: ", e);//textarea_jianjie
|
||||
let textarea_name = e.currentTarget.dataset.textarea_name;
|
||||
if(textarea_name == "textarea_jianjie"){
|
||||
this.setData({
|
||||
brief_introduction_reason: ""
|
||||
})
|
||||
}
|
||||
if(textarea_name == "textarea_shanchang"){
|
||||
this.setData({
|
||||
be_good_at_reason: ""
|
||||
})
|
||||
}
|
||||
let reason_name = textarea_name+"_reason";
|
||||
this.setData({
|
||||
[textarea_name]: e.detail.value,
|
||||
})
|
||||
},
|
||||
select_zhuanchang(e){
|
||||
console.log(e);
|
||||
let count = 0
|
||||
this.data.zhuanchang_columns.forEach(item => {
|
||||
count = count + 1;
|
||||
if(item.is_selected == 1){
|
||||
count = count + 1;
|
||||
}
|
||||
})
|
||||
if(count < 10){
|
||||
let is_selected = e.currentTarget.dataset.is_selected;
|
||||
let index = e.currentTarget.dataset.index;
|
||||
let data = "zhuanchang_columns["+index+"].is_selected";
|
||||
this.setData({[data]: is_selected==1?0:1})
|
||||
}else{
|
||||
|
||||
if(count >= 10 && e.currentTarget.dataset.is_selected==0){
|
||||
wx.showToast({
|
||||
title: '最多10个专长',
|
||||
icon: "error"
|
||||
})
|
||||
}else{
|
||||
let is_selected = e.currentTarget.dataset.is_selected;
|
||||
let index = e.currentTarget.dataset.index;
|
||||
let data = "zhuanchang_columns["+index+"].is_selected";
|
||||
this.setData({[data]: is_selected==1?0:1})
|
||||
}
|
||||
},
|
||||
zhuanchangConfirm(e){
|
||||
@ -629,9 +668,14 @@ Component({
|
||||
zhuanchangConcle(e){
|
||||
this.setData({ zhuanchang_show: false });
|
||||
},
|
||||
addDoctorAuthIden(){
|
||||
addDoctorAuthIden(e){
|
||||
console.log("addDoctorAuthIden addDoctorAuthIden")
|
||||
|
||||
let from = e.currentTarget.dataset.from;
|
||||
console.log("from: ", from);
|
||||
let params = {};
|
||||
|
||||
params.source = from=="myinfo"?2:1;
|
||||
if(!this.data.is_avatar){wx.showToast({title: '请上传头像',icon: "error"});return}
|
||||
params.avatar = this.data.avatar;
|
||||
if(!this.data.select_county_id){wx.showToast({title: '请选择城市',icon: "error"});return}
|
||||
@ -639,7 +683,7 @@ Component({
|
||||
params.hospital_id = this.data.select_yiyuan_id;//医院id
|
||||
if(!this.data.select_keshi_id){wx.showToast({title: '请选择科室',icon: "error"});return}
|
||||
params.department_custom_id = this.data.select_keshi_id;//科室id
|
||||
if(!this.data.custom_keshi){wx.showToast({title: '请输入科室',icon: "error"});return}
|
||||
// if(!this.data.custom_keshi){wx.showToast({title: '请输入科室',icon: "error"});return}
|
||||
params.department_custom_name = this.data.custom_keshi;//自定义科室名称
|
||||
if(!this.data.office_phone){wx.showToast({title: '请输入科室电话',icon: "error"});return}
|
||||
params.department_custom_mobile = this.data.office_phone;//科室电话
|
||||
@ -652,34 +696,112 @@ Component({
|
||||
if(!this.data.textarea_shanchang){wx.showToast({title: '请输入擅长',icon: "error"});return}
|
||||
params.be_good_at = this.data.textarea_shanchang;//擅长
|
||||
|
||||
if(this.data.zhiye_file_list.length == 0){wx.showToast({title: '请上传医师执业证',icon: "error"});return}
|
||||
params.license_cert = this.data.zhiye_file_list.map(e => e.url);//医师执业证
|
||||
if(this.data.zige_file_list.length == 0){wx.showToast({title: '请上传医师资格证',icon: "error"});return}
|
||||
params.qualification_cert = this.data.zige_file_list.map(e => e.url);//医生资格证
|
||||
if(this.data.zhicheng_file_list.length == 0){wx.showToast({title: '请上传职称证',icon: "error"});return}
|
||||
params.work_cert = this.data.zhicheng_file_list.map(e => e.url);//工作证,职称证
|
||||
if(from == "doctorauthiden"){//只有在医师身份认证模块才去修改证件
|
||||
if(this.data.zhiye_file_list.length == 0){wx.showToast({title: '请上传医师执业证',icon: "error"});return}
|
||||
if(this.data.zhiye_file_list.length < 2){wx.showToast({title: '医师执业证至少2张',icon: "error"});return}
|
||||
params.license_cert = this.data.zhiye_file_list.map(e => e.url);//医师执业证
|
||||
if(this.data.zige_file_list.length == 0){wx.showToast({title: '请上传医师资格证',icon: "error"});return}
|
||||
params.qualification_cert = this.data.zige_file_list.map(e => e.url);//医生资格证
|
||||
if(this.data.zhicheng_file_list.length == 0){wx.showToast({title: '请上传职称证',icon: "error"});return}
|
||||
params.work_cert = this.data.zhicheng_file_list.map(e => e.url);//工作证,职称证
|
||||
}
|
||||
console.log(params);
|
||||
|
||||
let _this = this;
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['kUy70xHlr7ADo4aIHiictM4Te7MSec3E5kHsYvFQu40'],
|
||||
success (res) {
|
||||
console.log(res);
|
||||
api.postDoctorAuthIden(params).then(response => {
|
||||
console.log(response);
|
||||
wx.showToast({
|
||||
title: '提交成功',
|
||||
icon: "success"
|
||||
})
|
||||
_this.setData({
|
||||
iden_auth_status_txt: "审核中",
|
||||
iden_auth_disabled: true
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
api.postDoctorAuthIden(params).then(response => {
|
||||
console.log(response);
|
||||
wx.showToast({
|
||||
title: '提交成功',
|
||||
icon: "success"
|
||||
})
|
||||
_this.setData({
|
||||
iden_auth_status_txt: "资料已提交,审核中",
|
||||
iden_auth_disabled: true,
|
||||
iden_auth_status: 2,
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
onOfficePhoneChange(){
|
||||
this.setData({
|
||||
department_custom_mobile_reason: ""
|
||||
})
|
||||
},
|
||||
doUploadFile(event) {
|
||||
console.log("index douploadFIle: ", event);
|
||||
const scene = event.currentTarget.dataset.scene;
|
||||
const field_name = event.currentTarget.dataset.field_name;
|
||||
const file_multiple = event.currentTarget.dataset.file_multiple;//是否为多张图
|
||||
console.log("scene: ", scene);
|
||||
console.log("field_name: ", field_name);
|
||||
console.log("file_multiple: ", file_multiple);
|
||||
let _this = this;
|
||||
api.getOssSign({user_type:2,scene:scene}).then(response => {
|
||||
console.log(response);
|
||||
const { file } = event.detail;
|
||||
|
||||
file.forEach(item => {
|
||||
console.log("file: ", item);
|
||||
const filename = FileUtil.getFileName(item);
|
||||
const host = response.data.host;
|
||||
const signature = response.data.signature;
|
||||
const ossAccessKeyId = response.data.accessid;
|
||||
const policy = response.data.policy;
|
||||
const key = response.data.dir+filename;
|
||||
const filePath = item.url; // 待上传文件的文件路径。
|
||||
wx.uploadFile({
|
||||
url: host, // 开发者服务器的URL。
|
||||
filePath: filePath,
|
||||
name: 'file', // 必须填file。
|
||||
formData: {
|
||||
key,
|
||||
policy,
|
||||
OSSAccessKeyId: ossAccessKeyId,
|
||||
signature,
|
||||
},
|
||||
success: (res) => {
|
||||
console.log("upload: ", res);
|
||||
let reason_name = field_name + "_reason";//错误原因置空
|
||||
if (res.statusCode === 204) {
|
||||
if(scene == 1){
|
||||
this.setData({
|
||||
is_avatar: true
|
||||
})
|
||||
}
|
||||
wx.showToast({title: '上传成功'})
|
||||
if(file_multiple == "true"){//多张图
|
||||
let img = {}
|
||||
img.url = host+"/"+key;
|
||||
img.isImg = true;
|
||||
|
||||
let img_list = _this.data[field_name];
|
||||
console.log("img_list: ", img_list);
|
||||
img_list.push(img);
|
||||
console.log("img_list: ", img_list);
|
||||
|
||||
reason_name = field_name=='zhiye_file_list'?'license_cert_reason':field_name=='zige_file_list'?'qualification_cert_reason':'work_cert_reason';
|
||||
this.setData({
|
||||
[field_name]: img_list,
|
||||
[reason_name]: ""
|
||||
});
|
||||
}else{
|
||||
this.setData({
|
||||
[field_name]: host+"/"+key,
|
||||
[reason_name]: ""
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
},
|
||||
doUploadPhoto(event) {
|
||||
console.log("index douploadFIle: ", event);
|
||||
const scene = event.currentTarget.dataset.scene;
|
||||
const field_name = event.currentTarget.dataset.field_name;
|
||||
@ -711,6 +833,7 @@ Component({
|
||||
},
|
||||
success: (res) => {
|
||||
console.log("upload: ", res);
|
||||
let reason_name = field_name + "_reason";//错误原因置空
|
||||
if (res.statusCode === 204) {
|
||||
if(scene == 1){
|
||||
this.setData({
|
||||
@ -728,11 +851,16 @@ Component({
|
||||
img_list.push(img);
|
||||
console.log("img_list: ", img_list);
|
||||
|
||||
reason_name = field_name=='zhiye_file_list'?'license_cert_reason':field_name=='zige_file_list'?'qualification_cert_reason':'work_cert_reason';
|
||||
this.setData({
|
||||
[field_name]: img_list
|
||||
[field_name]: img_list,
|
||||
[reason_name]: ""
|
||||
});
|
||||
}else{
|
||||
this.setData({[field_name]: host+"/"+key});
|
||||
this.setData({
|
||||
[field_name]: host+"/"+key,
|
||||
[reason_name]: ""
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<view class="photo" style="border-bottom: {{avatar_reason==''?'1px solid var(--td-cell-border-color, var(--td-gray-color-3, #e7e7e7));':'unset'}}">
|
||||
<view class="title">头像 <text class="required"> *</text></view>
|
||||
<van-uploader bind:after-read="doUploadFile" data-scene="1" data-field_name="avatar" data-file_multiple="false">
|
||||
<van-uploader bind:after-read="doUploadPhoto" data-scene="1" data-field_name="avatar" data-file_multiple="false">
|
||||
<view class="right">
|
||||
<view class="note">真人正脸</view>
|
||||
<t-avatar image="{{ avatar }}" />
|
||||
@ -39,7 +39,6 @@
|
||||
round
|
||||
>
|
||||
|
||||
|
||||
<van-picker
|
||||
show-toolbar
|
||||
title="请选择医院"
|
||||
@ -52,7 +51,7 @@
|
||||
<van-search
|
||||
value="{{ hospital_search_val }}"
|
||||
shape="round"
|
||||
placeholder="请输入搜索关键词"
|
||||
placeholder="搜索医院"
|
||||
clearable
|
||||
bind:change="hospitalSearchChange"
|
||||
bind:search="hospitalSearch"
|
||||
@ -61,7 +60,14 @@
|
||||
<t-cell title="科室" hover required arrow note="{{keshi_note}}" bindtap="onKeshiShow" bordered="{{ select_keshi_id == '' }}"/>
|
||||
|
||||
<view class="custom_keshi" wx:if="{{ select_keshi_id != ''}}">
|
||||
<van-field model:value="{{custom_keshi}}" label="" placeholder="请输入科室"/>
|
||||
<van-field bind:change="onCustomKeshiChange" model:value="{{custom_keshi}}" label="" placeholder="请输入科室" border="{{department_custom_name_reason == ''}}" />
|
||||
</view>
|
||||
|
||||
<view class="has_error" wx:if="{{ department_custom_name_reason != '' }}" >
|
||||
<view class="error_box">
|
||||
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />
|
||||
<text class="error_msg">{{ department_custom_name_reason }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<van-popup
|
||||
@ -156,6 +162,9 @@
|
||||
{{data.expertise_name}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view style="height: 60rpx;">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</t-popup>
|
||||
@ -172,15 +181,16 @@
|
||||
|
||||
<van-field
|
||||
model:value="{{ office_phone }}"
|
||||
label="科室电话"
|
||||
bind:change="onOfficePhoneChange"
|
||||
placeholder="请输入科室电话"
|
||||
placeholder-style="font-size:25rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
|
||||
input-align="right"
|
||||
required
|
||||
clearable
|
||||
border="{{ department_custom_mobile_reason == '' }}"
|
||||
custom-style="font-size:30rpx;"
|
||||
/>
|
||||
>
|
||||
<text slot="label">科室电话 <text style="color: #e34d59;">*</text> </text>
|
||||
</van-field>
|
||||
|
||||
<view class="has_error" wx:if="{{ department_custom_mobile_reason != '' }}" >
|
||||
<view class="error_box">
|
||||
@ -238,6 +248,7 @@
|
||||
upload_cell_note="查看示例"
|
||||
has_error_content="{{ license_cert_reason }}"
|
||||
wx:if="{{indentity}}"
|
||||
is_multiple="true"
|
||||
/>
|
||||
|
||||
<m-upload-cell
|
||||
@ -255,6 +266,7 @@
|
||||
upload_cell_note="查看示例"
|
||||
has_error_content="{{ qualification_cert_reason }}"
|
||||
wx:if="{{indentity}}"
|
||||
is_multiple="true"
|
||||
/>
|
||||
|
||||
<m-upload-cell
|
||||
@ -272,9 +284,15 @@
|
||||
upload_cell_note="查看示例"
|
||||
has_error_content="{{ work_cert_reason }}"
|
||||
wx:if="{{indentity}}"
|
||||
is_multiple="true"
|
||||
/>
|
||||
|
||||
<view class="sub_button" wx:if="{{indentity}}">
|
||||
<!-- <van-button color="#D3D3D3" disabled custom-style="border-radius: 20rpx;" type="primary" block>资料未填写完</van-button> -->
|
||||
<van-button disabled="{{iden_auth_disabled}}" color="#3CC7C0" custom-style="border-radius: 20rpx;" type="primary" block bind:click="addDoctorAuthIden">{{iden_auth_status_txt}}</van-button>
|
||||
<van-button data-from="doctorauthiden" disabled="{{iden_auth_disabled}}" color="#3CC7C0" custom-style="border-radius: 20rpx;" type="primary" block bind:click="addDoctorAuthIden">{{iden_auth_status_txt}}</van-button>
|
||||
</view>
|
||||
<view class="sub_button" wx:else>
|
||||
<van-button color="#3CC7C0" data-from="myinfo" disabled="{{iden_auth_status == 2}}" custom-style="border-radius: 20rpx;" type="primary" block bind:click="addDoctorAuthIden">{{iden_auth_status_txt}}</van-button>
|
||||
</view>
|
||||
|
||||
|
||||
<van-toast id="van-toast" />
|
||||
@ -1,6 +1,4 @@
|
||||
.required{
|
||||
color: #e34d59;
|
||||
}
|
||||
|
||||
.photo{
|
||||
position: relative;
|
||||
padding: 32rpx 32rpx 32rpx 0;
|
||||
@ -67,6 +65,9 @@
|
||||
margin: 20rpx 10rpx 20rpx 0;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.t-radio__icon--checked {
|
||||
color: #49B9AD !important;
|
||||
}
|
||||
.t-tabs__item--active{
|
||||
color: #49B9AD !important;
|
||||
}
|
||||
@ -119,10 +120,6 @@
|
||||
height: 300rpx;
|
||||
background-color: cadetblue;
|
||||
}
|
||||
/* 自定义 vant required 小红点位置 */
|
||||
.van-cell--required::before {
|
||||
left: 4.7rem !important;
|
||||
}
|
||||
.zhuanchang_box{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@ -142,7 +139,6 @@
|
||||
}
|
||||
.zhuanchang_block {
|
||||
width: 100vw;
|
||||
height: 240px;
|
||||
background: #fff;
|
||||
border-top-left-radius: 16rpx;
|
||||
border-top-right-radius: 16rpx;
|
||||
@ -221,3 +217,6 @@
|
||||
top: -270px !important;
|
||||
position: relative !important;
|
||||
}
|
||||
.custom_keshi_error{
|
||||
display: none;
|
||||
}
|
||||
@ -12,6 +12,10 @@ Component({
|
||||
type: Boolean,
|
||||
value: true,
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
upload_cell_note: {
|
||||
type: String,
|
||||
value: '示例备注',
|
||||
@ -39,6 +43,10 @@ Component({
|
||||
max_count:{
|
||||
type: Number,
|
||||
value: 1
|
||||
},
|
||||
is_multiple:{
|
||||
type: Boolean,
|
||||
value: false,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<view class="upload-cell">
|
||||
<view class="upload-cell-top">
|
||||
<view class="upload-cell-name">{{ upload_cell_name }}<text wx:if="{{ required }}" class="required"> *</text></view>
|
||||
<view class="upload-cell-note t-cell__note" bindtap="onshowNote">
|
||||
<view class="upload-cell-note t-cell__note" bindtap="onshowNote" wx:if="{{upload_cell_note != ''}}">
|
||||
<view><t-icon name="{{ t_icon_name }}" size="{{ t_icon_size}}" data-name="{{ t_icon_name }}" /></view>
|
||||
<text>{{ upload_cell_note }}</text>
|
||||
</view>
|
||||
@ -10,7 +10,7 @@
|
||||
<text>{{ upload_cell_desc }}</text>
|
||||
</view>
|
||||
<view class="upload-cell-input">
|
||||
<van-uploader preview-full-image="{{false}}" file-list="{{ fileList }}" max-count="{{max_count}}" deletable="{{ true }}" bind:after-read="afterRead" bind:delete="delete" >
|
||||
<van-uploader disabled="{{disabled}}" multiple="{{is_multiple}}" preview-full-image="{{false}}" file-list="{{ fileList }}" max-count="{{max_count}}" deletable="{{ true }}" bind:after-read="afterRead" bind:delete="delete" >
|
||||
<van-image width="100" height="100" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/upload_button.png" />
|
||||
</van-uploader>
|
||||
</view>
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import { API } from "../../utils/network/api";
|
||||
const api = new API()
|
||||
// commpents/wenzhen_data/index.js
|
||||
Component({
|
||||
/**
|
||||
@ -87,6 +89,8 @@ Component({
|
||||
this.setData({
|
||||
show: false
|
||||
})
|
||||
|
||||
console.log("开始订阅消息");
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'],
|
||||
success (res) {
|
||||
@ -100,6 +104,24 @@ Component({
|
||||
}
|
||||
})
|
||||
},
|
||||
postDoctorInquiry(e){
|
||||
this.setData({
|
||||
show: false
|
||||
})
|
||||
console.log("order_inquiry_id: ", e.currentTarget.dataset.order_inquiry_id);
|
||||
let params = {};
|
||||
params.order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
|
||||
console.log("params: ",params)
|
||||
api.postDoctorInquiry(params).then(response => {
|
||||
console.log("开始接诊");
|
||||
console.log(response);
|
||||
}).then(() => {
|
||||
this.goChat(e);
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
|
||||
},
|
||||
tabShow(){
|
||||
this.setData({
|
||||
show: true
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<van-button type="default" bindtap="tabShow" custom-style="width:200rpx; border-radius: 10rpx;margin-left:20rpx;" color="#3CC7C0">去接诊</van-button>
|
||||
</view>
|
||||
<view class="btn" wx:if="{{ status >= 4 }}">
|
||||
<van-button bind:click="goChat" data-from_account="{{from_account}}" data-url="/Pages/yishi/chat/index" plain custom-style="width:200rpx; border-radius: 10rpx;" color="#3CC7C0">问诊详情</van-button>
|
||||
<van-button bind:click="goChat" data-from_account="{{from_account}}" data-inquiry_type="{{inquiry_type}}" data-order_inquiry_id="{{order_inquiry_id}}" data-url="/Pages/yishi/chat/index" plain custom-style="width:200rpx; border-radius: 10rpx;" color="#3CC7C0">问诊详情</van-button>
|
||||
<!-- <van-button bind:click="go" data-url="/Pages/yishi/chat_session/index" plain custom-style="width:200rpx; border-radius: 10rpx;" color="#3CC7C0">会话列表</van-button> -->
|
||||
</view>
|
||||
</view>
|
||||
@ -27,7 +27,7 @@
|
||||
<view class="pop_note">为保障服务质量,请您查看患者病历信息在选择是否接诊。</view>
|
||||
<view class="pop_btn">
|
||||
<view class="pop_btn_left" bindtap="go" data-from_account="{{from_account}}" data-url="/Pages/yishi/case/index?order_inquiry_id={{order_inquiry_id}}" >去查看</view>
|
||||
<view class="pop_btn_right" bindtap="goChat" data-from_account="{{from_account}}" data-inquiry_type="{{inquiry_type}}" data-order_inquiry_id="{{order_inquiry_id}}" data-url="/Pages/yishi/chat/index" >去接诊</view>
|
||||
<view class="pop_btn_right" bindtap="postDoctorInquiry" data-from_account="{{from_account}}" data-inquiry_type="{{inquiry_type}}" data-order_inquiry_id="{{order_inquiry_id}}" data-url="/Pages/yishi/chat/index" >去接诊</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
@ -29,21 +29,21 @@ Component({
|
||||
"list2":[
|
||||
{
|
||||
"pagePath": "/Pages/yishi/index/index",
|
||||
"text": "首页(Y)",
|
||||
"text": "首页",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/index.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/index_select.png",
|
||||
"info": ""
|
||||
},
|
||||
{
|
||||
"pagePath": "/Pages/yishi/wenzhen_v2/wenzhen",
|
||||
"text": "问诊(Z)",
|
||||
"text": "问诊",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/wenzhen.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/wenzhen_select.png",
|
||||
"info": "99"
|
||||
},
|
||||
{
|
||||
"pagePath": "/Pages/yishi/my/index",
|
||||
"text": "我的(Y)",
|
||||
"text": "我的",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/my.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/my_select.png",
|
||||
"info": ""
|
||||
@ -56,6 +56,7 @@ Component({
|
||||
index_info: "",
|
||||
wenzhen_info: "",
|
||||
my_info: "",
|
||||
next_url: "/Pages/yishi/identity/index"
|
||||
},
|
||||
attached() {
|
||||
const usertype = wx.getStorageSync('usertype')
|
||||
@ -102,27 +103,45 @@ Component({
|
||||
// },
|
||||
onChange(e) {
|
||||
console.log("custom tab bar onChange");
|
||||
|
||||
let idcard_status = wx.getStorageSync('idcard_status');
|
||||
let iden_auth_status = wx.getStorageSync('iden_auth_status');
|
||||
let userID = wx.getStorageSync('user_id');
|
||||
let idcard_status = wx.getStorageSync(userID+'_idcard_status');
|
||||
let iden_auth_status = wx.getStorageSync(userID+'_iden_auth_status');
|
||||
let multi_point_status = wx.getStorageSync(userID+'_multi_point_status');
|
||||
let is_bind_bank = wx.getStorageSync(userID+'_is_bind_bank');
|
||||
const usertype = wx.getStorageSync('usertype');
|
||||
|
||||
console.log("idcard_status: ", idcard_status);
|
||||
console.log("iden_auth_status: ", iden_auth_status);
|
||||
if(idcard_status != 1){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先实名认证"
|
||||
})
|
||||
return;
|
||||
}
|
||||
if(iden_auth_status != 1){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先医师身份认证"
|
||||
})
|
||||
return;
|
||||
}
|
||||
console.log("multi_point_status: ", iden_auth_status);
|
||||
console.log("is_bind_bank: ", is_bind_bank);
|
||||
|
||||
if(idcard_status != 1 && usertype != 3){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先实名认证",
|
||||
next_url: "/Pages/yishi/identity/index",
|
||||
})
|
||||
return;
|
||||
}
|
||||
console.log(111);
|
||||
if(iden_auth_status != 1 && usertype != 3){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先医师身份认证",
|
||||
next_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
})
|
||||
return;
|
||||
}
|
||||
console.log(222);
|
||||
if(is_bind_bank != 1 && usertype != 3){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先绑定结算银行卡",
|
||||
next_url: "/Pages/yishi/bankcard/index"
|
||||
})
|
||||
return;
|
||||
}
|
||||
console.log(333);
|
||||
let url = this.data.items[e.detail].pagePath;
|
||||
console.log(url);
|
||||
wx.switchTab({
|
||||
@ -133,7 +152,9 @@ Component({
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
})
|
||||
app.go("/Pages/yishi/identity/index");
|
||||
console.log("next_url: ", this.data.next_url);
|
||||
let next_url = this.data.next_url;
|
||||
app.go(next_url);
|
||||
},
|
||||
cancelDialog(){
|
||||
this.setData({
|
||||
|
||||
BIN
static/images/123.png
Normal file
BIN
static/images/123.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
@ -362,6 +362,38 @@ class API extends HTTP {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//获取处方详情
|
||||
getDoctorPrescriptionInfo(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/doctor/prescription/info`,
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//修改处方
|
||||
putDoctorPrescription(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/doctor/prescription`,
|
||||
method: 'PUT',
|
||||
contentType: 'application/json',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//新增处方
|
||||
postDoctorPrescription(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/doctor/prescription`,
|
||||
method: 'POST',
|
||||
contentType: 'application/json',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//获取操作手册列表
|
||||
getBasicOperationManual(params) {
|
||||
@ -458,7 +490,17 @@ class API extends HTTP {
|
||||
//获取患者问诊病例
|
||||
getDoctorInquiryCase(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/doctor/inquiry/case`,
|
||||
url: `${this.baseUrl}/case`,
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//获取患者问诊病例
|
||||
getCase(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/case`,
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params
|
||||
@ -474,6 +516,94 @@ class API extends HTTP {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//药师基本资料
|
||||
getPharmacistInfo(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/pharmacist/info`,
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//药师端-首页
|
||||
getPharmacistIndex(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/pharmacist/index`,
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//获取药师审核处方列表
|
||||
getPharmacistPrescription(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/pharmacist/prescription`,
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//获取处方详情
|
||||
getPharmacistPrescriptioninfo(params) {
|
||||
let order_prescription_id = params.order_prescription_id;
|
||||
params = {}
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/pharmacist/prescription/info/`+order_prescription_id,
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//设置上下线 药师端
|
||||
putPharmacistOnOff(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/pharmacist/on-off`,
|
||||
method: 'PUT',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//药师基本资料
|
||||
getPharmacistInfo(params) {
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/pharmacist/info`,
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//审核处方
|
||||
putPharmacistPrescriptionVerify(params) {
|
||||
let order_prescription_id = params.order_prescription_id;
|
||||
delete params['order_prescription_id'];
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/pharmacist/prescription/verify/`+order_prescription_id,
|
||||
method: 'PUT',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
//医生接诊
|
||||
postDoctorInquiry(params) {
|
||||
console.log("params from api: ", params);
|
||||
let order_inquiry_id = params.order_inquiry_id;
|
||||
console.log("order_inquiry_id: ", order_inquiry_id);
|
||||
delete params['order_inquiry_id'];
|
||||
return this.request({
|
||||
url: `${this.baseUrl}/doctor/inquiry/`+order_inquiry_id,
|
||||
method: 'POST',
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
const env = require('./config').dev
|
||||
|
||||
const app = getApp()
|
||||
class HTTP {
|
||||
constructor() {
|
||||
this.baseUrl = env.baseUrl,
|
||||
@ -21,6 +21,7 @@ class HTTP {
|
||||
|
||||
_request(url, resolve, reject, data = {}, method = 'GET', contentType = 'application/x-www-form-urlencoded', showLoading = true) {
|
||||
if(showLoading) wx.showLoading();
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
wx.request({
|
||||
url: url,
|
||||
method: method,
|
||||
@ -28,13 +29,13 @@ class HTTP {
|
||||
header: {
|
||||
'content-type': contentType,
|
||||
'appId': this.appId,
|
||||
'Authorization': "Bearer " + wx.getStorageSync('AUTH_TOKEN')
|
||||
'Authorization': "Bearer " + wx.getStorageSync('AUTH_TOKEN_'+usertype)
|
||||
},
|
||||
success: (res) => {
|
||||
console.log("header Authorization: ", res.header.Authorization);
|
||||
var Authorization_token = res.header.Authorization;
|
||||
if(Authorization_token){
|
||||
wx.setStorageSync('AUTH_TOKEN', Authorization_token);//当token快过期时,服务器会返回新token,本地刷新
|
||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, Authorization_token);//当token快过期时,服务器会返回新token,本地刷新
|
||||
}
|
||||
if (res.data) {
|
||||
const code = res.data.code;
|
||||
@ -42,33 +43,38 @@ class HTTP {
|
||||
resolve(res.data)
|
||||
} else if(code == 401 || code == 403 || code == 405 || code == 406){
|
||||
wx.navigateTo({
|
||||
url: "/Pages/index/index"
|
||||
url: app.globalData.login_url
|
||||
})
|
||||
} else {
|
||||
reject(res.data.message)
|
||||
this._show_error(res.data.message)
|
||||
this._show_error(showLoading, res.data.message)
|
||||
}
|
||||
} else {
|
||||
resolve(res.data)
|
||||
reject(res.data)
|
||||
this._show_error(showLoading, err.data.message)
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
reject()
|
||||
this._show_error(err.data.message)
|
||||
this._show_error(showLoading, err.data.message)
|
||||
},
|
||||
complete: () => {
|
||||
if(showLoading) wx.hideLoading();
|
||||
complete: (res) => {
|
||||
console.log("res from cmplete: ",res)
|
||||
const code = res.data.code;
|
||||
if (code == 200) {
|
||||
if(showLoading) wx.hideLoading();
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
_show_error(_message) {
|
||||
_show_error(showLoading, _message) {
|
||||
if(showLoading) wx.hideLoading();
|
||||
wx.showToast({
|
||||
title: `${_message}`,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user