فهرست منبع

logo添加白底

yanqiliang 2 ماه پیش
والد
کامیت
557dcb4556

+ 7 - 1
src/assets/scss/style.scss

@@ -48,7 +48,13 @@ body {
     margin-bottom: 0.6rem;
     .logo {
       width: 16rem;
-
+      border-radius: 0.5rem;
+      display: inline-block;
+      padding: 0.1em 1.5rem;
+      background: #FFF;
+    }
+    .logodefault {
+      width: 10rem;
       border-radius: 0.5rem;
       display: inline-block;
       padding: 0.1em 1.5rem;

+ 1 - 1
src/pages/bigScreen/Index.jsx

@@ -96,7 +96,7 @@ class BigScreen extends React.Component {
           <img
             src={this.props.hosLogo || logo}
             alt='Logo'
-            className='logo'
+            className={this.props.hosLogo ? 'logo' : 'logodefault'}
             onError={(e) => {
               e.target.src = `${logo}`;
             }}

+ 1 - 1
src/pages/doctorScreen/Index.jsx

@@ -39,7 +39,7 @@ class DoctorScreen extends React.Component {
           <img
             src={this.props.hosLogo || logo}
             alt='Logo'
-            className='logo'
+            className={this.props.hosLogo ? 'logo' : 'logodefault'}
             onError={(e) => {
               e.target.src = `${logo}`;
             }}

+ 6 - 6
src/pages/home/Index.jsx

@@ -78,7 +78,7 @@ class Home extends React.Component {
   openLogin = (cache) => {
     if (!cache) {
       cache = {
-        BASE_URL: 'http://10.1.42.29:8090',
+        BASE_URL: 'http://10.1.?.29:8090',
         Address: '/bdhealth/',
         room: '',
         use: '',
@@ -113,7 +113,7 @@ class Home extends React.Component {
       console.log('Room接收消息:',data );
       data = JSON.parse(data);
       if (data.callMsg) {
-        const patList = [...data.callMsg.callPat, ...data.callMsg.waitPat.map(v => { 
+        const patList = [...data.callMsg.callPat, ...data.callMsg.waitPat.map(v => {
           return { ...v, status: 'waiting' };
         })];
         const { roomObj } = this.state;
@@ -170,7 +170,7 @@ class Home extends React.Component {
         this.setState({
           userData: data?.result[0] || {},
           // https://172.16.1.6/images/hoslogo/H02.png 医院logo
-          hosLogo: `/images/hoslogo/${data?.result[0]?.hospCode}.png` 
+          hosLogo: `/images/hoslogo/${data?.result[0]?.hospCode}.png`
         });
         if (obj[data.code]) {
           this.setState({
@@ -197,19 +197,19 @@ class Home extends React.Component {
           deviceID={this.state.deviceID}
         />
         {/* 医生诊室呼叫 */}
-        {this.state.showType == 'doctor' 
+        {this.state.showType == 'doctor'
           ? <DoctorScreen
               userData={this.state.userData}
               patList={this.state.patList}
               hosLogo={this.state.hosLogo}
             />
           : this.state.showType == 'operate'
-            ? < OperateScreen 
+            ? < OperateScreen
                 patList={this.state.waitPat}
                 userData={this.state.userData}
                 hosLogo={this.state.hosLogo}
               />
-            : < BigScreen 
+            : < BigScreen
                 userData={this.state.userData}
                 patListArea={this.state.patListArea}
                 delayPat={this.state.delayPat}

+ 1 - 1
src/pages/operateScreen/Index.jsx

@@ -87,7 +87,7 @@ class OperateScreen extends React.Component {
           <img
             src={this.props.hosLogo || logo}
             alt='Logo'
-            className='logo'
+            className={this.props.hosLogo ? 'logo' : 'logodefault'}
             onError={(e) => {
               e.target.src = `${logo}`;
             }}