Browse Source

修改后候诊页面样式问题

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

11
components/preBookList.vue

@ -38,21 +38,13 @@ export default {
data() { data() {
return { return {
cssUrl:this.cssUrl, 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'} statusStyleList:{'待就诊':'status_wait', '就诊中':'status_ing', '就诊完成':'status_down', '过号':'status_out_num', '过期':'status_expire','取消':'status_cancle'}
} }
}, },
methods: { methods: {
toBookDetail(item){ 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> </script>
@ -120,7 +112,6 @@ export default {
text-align: right; text-align: right;
word-break: break-all; word-break: break-all;
height: 42rpx; height: 42rpx;
// display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
.bedDesc{ .bedDesc{

4
components/tabbar.vue

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

127
components/userCard.vue

@ -1,12 +1,15 @@
<template> <template>
<view :class="'user-card-com'+(!showuinfo?' popup-user-card':'')"> <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> <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>
<view class="bed-wrapper" v-show="type == 1"> <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>
<view class="card-cus-txt" v-if="type == 0"> <view class="card-cus-txt" v-if="type == 0">
@ -24,28 +27,29 @@
<script> <script>
export default { export default {
name: "visitorList", name: "visitorList",
options: { styleIsolation: "shared" },
props: { props: {
add:{ add: {
type:Boolean, type: Boolean,
default:()=>false default: () => false
}, },
showuinfo:{ showuinfo: {
type:Boolean, type: Boolean,
default:()=>true default: () => true
}, },
dataitem:{ dataitem: {
type:Object, type: Object,
default:()=>{} default: () => { }
}, },
index:{ index: {
type:Number, type: Number,
default:()=>-1 default: () => -1
}, },
}, },
data() { data() {
return { return {
cssUrl:this.cssUrl, cssUrl: this.cssUrl,
value:'', value: '',
type: 0, type: 0,
types: [{ types: [{
text: '等医生叫号', text: '等医生叫号',
@ -59,7 +63,7 @@ export default {
methods: { methods: {
confirm() { confirm() {
}, },
inputevent(e){ inputevent(e) {
var obj = new Object() var obj = new Object()
obj.key = this.index obj.key = this.index
obj.type = this.type obj.type = this.type
@ -71,14 +75,14 @@ export default {
obj.key = this.index obj.key = this.index
obj.type = this.type obj.type = this.type
obj.bed_desc = '' obj.bed_desc = ''
if(this.type == 1) obj.bed_desc = this.value if (this.type == 1) obj.bed_desc = this.value
this.$emit('clickEvent', obj) this.$emit('clickEvent', obj)
}, },
setType(typeval) { setType(typeval) {
this.value = typeval this.value = typeval
}, },
setTypeValue(typeval) { setTypeValue(typeval) {
setTimeout(function(){ setTimeout(function () {
this.type = typeval this.type = typeval
}.bind(this)) }.bind(this))
// this.type = typeval // this.type = typeval
@ -95,39 +99,45 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.user-card-com{ .user-card-com {
width: 100%; width: 100%;
height: auto; height: auto;
overflow: hidden; overflow: hidden;
&.popup-user-card{ &.popup-user-card {
::v-deep { ::v-deep {
.uni-card__header{ .uni-card__header {
display: none !important; display: none !important;
} }
.uni-card{
.uni-card {
padding: 0 32rpx 0rpx 32rpx !important; padding: 0 32rpx 0rpx 32rpx !important;
margin-bottom: 0rpx !important; margin-bottom: 0rpx !important;
} }
.uni-card__content{
.uni-card__content {
padding: 0 !important; padding: 0 !important;
} }
.checklist-group{
.checklist-group {
margin-bottom: 46rpx !important; margin-bottom: 46rpx !important;
} }
.card-cus-txt{
.card-cus-txt {
margin-bottom: 42rpx; margin-bottom: 42rpx;
} }
.uni-easyinput{
.uni-easyinput {
margin-bottom: 46rpx; margin-bottom: 46rpx;
} }
} }
} }
::v-deep { ::v-deep {
.uni-easyinput{ .uni-easyinput {
margin-bottom: 24rpx; margin-bottom: 24rpx;
.uni-easyinput__content-input{
.uni-easyinput__content-input {
padding-left: 24rpx !important; padding-left: 24rpx !important;
color: #333333; color: #333333;
font-size: 30rpx; font-size: 30rpx;
@ -140,33 +150,41 @@ export default {
position: relative; position: relative;
top: -2rpx; top: -2rpx;
} }
.is-input-border{
.is-input-border {
border: 2rpx solid #DCDCDC !important; border: 2rpx solid #DCDCDC !important;
} }
.is-input-border.is-focused{
.is-input-border.is-focused {
border-color: #39D067 !important; border-color: #39D067 !important;
.uni-icons.content-clear-icon.uniui-clear{
.uni-icons.content-clear-icon.uniui-clear {
color: #39D067 !important; color: #39D067 !important;
} }
} }
} }
.uni-card{
.uni-card {
border-radius: 0; border-radius: 0;
padding: 32rpx !important; padding: 32rpx !important;
.uni-data-checklist .checklist-group { .uni-data-checklist .checklist-group {
column-gap: 24rpx; column-gap: 24rpx;
margin-bottom: 24rpx; margin-bottom: 24rpx;
.checklist-box{
.checklist-box {
margin: 0; margin: 0;
width: calc(50% - 14rpx); width: calc(50% - 14rpx);
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.checklist-content{
.checklist-content {
flex: none; flex: none;
} }
.checklist-content .checklist-text{
.checklist-content .checklist-text {
font-size: 30rpx; font-size: 30rpx;
font-weight: normal; font-weight: normal;
letter-spacing: 0.22rpx; letter-spacing: 0.22rpx;
@ -174,14 +192,14 @@ export default {
color: #666666; color: #666666;
} }
.radio__inner{ .radio__inner {
width: 36rpx; width: 36rpx;
height: 36rpx; height: 36rpx;
border: 2rpx solid #BCBCBC; border: 2rpx solid #BCBCBC;
border-radius: 36rpx; border-radius: 36rpx;
} }
&.is--button{ &.is--button {
margin-right: 0rpx; margin-right: 0rpx;
padding: 20rpx 42rpx 20rpx 24rpx; padding: 20rpx 42rpx 20rpx 24rpx;
box-sizing: border-box; box-sizing: border-box;
@ -190,22 +208,27 @@ export default {
border-radius: 8rpx; border-radius: 8rpx;
transition: border-color 0.2s; transition: border-color 0.2s;
background: #F8F8F8; background: #F8F8F8;
&.is-checked{
&.is-checked {
background: #F5FFF4; background: #F5FFF4;
.radio__inner{
.radio__inner {
border-color: #00C160; border-color: #00C160;
} }
.radio__inner-icon{
.radio__inner-icon {
background: #00C160; background: #00C160;
} }
.checklist-text{
.checklist-text {
color: #333333; color: #333333;
} }
} }
} }
} }
} }
.card-cus-txt{
.card-cus-txt {
font-size: 24rpx; font-size: 24rpx;
font-weight: normal; font-weight: normal;
line-height: 34rpx; line-height: 34rpx;
@ -214,10 +237,12 @@ export default {
color: #666666; color: #666666;
text-align: center; text-align: center;
} }
.uni-card__header{
.uni-card__header {
border: none; border: none;
padding: 0; padding: 0;
.uni-card__header-extra .uni-card__header-extra-text{
.uni-card__header-extra .uni-card__header-extra-text {
font-size: 24rpx; font-size: 24rpx;
font-weight: normal; font-weight: normal;
line-height: normal; line-height: normal;
@ -225,12 +250,13 @@ export default {
color: #949699; color: #949699;
} }
.uni-card__header-content .uni-card__header-content-title{ .uni-card__header-content .uni-card__header-content-title {
font-weight: 600; font-weight: 600;
line-height: 42rpx; line-height: 42rpx;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
&:before{
&:before {
content: ''; content: '';
display: inline-block; display: inline-block;
width: 8rpx; width: 8rpx;
@ -246,6 +272,5 @@ export default {
} }
} }
} }
} }
</style> </style>

3
pages/visitors/visitors.vue

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

Loading…
Cancel
Save