lisy há 1 mês atrás
pai
commit
96192bd999
5 ficheiros alterados com 12 adições e 7 exclusões
  1. 5 1
      src/App.vue
  2. 2 2
      src/components/ut-empty/ut-empty.vue
  3. 4 1
      src/pages/plant/index.vue
  4. 1 3
      src/uni.scss
  5. 0 0
      stats.html

+ 5 - 1
src/App.vue

@@ -22,4 +22,8 @@ onHide(() => {
     console.log('App Hide');
 });
 </script>
-<style lang="scss"></style>
+<style lang="scss">
+@import '@/assets/styles/public.scss';
+@import '@/assets/styles/common.scss';
+@import '@/assets/styles/uview-plus.scss';
+</style>

+ 2 - 2
src/components/ut-empty/ut-empty.vue

@@ -3,7 +3,7 @@
         <view class="ut-empty__icon">
             <image :style="{ width, height }" :src="image" mode="aspectFit"></image>
         </view>
-        <view class="ut-empty__text f-s-24" style="margin-top: -50rpx;" :style="{color}">
+        <view class="ut-empty__text f-s-24" style="margin-top: -50rpx" :style="{ color }">
             <slot>
                 {{ text }}
             </slot>
@@ -33,4 +33,4 @@ const props = defineProps({
         default: '#ccc',
     },
 });
-</script>
+</script>

+ 4 - 1
src/pages/plant/index.vue

@@ -66,7 +66,10 @@
                         </view>
                     </view>
                     <template #empty>
-                        <ut-empty class="mg-at">尚未添加绘制种养殖基地信息~</ut-empty>
+                        <ut-empty class="mg-at" color="">尚未添加绘制种养殖基地信息~</ut-empty>
+                        <up-button >
+                            <template #text> 添加基地信息 </template>
+                        </up-button>
                     </template>
                 </view>
             </view>

+ 1 - 3
src/uni.scss

@@ -14,9 +14,7 @@
 
 /* 颜色变量 */
 @import 'uview-plus/theme.scss';
-@import '@/assets/styles/public.scss';
-@import '@/assets/styles/common.scss';
-@import '@/assets/styles/uview-plus.scss';
+
 /* 行为相关颜色 */
 $uni-color-primary: #1D9C3E;
 $uni-color-success: #4cd964;

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
stats.html


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff