From f72646bd24215332134161c0865d6bcf28daf8fb Mon Sep 17 00:00:00 2001
From: zq <136432190602163.com>
Date: Mon, 19 May 2025 11:43:52 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E8=B7=B3?=
=?UTF-8?q?=E8=BD=AC=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/inputBox.vue | 36 +++++--
components/visitorList.vue | 163 ++++++++++++++++----------------
pages/modify_visitor/modify_visitor.vue | 23 +----
pages/prebook/prebook.vue | 5 +-
pages/usercenter/usercenter.vue | 14 +--
pages/visitors/visitors.vue | 28 ++----
pages/visitors_new/visitors_new.vue | 31 ------
pages/waiting_method/waiting_method.vue | 9 +-
8 files changed, 135 insertions(+), 174 deletions(-)
diff --git a/components/inputBox.vue b/components/inputBox.vue
index 566808b..6bb1b49 100644
--- a/components/inputBox.vue
+++ b/components/inputBox.vue
@@ -4,12 +4,11 @@
-
{{label}}
-
-
+
+
@@ -126,11 +125,7 @@ export default {
diff --git a/pages/modify_visitor/modify_visitor.vue b/pages/modify_visitor/modify_visitor.vue
index 9927d90..f8d2361 100644
--- a/pages/modify_visitor/modify_visitor.vue
+++ b/pages/modify_visitor/modify_visitor.vue
@@ -1,17 +1,16 @@
-
-
+
确认新增
-
+
确认修改
@@ -90,19 +89,10 @@
}
uni.navigateBack()
-
- // this.$func.toPage('/pages/visitors/visitors?type='+this.type)
});
},
getVisitorInfo() {
this.visitor_info = JSON.parse(uni.getStorageSync('visitor_info_'+ this.vid))
- //获取就诊人详细信息???
- // this.$http.req('user/get_visitor_info', {id:this.vid}, 'GET', true).then(data=>{
- // if(data == -1) {
- // this.$func.toPage('/pages/index/index')
- // return
- // }
- console.log(this.visitor_info,'visitor_info');
this.name = this.visitor_info.name
this.idcard = this.visitor_info.idcard
this.phone = this.visitor_info.phone
@@ -110,7 +100,6 @@
this.idcardExtRule = true
this.phoneRule = true
this.checkSubmit()
- // });
},
nameBlurEvent(value, res){
this.name = value
@@ -153,14 +142,15 @@
height: 100vh;
overflow-y: scroll;
.block{
- // min-height: 50vh;
- // min-height: 662rpx;
background: #FFFFFF;
box-shadow: 0rpx 2rpx 24rpx 0rpx rgba(0,0,0,0.03);
border-radius: 8rpx;
width: 714rpx;
margin: 20rpx auto 0rpx;
overflow: hidden;
+ &:nth-child(3){
+ border: none !important;
+ }
.title{
font-size: 32rpx;
color: #000000;
@@ -170,9 +160,6 @@
letter-spacing: 2rpx;
margin: 36rpx 0 36rpx 24rpx;
}
- .inputcom-wrapper{
- // margin-bottom: 20rpx;
- }
}
.submit-wrapper{
overflow: hidden;
diff --git a/pages/prebook/prebook.vue b/pages/prebook/prebook.vue
index 4e0bab8..3d3b385 100644
--- a/pages/prebook/prebook.vue
+++ b/pages/prebook/prebook.vue
@@ -122,9 +122,7 @@
times:false,
success() {
setTimeout(function(){
- uni.navigateTo({
- url:"/pages/prebook_list/prebook_list"
- })
+ this.$nav.navToPath("/pages/prebook_list/prebook_list")
}, 1500)
}
})
@@ -207,7 +205,6 @@
// this.getAvailabletRegistrationTime(false, chooseDay)
// return
// }
- let remain = 1
if(data.remain < this.activeVisitors.length){
this.needSelectMembers = true
this.$set(this.times, 'remain', data.remain)
diff --git a/pages/usercenter/usercenter.vue b/pages/usercenter/usercenter.vue
index 15a6be8..6c970ca 100644
--- a/pages/usercenter/usercenter.vue
+++ b/pages/usercenter/usercenter.vue
@@ -45,19 +45,13 @@
});
},
toVisitors(){
- uni.navigateTo({
- url:'/pages/visitors_new/visitors_new?type=2'
- })
+ this.$nav.navToPath('/pages/visitors_new/visitors_new?type=2')
},
toPrebookList(){
- uni.navigateTo({
- url:'/pages/prebook_list/prebook_list'
- })
+ this.$nav.navToPath('/pages/prebook_list/prebook_list')
},
toUserModify(){
- uni.navigateTo({
- url:'/pages/user_modify/user_modify'
- })
+ this.$nav.navToPath('/pages/user_modify/user_modify')
}
}
}
@@ -74,7 +68,7 @@
width: 160rpx;
height: 160rpx;
border-radius: 100%;
- margin: 17rpx auto 24rpx;
+ margin: 20rpx auto 24rpx;
}
.ucode{
width: 80%;
diff --git a/pages/visitors/visitors.vue b/pages/visitors/visitors.vue
index fabdeda..024552b 100644
--- a/pages/visitors/visitors.vue
+++ b/pages/visitors/visitors.vue
@@ -177,9 +177,10 @@
},
methods: {
reback(){
- uni.navigateTo({
- url:'/'
- })
+ // uni.navigateTo({
+ // url:'/'
+ // })
+ this.$nav.navToPath('/')
},
// 预约时间 -跳转就诊人页面-预约时间
@@ -218,9 +219,7 @@
});
},
appointTime(){
- uni.navigateTo({
- url:"/pages/visitors/visitors?type=1&is_preview=1"
- })
+ this.$nav.navToPath("/pages/visitors/visitors?type=1&is_preview=1")
},
modifyVistor(visitor){
uni.setStorageSync('visitor_info_'+visitor.id, JSON.stringify(visitor))
@@ -277,7 +276,6 @@
this.visitUsers = [...this.visitUsers]
this.popMsgs = []
- var popmsgIndex = 0
for (var i = 0; i < this.visitUsers.length; i++) {
this.visitUsers[i].select = false
}
@@ -325,7 +323,7 @@
popCancel(e){
},
addVisitor(){
- location.href = "/pages/modify_visitor/modify_visitor?type="+this.type
+ this.$nav.navToPath("/pages/modify_visitor/modify_visitor?type="+this.type)
},
toPrebook(){
if(this.selectCount <= 0){
@@ -341,15 +339,12 @@
uni.setStorageSync('active_visitors', JSON.stringify(this.activeVisitors))
// 确认报道 => 跳转候诊方式
if((this.type == 0 || this.type == 1) && !this.is_preview){
- uni.navigateTo({
- url:'/pages/waiting_method/waiting_method'
- })
+ this.$nav.navToPath('/pages/waiting_method/waiting_method')
return
}
// 预约人员
- uni.navigateTo({
- url:"/pages/prebook/prebook"
- })
+ this.$nav.navToPath("/pages/prebook/prebook")
+
}
}
}
@@ -486,11 +481,6 @@
display: block;
margin: 0 auto;
}
-
- //
- // 返回
- // 预约时间
- //
.baodao-submit{
justify-content: center;
column-gap: 42rpx;
diff --git a/pages/visitors_new/visitors_new.vue b/pages/visitors_new/visitors_new.vue
index 4b9601c..9b6008e 100644
--- a/pages/visitors_new/visitors_new.vue
+++ b/pages/visitors_new/visitors_new.vue
@@ -5,22 +5,6 @@
-
-
-
-
-
@@ -33,30 +17,18 @@
export default {
data() {
return {
- collapseValue:0,
- html:'就诊须知',
cssUrl:this.cssUrl,
depart_id:0,
hospital_depart_name:'',
visitor_list:false,
value:'',
visitor_id:0,
- type: 0,
- types: [{
- text: '等医生叫号',
- value: 0
- }, {
- text: '找床位候诊',
- value: 1
- }],
}
},
components:{
visitorList,
visitorAccount
},
- onLoad(option) {
- },
onReady() {
this.pageInit()
},
@@ -64,9 +36,6 @@
pageInit() {
this.$refs.visitors.getVisitors()
},
- changeCollapse(e) {
- console.log(e);
- },
setVisitorListData(e) {
this.visitor_list = e
},
diff --git a/pages/waiting_method/waiting_method.vue b/pages/waiting_method/waiting_method.vue
index ae124e4..44d7ff6 100644
--- a/pages/waiting_method/waiting_method.vue
+++ b/pages/waiting_method/waiting_method.vue
@@ -15,6 +15,7 @@
+