Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
e04acfa2dc
@ -254,17 +254,25 @@
|
|||||||
goconsultationplatform() {
|
goconsultationplatform() {
|
||||||
const value = uni.getStorageSync('openid');
|
const value = uni.getStorageSync('openid');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
const value3 = uni.getStorageSync('region');
|
||||||
|
if (value && value2 &&value3!=3) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pagesB/consultationplatform/consultationplatform',
|
url: '/pagesB/consultationplatform/consultationplatform',
|
||||||
})
|
})
|
||||||
} else {
|
} else if(!value && !value2) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请先登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
|
}else if(value3==3){
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '请重新选择区域',
|
||||||
|
type: 'error',
|
||||||
|
duration: '1000',
|
||||||
|
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@ -155,12 +155,11 @@
|
|||||||
imglistlength: null,
|
imglistlength: null,
|
||||||
address: '请选择所属地区', //页面所属区域
|
address: '请选择所属地区', //页面所属区域
|
||||||
formdata: {
|
formdata: {
|
||||||
address: '请选择所属地区', //页面所属区域
|
address:'', //页面所属区域
|
||||||
patientId: '',
|
patientId: '',
|
||||||
patientName: '',
|
patientName: '',
|
||||||
cardNo: '',
|
cardNo: '',
|
||||||
phone: '',
|
phone: '',
|
||||||
address: '',
|
|
||||||
doctorId: '',
|
doctorId: '',
|
||||||
doctorName: '',
|
doctorName: '',
|
||||||
consultationType: 'IMAGE_TEXT_CONSULTATION',
|
consultationType: 'IMAGE_TEXT_CONSULTATION',
|
||||||
@ -183,6 +182,7 @@
|
|||||||
this.areaInfo();
|
this.areaInfo();
|
||||||
let that = this
|
let that = this
|
||||||
that.formdata = uni.getStorageSync('userinfo')
|
that.formdata = uni.getStorageSync('userinfo')
|
||||||
|
this.formdata.address=''
|
||||||
this.infolist()
|
this.infolist()
|
||||||
uni.$on('doctordata', function(data) {
|
uni.$on('doctordata', function(data) {
|
||||||
let item = JSON.parse(data.data)
|
let item = JSON.parse(data.data)
|
||||||
@ -215,6 +215,9 @@
|
|||||||
this.info();
|
this.info();
|
||||||
},
|
},
|
||||||
info() {
|
info() {
|
||||||
|
this.$delete(this.formdata,'id')
|
||||||
|
console.log(this.formdata.address,'774')
|
||||||
|
|
||||||
this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION'
|
this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION'
|
||||||
if (!this.formdata.address) {
|
if (!this.formdata.address) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
|
|||||||
@ -388,7 +388,7 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pagesC/choosedoctor/choosedoctor?orgNo=${this.query.orgNo}&userNo=${this.query.userNo}`
|
url: `/pagesC/choosedoctor/choosedoctor?orgNo=${this.query.orgNo}&userNo=${this.query.userNo}&static=${1}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<!-- <view class="inputs">
|
<view class="inputs" v-if="show==true">
|
||||||
<i class="icon"></i>
|
<i class="icon"></i>
|
||||||
<input type="text" name="" id="" class="input" placeholder="请输入医生姓名" v-model="realname">
|
<input type="text" name="" id="" class="input" placeholder="请输入医生姓名" v-model="realname">
|
||||||
</view> -->
|
</view>
|
||||||
<view class="list" v-if="doctorlist">
|
<view class="list" v-if="doctorlist">
|
||||||
<view class="item" v-for="item in doctorlist" @tap='emitdata(item)'>
|
<view class="item" v-for="item in doctorlist" @tap='emitdata(item)'>
|
||||||
<image src="../../static/docHead.png" mode=""></image>
|
<image src="../../static/docHead.png" mode=""></image>
|
||||||
@ -57,6 +57,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
show:"",
|
||||||
orgNo: null,
|
orgNo: null,
|
||||||
userNo: null,
|
userNo: null,
|
||||||
teamNo: null,
|
teamNo: null,
|
||||||
@ -112,6 +113,11 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
console.log(options,'888')
|
||||||
|
if(options.static=="1"){
|
||||||
|
this.show=true
|
||||||
|
|
||||||
|
}
|
||||||
if (options.item) {
|
if (options.item) {
|
||||||
this.list = JSON.parse(options.item)
|
this.list = JSON.parse(options.item)
|
||||||
console.log(this.list, '58')
|
console.log(this.list, '58')
|
||||||
|
|||||||
@ -193,7 +193,7 @@
|
|||||||
Read() {
|
Read() {
|
||||||
let markReadData = {
|
let markReadData = {
|
||||||
consultationId: this.currentItem.id,
|
consultationId: this.currentItem.id,
|
||||||
recipientId: this.currentItem.doctorId,
|
recipientId: this.currentItem.patientId,
|
||||||
}
|
}
|
||||||
markRead(markReadData)
|
markRead(markReadData)
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user