优化页面
This commit is contained in:
parent
dea1555b9b
commit
589c2cf823
@ -42,6 +42,8 @@ Page({
|
|||||||
wx.setStorageSync('AUTH_TOKEN', response.data.token);
|
wx.setStorageSync('AUTH_TOKEN', response.data.token);
|
||||||
wx.setStorageSync('user_id', response.data.user_id);
|
wx.setStorageSync('user_id', response.data.user_id);
|
||||||
wx.setStorageSync('client_user_id', response.data.client_user_id);
|
wx.setStorageSync('client_user_id', response.data.client_user_id);
|
||||||
|
app.globalData.config.userID = response.data.user_id;
|
||||||
|
app.imInit();
|
||||||
//跳转页面
|
//跳转页面
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: next_url
|
url: next_url
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 170rpx;
|
height: 170rpx;
|
||||||
background-color: #bae46b;
|
background-color: #69d85f;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
}
|
}
|
||||||
.tui-navigatorbar-back{
|
.tui-navigatorbar-back{
|
||||||
@ -23,7 +23,7 @@
|
|||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
line-height: 56rpx;
|
line-height: 56rpx;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #e68080;
|
color: #000000;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 200rpx;
|
left: 200rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import { API } from './../../utils/network/api'
|
import { API } from './../../utils/network/api'
|
||||||
const api = new API()
|
const api = new API()
|
||||||
|
const app = getApp()
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
navbarData: {
|
navbarData: {
|
||||||
@ -64,6 +65,8 @@ Page({
|
|||||||
wx.setStorageSync('AUTH_TOKEN', response.data.token);
|
wx.setStorageSync('AUTH_TOKEN', response.data.token);
|
||||||
wx.setStorageSync('user_id', response.data.user_id);
|
wx.setStorageSync('user_id', response.data.user_id);
|
||||||
wx.setStorageSync('client_user_id', response.data.client_user_id);
|
wx.setStorageSync('client_user_id', response.data.client_user_id);
|
||||||
|
app.globalData.config.userID = response.data.user_id;
|
||||||
|
app.imInit();
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: wx.getStorageSync('next_url')
|
url: wx.getStorageSync('next_url')
|
||||||
})
|
})
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
"van-field": "@vant/weapp/field/index",
|
"van-field": "@vant/weapp/field/index",
|
||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"van-checkbox": "@vant/weapp/checkbox/index",
|
"van-checkbox": "@vant/weapp/checkbox/index",
|
||||||
"van-checkbox-group": "@vant/weapp/checkbox-group/index"
|
"van-checkbox-group": "@vant/weapp/checkbox-group/index",
|
||||||
|
"van-image": "@vant/weapp/image/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<m-nav-bar navbarData="{{navbarData}}">
|
<m-nav-bar navbarData="{{navbarData}}">
|
||||||
<view class="logo">
|
<view class="logo">
|
||||||
<image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/logo2.png" mode="heightFix" style="height: 196rpx;"></image>
|
<van-image height="196rpx" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/logo2.png" fit="heightFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="fields">
|
<view class="fields">
|
||||||
<van-field
|
<van-field
|
||||||
|
|||||||
18
Pages/webpage/index.js
Normal file
18
Pages/webpage/index.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// Pages/webpage/index.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
src: ""
|
||||||
|
},
|
||||||
|
|
||||||
|
onLoad(options) {
|
||||||
|
console.log(options.src)
|
||||||
|
this.setData({
|
||||||
|
src: options.src
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
})
|
||||||
3
Pages/webpage/index.json
Normal file
3
Pages/webpage/index.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
2
Pages/webpage/index.wxml
Normal file
2
Pages/webpage/index.wxml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<!--Pages/webpage/index.wxml-->
|
||||||
|
<web-view src="{{src}}"/>
|
||||||
1
Pages/webpage/index.wxss
Normal file
1
Pages/webpage/index.wxss
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* Pages/webpage/index.wxss */
|
||||||
@ -1,16 +1,16 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-cell 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 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 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 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 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 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 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 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 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 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>
|
</van-cell-group>
|
||||||
<view class="submit">
|
<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>
|
||||||
|
|||||||
@ -1,19 +1,19 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<t-avatar class="avatar" size="large" image="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png" />
|
<t-avatar class="avatar" size="large" image="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yaoshi_default_photo.png" />
|
||||||
<text class="name">李四</text>
|
<text class="name">李四</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-cell 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 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 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 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 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 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 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 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-group>
|
</van-cell-group>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -1,7 +1,7 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<t-avatar class="avatar" size="large" image="/static/images/default_photo.png" />
|
<t-avatar class="avatar" size="large" image="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yaoshi_default_photo.png" />
|
||||||
<text class="name">李四</text>
|
<text class="name">李四</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<van-popup show="{{ bohuishow }}" bind:close="onClose">
|
<van-popup show="{{ bohuishow }}" bind:close="onClose">
|
||||||
<view class="pop">
|
<view class="pop">
|
||||||
<van-cell title="驳回理由:" is-link value="{{ resonText }}" bind:click="showReasonPopup"/>
|
<van-cell size="large" title="驳回理由:" is-link value="{{ resonText }}" bind:click="showReasonPopup"/>
|
||||||
<view class="pop_button">
|
<view class="pop_button">
|
||||||
<view class="pop_button_txt" bindtap="closePopup">取消</view>
|
<view class="pop_button_txt" bindtap="closePopup">取消</view>
|
||||||
<view class="pop_button_txt" bindtap="submitBohui">确认驳回</view>
|
<view class="pop_button_txt" bindtap="submitBohui">确认驳回</view>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- 实名认证结果页面 -->
|
<!-- 实名认证结果页面 -->
|
||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||||
<van-cell title="真实姓名" value="{{card_name}}" />
|
<van-cell size="large" title="真实姓名" value="{{card_name}}" />
|
||||||
<van-cell title="身份证号" value="{{card_num_mask}}" />
|
<van-cell size="large" title="身份证号" value="{{card_num_mask}}" />
|
||||||
</view>
|
</view>
|
||||||
@ -17,7 +17,7 @@ Page({
|
|||||||
onShow(){
|
onShow(){
|
||||||
|
|
||||||
api.getDoctorBank().then(response => {
|
api.getDoctorBank().then(response => {
|
||||||
if(response.data.total > 0){
|
if(response.data.bank_card_id){
|
||||||
this.setData({
|
this.setData({
|
||||||
banklist_empty: false,
|
banklist_empty: false,
|
||||||
bank_card_code_mask: response.data.bank_card_code_mask,
|
bank_card_code_mask: response.data.bank_card_code_mask,
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"t-image": "tdesign-miniprogram/image/image",
|
"van-image": "@vant/weapp/image/index",
|
||||||
"t-icon": "tdesign-miniprogram/icon/icon",
|
"t-icon": "tdesign-miniprogram/icon/icon",
|
||||||
"van-button": "@vant/weapp/button/index"
|
"van-button": "@vant/weapp/button/index"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,24 +11,24 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="bankcard_empty_box" wx:if="{{ banklist_empty }}">
|
<view class="bankcard_empty_box" wx:if="{{ banklist_empty }}">
|
||||||
<view class="bankcard_empty">
|
<view class="bankcard_empty">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard_empty.png" mode="heightFix" width="200rpx" aria-label="空" />
|
<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="空" />
|
||||||
</view>
|
</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>
|
<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 class="note">提示:每人只能绑定一张银行卡,银行卡绑定成功后每月只能修改结算银行卡一次,请谨慎绑定。</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bankcard_list" wx:if="{{ !banklist_empty }}">
|
<view class="bankcard_list" wx:if="{{ !banklist_empty }}">
|
||||||
<view class="bankcard_list_item">
|
<view class="bankcard_list_item">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/gs.png" mode="widthFix" width="100%" aria-label="空" />
|
<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="空" />
|
||||||
<view class="bankcard_list_item_name">{{bank_name}}</view>
|
<view class="bankcard_list_item_name">{{bank_name}}</view>
|
||||||
<view class="bankcard_list_item_num">{{bank_card_code_mask}}</view>
|
<view class="bankcard_list_item_num">{{bank_card_code_mask}}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="bankcard_list_item">
|
<!-- <view class="bankcard_list_item">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/ny.png" mode="widthFix" width="100%" aria-label="空" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/ny.png" fit="widthFix" width="100%" aria-label="空" />
|
||||||
<view class="bankcard_list_item_name">中国农业银行</view>
|
<view class="bankcard_list_item_name">中国农业银行</view>
|
||||||
<view class="bankcard_list_item_num">3034 **** **** **** 2698</view>
|
<view class="bankcard_list_item_num">3034 **** **** **** 2698</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<!-- <view class="bankcard_list_item">
|
<!-- <view class="bankcard_list_item">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js.png" mode="widthFix" width="100%" aria-label="空" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js.png" fit="widthFix" width="100%" aria-label="空" />
|
||||||
<view class="bankcard_list_item_name">中国建设银行</view>
|
<view class="bankcard_list_item_name">中国建设银行</view>
|
||||||
<view class="bankcard_list_item_num">3034 **** **** **** 2698</view>
|
<view class="bankcard_list_item_num">3034 **** **** **** 2698</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|||||||
@ -32,8 +32,8 @@ Page({
|
|||||||
onLoad(options){
|
onLoad(options){
|
||||||
console.log("options: ", options);
|
console.log("options: ", options);
|
||||||
let bank_card_id = options.bank_card_id;
|
let bank_card_id = options.bank_card_id;
|
||||||
console.log("options bank_card_id: ", bank_card_id);
|
if(bank_card_id && bank_card_id != "undefined"){
|
||||||
if(bank_card_id){
|
console.log("options bank_card_id: ", bank_card_id);
|
||||||
this.setData({
|
this.setData({
|
||||||
bank_card_id: bank_card_id
|
bank_card_id: bank_card_id
|
||||||
})
|
})
|
||||||
@ -218,6 +218,7 @@ Page({
|
|||||||
title: '更换成功',
|
title: '更换成功',
|
||||||
icon: "success"
|
icon: "success"
|
||||||
})
|
})
|
||||||
|
wx.navigateBack();
|
||||||
}).catch(errors => {console.error(errors); })
|
}).catch(errors => {console.error(errors); })
|
||||||
}else{
|
}else{
|
||||||
//绑定医生银行卡
|
//绑定医生银行卡
|
||||||
@ -227,6 +228,7 @@ Page({
|
|||||||
title: '绑定成功',
|
title: '绑定成功',
|
||||||
icon: "success"
|
icon: "success"
|
||||||
})
|
})
|
||||||
|
wx.navigateBack();
|
||||||
}).catch(errors => {console.error(errors); })
|
}).catch(errors => {console.error(errors); })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,15 +6,15 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-cell title="姓名" value="{{realname}}" />
|
<van-cell size="large" title="姓名" value="{{realname}}" />
|
||||||
<van-cell title="身份证号" value="{{idcard}}" border="{{ false }}" />
|
<van-cell size="large" title="身份证号" value="{{idcard}}" border="{{ false }}" />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="bankcard">
|
<view class="bankcard">
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-cell title="所在城市" value="{{city_note}}" is-link bindtap="onCityShow"/>
|
<van-cell size="large" title="所在城市" value="{{city_note}}" is-link bindtap="onCityShow"/>
|
||||||
<van-cell title="开户行" value="{{bank_note}}" is-link bindtap="onBankShow"/>
|
<van-cell size="large" title="开户行" value="{{bank_note}}" is-link bindtap="onBankShow"/>
|
||||||
<van-field
|
<van-field
|
||||||
label="银行卡号"
|
label="银行卡号"
|
||||||
placeholder="请输入卡号"
|
placeholder="请输入卡号"
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
<view class="weight info_item"><text class="info_title">体重:</text><text class="info_val">{{case_detail.weight}}KG</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="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="zhiye info_item"><text class="info_title">职业:</text><text class="info_val">{{case_detail.job_name}}</text></view>
|
||||||
<view class="hunyin info_item"><text class="info_title">婚姻:</text><text class="info_val">{{case_detail.nation_name}}</text></view>
|
<view 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>
|
||||||
<view class="disease_box">
|
<view class="disease_box">
|
||||||
<view class="disease_box_item">
|
<view class="disease_box_item">
|
||||||
@ -32,10 +32,10 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="disease_box_item">
|
<view class="disease_box_item">
|
||||||
<view class="title">正在服用的药品信息:</view>
|
<view class="title">正在服用的药品信息:</view>
|
||||||
<view class="conent">{{case_detail.disease_class_name}}</view>
|
<view class="conent">{{case_detail.drugs_name==''?'无':''}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="disease_info">
|
<view class="disease_info" wx:if="{{case_detail.drugs_name != ''}}">
|
||||||
详细描述:阿托伐他汀钙片8片 (用法用量:常用的起始剂量为10mg每日一次
|
详细描述:{{case_detail.drugs_name}}
|
||||||
</view>
|
</view>
|
||||||
<view class="disease_box_item">
|
<view class="disease_box_item">
|
||||||
<view class="title">病情描述:</view>
|
<view class="title">病情描述:</view>
|
||||||
|
|||||||
@ -15,7 +15,8 @@ Page({
|
|||||||
bank_name : "招商银行",
|
bank_name : "招商银行",
|
||||||
bank_card_code_mask: "2233 9988 9989 9900",
|
bank_card_code_mask: "2233 9988 9989 9900",
|
||||||
withdrawal_amount: "987",
|
withdrawal_amount: "987",
|
||||||
income_tax: "12"
|
income_tax: "12",
|
||||||
|
contactKeFu: false
|
||||||
},
|
},
|
||||||
onLoad(options){
|
onLoad(options){
|
||||||
//获取提现数据
|
//获取提现数据
|
||||||
@ -34,5 +35,21 @@ Page({
|
|||||||
}).catch(errors => {
|
}).catch(errors => {
|
||||||
console.error(errors);
|
console.error(errors);
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
|
contactKeFu(e){
|
||||||
|
let _this = this;
|
||||||
|
|
||||||
|
console.log("concatKeFu");
|
||||||
|
wx.requestSubscribeMessage({
|
||||||
|
tmplIds: ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc'],
|
||||||
|
success (res) {
|
||||||
|
console.log(res);
|
||||||
|
_this.setData({
|
||||||
|
contactKeFu: true
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
})
|
})
|
||||||
@ -4,6 +4,7 @@
|
|||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"t-image": "tdesign-miniprogram/image/image",
|
"t-image": "tdesign-miniprogram/image/image",
|
||||||
"van-icon": "@vant/weapp/icon/index",
|
"van-icon": "@vant/weapp/icon/index",
|
||||||
"van-button": "@vant/weapp/button/index"
|
"van-button": "@vant/weapp/button/index",
|
||||||
|
"van-dialog": "@vant/weapp/dialog/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -41,18 +41,26 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="note">
|
<!-- <view class="note">
|
||||||
<text>
|
<text>
|
||||||
说明:1、每月只可提取一次,提现金额大于300元才可提现,限额1万元;
|
说明:1、每月只可提取一次,提现金额大于300元才可提现,限额1万元;
|
||||||
2、平台会在24小时内自动结算至您绑定的银行卡内,请注意查收银行信息;
|
2、平台会在24小时内自动结算至您绑定的银行卡内,请注意查收银行信息;
|
||||||
3、平台代扣个人所得税,根据公式:
|
3、平台代扣个人所得税,根据公式:
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
<van-button custom-style="border-radius: 10rpx;" block color="#3CC7C0">提取</van-button>
|
<van-button custom-style="border-radius: 10rpx;" block color="#3CC7C0">提取</van-button>
|
||||||
<view class="kefu">
|
<view class="kefu" bindtap="contactKeFu">
|
||||||
<text>联系客服</text>
|
<text>联系客服</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<van-dialog
|
||||||
|
title="立即联系客服"
|
||||||
|
show="{{ contactKeFu }}"
|
||||||
|
show-cancel-button
|
||||||
|
confirm-button-color="#3CC7C0"
|
||||||
|
confirm-button-open-type="contact"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"van-icon": "@vant/weapp/icon/index",
|
"van-icon": "@vant/weapp/icon/index",
|
||||||
"van-empty": "@vant/weapp/empty/index",
|
"van-empty": "@vant/weapp/empty/index",
|
||||||
"t-image": "tdesign-miniprogram/image/image",
|
"van-image": "@vant/weapp/image/index",
|
||||||
"t-picker": "tdesign-miniprogram/picker/picker",
|
"t-picker": "tdesign-miniprogram/picker/picker",
|
||||||
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item"
|
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
<view class="data_item" wx:for="{{record_list}}">
|
<view class="data_item" wx:for="{{record_list}}">
|
||||||
<view class="data_item_top">
|
<view class="data_item_top">
|
||||||
<view class="data_item_top_icon">
|
<view class="data_item_top_icon">
|
||||||
<t-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" mode="heightFix" height="50rpx" aria-label="role" />
|
<van-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" fit="heightFix" height="50rpx" aria-label="role" />
|
||||||
</view>
|
</view>
|
||||||
<view class="data_item_top_content">
|
<view class="data_item_top_content">
|
||||||
<view class="name">{{item.account_name}}<text style="margin-left:20rpx;font-size: 28rpx;corlor:#999;">(尾号{{item.bank_card_code_four}})</text></view>
|
<view class="name">{{item.account_name}}<text style="margin-left:20rpx;font-size: 28rpx;corlor:#999;">(尾号{{item.bank_card_code_four}})</text></view>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
<view class="data_item">
|
<view class="data_item">
|
||||||
<view class="data_item_top">
|
<view class="data_item_top">
|
||||||
<view class="data_item_top_icon">
|
<view class="data_item_top_icon">
|
||||||
<t-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" mode="heightFix" height="50rpx" aria-label="role" />
|
<van-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" fit="heightFix" height="50rpx" aria-label="role" />
|
||||||
</view>
|
</view>
|
||||||
<view class="data_item_top_content">
|
<view class="data_item_top_content">
|
||||||
<view class="name">张三三<text style="margin-left:20rpx;font-size: 28rpx; corlor:#999;">(尾号9900)</text></view>
|
<view class="name">张三三<text style="margin-left:20rpx;font-size: 28rpx; corlor:#999;">(尾号9900)</text></view>
|
||||||
|
|||||||
@ -4,15 +4,18 @@ Page({
|
|||||||
patient_account: "10000",
|
patient_account: "10000",
|
||||||
title: '患者姓名',
|
title: '患者姓名',
|
||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
order_inquiry_id: ""
|
order_inquiry_id: "",
|
||||||
|
inquiry_type: "",
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
console.log("chat onload");
|
console.log("chat onload", option);
|
||||||
let from_account = option.from_account;
|
let from_account = option.from_account;
|
||||||
let order_inquiry_id = option.order_inquiry_id;
|
let order_inquiry_id = option.order_inquiry_id;
|
||||||
|
let inquiry_type = option.inquiry_type;
|
||||||
this.setData({
|
this.setData({
|
||||||
patient_account: from_account,
|
patient_account: from_account,
|
||||||
order_inquiry_id: order_inquiry_id,
|
order_inquiry_id: order_inquiry_id,
|
||||||
|
inquiry_type: inquiry_type,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<!-- 一对一聊天 不带会话列表 -->
|
<!-- 一对一聊天 不带会话列表 -->
|
||||||
<view>
|
<view>
|
||||||
<TUIChat id="TUIChat" currentConversationID="C2C{{patient_account}}" order_inquiry_id="{{order_inquiry_id}}"
|
<TUIChat id="TUIChat" currentConversationID="C2C{{patient_account}}" inquiry_type="{{inquiry_type}}" order_inquiry_id="{{order_inquiry_id}}"
|
||||||
hasCallKit="{{ true }}" bind:handleCall="handleCall"></TUIChat>
|
hasCallKit="{{ true }}" bind:handleCall="handleCall"></TUIChat>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -10,26 +10,57 @@ Page({
|
|||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '医师身份认证', //导航栏 中间的标题
|
title: '医师身份认证', //导航栏 中间的标题
|
||||||
},
|
},
|
||||||
|
navHeight: 0,
|
||||||
|
stateHeight: 0,
|
||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
//选项卡
|
//选项卡
|
||||||
stickyProps: {
|
stickyProps: {
|
||||||
zIndex: 2,
|
zIndex: 999999,
|
||||||
|
offsetTop: (app.globalData.height * 2)
|
||||||
},
|
},
|
||||||
|
selected_tab: 0,
|
||||||
|
panel_2_disabled: true,
|
||||||
|
next_btn_disabled: false,
|
||||||
|
next_btn_txt: "下一步",
|
||||||
|
realname: "",
|
||||||
|
idcard: ""
|
||||||
|
},
|
||||||
|
getMenuButtonBound() {
|
||||||
|
let stateHeight = 0; // 接收状态栏高度
|
||||||
|
const navHeight = wx.getMenuButtonBoundingClientRect().height; // 获取胶囊高度
|
||||||
|
let top = 0;
|
||||||
|
wx.getSystemInfo({
|
||||||
|
success(res) {
|
||||||
|
stateHeight = res.statusBarHeight;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
top = wx.getMenuButtonBoundingClientRect().top - stateHeight; // 获取top值
|
||||||
|
console.log('navHeight', navHeight);
|
||||||
|
console.log('top', top);
|
||||||
|
this.setData({
|
||||||
|
// navHeight: navHeight + top * 2, // 导航栏高度
|
||||||
|
navHeight, // 导航栏高度
|
||||||
|
stateHeight: stateHeight + top, // 状态栏高度
|
||||||
|
});
|
||||||
|
this.setData({
|
||||||
|
"stickyProps.offsetTop": this.data.stateHeight + this.data.navHeight + 10
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
let _this = this;
|
let _this = this;
|
||||||
//获取实名认证信息
|
//获取实名认证信息
|
||||||
api.getDoctorAuthReal().then(response => {
|
api.getDoctorAuthReal().then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if(response.data){
|
if(response.data.length == 0){
|
||||||
this.setData({
|
return;
|
||||||
realname:response.data.card_name,
|
|
||||||
idcard:response.data.card_num,
|
|
||||||
next_btn_txt: "已认证,不可修改",
|
|
||||||
next_btn_disabled: true,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
this.setData({
|
||||||
|
realname:response.data.card_name,
|
||||||
|
idcard:response.data.card_num,
|
||||||
|
next_btn_txt: "已认证,不可修改",
|
||||||
|
next_btn_disabled: true,
|
||||||
|
panel_2_disabled: false,
|
||||||
|
});
|
||||||
}).catch(errors => {
|
}).catch(errors => {
|
||||||
console.error(errors);
|
console.error(errors);
|
||||||
})
|
})
|
||||||
@ -229,7 +260,7 @@ Page({
|
|||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
console.log("onshow()....");
|
console.log("onshow()....");
|
||||||
|
this.getMenuButtonBound();
|
||||||
},
|
},
|
||||||
doUploadFile(event) {
|
doUploadFile(event) {
|
||||||
console.log("index douploadFIle: ", event);
|
console.log("index douploadFIle: ", event);
|
||||||
@ -308,6 +339,7 @@ Page({
|
|||||||
//新增实名认证信息
|
//新增实名认证信息
|
||||||
postDoctorAuthReal(){
|
postDoctorAuthReal(){
|
||||||
|
|
||||||
|
let _this = this;
|
||||||
const realname = this.data.realname.trim();
|
const realname = this.data.realname.trim();
|
||||||
const idcard = this.data.idcard.trim();
|
const idcard = this.data.idcard.trim();
|
||||||
|
|
||||||
@ -335,25 +367,27 @@ Page({
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
wx.requestSubscribeMessage({
|
var params = {
|
||||||
tmplIds: ['kUy70xHlr7ADo4aIHiictM4Te7MSec3E5kHsYvFQu40'],
|
card_name: realname,
|
||||||
success (res) {
|
card_num: idcard,
|
||||||
console.log(res)
|
}
|
||||||
var params = {
|
api.postDoctorAuthReal(params).then(response => {
|
||||||
card_name: realname,
|
console.log(response);
|
||||||
card_num: idcard,
|
_this.setData({
|
||||||
}
|
panel_2_disabled: false,
|
||||||
api.postDoctorAuthReal(params).then(response => {
|
selected_tab: 1
|
||||||
console.log(response);
|
})
|
||||||
}).catch(errors => {
|
}).catch(errors => {
|
||||||
console.error(errors);
|
console.error(errors);
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
onTabsChange(event) {
|
onTabsChange(event) {
|
||||||
console.log(`Change tab, tab-panel value is ${event.detail.value}.`);
|
console.log(`Change tab, tab-panel value is ${event.detail.value}.`);
|
||||||
|
this.setData({
|
||||||
|
selected_tab: event.detail.value
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
onTabsClick(event) {
|
onTabsClick(event) {
|
||||||
console.log(`Click tab, tab-panel value is ${event.detail.value}.`);
|
console.log(`Click tab, tab-panel value is ${event.detail.value}.`);
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
<!-- <nav-bar navbar-data='{{navbarData}}' style="margin-bottom: {{height*2 + 20}}px;"></nav-bar> -->
|
<!-- <nav-bar navbar-data='{{navbarData}}' style="margin-bottom: {{height*2 + 20}}px;"></nav-bar> -->
|
||||||
<te-nav-bar navbar-data='{{navbarData}}'></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}'></te-nav-bar>
|
||||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
<view class="container">
|
||||||
<view class="tabs">
|
<view class="tabs">
|
||||||
<t-tabs
|
<t-tabs
|
||||||
defaultValue="{{0}}"
|
defaultValue="{{ selected_tab }}"
|
||||||
sticky
|
value="{{selected_tab}}"
|
||||||
|
sticky="{{true}}"
|
||||||
stickyProps="{{stickyProps}}"
|
stickyProps="{{stickyProps}}"
|
||||||
bind:change="onTabsChange"
|
bind:change="onTabsChange"
|
||||||
bind:click="onTabsClick"
|
bind:click="onTabsClick"
|
||||||
@ -14,7 +15,7 @@
|
|||||||
custom-style="font-size: 32rpx"
|
custom-style="font-size: 32rpx"
|
||||||
>
|
>
|
||||||
<!-- 实名认证tab -->
|
<!-- 实名认证tab -->
|
||||||
<t-tab-panel label="实名认证" value="0" style="{{tabPanelstyle}}">
|
<t-tab-panel label="实名认证" value="0" style="{{tabPanelstyle}}" catchtouchmove='true'>
|
||||||
|
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-field
|
<van-field
|
||||||
@ -38,7 +39,6 @@
|
|||||||
required
|
required
|
||||||
clearable
|
clearable
|
||||||
custom-style="font-size:30rpx;"
|
custom-style="font-size:30rpx;"
|
||||||
border="{{ false }}"
|
|
||||||
/>
|
/>
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
|
|
||||||
@ -57,10 +57,15 @@
|
|||||||
</t-tab-panel>
|
</t-tab-panel>
|
||||||
|
|
||||||
<!-- 医师身份认证 -->
|
<!-- 医师身份认证 -->
|
||||||
<t-tab-panel label="医师身份认证" value="1" style="{{tabPanelstyle}}">
|
<t-tab-panel label="医师身份认证" value="1" disabled style="{{tabPanelstyle}}" wx:if="{{panel_2_disabled}}">
|
||||||
<myprofile />
|
<myprofile wx:if="{{selected_tab == 1}}" />
|
||||||
|
|
||||||
</t-tab-panel>
|
</t-tab-panel>
|
||||||
|
|
||||||
|
<t-tab-panel label="医师身份认证" value="1" style="{{tabPanelstyle}}" wx:if="{{!panel_2_disabled}}">
|
||||||
|
<myprofile wx:if="{{selected_tab == 1}}" />
|
||||||
|
</t-tab-panel>
|
||||||
|
|
||||||
|
|
||||||
</t-tabs>
|
</t-tabs>
|
||||||
</view>
|
</view>
|
||||||
<van-toast id="van-toast" />
|
<van-toast id="van-toast" />
|
||||||
|
|||||||
@ -85,7 +85,7 @@
|
|||||||
}
|
}
|
||||||
.bottom_next{
|
.bottom_next{
|
||||||
width: 95vw;
|
width: 95vw;
|
||||||
margin: 530rpx auto;
|
margin: 530rpx auto 0 auto;
|
||||||
}
|
}
|
||||||
.sub_button{
|
.sub_button{
|
||||||
width: 95vw;
|
width: 95vw;
|
||||||
@ -167,4 +167,12 @@
|
|||||||
|
|
||||||
.zhuanchang_btn--confirm {
|
.zhuanchang_btn--confirm {
|
||||||
color: #3cc7c0;
|
color: #3cc7c0;
|
||||||
|
}
|
||||||
|
.van-picker__columns {
|
||||||
|
height: 264px !important;
|
||||||
|
top: 40px !important;
|
||||||
|
}
|
||||||
|
.van-search {
|
||||||
|
top: -270px !important;
|
||||||
|
position: relative !important;
|
||||||
}
|
}
|
||||||
@ -25,8 +25,6 @@ Page({
|
|||||||
shiming_status_url: "",
|
shiming_status_url: "",
|
||||||
iden_auth_status_url: "/Pages/yishi/identity/index",
|
iden_auth_status_url: "/Pages/yishi/identity/index",
|
||||||
multi_point_status_url: "/Pages/yishi/zhiye_identity/index",
|
multi_point_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||||
current: 0,
|
|
||||||
autoplay: true,
|
|
||||||
duration: 500,
|
duration: 500,
|
||||||
interval: 5000,
|
interval: 5000,
|
||||||
swiperList: [
|
swiperList: [
|
||||||
@ -34,6 +32,8 @@ Page({
|
|||||||
`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/ad2.jpg`,
|
||||||
`https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/ad3.jpg`,
|
`https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/ad3.jpg`,
|
||||||
],
|
],
|
||||||
|
banner: [],
|
||||||
|
default_dialog_show: false,//只弹框一次
|
||||||
dialog_visible: false,
|
dialog_visible: false,
|
||||||
dialog_content: "请您先实名认证",
|
dialog_content: "请您先实名认证",
|
||||||
/*
|
/*
|
||||||
@ -114,7 +114,15 @@ Page({
|
|||||||
onLoad(){
|
onLoad(){
|
||||||
|
|
||||||
},
|
},
|
||||||
|
onUnload(){
|
||||||
|
console.log("index onUnload() onUnload() ");
|
||||||
|
},
|
||||||
|
onHide(){
|
||||||
|
console.log("index onHide() onHide() ");
|
||||||
|
this.setData({
|
||||||
|
swiperList: []
|
||||||
|
})
|
||||||
|
},
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||||
this.getTabBar().setData({
|
this.getTabBar().setData({
|
||||||
@ -182,7 +190,8 @@ Page({
|
|||||||
if(reject_prescription_number){
|
if(reject_prescription_number){
|
||||||
this.setData({"info.reject_prescription_number": reject_prescription_number});
|
this.setData({"info.reject_prescription_number": reject_prescription_number});
|
||||||
}
|
}
|
||||||
|
//格式化广告轮播
|
||||||
|
this.formatAD(response.data.banner);
|
||||||
this.checkStatus();
|
this.checkStatus();
|
||||||
|
|
||||||
this.setData({
|
this.setData({
|
||||||
@ -192,12 +201,232 @@ Page({
|
|||||||
console.error(errors);
|
console.error(errors);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
formatAD(banner){
|
||||||
onADChange(){
|
let swiperList = [];
|
||||||
// console.log("onADChange");
|
banner.forEach(item => {
|
||||||
|
swiperList.push(item.banner_path);
|
||||||
|
})
|
||||||
|
this.setData({
|
||||||
|
banner: banner,
|
||||||
|
swiperList: swiperList
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onTapAD(e) {
|
||||||
|
const { index } = e.detail;
|
||||||
|
console.log(index);
|
||||||
|
let item = this.data.banner[index];
|
||||||
|
console.log(item);
|
||||||
|
let open_with = item.open_with;
|
||||||
|
let banner_link = item.banner_link;
|
||||||
|
if(open_with == 1){//小程序页面
|
||||||
|
app.go(banner_link);
|
||||||
|
}else if(open_with == 2){//webview 页面
|
||||||
|
app.go("/Pages/webpage/index?src="+banner_link);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onChangeAD(e) {
|
||||||
|
// const { current, source } = e.detail;
|
||||||
|
// console.log(current, source);
|
||||||
},
|
},
|
||||||
|
|
||||||
go(e){
|
go(e){
|
||||||
|
let checkDialog = this.checkDialog(e);
|
||||||
|
if(checkDialog){
|
||||||
|
let url = e.currentTarget.dataset.url;
|
||||||
|
console.log(url);
|
||||||
|
if(url.indexOf("wenzhen") > -1){
|
||||||
|
wx.switchTab({
|
||||||
|
url: url,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
app.go(e.currentTarget.dataset.url)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
confirmDialog(){
|
||||||
|
this.setData({
|
||||||
|
dialog_visible: false
|
||||||
|
})
|
||||||
|
app.go(this.data.shiming_status_url);
|
||||||
|
},
|
||||||
|
cancelDialog(){
|
||||||
|
this.setData({
|
||||||
|
dialog_visible: false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
checkStatus(){
|
||||||
|
//实名认证
|
||||||
|
let idcard_status = this.data.info.idcard_status;
|
||||||
|
//医师身份认证
|
||||||
|
let iden_auth_status = this.data.info.iden_auth_status;
|
||||||
|
//多点执业认证
|
||||||
|
let multi_point_status = this.data.info.multi_point_status;
|
||||||
|
|
||||||
|
wx.setStorageSync('idcard_status', idcard_status);
|
||||||
|
wx.setStorageSync('iden_auth_status', iden_auth_status);
|
||||||
|
|
||||||
|
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
|
||||||
|
});
|
||||||
|
}
|
||||||
|
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
|
||||||
|
});
|
||||||
|
}
|
||||||
|
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
|
||||||
|
});
|
||||||
|
}
|
||||||
|
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
|
||||||
|
});
|
||||||
|
}
|
||||||
|
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,
|
||||||
|
default_dialog_show: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
//多点执业认证
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//绑定结算银行卡
|
||||||
|
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
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.setData({
|
||||||
|
"info.info_shiming_status_txt": "去接诊",
|
||||||
|
shiming_status_url: "/Pages/yishi/wenzhen_v2/wenzhen",
|
||||||
|
});
|
||||||
|
this.setData({"info.info_shiming_status": "info_shiming_status_yes"});
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
contactKeFu(e){
|
||||||
|
let _this = this;
|
||||||
|
|
||||||
|
let checkDialog = this.checkDialog(e);
|
||||||
|
if(checkDialog){
|
||||||
|
console.log("concatKeFu");
|
||||||
|
wx.requestSubscribeMessage({
|
||||||
|
tmplIds: ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc'],
|
||||||
|
success (res) {
|
||||||
|
console.log(res);
|
||||||
|
_this.setData({
|
||||||
|
contactKeFu: true
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
checkDialog(e){
|
||||||
//实名认证
|
//实名认证
|
||||||
let idcard_status = this.data.info.idcard_status;
|
let idcard_status = this.data.info.idcard_status;
|
||||||
//医师身份认证
|
//医师身份认证
|
||||||
@ -248,164 +477,10 @@ Page({
|
|||||||
dialog_content: now_case.case_text,
|
dialog_content: now_case.case_text,
|
||||||
dialog_visible: true
|
dialog_visible: true
|
||||||
});
|
});
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let url = e.currentTarget.dataset.url;
|
|
||||||
console.log(url);
|
|
||||||
if(url.indexOf("wenzhen") > -1){
|
|
||||||
wx.switchTab({
|
|
||||||
url: url,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
app.go(e.currentTarget.dataset.url)
|
|
||||||
|
|
||||||
},
|
|
||||||
confirmDialog(){
|
|
||||||
this.setData({
|
|
||||||
dialog_visible: false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
cancelDialog(){
|
|
||||||
this.setData({
|
|
||||||
dialog_visible: false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
checkStatus(){
|
|
||||||
//实名认证
|
|
||||||
let idcard_status = this.data.info.idcard_status;
|
|
||||||
//医师身份认证
|
|
||||||
let iden_auth_status = this.data.info.iden_auth_status;
|
|
||||||
//多点执业认证
|
|
||||||
let multi_point_status = this.data.info.multi_point_status;
|
|
||||||
|
|
||||||
if(idcard_status == 0){
|
|
||||||
this.setData({
|
|
||||||
dialog_content: "请您先实名认证",
|
|
||||||
dialog_visible: true
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(idcard_status == 2){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
this.setData({
|
|
||||||
});
|
|
||||||
return false;;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(iden_auth_status == 0){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if(iden_auth_status == 2){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if(iden_auth_status == 3){
|
|
||||||
this.setData({
|
|
||||||
"info.info_shiming_status_txt": "认证失败",
|
|
||||||
"info.info_shiming_status": "info_shiming_status_yes",
|
|
||||||
dialog_content: "您的医师身份认证失败",
|
|
||||||
dialog_visible: true
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//多点执业认证
|
|
||||||
if(multi_point_status == 0){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if(multi_point_status == 2){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if(multi_point_status == 3){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//绑定结算银行卡
|
|
||||||
var is_bind_bank = this.data.info.is_bind_bank;
|
|
||||||
if(is_bind_bank == 0){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
//开启在线问诊
|
|
||||||
var is_img_expert_reception = this.data.info.is_img_expert_reception;
|
|
||||||
if(is_img_expert_reception == 0){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
this.setData({
|
|
||||||
"info.info_shiming_status_txt": "去接诊",
|
|
||||||
shiming_status_url: "/Pages/yishi/wenzhen_v2/wenzhen",
|
|
||||||
});
|
|
||||||
this.setData({"info.info_shiming_status": "info_shiming_status_yes"});
|
|
||||||
return true;
|
return true;
|
||||||
},
|
|
||||||
contactKeFu(){
|
|
||||||
let _this = this;
|
|
||||||
console.log("concatKeFu");
|
|
||||||
wx.requestSubscribeMessage({
|
|
||||||
tmplIds: ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc'],
|
|
||||||
success (res) {
|
|
||||||
console.log(res);
|
|
||||||
_this.setData({
|
|
||||||
contactKeFu: true
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -2,11 +2,9 @@
|
|||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||||
"van-image": "@vant/weapp/image/index",
|
|
||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"van-dialog": "@vant/weapp/dialog/index",
|
"van-dialog": "@vant/weapp/dialog/index",
|
||||||
"t-swiper": "tdesign-miniprogram/swiper/swiper",
|
"t-swiper": "tdesign-miniprogram/swiper/swiper",
|
||||||
"t-swiper-nav": "tdesign-miniprogram/swiper-nav/swiper-nav",
|
|
||||||
"t-badge": "tdesign-miniprogram/badge/badge",
|
"t-badge": "tdesign-miniprogram/badge/badge",
|
||||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,22 +9,21 @@
|
|||||||
<!-- 用户信息 -->
|
<!-- 用户信息 -->
|
||||||
<view class="info_box" style="margin-top: {{stateHeight+navHeight+10}}px;">
|
<view class="info_box" style="margin-top: {{stateHeight+navHeight+10}}px;">
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="info_photo">
|
<view class="info_top">
|
||||||
<!-- 跳转我的信息 -->
|
<view class="info_photo" bindtap="go" data-url="/Pages/yishi/myinfo/index">
|
||||||
<navigator url="/Pages/yishi/myinfo/index" open-type="navigate" hover-class="other-navigator-hover">
|
<!-- 跳转我的信息 -->
|
||||||
<t-avatar alt="头像" class="avatar" size="large" image="{{info.avatar}}" />
|
<t-avatar alt="头像" class="avatar" size="large" image="{{info.avatar}}" />
|
||||||
</navigator>
|
</view>
|
||||||
</view>
|
<view class="info_content">
|
||||||
<view class="info_content">
|
<view class="info_mobile">{{info.user_name}}</view>
|
||||||
<view class="info_mobile">{{info.user_name}}</view>
|
</view>
|
||||||
<view class="info_wenzhen">
|
<view class="info_shiming" bindtap="go" data-url="{{shiming_status_url}}">
|
||||||
<view bindtap="go" data-moudle="0">新问诊:{{info.not_accepted_inquiry_num}}</view>
|
<view class="info_shiming_status {{info.info_shiming_status}}">{{info.info_shiming_status_txt}}</view>
|
||||||
<view bindtap="go" data-moudle="1">接诊中:{{info.accepting_inquiry_num}}</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="info_shiming" bindtap="go" data-url="{{shiming_status_url}}">
|
<view class="info_wenzhen">
|
||||||
<view class="info_shiming_status {{info.info_shiming_status}}">{{info.info_shiming_status_txt}}</view>
|
<view class="info_wenzhen_new" bindtap="go" data-moudle="0">新问诊:{{info.not_accepted_inquiry_num}}</view>
|
||||||
|
<view class="info_wenzhen_ing" bindtap="go" data-moudle="1">接诊中:{{info.accepting_inquiry_num}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info_note" wx:if="{{info.show_info_note}}">
|
<view class="info_note" wx:if="{{info.show_info_note}}">
|
||||||
@ -41,11 +40,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 认证信息 -->
|
<!-- 认证信息 -->
|
||||||
<view class="renzhen">
|
<view class="renzhen">
|
||||||
<view class="renzheng_left">
|
<view class="renzheng_left" bindtap="go" data-url="/Pages/yishi/identity/index">
|
||||||
<view class="renzheng_content_left">
|
<view class="renzheng_content_left">
|
||||||
<view class="renzheng_content_name">医师身份认证</view>
|
<view class="renzheng_content_name">医师身份认证</view>
|
||||||
<view class="renzheng_content_status">
|
<view class="renzheng_content_status">
|
||||||
<van-button round plain bind:click="go" data-url="/Pages/yishi/identity/index"
|
<van-button round plain
|
||||||
custom-style="background-color: #E0FFFE; height: 45rpx; letter-spacing: 3rpx; font-size: 26rpx;"
|
custom-style="background-color: #E0FFFE; height: 45rpx; letter-spacing: 3rpx; font-size: 26rpx;"
|
||||||
color="#3CC7C0" type="info" size="small">{{ iden_auth_status_txt }}></van-button>
|
color="#3CC7C0" type="info" size="small">{{ iden_auth_status_txt }}></van-button>
|
||||||
</view>
|
</view>
|
||||||
@ -58,11 +57,11 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="renzheng_right">
|
<view class="renzheng_right" bindtap="go" data-url="/Pages/yishi/zhiye_identity/index">
|
||||||
<view class="renzheng_content_left">
|
<view class="renzheng_content_left">
|
||||||
<view class="renzheng_content_name">多点执业认证</view>
|
<view class="renzheng_content_name">多点执业认证</view>
|
||||||
<view class="renzheng_content_status">
|
<view class="renzheng_content_status">
|
||||||
<van-button round plain bind:click="go" data-moudle="2" data-url="/Pages/yishi/zhiye_identity/index"
|
<van-button round plain data-moudle="2"
|
||||||
custom-style="background-color: #FFF5E0; height: 45rpx; letter-spacing: 3rpx; font-size: 26rpx;"
|
custom-style="background-color: #FFF5E0; height: 45rpx; letter-spacing: 3rpx; font-size: 26rpx;"
|
||||||
color="#FC7E00" type="info" size="small">{{ multi_point_status_txt }}></van-button>
|
color="#FC7E00" type="info" size="small">{{ multi_point_status_txt }}></van-button>
|
||||||
</view>
|
</view>
|
||||||
@ -79,16 +78,15 @@
|
|||||||
<view class="ad">
|
<view class="ad">
|
||||||
<t-swiper
|
<t-swiper
|
||||||
height="110rpx"
|
height="110rpx"
|
||||||
current="{{current}}"
|
|
||||||
autoplay="{{autoplay}}"
|
|
||||||
duration="{{duration}}"
|
duration="{{duration}}"
|
||||||
interval="{{interval}}"
|
interval="{{interval}}"
|
||||||
navigation="{{ { type: 'dots' } }}"
|
navigation="{{ { type: 'dots' } }}"
|
||||||
list="{{swiperList}}"
|
list="{{swiperList}}"
|
||||||
bind:click="onTap"
|
bind:click="onTapAD"
|
||||||
bind:change="onADChange"
|
bind:change="onChangeAD"
|
||||||
|
data-url="123"
|
||||||
>
|
>
|
||||||
</t-swiper>
|
</t-swiper>
|
||||||
</view>
|
</view>
|
||||||
<!-- 功能模块 -->
|
<!-- 功能模块 -->
|
||||||
<view class="fun_box">
|
<view class="fun_box">
|
||||||
@ -152,7 +150,6 @@
|
|||||||
确定
|
确定
|
||||||
</view>
|
</view>
|
||||||
</t-dialog>
|
</t-dialog>
|
||||||
|
|
||||||
<van-dialog
|
<van-dialog
|
||||||
title="立即联系客服"
|
title="立即联系客服"
|
||||||
show="{{ contactKeFu }}"
|
show="{{ contactKeFu }}"
|
||||||
|
|||||||
@ -33,6 +33,10 @@
|
|||||||
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.06);
|
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.06);
|
||||||
}
|
}
|
||||||
.info{
|
.info{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.info_top{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
@ -43,7 +47,7 @@
|
|||||||
}
|
}
|
||||||
.info_content{
|
.info_content{
|
||||||
color: #000;
|
color: #000;
|
||||||
flex: 4;
|
flex: 2;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@ -54,15 +58,22 @@
|
|||||||
letter-spacing: 3rpx;
|
letter-spacing: 3rpx;
|
||||||
}
|
}
|
||||||
.info_wenzhen{
|
.info_wenzhen{
|
||||||
margin-top: 10rpx;
|
margin: 20rpx 0 0 30rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
.info_wenzhen_new{
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.info_wenzhen_ing{
|
||||||
|
flex: 3;
|
||||||
|
}
|
||||||
.info_shiming{
|
.info_shiming{
|
||||||
flex: 2;
|
flex: 3;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: flex-end;
|
||||||
|
margin-right: 20rpx;
|
||||||
}
|
}
|
||||||
.info_shiming_status{
|
.info_shiming_status{
|
||||||
padding: 15rpx 20rpx 15rpx 20rpx;
|
padding: 15rpx 20rpx 15rpx 20rpx;
|
||||||
|
|||||||
@ -72,7 +72,7 @@ Page({
|
|||||||
},
|
},
|
||||||
putDoctorInquiryConfig(){
|
putDoctorInquiryConfig(){
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: "/Pages/yishi/wenzhen/wenzhen"
|
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onStepperChange(event) {
|
onStepperChange(event) {
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
<view class="switch_box_note">{{ note }}</view>
|
<view class="switch_box_note">{{ note }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="help">
|
<view class="help">
|
||||||
<van-cell url="/Pages/yishi/manual/index" custom-style="font-size:32rpx;" title="图文问诊操作手册" is-link border="{{false}}" />
|
<van-cell size="large" url="/Pages/yishi/manual/index" custom-style="font-size:32rpx;" title="图文问诊操作手册" is-link border="{{false}}" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,6 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="item_list">
|
<view class="item_list">
|
||||||
<van-cell url="/Pages/yishi/manual_detail/index?manual_id={{item.manual_id}}" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{item.title}}" is-link wx:for="{{list}}" />
|
<van-cell size="large" url="/Pages/yishi/manual_detail/index?manual_id={{item.manual_id}}" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{item.title}}" is-link wx:for="{{list}}" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -10,7 +10,7 @@ Page({
|
|||||||
iden_auth_status: "",
|
iden_auth_status: "",
|
||||||
idcard_status: "",
|
idcard_status: "",
|
||||||
multi_point_status: "",
|
multi_point_status: "",
|
||||||
avatar: "",
|
avatar: "https://img.applets.igandanyiyuan.com/applet/doctor/static/images/default_photo.png",
|
||||||
balance_account: "",
|
balance_account: "",
|
||||||
estimate_income: "",
|
estimate_income: "",
|
||||||
doctor_id: ""
|
doctor_id: ""
|
||||||
@ -46,6 +46,7 @@ Page({
|
|||||||
this.getMenuButtonBound();
|
this.getMenuButtonBound();
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
|
console.log("my onLoad");
|
||||||
//获取个人中心数据
|
//获取个人中心数据
|
||||||
api.getDoctorCenter().then(response => {
|
api.getDoctorCenter().then(response => {
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|||||||
@ -48,10 +48,10 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="content" style="top: calc(20rpx + {{stateHeight}}px);">
|
<view class="content" style="top: calc(20rpx + {{stateHeight}}px);">
|
||||||
<van-cell url="/Pages/yishi/myaccount/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的账户" is-link />
|
<van-cell size="large" url="/Pages/yishi/myaccount/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的账户" is-link />
|
||||||
<van-cell url="/Pages/yishi/bankcard/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的银行卡" is-link />
|
<van-cell size="large" url="/Pages/yishi/bankcard/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的银行卡" is-link />
|
||||||
<van-cell url="/Pages/yishi/mycard/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的名片" is-link />
|
<van-cell size="large" url="/Pages/yishi/mycard/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的名片" is-link />
|
||||||
<van-cell url="/Pages/yishi/appraise/index?doctor_id={{doctor_id}}" link-type="navigateTo" title-style="font-size: 30rpx;" title="患者评价" is-link />
|
<van-cell size="large" url="/Pages/yishi/appraise/index?doctor_id={{doctor_id}}" link-type="navigateTo" title-style="font-size: 30rpx;" title="患者评价" is-link />
|
||||||
<van-cell url="/Pages/yishi/quickreply/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="常用语" is-link border="{{ false }}"/>
|
<van-cell size="large" url="/Pages/yishi/quickreply/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="常用语" is-link border="{{ false }}"/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"t-image": "tdesign-miniprogram/image/image",
|
"van-image": "@vant/weapp/image/index",
|
||||||
"t-picker": "tdesign-miniprogram/picker/picker",
|
"t-picker": "tdesign-miniprogram/picker/picker",
|
||||||
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item",
|
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item",
|
||||||
"van-icon": "@vant/weapp/icon/index",
|
"van-icon": "@vant/weapp/icon/index",
|
||||||
|
|||||||
@ -19,11 +19,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="txt_title">账单</view>
|
<view class="txt_title">账单</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<van-cell bindtap="goDetail" data-url="/Pages/yishi/orderdetail/index" data-md="{{item.month}}-{{item.day}}" title-style="font-size: 30rpx;" title="{{item.month}}月{{item.day}}日" value="+{{item.total_amount}}元" is-link wx:for="{{bill}}" />
|
<van-cell size="large" bindtap="goDetail" data-url="/Pages/yishi/orderdetail/index" data-md="{{item.month}}-{{item.day}}" title-style="font-size: 30rpx;" title="{{item.month}}月{{item.day}}日" value="+{{item.total_amount}}元" is-link wx:for="{{bill}}" />
|
||||||
<van-empty description="暂无账单" wx:if="{{ bill }}" />
|
<van-empty description="暂无账单" wx:if="{{ bill }}" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<t-image custom-style="position: fixed; right: 0;bottom: 262rpx;" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/account_rule.png" mode="heightFix" height="84rpx" aria-label="role" />
|
<van-image style="position: fixed; right: 0;bottom: 262rpx;" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/account_rule.png" fit="heightFix" height="84rpx" aria-label="role" />
|
||||||
|
|
||||||
<t-picker
|
<t-picker
|
||||||
visible="{{dateVisible}}"
|
visible="{{dateVisible}}"
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import { API } from './../../../utils/network/api'
|
import { API } from './../../../utils/network/api'
|
||||||
const util = require('./../../../utils/util')
|
|
||||||
let api = new API()
|
let api = new API()
|
||||||
const app = getApp()
|
const app = getApp()
|
||||||
Page({
|
Page({
|
||||||
@ -13,7 +12,7 @@ Page({
|
|||||||
showText: false,
|
showText: false,
|
||||||
saveImgPath: "",
|
saveImgPath: "",
|
||||||
info: {},
|
info: {},
|
||||||
//https://github.com/Kujiale-Mobile/Painter
|
// https://github.com/Kujiale-Mobile/Painter
|
||||||
template: {
|
template: {
|
||||||
width: '750px',
|
width: '750px',
|
||||||
height: '1200px',
|
height: '1200px',
|
||||||
@ -152,9 +151,10 @@ Page({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
},
|
||||||
|
painter_ready: false
|
||||||
},
|
},
|
||||||
onShow(){
|
onLoad(){
|
||||||
//获取医生名片
|
//获取医生名片
|
||||||
api.getDoctorInfoCard().then(response => {
|
api.getDoctorInfoCard().then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
@ -167,6 +167,10 @@ Page({
|
|||||||
"template.views[8].text" : response.data.department_custom_name,
|
"template.views[8].text" : response.data.department_custom_name,
|
||||||
"template.views[9].text" : response.data.hospital_name,
|
"template.views[9].text" : response.data.hospital_name,
|
||||||
})
|
})
|
||||||
|
}).then(res => {
|
||||||
|
this.setData({
|
||||||
|
painter_ready: true
|
||||||
|
})
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
onImgOK(e){
|
onImgOK(e){
|
||||||
@ -231,10 +235,15 @@ Page({
|
|||||||
visible: e.detail.visible,
|
visible: e.detail.visible,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
showVisible(){
|
showVisible(){
|
||||||
this.setData({
|
this.setData({
|
||||||
visible: !this.data.visible,
|
visible: !this.data.visible,
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
// onShareAppMessage(e) {
|
||||||
|
// return {
|
||||||
|
// title: '自定义转发标题',
|
||||||
|
// path: '/Pages/yishi/mycard/index',
|
||||||
|
// }
|
||||||
|
// }
|
||||||
})
|
})
|
||||||
@ -4,7 +4,7 @@
|
|||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"painter":"/commpents/painter/painter",
|
"painter":"/commpents/painter/painter",
|
||||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||||
"t-image": "tdesign-miniprogram/image/image",
|
"van-image": "@vant/weapp/image/index",
|
||||||
"t-icon": "tdesign-miniprogram/icon/icon",
|
"t-icon": "tdesign-miniprogram/icon/icon",
|
||||||
"van-cell": "@vant/weapp/cell/index",
|
"van-cell": "@vant/weapp/cell/index",
|
||||||
"van-cell-group": "@vant/weapp/cell-group/index",
|
"van-cell-group": "@vant/weapp/cell-group/index",
|
||||||
|
|||||||
@ -14,13 +14,13 @@
|
|||||||
<t-avatar class="avatar" size="large" image="{{info.avatar}}" />
|
<t-avatar class="avatar" size="large" image="{{info.avatar}}" />
|
||||||
</view>
|
</view>
|
||||||
<view class="qrcode">
|
<view class="qrcode">
|
||||||
<t-image bindtap="showVisible" src="{{info.qr_code_url}}" mode="heightFix" width="150" height="150" aria-label="qrcode" />
|
<van-image bindtap="showVisible" src="{{info.qr_code_url}}" fit="heightFix" width="150" height="150" aria-label="qrcode" />
|
||||||
<text>微信长按或扫描二维码查看我的更多信息</text>
|
<text>微信长按或扫描二维码查看我的更多信息</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="block">
|
<view class="block" wx:if="{{painter_ready}}">
|
||||||
<view class="header">
|
<view class="header">
|
||||||
<view class="title">分享我的名片到</view>
|
<view class="title">分享我的名片到</view>
|
||||||
</view>
|
</view>
|
||||||
@ -56,4 +56,4 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<painter palette="{{template}}" customStyle="position:fixed;top:-9999rpx;" bind:imgOK="onImgOK"/>
|
<painter palette="{{template}}" customStyle="position:fixed;top:-9999rpx;" bind:imgOK="onImgOK" wx:if="{{painter_ready}}"/>
|
||||||
@ -22,7 +22,7 @@ Page({
|
|||||||
console.log(response);
|
console.log(response);
|
||||||
this.setData({
|
this.setData({
|
||||||
doctor_id: response.data.doctor_id,
|
doctor_id: response.data.doctor_id,
|
||||||
brief_introduction:response.data.brief_introduction,
|
brief_introduction: response.data.brief_introduction==null?this.data.brief_introduction:response.data.brief_introduction,
|
||||||
idcard_status:response.data.idcard_status,
|
idcard_status:response.data.idcard_status,
|
||||||
iden_auth_status:response.data.iden_auth_status,
|
iden_auth_status:response.data.iden_auth_status,
|
||||||
card_name:response.data.card_name,
|
card_name:response.data.card_name,
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-cell url="/Pages/yishi/mycard/index" title="我的名片" value="分享名片" is-link />
|
<van-cell size="large" url="/Pages/yishi/mycard/index" title="我的名片" value="分享名片" is-link />
|
||||||
<van-cell title="我的简介" value="{{brief_introduction}}" is-link />
|
<van-cell size="large" url="/Pages/yishi/myprofile/index" title="我的简介" value="{{brief_introduction}}" is-link />
|
||||||
<van-cell url="/Pages/yishi/attestation/index?card_name={{card_name}}&card_num_mask={{card_num_mask}}" link-type="navigateTo" title="实名认证"
|
<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 />
|
value="{{idcard_status==0?'未认证':idcard_status==1?'认证通过':'认证失败'}}" is-link />
|
||||||
<van-cell url="/Pages/yishi/practicing/index" link-type="navigateTo" title="医师认证"
|
<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 />
|
value="{{iden_auth_status==0?'未认证':iden_auth_status==1?'认证通过':iden_auth_status==2?'审核中':'认证失败'}}" is-link />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
|
|
||||||
|
|||||||
@ -44,3 +44,6 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.van-cell--required::before {
|
||||||
|
left: 4.7rem !important;
|
||||||
|
}
|
||||||
@ -79,7 +79,7 @@ Page({
|
|||||||
console.log(response);
|
console.log(response);
|
||||||
Toast.success("修改成功");
|
Toast.success("修改成功");
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: "/Pages/yishi/wenzhen/wenzhen"
|
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
||||||
})
|
})
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
<view class="switch_box_note">{{ note }}</view>
|
<view class="switch_box_note">{{ note }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="help">
|
<view class="help">
|
||||||
<van-cell url="/Pages/yishi/manual/index" custom-style="font-size:32rpx;" title="图文问诊操作手册" is-link border="{{false}}" />
|
<van-cell size="large" url="/Pages/yishi/manual/index" custom-style="font-size:32rpx;" title="图文问诊操作手册" is-link border="{{false}}" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
>
|
>
|
||||||
<t-tab-panel label="问诊" value="1">
|
<t-tab-panel label="问诊" value="1">
|
||||||
<view class="item_list">
|
<view class="item_list">
|
||||||
<van-cell custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{index + 1}}、{{item.words}}" wx:for="{{list_1}}" />
|
<van-cell size="large" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{index + 1}}、{{item.words}}" wx:for="{{list_1}}" />
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">
|
<view class="btn">
|
||||||
<van-button bind:click="showAdd" class="addbtn" custom-style="border-radius: 20rpx;margin: 0 auto;width: 92%;position: relative;top: 50%; transform: translateY(-50%);" type="primary" color="#3CC7C0" block>添加常用语</van-button>
|
<van-button bind:click="showAdd" class="addbtn" custom-style="border-radius: 20rpx;margin: 0 auto;width: 92%;position: relative;top: 50%; transform: translateY(-50%);" type="primary" color="#3CC7C0" block>添加常用语</van-button>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</t-tab-panel>
|
</t-tab-panel>
|
||||||
<t-tab-panel label="处方" value="2">
|
<t-tab-panel label="处方" value="2">
|
||||||
<view class="item_list">
|
<view class="item_list">
|
||||||
<van-cell custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{index+1}}、{{item.words}}" wx:for="{{list_2}}" />
|
<van-cell size="large" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{index+1}}、{{item.words}}" wx:for="{{list_2}}" />
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">
|
<view class="btn">
|
||||||
<van-button bind:click="showAdd" class="addbtn" custom-style="border-radius: 20rpx;margin: 0 auto;width: 92%;position: relative;top: 50%; transform: translateY(-50%);" type="primary" color="#3CC7C0" block>添加常用语</van-button>
|
<van-button bind:click="showAdd" class="addbtn" custom-style="border-radius: 20rpx;margin: 0 auto;width: 92%;position: relative;top: 50%; transform: translateY(-50%);" type="primary" color="#3CC7C0" block>添加常用语</van-button>
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||||
<view class="item_list">
|
<view class="item_list">
|
||||||
<van-cell custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="身体怎么样" />
|
<van-cell size="large" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="身体怎么样" />
|
||||||
<van-cell custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="按时吃药" />
|
<van-cell size="large" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="按时吃药" />
|
||||||
<van-cell custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="多运动" />
|
<van-cell size="large" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="多运动" />
|
||||||
</view>
|
</view>
|
||||||
<van-button color="#3CC7C0"
|
<van-button color="#3CC7C0"
|
||||||
custom-style="border-radius: 20rpx;font-size:30rpx;width:92vw;position:fixed;bottom:50rpx;left:50%; transform: translateX(-50%);"
|
custom-style="border-radius: 20rpx;font-size:30rpx;width:92vw;position:fixed;bottom:50rpx;left:50%; transform: translateX(-50%);"
|
||||||
|
|||||||
@ -2,6 +2,6 @@
|
|||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"t-image": "tdesign-miniprogram/image/image"
|
"van-image": "@vant/weapp/image/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6,7 +6,7 @@
|
|||||||
<view class="item_top">
|
<view class="item_top">
|
||||||
<view class="item_img">
|
<view class="item_img">
|
||||||
<text style="margin-left: 10rpx;">快速问诊</text>
|
<text style="margin-left: 10rpx;">快速问诊</text>
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item_date">2023-1-02 12:22</view>
|
<view class="item_date">2023-1-02 12:22</view>
|
||||||
</view>
|
</view>
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<view class="item_top">
|
<view class="item_top">
|
||||||
<view class="item_img">
|
<view class="item_img">
|
||||||
<text style="margin-left: 10rpx;">在线问诊</text>
|
<text style="margin-left: 10rpx;">在线问诊</text>
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/online.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/online.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item_date">2023-1-02 12:22</view>
|
<view class="item_date">2023-1-02 12:22</view>
|
||||||
</view>
|
</view>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
<view class="item_top">
|
<view class="item_top">
|
||||||
<view class="item_img">
|
<view class="item_img">
|
||||||
<text style="margin-left: 10rpx;">义诊</text>
|
<text style="margin-left: 10rpx;">义诊</text>
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/yizhen.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/yizhen.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item_date">2023-1-02 12:22</view>
|
<view class="item_date">2023-1-02 12:22</view>
|
||||||
</view>
|
</view>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
<view class="item_top">
|
<view class="item_top">
|
||||||
<view class="item_img">
|
<view class="item_img">
|
||||||
<text style="margin-left: 10rpx;">问诊购药</text>
|
<text style="margin-left: 10rpx;">问诊购药</text>
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/drug.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/drug.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item_date">2023-1-02 12:22</view>
|
<view class="item_date">2023-1-02 12:22</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -33,23 +33,30 @@ Page({
|
|||||||
canvas: canvas
|
canvas: canvas
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log("onReady onReady start")
|
||||||
|
console.log(ctx)
|
||||||
|
console.log(canvas)
|
||||||
|
console.log("onReady onReady end")
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
ontouchmove(e){
|
ontouchmove(e){
|
||||||
|
console.log("ontouchmove ontouchmove ontouchmove");
|
||||||
|
console.log(e);
|
||||||
this.data.ctx.lineWidth = 5;
|
this.data.ctx.lineWidth = 5;
|
||||||
this.data.ctx.lineCap="round";
|
this.data.ctx.lineCap="round";
|
||||||
this.data.ctx.lineJoin ="round";
|
this.data.ctx.lineJoin ="round";
|
||||||
this.data.ctx.lineTo(e.changedTouches[0].pageX,e.changedTouches[0].pageY);
|
this.data.ctx.lineTo(e.touches[0].x,e.touches[0].y);
|
||||||
this.data.ctx.stroke();
|
this.data.ctx.stroke();
|
||||||
},
|
},
|
||||||
ontouchstart(e){
|
ontouchstart(e){
|
||||||
|
console.log("ontouchstart ontouchstart ontouchstart")
|
||||||
this.setData({
|
this.setData({
|
||||||
txt_show: false
|
txt_show: false
|
||||||
});
|
});
|
||||||
console.log(this.data.ctx);
|
console.log(this.data.ctx);
|
||||||
this.data.ctx.beginPath();
|
this.data.ctx.beginPath();
|
||||||
this.data.ctx.moveTo(e.changedTouches[0].pageX,e.changedTouches[0].pageY);
|
this.data.ctx.moveTo(e.touches[0].x,e.touches[0].y);
|
||||||
},
|
},
|
||||||
|
|
||||||
toClear() {
|
toClear() {
|
||||||
|
|||||||
@ -2,6 +2,6 @@
|
|||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"t-image": "tdesign-miniprogram/image/image"
|
"van-image": "@vant/weapp/image/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5,19 +5,19 @@
|
|||||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||||
<view class="item_top">
|
<view class="item_top">
|
||||||
<view class="item_img">
|
<view class="item_img">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item_content">9月份的服务费结算通知</view>
|
<view class="item_content">9月份的服务费结算通知</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="hongdian">
|
<view class="hongdian">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/honhdian.png" mode="heightFix" height="20rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/honhdian.png" fit="heightFix" height="20rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||||
<view class="item_top">
|
<view class="item_top">
|
||||||
<view class="item_img">
|
<view class="item_img">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item_content">8月份的服务费结算通知</view>
|
<view class="item_content">8月份的服务费结算通知</view>
|
||||||
</view>
|
</view>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||||
<view class="item_top">
|
<view class="item_top">
|
||||||
<view class="item_img">
|
<view class="item_img">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item_content">7月份的服务费结算通知</view>
|
<view class="item_content">7月份的服务费结算通知</view>
|
||||||
</view>
|
</view>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||||
<view class="item_top">
|
<view class="item_top">
|
||||||
<view class="item_img">
|
<view class="item_img">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item_content">6月份的服务费结算通知</view>
|
<view class="item_content">6月份的服务费结算通知</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"wenzhen-data": "/commpents/wenzhen_data/index",
|
"wenzhen-data": "/commpents/wenzhen_data/index",
|
||||||
"t-image": "tdesign-miniprogram/image/image",
|
"van-image": "@vant/weapp/image/index",
|
||||||
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
||||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||||
"t-badge": "tdesign-miniprogram/badge/badge",
|
"t-badge": "tdesign-miniprogram/badge/badge",
|
||||||
|
|||||||
@ -4,21 +4,20 @@
|
|||||||
<view class="top">
|
<view class="top">
|
||||||
<view class="top_left" bindtap="go" data-url="/Pages/yishi/service_notice/index">
|
<view class="top_left" bindtap="go" data-url="/Pages/yishi/service_notice/index">
|
||||||
<t-badge dot offset="{{ [1, 1] }}" class="wrapper">
|
<t-badge dot offset="{{ [1, 1] }}" class="wrapper">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
|
||||||
</t-badge>
|
</t-badge>
|
||||||
|
|
||||||
服务通知
|
服务通知
|
||||||
</view>
|
</view>
|
||||||
<view class="top_right" bindtap="go" data-url="/Pages/yishi/system_notice/index">
|
<view class="top_right" bindtap="go" data-url="/Pages/yishi/system_notice/index">
|
||||||
<t-badge count="8" offset="{{ [1, 1] }}" class="wrapper">
|
<t-badge count="8" offset="{{ [1, 1] }}" class="wrapper">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
|
||||||
</t-badge>
|
</t-badge>
|
||||||
系统公告
|
系统公告
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="empty" wx:if="{{ !has_data }}" >
|
<view class="empty" wx:if="{{ !has_data }}" >
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wnzhen_empty.png" mode="heightFix" height="108rpx" aria-label="empty" />
|
<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>
|
</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>
|
||||||
|
|||||||
@ -17,11 +17,21 @@ Page({
|
|||||||
data_list_4: [],
|
data_list_4: [],
|
||||||
data_list_5: [],
|
data_list_5: [],
|
||||||
conversationList: [],
|
conversationList: [],
|
||||||
message_inquiry_type: 2,
|
message_inquiry_type: 1,
|
||||||
|
system_notice_unreadnnum: "",
|
||||||
|
service_notice_unreadnnum: ""
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
console.log("wenzhen onload");
|
console.log("wenzhen onload");
|
||||||
|
let userID = wx.getStorageSync('user_id');
|
||||||
|
setInterval(() => {
|
||||||
|
let system_notice_unreadnnum = wx.getStorageSync(userID+"_system_notice_unreadnnum");
|
||||||
|
let service_notice_unreadnnum = wx.getStorageSync(userID+"_service_notice_unreadnnum");
|
||||||
|
this.setData({
|
||||||
|
system_notice_unreadnnum: system_notice_unreadnnum,
|
||||||
|
service_notice_unreadnnum: service_notice_unreadnnum,
|
||||||
|
})
|
||||||
|
}, 500);
|
||||||
},
|
},
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
console.log("onShow from wenzhen V2")
|
console.log("onShow from wenzhen V2")
|
||||||
@ -45,22 +55,10 @@ Page({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
go(e){
|
go(e){
|
||||||
wx.navigateTo({
|
let url = e.currentTarget.dataset.url;
|
||||||
url: e.currentTarget.dataset.url,
|
let name = e.currentTarget.dataset.name;
|
||||||
events: {
|
wx.setStorageSync(name, 0);
|
||||||
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
|
app.go(url);
|
||||||
acceptDataFromOpenedPage: function(data) {
|
|
||||||
console.log(data)
|
|
||||||
},
|
|
||||||
someEvent: function(data) {
|
|
||||||
console.log(data)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
success: function(res) {
|
|
||||||
// 通过 eventChannel 向被打开页面传送数据
|
|
||||||
res.eventChannel.emit('acceptDataFromOpenerPage', { data: 'test' })
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
$onMessageReceived(value) {
|
$onMessageReceived(value) {
|
||||||
const message = value.data[0];
|
const message = value.data[0];
|
||||||
@ -157,10 +155,8 @@ Page({
|
|||||||
|
|
||||||
},
|
},
|
||||||
formatStatus(){
|
formatStatus(){
|
||||||
|
|
||||||
|
|
||||||
let order_inquiry_id_list = [];
|
let order_inquiry_id_list = [];
|
||||||
|
order_inquiry_id_list.push("a");//初始化一个,防止失败
|
||||||
this.data.conversationList.forEach(item => {
|
this.data.conversationList.forEach(item => {
|
||||||
let conversationID = item.conversationID;
|
let conversationID = item.conversationID;
|
||||||
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
|
if(conversationID == "C2Cadministrator") return;//如果是管理员消息直接跳过
|
||||||
@ -168,11 +164,16 @@ Page({
|
|||||||
if(!lastMessage) return;
|
if(!lastMessage) return;
|
||||||
let cloudCustomData = lastMessage.cloudCustomData;
|
let cloudCustomData = lastMessage.cloudCustomData;
|
||||||
if(!cloudCustomData) return;
|
if(!cloudCustomData) return;
|
||||||
let cloudCustomDataJson = JSON.parse(cloudCustomData);
|
let cloudCustomDataJson;
|
||||||
|
try {
|
||||||
|
cloudCustomDataJson = JSON.parse(cloudCustomData);
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
||||||
order_inquiry_id_list.push(order_inquiry_id);//准备去请求后端那订单状态
|
order_inquiry_id_list.push(order_inquiry_id);//准备去请求后端那订单状态
|
||||||
})
|
})
|
||||||
|
|
||||||
let conversationList = this.data.conversationList;
|
let conversationList = this.data.conversationList;
|
||||||
//获取医生问诊消息用户属性
|
//获取医生问诊消息用户属性
|
||||||
api.getDoctorInquiryMessageAttr({order_inquiry_ids: order_inquiry_id_list.join(",")}).then(response => {
|
api.getDoctorInquiryMessageAttr({order_inquiry_ids: order_inquiry_id_list.join(",")}).then(response => {
|
||||||
@ -185,14 +186,24 @@ Page({
|
|||||||
if(!lastMessage) return;
|
if(!lastMessage) return;
|
||||||
let cloudCustomData = lastMessage.cloudCustomData;
|
let cloudCustomData = lastMessage.cloudCustomData;
|
||||||
if(!cloudCustomData) return;
|
if(!cloudCustomData) return;
|
||||||
let cloudCustomDataJson = JSON.parse(item.lastMessage.cloudCustomData);
|
let cloudCustomDataJson;
|
||||||
|
try {
|
||||||
|
cloudCustomDataJson = JSON.parse(item.lastMessage.cloudCustomData);
|
||||||
|
} catch (error) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
||||||
let order = response.data.find(attr_item => {
|
let order = response.data.find(attr_item => {
|
||||||
return attr_item.order_inquiry_id == order_inquiry_id;
|
return attr_item.order_inquiry_id == order_inquiry_id;
|
||||||
})
|
})
|
||||||
if(!order) return;
|
if(!order) return;
|
||||||
|
|
||||||
item.inquiry_status = order.inquiry_status;
|
let inquiry_status = order.inquiry_status;
|
||||||
|
//inquiry_status 状态
|
||||||
|
if(inquiry_status !=3 && inquiry_status != 4){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
item.inquiry_status = inquiry_status;
|
||||||
item.patient_age = order.patient_age;
|
item.patient_age = order.patient_age;
|
||||||
item.patient_name = order.patient_name;
|
item.patient_name = order.patient_name;
|
||||||
item.patient_sex = order.patient_sex;
|
item.patient_sex = order.patient_sex;
|
||||||
@ -234,6 +245,7 @@ Page({
|
|||||||
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
let order_inquiry_id = cloudCustomDataJson.order_inquiry_id;
|
||||||
if(!order_inquiry_id) return;
|
if(!order_inquiry_id) return;
|
||||||
let inquiry_type = cloudCustomDataJson.inquiry_type;
|
let inquiry_type = cloudCustomDataJson.inquiry_type;
|
||||||
|
if(!inquiry_type) return;
|
||||||
let session_item = {};
|
let session_item = {};
|
||||||
session_item.inquiry_status = item.inquiry_status;//订单状态暂无
|
session_item.inquiry_status = item.inquiry_status;//订单状态暂无
|
||||||
let txt = {};
|
let txt = {};
|
||||||
@ -242,6 +254,7 @@ Page({
|
|||||||
session_item.message_send_time = getTimeAgo(lastMessage.lastTime);
|
session_item.message_send_time = getTimeAgo(lastMessage.lastTime);
|
||||||
session_item.message_type = type;
|
session_item.message_type = type;
|
||||||
session_item.order_inquiry_id = order_inquiry_id;
|
session_item.order_inquiry_id = order_inquiry_id;
|
||||||
|
session_item.inquiry_type = inquiry_type;
|
||||||
session_item.patient_age = item.patient_age;//暂无
|
session_item.patient_age = item.patient_age;//暂无
|
||||||
session_item.patient_name = userProfile.nick;
|
session_item.patient_name = userProfile.nick;
|
||||||
session_item.from_account = userProfile.userID;
|
session_item.from_account = userProfile.userID;
|
||||||
|
|||||||
@ -3,11 +3,11 @@
|
|||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"te-nav-bar": "/commpents/te_navbar",
|
"te-nav-bar": "/commpents/te_navbar",
|
||||||
"wenzhen-data": "/commpents/wenzhen_data/index",
|
"wenzhen-data": "/commpents/wenzhen_data/index",
|
||||||
"t-image": "tdesign-miniprogram/image/image",
|
|
||||||
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
||||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||||
"t-badge": "tdesign-miniprogram/badge/badge",
|
"t-badge": "tdesign-miniprogram/badge/badge",
|
||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"van-empty": "@vant/weapp/empty/index"
|
"van-empty": "@vant/weapp/empty/index",
|
||||||
|
"van-image": "@vant/weapp/image/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,23 +2,26 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<view class="top_left" bindtap="go" data-url="/Pages/yishi/service_notice/index">
|
<view class="top_left" bindtap="go" data-name="service_notice_unreadnnum" data-url="/Pages/yishi/service_notice/index">
|
||||||
<t-badge dot offset="{{ [1, 1] }}" class="wrapper">
|
<t-badge dot="{{service_notice_unreadnnum > 0}}" offset="{{ [1, 1] }}" class="wrapper">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
|
||||||
</t-badge>
|
</t-badge>
|
||||||
|
|
||||||
服务通知
|
服务通知
|
||||||
</view>
|
</view>
|
||||||
<view class="top_right" bindtap="go" data-url="/Pages/yishi/system_notice/index">
|
<view class="top_right" bindtap="go" data-name="system_notice_unreadnnum" data-url="/Pages/yishi/system_notice/index">
|
||||||
<t-badge count="8" offset="{{ [1, 1] }}" class="wrapper">
|
<t-badge offset="{{ [1, 1] }}" class="wrapper" wx:if="{{system_notice_unreadnnum == ''}}">
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
|
||||||
|
</t-badge>
|
||||||
|
|
||||||
|
<t-badge count="{{system_notice_unreadnnum}}" offset="{{ [1, 1] }}" class="wrapper" wx:else>
|
||||||
|
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
|
||||||
</t-badge>
|
</t-badge>
|
||||||
系统公告
|
系统公告
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="empty" wx:if="{{ !has_data }}" >
|
<view class="empty" wx:if="{{ !has_data }}" >
|
||||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wnzhen_empty.png" mode="heightFix" height="108rpx" aria-label="empty" />
|
<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>
|
</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>
|
||||||
@ -34,25 +37,7 @@
|
|||||||
custom-style="font-size: 32rpx"
|
custom-style="font-size: 32rpx"
|
||||||
|
|
||||||
>
|
>
|
||||||
<t-tab-panel label="快速问诊" value="1">
|
<t-tab-panel label="在线问诊" value="1">
|
||||||
<wenzhen-data
|
|
||||||
name="李四"
|
|
||||||
sex="女"
|
|
||||||
age="19"
|
|
||||||
desc="VVVVVVVV"
|
|
||||||
status="0"
|
|
||||||
status_text="待接诊"
|
|
||||||
note="xxx"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<wenzhen-data
|
|
||||||
name="李放四"
|
|
||||||
sex="女"
|
|
||||||
age="199"
|
|
||||||
desc="VVVVVVVV"
|
|
||||||
status="1"
|
|
||||||
status_text="接诊中"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<wenzhen-data
|
<wenzhen-data
|
||||||
name="{{ item.patient_name }}"
|
name="{{ item.patient_name }}"
|
||||||
@ -61,6 +46,9 @@
|
|||||||
date="{{ item.message_send_time }}"
|
date="{{ item.message_send_time }}"
|
||||||
desc="{{ item.last_message_content.Text }}"
|
desc="{{ item.last_message_content.Text }}"
|
||||||
status="{{ item.inquiry_status }}"
|
status="{{ item.inquiry_status }}"
|
||||||
|
order_inquiry_id="{{ item.order_inquiry_id }}"
|
||||||
|
inquiry_type="{{item.inquiry_type}}"
|
||||||
|
from_account="{{item.from_account}}"
|
||||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||||
message_dot="{{item.message_dot}}"
|
message_dot="{{item.message_dot}}"
|
||||||
@ -70,7 +58,7 @@
|
|||||||
<van-empty description="暂无数据" wx:if="{{data_list_1.length == 0}}" />
|
<van-empty description="暂无数据" wx:if="{{data_list_1.length == 0}}" />
|
||||||
</t-tab-panel>
|
</t-tab-panel>
|
||||||
|
|
||||||
<t-tab-panel label="问诊购药" value="2">
|
<t-tab-panel label="快速问诊" value="2">
|
||||||
<!-- 1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消 -->
|
<!-- 1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消 -->
|
||||||
<wenzhen-data
|
<wenzhen-data
|
||||||
name="{{ item.patient_name }}"
|
name="{{ item.patient_name }}"
|
||||||
@ -80,6 +68,8 @@
|
|||||||
desc="{{ item.last_message_content.Text }}"
|
desc="{{ item.last_message_content.Text }}"
|
||||||
status="{{ item.inquiry_status }}"
|
status="{{ item.inquiry_status }}"
|
||||||
order_inquiry_id="{{ item.order_inquiry_id }}"
|
order_inquiry_id="{{ item.order_inquiry_id }}"
|
||||||
|
inquiry_type="{{item.inquiry_type}}"
|
||||||
|
from_account="{{item.from_account}}"
|
||||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||||
message_dot="{{item.message_dot}}"
|
message_dot="{{item.message_dot}}"
|
||||||
@ -90,7 +80,7 @@
|
|||||||
<van-empty description="暂无数据" wx:if="{{data_list_2.length == 0}}" />
|
<van-empty description="暂无数据" wx:if="{{data_list_2.length == 0}}" />
|
||||||
|
|
||||||
</t-tab-panel>
|
</t-tab-panel>
|
||||||
<t-tab-panel label="在线问诊" value="3">
|
<t-tab-panel label="公益问诊" value="3">
|
||||||
<!-- <wenzhen-data
|
<!-- <wenzhen-data
|
||||||
name="王五"
|
name="王五"
|
||||||
sex="女"
|
sex="女"
|
||||||
@ -108,6 +98,9 @@
|
|||||||
date="{{ item.message_send_time }}"
|
date="{{ item.message_send_time }}"
|
||||||
desc="{{ item.last_message_content.Text }}"
|
desc="{{ item.last_message_content.Text }}"
|
||||||
status="{{ item.inquiry_status }}"
|
status="{{ item.inquiry_status }}"
|
||||||
|
order_inquiry_id="{{ item.order_inquiry_id }}"
|
||||||
|
inquiry_type="{{item.inquiry_type}}"
|
||||||
|
from_account="{{item.from_account}}"
|
||||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||||
message_dot="{{item.message_dot}}"
|
message_dot="{{item.message_dot}}"
|
||||||
@ -117,16 +110,7 @@
|
|||||||
<van-empty description="暂无数据" wx:if="{{data_list_3.length == 0}}" />
|
<van-empty description="暂无数据" wx:if="{{data_list_3.length == 0}}" />
|
||||||
|
|
||||||
</t-tab-panel>
|
</t-tab-panel>
|
||||||
<t-tab-panel label="公益问诊" value="4">
|
<t-tab-panel label="问诊购药" value="4">
|
||||||
<wenzhen-data
|
|
||||||
name="赵柳"
|
|
||||||
sex="女"
|
|
||||||
age="19"
|
|
||||||
desc="VVVVVVVV"
|
|
||||||
status="0"
|
|
||||||
status_text="待接诊"
|
|
||||||
note="xxx"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<wenzhen-data
|
<wenzhen-data
|
||||||
name="{{ item.patient_name }}"
|
name="{{ item.patient_name }}"
|
||||||
@ -135,6 +119,9 @@
|
|||||||
date="{{ item.message_send_time }}"
|
date="{{ item.message_send_time }}"
|
||||||
desc="{{ item.last_message_content.Text }}"
|
desc="{{ item.last_message_content.Text }}"
|
||||||
status="{{ item.inquiry_status }}"
|
status="{{ item.inquiry_status }}"
|
||||||
|
order_inquiry_id="{{ item.order_inquiry_id }}"
|
||||||
|
inquiry_type="{{item.inquiry_type}}"
|
||||||
|
from_account="{{item.from_account}}"
|
||||||
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
status_text="{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'已接诊':item.inquiry_status==5?'已完成':item.inquiry_status==6?'已结束':item.inquiry_status==7?'已取消':'其他' }}"
|
||||||
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
note="{{ item.inquiry_status==3?'不接诊24小时后自动取消':'' }}"
|
||||||
message_dot="{{item.message_dot}}"
|
message_dot="{{item.message_dot}}"
|
||||||
@ -144,15 +131,6 @@
|
|||||||
<van-empty description="暂无数据" wx:if="{{data_list_4.length == 0}}" />
|
<van-empty description="暂无数据" wx:if="{{data_list_4.length == 0}}" />
|
||||||
</t-tab-panel>
|
</t-tab-panel>
|
||||||
<t-tab-panel label="问诊结束" value="5">
|
<t-tab-panel label="问诊结束" value="5">
|
||||||
<wenzhen-data
|
|
||||||
name="谢广坤"
|
|
||||||
sex="女"
|
|
||||||
age="199"
|
|
||||||
desc="VVVVVVVV"
|
|
||||||
status="2"
|
|
||||||
status_class="status_end"
|
|
||||||
status_text="快速问诊"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<wenzhen-data
|
<wenzhen-data
|
||||||
name="{{ item.patient_name }}"
|
name="{{ item.patient_name }}"
|
||||||
|
|||||||
@ -105,13 +105,9 @@ Page({
|
|||||||
console.log(response);
|
console.log(response);
|
||||||
Toast.success("修改成功");
|
Toast.success("修改成功");
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: "/Pages/yishi/wenzhen/wenzhen"
|
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
||||||
})
|
})
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onStepperChange(event) {
|
onStepperChange(event) {
|
||||||
console.log(event.detail);
|
console.log(event.detail);
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
<view class="switch_box_note">{{ note }}</view>
|
<view class="switch_box_note">{{ note }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="help">
|
<view class="help">
|
||||||
<van-cell url="/Pages/yishi/manual/index" custom-style="font-size:32rpx;" title="图文问诊操作手册" is-link border="{{false}}" />
|
<van-cell size="large" url="/Pages/yishi/manual/index" custom-style="font-size:32rpx;" title="图文问诊操作手册" is-link border="{{false}}" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -30,7 +30,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="price_steup_box_bottom">
|
<view class="price_steup_box_bottom">
|
||||||
<van-cell custom-style="font-size:32rpx;border-radius: 20rpx;"
|
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
||||||
title="问诊单价(元)" is-link
|
title="问诊单价(元)" is-link
|
||||||
border="{{false}}"
|
border="{{false}}"
|
||||||
value="{{ amountText }}"
|
value="{{ amountText }}"
|
||||||
|
|||||||
@ -11,7 +11,11 @@ Page({
|
|||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
id_card_front: [],
|
id_card_front: [],
|
||||||
id_card_back: [],
|
id_card_back: [],
|
||||||
sign_image: ""
|
sign_image: "",
|
||||||
|
btn_txt: "提交",
|
||||||
|
multi_point_status: "",
|
||||||
|
btn_disabled: true
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(){
|
onLoad(){
|
||||||
@ -20,6 +24,29 @@ Page({
|
|||||||
//获得多点执业信息
|
//获得多点执业信息
|
||||||
api.getDoctorAuthMulti().then(response => {
|
api.getDoctorAuthMulti().then(response => {
|
||||||
console.log("getDoctorAuthMulti: ",response);
|
console.log("getDoctorAuthMulti: ",response);
|
||||||
|
let multi_point_status = Number(response.data.multi_point_status);
|
||||||
|
let btn_txt = this.data.btn_txt;
|
||||||
|
let btn_disabled = this.data.btn_disabled;
|
||||||
|
switch (multi_point_status) {
|
||||||
|
case 0:
|
||||||
|
btn_txt = "提交";
|
||||||
|
btn_disabled = false;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
btn_txt = "审核通过";
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
btn_txt = "审核中";
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
btn_txt = "认证失败,再次提交";
|
||||||
|
btn_disabled = false;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
btn_txt = "提交";
|
||||||
|
btn_disabled = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
if(response.data.id_card_front){
|
if(response.data.id_card_front){
|
||||||
let id_card_front_img = {};
|
let id_card_front_img = {};
|
||||||
id_card_front_img.url = response.data.id_card_front;
|
id_card_front_img.url = response.data.id_card_front;
|
||||||
@ -44,8 +71,9 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
id_card_front: this.data.id_card_front,
|
id_card_front: this.data.id_card_front,
|
||||||
id_card_back: this.data.id_card_back,
|
id_card_back: this.data.id_card_back,
|
||||||
|
btn_disabled: btn_disabled,
|
||||||
|
btn_txt: btn_txt
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
}).catch(errors => {
|
}).catch(errors => {
|
||||||
console.error(errors);
|
console.error(errors);
|
||||||
@ -187,6 +215,13 @@ Page({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
doDeleteFile(event){
|
doDeleteFile(event){
|
||||||
|
if(this.data.btn_disabled){
|
||||||
|
wx.showToast({
|
||||||
|
title: '不能修改',
|
||||||
|
icon: "error"
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
console.log(event);
|
console.log(event);
|
||||||
let url = event.detail.file.url;
|
let url = event.detail.file.url;
|
||||||
let file_name = event.currentTarget.dataset.field_name;
|
let file_name = event.currentTarget.dataset.field_name;
|
||||||
@ -200,5 +235,16 @@ Page({
|
|||||||
},
|
},
|
||||||
onshowIdCardBackNote(){
|
onshowIdCardBackNote(){
|
||||||
console.log("onshowIdCardBackNote");
|
console.log("onshowIdCardBackNote");
|
||||||
|
},
|
||||||
|
go(e){
|
||||||
|
// if(this.data.btn_disabled){
|
||||||
|
// wx.showToast({
|
||||||
|
// title: '不能修改',
|
||||||
|
// icon: "error"
|
||||||
|
// })
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
let url = e.currentTarget.dataset.url;
|
||||||
|
app.go(url)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1,37 +1,37 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||||
<m-upload-cell
|
<m-upload-cell
|
||||||
upload_cell_name="上传身份证正面照片"
|
upload_cell_name="上传身份证正面照片"
|
||||||
t_icon_name="view-module"
|
t_icon_name="view-module"
|
||||||
bind:showNote="onshowIdCardFrontNote"
|
bind:showNote="onshowIdCardFrontNote"
|
||||||
upload_cell_desc=""
|
upload_cell_desc=""
|
||||||
upload_cell_note="查看示例"
|
upload_cell_note="查看示例"
|
||||||
fileList="{{ id_card_front }}"
|
fileList="{{ id_card_front }}"
|
||||||
max_count="1"
|
max_count="1"
|
||||||
data-scene="2"
|
data-scene="2"
|
||||||
data-field_name="id_card_front"
|
data-field_name="id_card_front"
|
||||||
data-file_multiple="true"
|
data-file_multiple="true"
|
||||||
bindUploadFile="doUploadFile"
|
bindUploadFile="doUploadFile"
|
||||||
bindDeleteFile="doDeleteFile"
|
bindDeleteFile="doDeleteFile"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<m-upload-cell
|
<m-upload-cell
|
||||||
upload_cell_name="上传身份证反面照片"
|
upload_cell_name="上传身份证反面照片"
|
||||||
t_icon_name="view-module"
|
t_icon_name="view-module"
|
||||||
bind:showNote="onshowIdCardBackNote"
|
bind:showNote="onshowIdCardBackNote"
|
||||||
upload_cell_desc=""
|
upload_cell_desc=""
|
||||||
upload_cell_note="查看示例"
|
upload_cell_note="查看示例"
|
||||||
fileList="{{ id_card_back }}"
|
fileList="{{ id_card_back }}"
|
||||||
max_count="1"
|
max_count="1"
|
||||||
data-scene="2"
|
data-scene="2"
|
||||||
data-field_name="id_card_back"
|
data-field_name="id_card_back"
|
||||||
data-file_multiple="true"
|
data-file_multiple="true"
|
||||||
bindUploadFile="doUploadFile"
|
bindUploadFile="doUploadFile"
|
||||||
bindDeleteFile="doDeleteFile"
|
bindDeleteFile="doDeleteFile"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<van-cell-group border="{{ false }}">
|
<van-cell-group border="{{ false }}">
|
||||||
<van-cell
|
<van-cell size="large"
|
||||||
url="/Pages/yishi/manual/index"
|
url="/Pages/yishi/manual/index"
|
||||||
title="多点执业认证流程"
|
title="多点执业认证流程"
|
||||||
border="{{ false }}"
|
border="{{ false }}"
|
||||||
@ -44,20 +44,17 @@
|
|||||||
|
|
||||||
<view class="sign_box">
|
<view class="sign_box">
|
||||||
<view class="sign_title">医生手写签名 *</view>
|
<view class="sign_title">医生手写签名 *</view>
|
||||||
<view class="sign" wx:if="{{sign_image == ''}}">
|
<view class="sign" wx:if="{{sign_image == ''}}" data-url="/Pages/yishi/signcanvas/index" bindtap="go">
|
||||||
<navigator url="/Pages/yishi/signcanvas/index" open-type="navigate" hover-class="other-navigator-hover">
|
<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>
|
||||||
<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>
|
||||||
</navigator>
|
<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>
|
</view>
|
||||||
<navigator url="/Pages/yishi/signcanvas/index" open-type="navigate" hover-class="other-navigator-hover">
|
|
||||||
<view class="sign_img" wx:if="{{sign_image != ''}}">
|
|
||||||
<image mode="heightFix" style="transform: rotate(-90deg);width: 100%;" src="{{sign_image}}"></image>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<view class="sign_note">提示:平台会在1~3天内审核您提交的资料,审核结果会第一时间通知您。</view>
|
<view class="sign_note">提示:平台会在1~3天内审核您提交的资料,审核结果会第一时间通知您。</view>
|
||||||
|
|
||||||
<!-- <van-button custom-style="font-size:30rpx; color:#fff; border-radius: 20rpx; background-color: #999" block>资料未填写完</van-button> -->
|
<!-- <van-button custom-style="font-size:30rpx; color:#fff; border-radius: 20rpx; background-color: #999" block>资料未填写完</van-button> -->
|
||||||
<van-button bind:click="add" custom-style="font-size:30rpx; color:#fff; border-radius: 20rpx; background-color: #3CC7C0" block>提交</van-button>
|
<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>
|
||||||
<view style="height: 50rpx;">
|
<view style="height: 50rpx;">
|
||||||
|
|
||||||
|
|||||||
@ -20,6 +20,10 @@ Component({
|
|||||||
type: String,
|
type: String,
|
||||||
value: {},
|
value: {},
|
||||||
},
|
},
|
||||||
|
inquiry_type: {
|
||||||
|
type: String,
|
||||||
|
value: {},
|
||||||
|
},
|
||||||
hasCallKit: {
|
hasCallKit: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: false,
|
value: false,
|
||||||
@ -493,8 +497,8 @@ Component({
|
|||||||
text,
|
text,
|
||||||
},
|
},
|
||||||
cloudCustomData: JSON.stringify({
|
cloudCustomData: JSON.stringify({
|
||||||
order_inquiry_id: "AA",
|
order_inquiry_id: this.data.order_inquiry_id,
|
||||||
inquiry_type: "BB",
|
inquiry_type: this.data.inquiry_type,
|
||||||
message_type: 0,
|
message_type: 0,
|
||||||
is_system: 0
|
is_system: 0
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -147,8 +147,19 @@ Component({
|
|||||||
nextReqMessageID: this.data.nextReqMessageID,
|
nextReqMessageID: this.data.nextReqMessageID,
|
||||||
count: 15,
|
count: 15,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.showMoreHistoryMessageTime(res.data.messageList);
|
let HMM_data = res.data;//HMM
|
||||||
const { messageList } = res.data; // 消息列表。
|
let HMM_messageList_del = [];
|
||||||
|
console.log("HMM getMessageList: ", HMM_data);
|
||||||
|
let HMM_messageList = HMM_data.messageList;
|
||||||
|
HMM_messageList.forEach(item => {
|
||||||
|
let HMM_type = item.type;
|
||||||
|
if(HMM_type == "TIMCustomElem") return;
|
||||||
|
HMM_messageList_del.push(item);
|
||||||
|
})
|
||||||
|
HMM_data.messageList = HMM_messageList_del;
|
||||||
|
|
||||||
|
this.showMoreHistoryMessageTime(HMM_messageList_del);
|
||||||
|
const { messageList } = HMM_data; // 消息列表。
|
||||||
this.data.nextReqMessageID = res.data.nextReqMessageID; // 用于续拉,分页续拉时需传入该字段。
|
this.data.nextReqMessageID = res.data.nextReqMessageID; // 用于续拉,分页续拉时需传入该字段。
|
||||||
this.data.isCompleted = res.data.isCompleted; // 表示是否已经拉完所有消息。
|
this.data.isCompleted = res.data.isCompleted; // 表示是否已经拉完所有消息。
|
||||||
this.data.messageList = [...messageList, ...this.data.messageList];
|
this.data.messageList = [...messageList, ...this.data.messageList];
|
||||||
|
|||||||
@ -35,6 +35,10 @@ Component({
|
|||||||
type: String,
|
type: String,
|
||||||
value: ''
|
value: ''
|
||||||
},
|
},
|
||||||
|
inquiry_type: {
|
||||||
|
type: String,
|
||||||
|
value: ''
|
||||||
|
},
|
||||||
unreadCount: {
|
unreadCount: {
|
||||||
type: Number,
|
type: Number,
|
||||||
value: '',
|
value: '',
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<image class="tui-navigatorbar-back" bindtap="goBack" src="../../static/assets/ic_back_white.svg" />
|
<image class="tui-navigatorbar-back" bindtap="goBack" src="../../static/assets/ic_back_white.svg" />
|
||||||
<view class="conversation-title">{{conversationName}}</view>
|
<view class="conversation-title">{{conversationName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="list-box {{ showTips && 'list-box-notips'}} || {{ showGroupTips && 'list-box-group'}} || {{ showAll && 'list-box-group-notips'}} ">
|
<view class="list-box {{ showTips && 'list-box-notips'}} || {{ showGroupTips && 'list-box-group'}} || {{ showAll && 'list-box-group-notips'}} ">
|
||||||
<view wx:if="{{showTips}}" class="safetytips-box">
|
<view wx:if="{{showTips}}" class="safetytips-box">
|
||||||
<!-- <view class="safetytips">
|
<!-- <view class="safetytips">
|
||||||
<text>【安全提示】本 APP 仅用于体验腾讯云即时通信 IM 产品功能,不可用于业务洽谈与拓展。请勿轻信汇款、中奖等涉及钱款等信息,勿轻易拨打陌生电话,谨防上当受骗。</text>
|
<text>【安全提示】本 APP 仅用于体验腾讯云即时通信 IM 产品功能,不可用于业务洽谈与拓展。请勿轻信汇款、中奖等涉及钱款等信息,勿轻易拨打陌生电话,谨防上当受骗。</text>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="input-area">
|
<view class="input-area">
|
||||||
<view class="message-input" style="{{viewData.style}}" wx:if="{{showChat}}">
|
<view class="message-input" style="{{viewData.style}}" wx:if="{{showChat}}">
|
||||||
<MessageInput id="MessageInput" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" hasCallKit="{{hasCallKit}}" bind:sendMessage="sendMessage" bind:downKeysBoards="downKeysBoards" bind:pullKeysBoards="pullKeysBoards" bind:showMessageErrorImage="showMessageErrorImage"
|
<MessageInput id="MessageInput" inquiry_type="{{inquiry_type}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" hasCallKit="{{hasCallKit}}" bind:sendMessage="sendMessage" bind:downKeysBoards="downKeysBoards" bind:pullKeysBoards="pullKeysBoards" bind:showMessageErrorImage="showMessageErrorImage"
|
||||||
bind:handleCall="handleCall" ></MessageInput>
|
bind:handleCall="handleCall" ></MessageInput>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
100
app.js
100
app.js
@ -2,6 +2,8 @@ import Aegis from './TUIKit/lib/aegis';
|
|||||||
import TIM from './TUIKit/lib/tim-wx-sdk';
|
import TIM from './TUIKit/lib/tim-wx-sdk';
|
||||||
import { genTestUserSig } from './TUIKit/debug/GenerateTestUserSig';
|
import { genTestUserSig } from './TUIKit/debug/GenerateTestUserSig';
|
||||||
import TIMUploadPlugin from './TUIKit/lib/tim-upload-plugin';
|
import TIMUploadPlugin from './TUIKit/lib/tim-upload-plugin';
|
||||||
|
import { API } from './utils/network/api'
|
||||||
|
const api = new API()
|
||||||
App({
|
App({
|
||||||
onLaunch: function (options) {
|
onLaunch: function (options) {
|
||||||
// 判断是否由分享进入小程序
|
// 判断是否由分享进入小程序
|
||||||
@ -44,58 +46,92 @@ App({
|
|||||||
this.aegisInit()
|
this.aegisInit()
|
||||||
console.warn("app.js wx.aegis: ", wx.aegis);
|
console.warn("app.js wx.aegis: ", wx.aegis);
|
||||||
|
|
||||||
//初始化tab-bar角标
|
|
||||||
let index_info = wx.getStorageSync('index_info');
|
|
||||||
let wenzhen_info = wx.getStorageSync('wenzhen_info');
|
|
||||||
let my_info = wx.getStorageSync('my_info');
|
|
||||||
if(!index_info) wx.setStorageSync('index_info',"");
|
|
||||||
if(!wenzhen_info) wx.setStorageSync('wenzhen_info', "");
|
|
||||||
if(!my_info) wx.setStorageSync('my_info', "");
|
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
this.imInit(this.onSDKReady, this);
|
this.imInit();
|
||||||
},
|
},
|
||||||
imInit(onSDKReady, obj){
|
imInit(){
|
||||||
|
|
||||||
|
let userID = wx.getStorageSync('user_id');
|
||||||
|
if(userID == ""){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.globalData.config.userID = userID;
|
||||||
let sign = genTestUserSig(this.globalData.config);
|
let sign = genTestUserSig(this.globalData.config);
|
||||||
console.log("sign: ", sign);
|
console.log("sign: ", sign);
|
||||||
const userSig = sign.userSig;
|
// const userSig = sign.userSig;
|
||||||
console.log("userSig: ", userSig);
|
|
||||||
wx.$TUIKit = TIM.create({
|
//获取im签名数据
|
||||||
SDKAppID: this.globalData.config.SDKAPPID
|
api.getSignIM().then(response => {
|
||||||
});
|
return response.data;
|
||||||
|
}).then((userSig) => {
|
||||||
|
console.log("userSig: ", userSig);
|
||||||
|
wx.$TUIKit = TIM.create({
|
||||||
|
SDKAppID: this.globalData.config.SDKAPPID
|
||||||
|
});
|
||||||
|
|
||||||
|
wx.$chat_userID = this.globalData.config.userID;
|
||||||
|
wx.$chat_SDKAppID = this.globalData.config.SDKAPPID;
|
||||||
|
wx.$chat_userSig = userSig;
|
||||||
|
wx.$TUIKitTIM = TIM;
|
||||||
|
wx.$TUIKit.registerPlugin({ 'tim-upload-plugin': TIMUploadPlugin });
|
||||||
|
let login_promise = wx.$TUIKit.login({
|
||||||
|
userID: this.globalData.config.userID,
|
||||||
|
userSig
|
||||||
|
});
|
||||||
|
|
||||||
|
login_promise.then(function(imResponse) {
|
||||||
|
console.log(imResponse.data); // 登录成功
|
||||||
|
|
||||||
|
}).catch(function(imError) {
|
||||||
|
console.warn('login error:', imError); // 登录失败的相关信息
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
wx.$TUIKit.setLogLevel(3);//设置日志级别
|
||||||
|
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady, this);
|
||||||
|
}).then(()=>{
|
||||||
|
//初始化tab-bar角标
|
||||||
|
let index_info = wx.getStorageSync(userID+'_index_info');
|
||||||
|
let wenzhen_info = wx.getStorageSync(userID+'_wenzhen_info');
|
||||||
|
let my_info = wx.getStorageSync(userID+'_my_info');
|
||||||
|
if(!index_info) wx.setStorageSync(userID+'_index_info',"");
|
||||||
|
if(!wenzhen_info) wx.setStorageSync(userID+'_wenzhen_info', "");
|
||||||
|
if(!my_info) wx.setStorageSync(userID+'_my_info', "");
|
||||||
|
}).catch(errors => {console.error(errors);})
|
||||||
|
|
||||||
|
|
||||||
wx.$chat_SDKAppID = this.globalData.config.SDKAPPID;
|
|
||||||
wx.$chat_userID = this.globalData.config.userID;
|
|
||||||
wx.$chat_userSig = userSig;
|
|
||||||
wx.$TUIKitTIM = TIM;
|
|
||||||
wx.$TUIKit.registerPlugin({ 'tim-upload-plugin': TIMUploadPlugin });
|
|
||||||
wx.$TUIKit.login({
|
|
||||||
userID: this.globalData.config.userID,
|
|
||||||
userSig
|
|
||||||
});
|
|
||||||
wx.$TUIKit.setLogLevel(3);//设置日志级别
|
|
||||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, onSDKReady, obj);
|
|
||||||
},
|
},
|
||||||
onSDKReady(){
|
onSDKReady(){
|
||||||
console.log("onSDKReady from app.js");
|
console.log("onSDKReady from app.js");
|
||||||
this.globalData.chat_sdk_ready = true;
|
this.globalData.chat_sdk_ready = true;
|
||||||
|
|
||||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onSystemPushReceived, this);
|
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onSystemPushReceived, this);
|
||||||
},
|
},
|
||||||
$onSystemPushReceived(e){
|
$onSystemPushReceived(e){
|
||||||
console.log("onSystemPushReceived from app.js");
|
console.log("onSystemPushReceived from app.js");
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
let userID = wx.getStorageSync('user_id');
|
||||||
let message = e.data[0];
|
let message = e.data[0];
|
||||||
console.log(message)
|
console.log(message)
|
||||||
|
|
||||||
let type = message.type;
|
let type = message.type;
|
||||||
console.log(type);
|
console.log(type);
|
||||||
|
let unread_name = "";
|
||||||
|
if(type == TIM.TYPES.MSG_CUSTOM){
|
||||||
this.formatTabBarNum("wenzhen_info");
|
let payload = message.payload;
|
||||||
|
let payloadData = payload.data;
|
||||||
|
let payloadDataJson = JSON.parse(payloadData);
|
||||||
|
let message_type = payloadDataJson.message_type;
|
||||||
|
if(message_type == 3) unread_name = userID+"_system_notice_unreadnnum"; //医生端系统通知
|
||||||
|
if(message_type == 4) unread_name = userID+"_service_notice_unreadnnum"; //医生端服务通知
|
||||||
|
}else{
|
||||||
|
unread_name = userID+"_wenzhen_info";//tabbar 问诊角标
|
||||||
|
}
|
||||||
|
this.formatUnReadNum(unread_name);
|
||||||
},
|
},
|
||||||
formatTabBarNum(name){
|
formatUnReadNum(name){
|
||||||
let val = wx.getStorageSync(name);
|
let val = wx.getStorageSync(name);
|
||||||
if(val == "") val = 0;
|
if(val == "") val = 0;
|
||||||
if(val == "+99") val = 100;
|
if(val == "+99") val = 100;
|
||||||
@ -117,7 +153,7 @@ App({
|
|||||||
login_url: "/Pages/login/index",
|
login_url: "/Pages/login/index",
|
||||||
chat_sdk_ready: false,
|
chat_sdk_ready: false,
|
||||||
config: {
|
config: {
|
||||||
userID: "123456", //User ID
|
userID: "",
|
||||||
SDKAPPID: 1400796919, // Your SDKAppID
|
SDKAPPID: 1400796919, // Your SDKAppID
|
||||||
SECRETKEY: "a5bcd8c583181cf004e9d91a47687d719d4b5d2a10ce33fbee95d587889447d8", // Your secretKey
|
SECRETKEY: "a5bcd8c583181cf004e9d91a47687d719d4b5d2a10ce33fbee95d587889447d8", // Your secretKey
|
||||||
EXPIRETIME: 604800,
|
EXPIRETIME: 604800,
|
||||||
|
|||||||
3
app.json
3
app.json
@ -49,7 +49,8 @@
|
|||||||
"Pages/mobile_login/index",
|
"Pages/mobile_login/index",
|
||||||
"Pages/yishi/manual_detail/index",
|
"Pages/yishi/manual_detail/index",
|
||||||
"Pages/yishi/addzhenduan/index",
|
"Pages/yishi/addzhenduan/index",
|
||||||
"Pages/yishi/wenzhen_v2/wenzhen"
|
"Pages/yishi/wenzhen_v2/wenzhen",
|
||||||
|
"Pages/webpage/index"
|
||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 170rpx;
|
height: 170rpx;
|
||||||
background-color: #bae46b;
|
background-color: #e94d4d;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
}
|
}
|
||||||
.tui-navigatorbar-back{
|
.tui-navigatorbar-back{
|
||||||
@ -23,7 +23,7 @@
|
|||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
line-height: 56rpx;
|
line-height: 56rpx;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #e68080;
|
color: #000000;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 200rpx;
|
left: 200rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -104,6 +104,8 @@ Component({
|
|||||||
},
|
},
|
||||||
lifetimes: {
|
lifetimes: {
|
||||||
attached(){
|
attached(){
|
||||||
|
|
||||||
|
console.log("myprofile attached")
|
||||||
let _this = this;
|
let _this = this;
|
||||||
console.log(_this.data.zhicheng_columns);
|
console.log(_this.data.zhicheng_columns);
|
||||||
_this.setData({
|
_this.setData({
|
||||||
@ -317,15 +319,33 @@ Component({
|
|||||||
console.log("keshi_huixian: ", keshi_huixian)
|
console.log("keshi_huixian: ", keshi_huixian)
|
||||||
console.log("zhicheng_huixian: ", zhicheng_huixian)
|
console.log("zhicheng_huixian: ", zhicheng_huixian)
|
||||||
console.log("area_huixian: ", area_huixian)
|
console.log("area_huixian: ", area_huixian)
|
||||||
if((keshi_huixian && zhicheng_huixian && area_huixian) || huixian_try_count > 100){
|
if((keshi_huixian && zhicheng_huixian && area_huixian) || huixian_try_count > 50){
|
||||||
clearInterval(data_replay);
|
clearInterval(data_replay);
|
||||||
}
|
}
|
||||||
console.log("计时器");
|
console.log("计时器");
|
||||||
}, 100);
|
}, 500);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
hospitalSearch(e){
|
||||||
|
console.log(e.detail)
|
||||||
|
},
|
||||||
|
hospitalSearchChange(e){
|
||||||
|
console.log(e.detail);
|
||||||
|
let params = {
|
||||||
|
hospital_name: e.detail.trim(),
|
||||||
|
province_id: this.data.select_province_id,
|
||||||
|
city_id: this.data.select_city_id,
|
||||||
|
county_id: this.data.select_county_id,
|
||||||
|
}
|
||||||
|
api.getBasicHospital(params).then(response => {// 请求医院列表】
|
||||||
|
this.setData({
|
||||||
|
yiyuan_columns: this.formatYiYuan(response),
|
||||||
|
yiyuan_show: true
|
||||||
|
})
|
||||||
|
}).catch(errors => {console.error(errors); })
|
||||||
|
},
|
||||||
onCityShow(e) {
|
onCityShow(e) {
|
||||||
console.log("onCityShow");
|
console.log("onCityShow");
|
||||||
this.setData({ city_show: true });
|
this.setData({ city_show: true });
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
"van-picker": "@vant/weapp/picker/index",
|
"van-picker": "@vant/weapp/picker/index",
|
||||||
"van-toast": "@vant/weapp/toast/index",
|
"van-toast": "@vant/weapp/toast/index",
|
||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"van-icon": "@vant/weapp/icon/index"
|
"van-icon": "@vant/weapp/icon/index",
|
||||||
|
"van-search": "@vant/weapp/search/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,6 +38,8 @@
|
|||||||
bind:close="onYiYuanClose"
|
bind:close="onYiYuanClose"
|
||||||
round
|
round
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
||||||
<van-picker
|
<van-picker
|
||||||
show-toolbar
|
show-toolbar
|
||||||
title="请选择医院"
|
title="请选择医院"
|
||||||
@ -46,6 +48,15 @@
|
|||||||
bind:cancel="onYiYuanCancel"
|
bind:cancel="onYiYuanCancel"
|
||||||
bind:confirm="onYiYuanConfirm"
|
bind:confirm="onYiYuanConfirm"
|
||||||
bind:change="onYiYuanChange" />
|
bind:change="onYiYuanChange" />
|
||||||
|
|
||||||
|
<van-search
|
||||||
|
value="{{ hospital_search_val }}"
|
||||||
|
shape="round"
|
||||||
|
placeholder="请输入搜索关键词"
|
||||||
|
clearable
|
||||||
|
bind:change="hospitalSearchChange"
|
||||||
|
bind:search="hospitalSearch"
|
||||||
|
/>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<t-cell title="科室" hover required arrow note="{{keshi_note}}" bindtap="onKeshiShow" bordered="{{ select_keshi_id == '' }}"/>
|
<t-cell title="科室" hover required arrow note="{{keshi_note}}" bindtap="onKeshiShow" bordered="{{ select_keshi_id == '' }}"/>
|
||||||
|
|
||||||
@ -200,7 +211,7 @@
|
|||||||
bind:showNote="onshowJianJieNote"
|
bind:showNote="onshowJianJieNote"
|
||||||
textarea_cell_content_placeholder="您的从业经历,职称,所获荣誉等信息(10~1000字)"
|
textarea_cell_content_placeholder="您的从业经历,职称,所获荣誉等信息(10~1000字)"
|
||||||
textarea_val="{{textarea_jianjie}}"
|
textarea_val="{{textarea_jianjie}}"
|
||||||
has_error_content="{{ be_good_at_reason }}"
|
has_error_content="{{ brief_introduction_reason }}"
|
||||||
data-textarea_name="textarea_jianjie" bindTextAreaBlur="getTextAreaVal" />
|
data-textarea_name="textarea_jianjie" bindTextAreaBlur="getTextAreaVal" />
|
||||||
|
|
||||||
<m-textarea-cell
|
<m-textarea-cell
|
||||||
@ -208,7 +219,7 @@
|
|||||||
t_icon_name="view-module"
|
t_icon_name="view-module"
|
||||||
bind:showNote="onshowShanChangNote"
|
bind:showNote="onshowShanChangNote"
|
||||||
textarea_val="{{textarea_shanchang}}"
|
textarea_val="{{textarea_shanchang}}"
|
||||||
has_error_content="{{ brief_introduction_reason }}"
|
has_error_content="{{ be_good_at_reason }}"
|
||||||
textarea_cell_content_placeholder="您的专业领域、擅长疾病、研究方法等信息(10~1000字)"
|
textarea_cell_content_placeholder="您的专业领域、擅长疾病、研究方法等信息(10~1000字)"
|
||||||
textarea_cell_note="查看示例" data-textarea_name="textarea_shanchang" bindTextAreaBlur="getTextAreaVal" />
|
textarea_cell_note="查看示例" data-textarea_name="textarea_shanchang" bindTextAreaBlur="getTextAreaVal" />
|
||||||
|
|
||||||
|
|||||||
@ -212,4 +212,12 @@
|
|||||||
margin-left: 32rpx;
|
margin-left: 32rpx;
|
||||||
padding-bottom: 20rpx;
|
padding-bottom: 20rpx;
|
||||||
border-bottom: 1rpx solid #e7e7e7;
|
border-bottom: 1rpx solid #e7e7e7;
|
||||||
|
}
|
||||||
|
.van-picker__columns {
|
||||||
|
height: 264px !important;
|
||||||
|
top: 40px !important;
|
||||||
|
}
|
||||||
|
.van-search {
|
||||||
|
top: -270px !important;
|
||||||
|
position: relative !important;
|
||||||
}
|
}
|
||||||
@ -48,6 +48,10 @@ Component({
|
|||||||
type: String,
|
type: String,
|
||||||
value: '',
|
value: '',
|
||||||
},
|
},
|
||||||
|
inquiry_type: {
|
||||||
|
type: String,
|
||||||
|
value: '',
|
||||||
|
},
|
||||||
note: {
|
note: {
|
||||||
type: String,
|
type: String,
|
||||||
value: '不接诊24小时后自动取消',
|
value: '不接诊24小时后自动取消',
|
||||||
@ -80,14 +84,18 @@ Component({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
goChat(e){
|
goChat(e){
|
||||||
|
this.setData({
|
||||||
|
show: false
|
||||||
|
})
|
||||||
wx.requestSubscribeMessage({
|
wx.requestSubscribeMessage({
|
||||||
tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'],
|
tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'],
|
||||||
success (res) {
|
success (res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
let from_account = e.currentTarget.dataset.from_account;
|
let from_account = e.currentTarget.dataset.from_account;
|
||||||
let order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
|
let order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
|
||||||
|
let inquiry_type = e.currentTarget.dataset.inquiry_type;
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id
|
url: e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id+"&inquiry_type="+inquiry_type
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
<view class="pop_note">为保障服务质量,请您查看患者病历信息在选择是否接诊。</view>
|
<view class="pop_note">为保障服务质量,请您查看患者病历信息在选择是否接诊。</view>
|
||||||
<view class="pop_btn">
|
<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_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-order_inquiry_id="{{order_inquiry_id}}" data-url="/Pages/yishi/chat/index" >去接诊</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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
@ -72,10 +72,11 @@ Component({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
let userID = wx.getStorageSync('user_id');
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
let index_info = wx.getStorageSync('index_info');
|
let index_info = wx.getStorageSync(userID+'_index_info');
|
||||||
let wenzhen_info = wx.getStorageSync('wenzhen_info');
|
let wenzhen_info = wx.getStorageSync(userID+'_wenzhen_info');
|
||||||
let my_info = wx.getStorageSync('my_info');
|
let my_info = wx.getStorageSync(userID+'_my_info');
|
||||||
_this.setData({
|
_this.setData({
|
||||||
index_info: index_info,
|
index_info: index_info,
|
||||||
wenzhen_info: wenzhen_info,
|
wenzhen_info: wenzhen_info,
|
||||||
@ -100,28 +101,45 @@ Component({
|
|||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
onChange(e) {
|
onChange(e) {
|
||||||
// this.setData({
|
|
||||||
// dialog_visible: true,
|
|
||||||
// dialog_content: "测试"
|
|
||||||
// })
|
|
||||||
console.log("custom tab bar onChange");
|
console.log("custom tab bar onChange");
|
||||||
// return;
|
|
||||||
|
let idcard_status = wx.getStorageSync('idcard_status');
|
||||||
|
let iden_auth_status = wx.getStorageSync('iden_auth_status');
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
let url = this.data.items[e.detail].pagePath;
|
let url = this.data.items[e.detail].pagePath;
|
||||||
console.log(url);
|
console.log(url);
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: url,
|
url: url,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirmDialog(){
|
confirmDialog(){
|
||||||
this.setData({
|
this.setData({
|
||||||
dialog_visible: false
|
dialog_visible: false
|
||||||
})
|
})
|
||||||
},
|
app.go("/Pages/yishi/identity/index");
|
||||||
cancelDialog(){
|
},
|
||||||
this.setData({
|
cancelDialog(){
|
||||||
dialog_visible: false
|
this.setData({
|
||||||
})
|
dialog_visible: false
|
||||||
},
|
})
|
||||||
}
|
},
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -7,7 +7,7 @@ class API extends HTTP {
|
|||||||
//获取oss签名数据
|
//获取oss签名数据
|
||||||
getOssSign(params) {
|
getOssSign(params) {
|
||||||
return this.request({
|
return this.request({
|
||||||
url: `${this.baseUrl}/oss/sign`,
|
url: `${this.baseUrl}/sign/oss`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
data: {
|
data: {
|
||||||
...params
|
...params
|
||||||
@ -464,6 +464,16 @@ class API extends HTTP {
|
|||||||
...params
|
...params
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
//获取im签名数据
|
||||||
|
getSignIM(params) {
|
||||||
|
return this.request({
|
||||||
|
url: `${this.baseUrl}/sign/im`,
|
||||||
|
method: 'GET',
|
||||||
|
data: {
|
||||||
|
...params
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ const formatChatTime = date => {
|
|||||||
const minute = date.getMinutes()
|
const minute = date.getMinutes()
|
||||||
const second = date.getSeconds()
|
const second = date.getSeconds()
|
||||||
|
|
||||||
return `${[year, month, day].map(formatNumber).join('-')} ${[hour, minute].map(formatNumber).join(':')}`
|
return `${[month, day].map(formatNumber).join('-')} ${[hour, minute].map(formatNumber).join(':')}`
|
||||||
}
|
}
|
||||||
|
|
||||||
const getDateArr = date => {
|
const getDateArr = date => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user