blob: 094a73bd46fc45e14c3fd510145ef42313261770 [file] [log] [blame]
guangchao.xu070005a2020-12-07 09:56:40 +08001<template>
2 <view class="patient">
3 <view class="patient-bgc">
4 <!-- #ifdef APP-PLUS -->
5 <u-navbar title="就诊人管理" :background="background" title-color="#ffffff" :border-bottom="false" back-icon-color="#ffffff"></u-navbar>
6 <!-- #endif -->
7 </view>
8 <view class="patient-ul">
9 <view class="patient-ul-item">
10 <u-field label="当前就诊人" placeholder="" disabled input-align="right" label-width="150">
11 <u-button size="mini" slot="right" plain type="primary" shape="circle" @click="deleteMenber" :custom-style="btn">删除</u-button>
12 </u-field>
13 <view class="patient-ul-item-msg">
14 <u-field label="就诊人员" placeholder="李小明/男/24岁" disabled :placeholder-style="mstyle" input-align="right" :border-bottom="false"></u-field>
15 <u-field label="证件号码" placeholder="2324324*****323123" disabled :placeholder-style="mstyle" input-align="right" :border-bottom="false"></u-field>
16 <u-field label="就诊卡号" placeholder="30230248912" disabled :placeholder-style="mstyle" input-align="right" :border-bottom="false"></u-field>
17 <u-field label="联系电话" placeholder="131****3421" disabled :placeholder-style="mstyle" input-align="right" :border-bottom="false"></u-field>
18 </view>
19 </view>
20 <view class="patient-ul-item">
21 <u-field label="就诊人" placeholder="" disabled input-align="right" label-width="150">
22 <u-button size="mini" slot="right" type="primary" plain shape="circle" @click="deleteMenber" :custom-style="btn">删除</u-button>
23 </u-field>
24 <view class="patient-ul-item-msg">
25 <u-field label="就诊人员" placeholder="李小明/男/24岁" disabled :placeholder-style="mstyle" input-align="right" :border-bottom="false"></u-field>
26 <u-field label="证件号码" placeholder="2324324*****323123" disabled :placeholder-style="mstyle" input-align="right" :border-bottom="false"></u-field>
27 <u-field label="就诊卡号" placeholder="30230248912" disabled :placeholder-style="mstyle" input-align="right" :border-bottom="false"></u-field>
28 <u-field label="联系电话" placeholder="131****3421" disabled :placeholder-style="mstyle" input-align="right" :border-bottom="false"></u-field>
29 </view>
30 </view>
31 </view>
32 <u-button @click="" :custom-style="addBtn">添加就诊人</u-button>
33 </view>
34</template>
35
36<script>
37 export default {
38 data() {
39 return {
40 background: {
41 'background': 'no'
42 },
43 btn:{
44 padding:'0 30rpx',
45 background:'#ffffff'
46 },
47 addBtn: {
48 backgroundColor: ' #2FA8E1',
49 padding: '50rpx 0',
50 color: '#FFFFFF',
51 width: ' 600rpx',
52 fontSize: '30rpx',
53 border: '1px solid #2FA8E1',
54 },
55 mstyle:'color:#333333',
56 }
57 },
58 onLoad() {
59
60 },
61 methods: {
62 deleteMenber(){
63 let that = this
64 let cardid = '123'
guangchao.xu50e42382021-01-04 17:53:47 +080065 that.$u.post('/medicalapi/medicalcard/delete/' + cardid).then(res=>{
guangchao.xu070005a2020-12-07 09:56:40 +080066 console.log(res.data)
67 })
68 }
69 }
70 }
71</script>
72
73<style lang="scss" scoped>
74 /deep/.u-btn--primary--plain{
75 background-color: #FFFFFF !important;
76 }
77 .patient {
78 font-family: "PingFang-SC-Medium";
79 &-bgc {
80 background-image: url(./images/pat_bannar.png);
81 background-position: center;
82 background-repeat: no-repeat;
83 background-size: cover;
84 padding-bottom: 340rpx;
85 }
86
87 &-ul {
88 margin-top: -270rpx;
89 padding: 0 30rpx;
90 &-item{
91 margin-bottom: 30rpx;
92 background-color: #FFFFFF;
93 border-radius: 10rpx;
94 &-msg{
95 .u-field{
96 color: #a1a1a1;
97 }
98 }
99 }
100 }
101 }
102</style>