Prechádzať zdrojové kódy

种源库兼容鲜货库

huangxw 3 týždňov pred
rodič
commit
c6912b8033

+ 12 - 1
src/plant/storage/agro-product/list/model/agro-bottom.vue

@@ -1,5 +1,5 @@
 <template>
-    <view class="source-bottom p-rtv">
+    <view class="source-bottom-fixed">
         <view class="source-top-view h-49"></view>
         <view class="source-bottom-view pt-49 text-center bg-#fff pt-60" :style="{ opacity: btnStyle == 'close' ? 0 : 1 }">
              <view style="opacity: 0;">{{ mapTextBtn[btnStyle] }}</view>
@@ -33,6 +33,10 @@
                 </view>
         </view>
     </view>
+    <view class="pt-60">
+        <view style="opacity: 0;">{{ mapTextBtn[btnStyle] }}</view>
+    </view>
+    <view class="bg-#fff" :style="{ height: safeAreaBottom + 'px' }"></view>
 </template>
 <script setup lang="ts">
 const windowInfo = uni.getWindowInfo();
@@ -48,6 +52,13 @@ const clickBtnBall = () => {
 </script>
 
 <style scoped lang="scss">
+.source-bottom-fixed {
+    position: fixed;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    z-index: 10;
+}
 .source-center-view {
     position: absolute;
     top: 0;

+ 12 - 1
src/plant/storage/fresh-goods/list/model/fresh-goods-bottom.vue

@@ -1,5 +1,5 @@
 <template>
-    <view class="source-bottom p-rtv">
+    <view class="source-bottom-fixed">
         <view class="source-top-view h-49"></view>
         <view class="source-bottom-view pt-49 text-center bg-#fff pt-60" :style="{ opacity: btnStyle == 'close' ? 0 : 1 }">
              <view style="opacity: 0;">{{ mapTextBtn[btnStyle] }}</view>
@@ -37,6 +37,10 @@
                 </view>
         </view>
     </view>
+      <view class="pt-60">
+        <view style="opacity: 0;">{{ mapTextBtn[btnStyle] }}</view>
+    </view>
+    <view class="bg-#fff" :style="{ height: safeAreaBottom + 'px' }"></view>
 </template>
 <script setup lang="ts">
 const windowInfo = uni.getWindowInfo();
@@ -52,6 +56,13 @@ const clickBtnBall = () => {
 </script>
 
 <style scoped lang="scss">
+.source-bottom-fixed {
+    position: fixed;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    z-index: 10;
+}
 .source-center-view {
     position: absolute;
     top: 0;

+ 12 - 3
src/plant/storage/seed-source/list/model/source-bottom.vue

@@ -1,14 +1,12 @@
 <template>
-    <view class="source-bottom p-rtv">
+    <view class="source-bottom-fixed">
         <view class="source-top-view h-49"></view>
         <view class="source-bottom-view pt-49 text-center bg-#fff pt-60" :style="{ opacity: btnStyle == 'close' ? 0 : 1 }">
              <view style="opacity: 0;">{{ mapTextBtn[btnStyle] }}</view>
-       
         </view>
         <view @click="clickBtnBall" class="source-center-view d-flex flex-cln a-c j-c">
             <view class="source-btn-ball d-flex a-c j-c" :class="{ [`btn-deg-${btnStyle}`]: true }" :style="{ backgroundImage: 'url(https://ta.zycpzs.cn/oss-file/smart-trace/szyy/images-plt/plant/storage/add_c_btn.png)' }"></view>
             <view class="c-primary f-s-28 pt-6">{{ mapTextBtn[btnStyle] }}</view>
-            
         </view>
         <view class="bg-#fff" :style="{ height: safeAreaBottom + 'px' }"></view>
         <view class="bottom-circle-line" :class="{ 'bottom-circle-line-active': btnStyle == 'close' }" :style="{ bottom: safeAreaBottom + 'px' }">
@@ -37,6 +35,10 @@
                 </view>
         </view>
     </view>
+    <view class="pt-60">
+        <view style="opacity: 0;">{{ mapTextBtn[btnStyle] }}</view>
+    </view>
+    <view class="bg-#fff" :style="{ height: safeAreaBottom + 'px' }"></view>
 </template>
 <script setup lang="ts">
 const windowInfo = uni.getWindowInfo();
@@ -52,6 +54,13 @@ const clickBtnBall = () => {
 </script>
 
 <style scoped lang="scss">
+.source-bottom-fixed {
+    position: fixed;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    z-index: 10;
+}
 .source-center-view {
     position: absolute;
     top: 0;