Sfoglia il codice sorgente

隐藏定向院校删除功能,新增定向提示

shmily1213 2 settimane fa
parent
commit
6412beb1fa

+ 3 - 0
src/main.ts

@@ -77,6 +77,9 @@ export function createApp() {
       icon: {
         customClass: {
           default: ''
+        },
+        inline: {
+          default: false
         }
       },
       popup: {

+ 2 - 2
src/pagesStudy/pages/targeted-setting/components/directed-school-item.vue

@@ -11,9 +11,9 @@
         <view class="mt-8 text-20 text-fore-light">{{ data.majorAncestors }}</view>
       </view>
       <view class="w-fit flex flex-col items-end">
-        <view class="mb-30" @click="handleDelete">
+        <!-- <view class="mb-30" @click="handleDelete">
           <uv-icon name="trash" color="#bbb" size="24" />
-        </view>
+        </view> -->
         <view v-if="active"
           class="w-120 flex items-center justify-between gap-x-4 text-white bg-primary rounded-full px-8 py-4 box-border">
           <ie-image src="/pagesStudy/static/image/icon-check-white.png" custom-class="w-24 h-24" />

+ 6 - 1
src/pagesStudy/pages/targeted-setting/targeted-setting.vue

@@ -28,7 +28,12 @@
       <ie-image src="/pagesStudy/static/image/icon-empty.png" custom-class="w-364 h-252 mx-auto" mode="aspectFill" />
       <text class="text-30 text-fore-light text-center">目前暂无定向院校~</text>
     </view>
-
+    <view class="m-30 bg-white p-30 rounded-10">
+      <view class="">
+        <uv-icon name="info-circle" size="16" color="var(--danger)" :inline="true" />
+        <text class="text-28 text-fore-tip inline ml-8">2026考纲知识点已更新,可添加3个目标院校与专业,添加后不可修改,请谨慎选择!</text>
+      </view>
+    </view>
     <ie-safe-toolbar v-if="directedSchoolList.length < 3" :height="84" :shadow="false">
       <view class="px-46 pt-24">
         <ie-button type="primary" @click="handleAdd">添加</ie-button>

+ 9 - 1
src/uni_modules/uv-icon/components/uv-icon/uv-icon.vue

@@ -2,7 +2,7 @@
 	<view
 	  class="uv-icon"
 	  @tap="clickHandler"
-	  :class="['uv-icon--' + labelPos, customClass]"
+	  :class="['uv-icon--' + labelPos, customClass, { 'is-inline': inline }]"
 	>
 		<image
 		  class="uv-icon__img"
@@ -229,4 +229,12 @@
 			/* #endif */
 		}
 	}
+  .is-inline {
+    display: inline;
+    .uv-icon__img, 
+    .uv-icon__icon,
+    .uv-icon__label {
+      display: inline;
+    }
+  }
 </style>