huangxw 1 개월 전
부모
커밋
0cf2366fd4
5개의 변경된 파일12개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 0
      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. 1 0
      stats.html

+ 4 - 0
src/App.vue

@@ -24,6 +24,10 @@ onHide(() => {
 </script>
 <style lang="scss">
     
+
+@import '@/assets/styles/public.scss';
+@import '@/assets/styles/common.scss';
+@import '@/assets/styles/uview-plus.scss';
 // 设置背景色
 page {
 	background-color: #f7f7f7;

+ 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,12 +14,10 @@
 
 /* 颜色变量 */
 @import 'uview-plus/theme.scss';
-@import '@/assets/styles/public.scss';
-@import '@/assets/styles/common.scss';
-@import '@/assets/styles/uview-plus.scss';
 $u-primary: #37A954;
 $u-primary-dark: #37A954;
 $up-primary: #37A954;
+
 /* 行为相关颜色 */
 $uni-color-primary: #37A954;
 $uni-color-success: #4cd964;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
stats.html


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.