瀏覽代碼

fix: 修复fixed按钮上移情况

carver 2 年之前
父節點
當前提交
90f0e49e7f

+ 1 - 1
antbuilder/industry/hospitalV2/components/follow-up-notice/index.acss

@@ -33,7 +33,7 @@
   padding-bottom: 40rpx;
 }
 .hospital-new-component .follow-up-notice .fixed-footer {
-  position: fixed;
+  position: absolute;
   bottom: 1rpx;
   left: 0;
   right: 0;

+ 3 - 1
antbuilder/industry/hospitalV2/components/hospital-project/index.acss

@@ -159,10 +159,11 @@
   margin-bottom: 0;
 }
 .project-container .project-button {
+  width: 100%;
   position: fixed;
   right: 0;
-  bottom: 1rpx;
   left: 0;
+  bottom: 1rpx;
   box-sizing: border-box;
   height: 180rpx;
   padding: 16rpx 24rpx;
@@ -208,3 +209,4 @@
 .result .am-page-result .am-page-result-pic{
   margin: calc(30vh - 200px) auto 0 !important;
 }
+

+ 90 - 87
antbuilder/industry/hospitalV2/components/hospital-project/index.axml

@@ -1,98 +1,101 @@
-<view class="project-container">
-  <view class="project-head"></view>
-  <view class="project-content">
-    <!-- 人员信息 -->
-    <view a:if="{{personItem.name}}" class="content-out project-person">
-      <view class="person-name" onTap="onOpenPerson">
-        <view class="person-name-left">
-          <text class="name">{{personItem.name}}</text>
-          <view class="mark" a:if="{{personItem.bindCardNum}}">已绑定就诊卡</view>
-          <view class="mark mark-grey" a:else>未绑定就诊卡</view>
-          <view class="mark">{{personItem.relationShip === '我自己' ? '本人' : personItem.relationShip}}</view>
+  <view class="project-container">
+    <view class="project-head"></view>
+    <view class="project-content">
+      <!-- 人员信息 -->
+      <view a:if="{{personItem.name}}" class="content-out project-person">
+        <view class="person-name" onTap="onOpenPerson">
+          <view class="person-name-left">
+            <text class="name">{{personItem.name}}</text>
+            <view class="mark" a:if="{{personItem.bindCardNum}}">已绑定就诊卡</view>
+            <view class="mark mark-grey" a:else>未绑定就诊卡</view>
+            <view class="mark">{{personItem.relationShip === '我自己' ? '本人' : personItem.relationShip}}</view>
+          </view>
+          <am-icon type="right" color="#ccc" size="24" />
+        </view>
+        <view class="person-other">
+          <text>
+            <text a:if="{{personItem.sex}}">{{personItem.sex}}</text>
+            <text a:if="{{personItem.age}}">,{{personItem.age}}岁</text>
+            <text a:if="{{personItem.phoneNumber}}">,{{personItem.phoneNumber}}</text>
+          </text>
         </view>
-        <am-icon type="right" color="#ccc" size="24" />
+        <view class="person-hospital">
+          <text>就诊院区</text>
+          <text class="hospital">{{hospitalName}}</text>
+        </view>
+      </view>
+      <!-- 选择项目 -->
+      <view class="content-out project-select">
+        <view class="title">请选择项目</view>
+        <radio-group>
+          <label a:for="{{projects}}" key="label-{{index}}" class="project-select-label">
+            <view class="project-select-item" onTap="onChangeProject" data-item="{{item}}">
+              <view class="item-left">
+                <view class="radio">
+                  <radio color="#1677ff" value="{{item.nucleicItemId}}" />
+                </view>
+                <view>
+                  <view class="name">{{item.nucleicItemName}}</view>
+                  <view class="detail">{{item.nucleicItemDesc}}</view>
+                </view>
+              </view>
+              <view class="item-right"> ¥ {{item.nucleicItemFee}}</view>
+            </view>
+          </label>
+        </radio-group>
       </view>
-      <view class="person-other">
-        <text>
-          <text a:if="{{personItem.sex}}">{{personItem.sex}}</text>
-          <text a:if="{{personItem.age}}">,{{personItem.age}}岁</text>
-          <text a:if="{{personItem.phoneNumber}}">,{{personItem.phoneNumber}}</text>
-        </text>
+      <!-- 选择时间 -->
+      <view a:if="{{setShowTime}}" class="content-out">
+        <view class="title">请选择检查时间</view>
+        <!-- 选择检查时间 -->
+        <select-time setDayTime="{{setDayTime}}" onChange="onCloseTime" timeList="{{timeList}}" />
       </view>
-      <view class="person-hospital">
-        <text>就诊院区</text>
-        <text class="hospital">{{hospitalName}}</text>
+      <view a:elif="{{ projects.length <= 0 }}" class="result">
+        <page-result 
+          type="empty" 
+          title="暂无医生排班信息" 
+          brief="" 
+          footer="{{footer}}" 
+          onTapLeft="onTapLeft" 
+          onTapRight="onTapRight"
+          class="result" />
       </view>
-    </view>
-    <!-- 选择项目 -->
-    <view class="content-out project-select">
-      <view class="title">请选择项目</view>
-      <radio-group>
-        <label a:for="{{projects}}" key="label-{{index}}" class="project-select-label">
-          <view class="project-select-item" onTap="onChangeProject" data-item="{{item}}">
-            <view class="item-left">
-              <view class="radio">
-                <radio color="#1677ff" value="{{item.nucleicItemId}}" />
-              </view>
-              <view>
-                <view class="name">{{item.nucleicItemName}}</view>
-                <view class="detail">{{item.nucleicItemDesc}}</view>
+      <!-- 流调表 & 预约按钮 -->
+      <form onSubmit="onSubmit" onReset="onReset">
+        <!-- 流调表 -->
+        <view class="content-out project-table" a:if="{{setShowForm && formList && formList.length > 0}}">
+          <view class="title">应疫情防控需要,请您如实填写以下问卷</view>
+          <!-- 流调表-表单 -->
+          <view class="project-form">
+            <block a:for="{{formList}}">
+              <view class="form-section">
+                <view class="form-section-title">{{index+1}}. {{item.question}}</view>
+                <radio-group class="form-section-radio" data-index="{{index}}" data-name="{{`${index+1}&${item.correctAnswerId}`}}" 
+                  onChange="onRadioChange" name="{{`${index+1}&${item.correctAnswerId}`}}">
+                  <label class="content-item" a:for="{{item.answerList}}" a:for-item="inner">
+                    <radio color="#1677ff" value="{{inner.optionItemId}}" />
+                    <text class="radio-text">{{inner.optionItemDesc}}</text>
+                  </label>
+                </radio-group>
               </view>
-            </view>
-            <view class="item-right"> ¥ {{item.nucleicItemFee}}</view>
+            </block>
           </view>
-        </label>
-      </radio-group>
-    </view>
-    <!-- 选择时间 -->
-    <view a:if="{{setShowTime}}" class="content-out">
-      <view class="title">请选择检查时间</view>
-      <!-- 选择检查时间 -->
-      <select-time setDayTime="{{setDayTime}}" onChange="onCloseTime" timeList="{{timeList}}" />
-    </view>
-    <view a:elif="{{ projects.length <= 0 }}" class="result">
-      <page-result 
-        type="empty" 
-        title="暂无医生排班信息" 
-        brief="" 
-        footer="{{footer}}" 
-        onTapLeft="onTapLeft" 
-        onTapRight="onTapRight"
-        class="result" />
+        </view>
+        
+      </form>
     </view>
-    <!-- 流调表 & 预约按钮 -->
-    <form onSubmit="onSubmit" onReset="onReset">
-      <!-- 流调表 -->
-      <view class="content-out project-table" a:if="{{setShowForm && formList && formList.length > 0}}">
-        <view class="title">应疫情防控需要,请您如实填写以下问卷</view>
-        <!-- 流调表-表单 -->
-        <view class="project-form">
-          <block a:for="{{formList}}">
-            <view class="form-section">
-              <view class="form-section-title">{{index+1}}. {{item.question}}</view>
-              <radio-group class="form-section-radio" data-index="{{index}}" data-name="{{`${index+1}&${item.correctAnswerId}`}}" 
-                onChange="onRadioChange" name="{{`${index+1}&${item.correctAnswerId}`}}">
-                <label class="content-item" a:for="{{item.answerList}}" a:for-item="inner">
-                  <radio color="#1677ff" value="{{inner.optionItemId}}" />
-                  <text class="radio-text">{{inner.optionItemDesc}}</text>
-                </label>
-              </radio-group>
-            </view>
-          </block>
+    <!-- 预约按钮 -->
+    <view class="project-button">
+      <view class="project-button-out">
+        <view class="title-out">
+          <view class="title">费用</view>
+          <view class="money">¥ {{ projectItem.nucleicItemFee ? projectItem.nucleicItemFee : '0.00'}}</view>
         </view>
+        <button disabled="{{disabled}}" loading="{{ loading }}" class="button" size="default" type="primary" formType="submit">{{onlinePay ? '预约并支付' : '立即预约'}}</button>
       </view>
-    </form>
-  </view>
-  <!-- 预约按钮 -->
-  <view class="project-button">
-    <view class="project-button-out">
-      <view class="title-out">
-        <view class="title">费用</view>
-        <view class="money">¥ {{ projectItem.nucleicItemFee ? projectItem.nucleicItemFee : '0.00'}}</view>
-      </view>
-      <button disabled="{{disabled}}" loading="{{ loading }}" class="button" size="default" type="primary" formType="submit">{{onlinePay ? '预约并支付' : '立即预约'}}</button>
     </view>
+    
+    <!-- 选择就诊人 -->
+    <select-person personIndex="{{personIndex}}" show="{{showPerson}}" onClose="onClosePerson" onChange="onPersonChange" defaultList="{{personList}}" />
   </view>
-  <!-- 选择就诊人 -->
-  <select-person personIndex="{{personIndex}}" show="{{showPerson}}" onClose="onClosePerson" onChange="onPersonChange" defaultList="{{personList}}" />
-</view>
+