Browse Source

修改后候诊页面样式问题

master
zq 4 months ago
parent
commit
bfd6a40157
  1. 11
      components/preBookList.vue
  2. 4
      components/tabbar.vue
  3. 33
      components/userCard.vue
  4. 3
      pages/visitors/visitors.vue

11
components/preBookList.vue

@ -38,21 +38,13 @@ export default {
data() {
return {
cssUrl:this.cssUrl,
// statusList:['status_wait', 'status_ing', 'status_down', 'status_out_num', 'status_expire', 'status_expire'],
// statusDescList:['', '', '', '', '', ''],
statusStyleList:{'待就诊':'status_wait', '就诊中':'status_ing', '就诊完成':'status_down', '过号':'status_out_num', '过期':'status_expire','取消':'status_cancle'}
}
},
methods: {
toBookDetail(item){
this.$func.toPage('/pages/visit_detail/visit_detail?id='+item.id+'&depart_id='+item.depart_id+'&visitor_id='+item.visitor_id)
this.$nav.navToPath('/pages/visit_detail/visit_detail?id='+item.id+'&depart_id='+item.depart_id+'&visitor_id='+item.visitor_id)
},
getDayOfWeek(dateString) {
var str = new Date(dateString);
var week = str.getDay();
var weekList = ['周日','周一','周二','周三','周四','周五','周六']
return weekList[week]
}
}
};
</script>
@ -120,7 +112,6 @@ export default {
text-align: right;
word-break: break-all;
height: 42rpx;
// display: flex;
align-items: center;
justify-content: flex-end;
.bedDesc{

4
components/tabbar.vue

@ -52,10 +52,12 @@
}
},
mounted() {
// #ifdef H5
this.isWechat = /MicroMessenger/i.test(navigator.userAgent)
if (this.isWechat && !this.wxConfig) {
this.initWxConfig()
}
// #endif
},
methods: {
async initWxConfig() {
@ -129,7 +131,7 @@
})
return;
}
this.$func.toPage('/pages/nonsupport/nonsupport');
this.$nav.navToPath('/pages/nonsupport/nonsupport');
});
return;
}

33
components/userCard.vue

@ -1,12 +1,15 @@
<template>
<view :class="'user-card-com' + (!showuinfo ? ' popup-user-card' : '')">
<uni-card :title="dataitem.name" extra="身份证:9098******8778" margin="0 10rpx 20rpx 10rpx" shadow="none" :border="false" padding="24rpx 0 0 0">
<uni-card :title="dataitem.name" extra="身份证:9098******8778" margin="0 10rpx 20rpx 10rpx" shadow="none"
:border="false" padding="24rpx 0 0 0">
<view>
<uni-data-checkbox mode="button" v-model="type" :localdata="types" @change="changeType"></uni-data-checkbox>
<uni-data-checkbox mode="button" v-model="type" :localdata="types"
@change="changeType"></uni-data-checkbox>
</view>
<view class="bed-wrapper" v-show="type == 1">
<uni-easyinput v-model="value" placeholder="请输入床位位置" placeholderStyle="color: #999999;font-size: 30rpx;" :trim="true" @input="inputevent"></uni-easyinput>
<uni-easyinput v-model="value" placeholder="请输入床位位置" placeholderStyle="color: #999999;font-size: 30rpx;"
:trim="true" @input="inputevent"></uni-easyinput>
</view>
<view class="card-cus-txt" v-if="type == 0">
@ -24,6 +27,7 @@
<script>
export default {
name: "visitorList",
options: { styleIsolation: "shared" },
props: {
add: {
type: Boolean,
@ -105,19 +109,24 @@ export default {
.uni-card__header {
display: none !important;
}
.uni-card {
padding: 0 32rpx 0rpx 32rpx !important;
margin-bottom: 0rpx !important;
}
.uni-card__content {
padding: 0 !important;
}
.checklist-group {
margin-bottom: 46rpx !important;
}
.card-cus-txt {
margin-bottom: 42rpx;
}
.uni-easyinput {
margin-bottom: 46rpx;
}
@ -127,6 +136,7 @@ export default {
::v-deep {
.uni-easyinput {
margin-bottom: 24rpx;
.uni-easyinput__content-input {
padding-left: 24rpx !important;
color: #333333;
@ -140,22 +150,28 @@ export default {
position: relative;
top: -2rpx;
}
.is-input-border {
border: 2rpx solid #DCDCDC !important;
}
.is-input-border.is-focused {
border-color: #39D067 !important;
.uni-icons.content-clear-icon.uniui-clear {
color: #39D067 !important;
}
}
}
.uni-card {
border-radius: 0;
padding: 32rpx !important;
.uni-data-checklist .checklist-group {
column-gap: 24rpx;
margin-bottom: 24rpx;
.checklist-box {
margin: 0;
width: calc(50% - 14rpx);
@ -163,9 +179,11 @@ export default {
display: flex;
justify-content: center;
align-items: center;
.checklist-content {
flex: none;
}
.checklist-content .checklist-text {
font-size: 30rpx;
font-weight: normal;
@ -190,14 +208,18 @@ export default {
border-radius: 8rpx;
transition: border-color 0.2s;
background: #F8F8F8;
&.is-checked {
background: #F5FFF4;
.radio__inner {
border-color: #00C160;
}
.radio__inner-icon {
background: #00C160;
}
.checklist-text {
color: #333333;
}
@ -205,6 +227,7 @@ export default {
}
}
}
.card-cus-txt {
font-size: 24rpx;
font-weight: normal;
@ -214,9 +237,11 @@ export default {
color: #666666;
text-align: center;
}
.uni-card__header {
border: none;
padding: 0;
.uni-card__header-extra .uni-card__header-extra-text {
font-size: 24rpx;
font-weight: normal;
@ -230,6 +255,7 @@ export default {
line-height: 42rpx;
font-size: 32rpx;
color: #333333;
&:before {
content: '';
display: inline-block;
@ -247,5 +273,4 @@ export default {
}
}
}
</style>

3
pages/visitors/visitors.vue

@ -170,10 +170,9 @@
},
methods: {
reback(){
this.$nav.navToPath('/')
this.$nav.navToPath('/pages/index/index')
},
// --
async getDoctorInfo() {
await this.$http.req('user/index_info', {}, 'GET').then(data=>{
if(data == -1) return

Loading…
Cancel
Save