wangxy 3 هفته پیش
والد
کامیت
e2ac0a90f9

+ 1 - 0
components/custom-scroll-list/custom-scroll-list-chengji.vue

@@ -30,6 +30,7 @@
 	import {
 		onLoad
 	} from "@dcloudio/uni-app"
+  import uniLoadMore from "@/subpacks/uni-load-more/components/uni-load-more/uni-load-more";
 
 	const props = defineProps({
 		refreshFn: {

+ 1 - 1
components/custom-scroll-list/custom-scroll-list.vue

@@ -25,7 +25,7 @@
 		onMounted,
 		computed,
 	} from "vue";
-
+  import uniLoadMore from "@/subpacks/uni-load-more/components/uni-load-more/uni-load-more";
 	import {
 		onLoad
 	} from "@dcloudio/uni-app"

+ 1 - 0
components/zhuapaiConfirm/submitScore.vue

@@ -27,6 +27,7 @@
 
 <script setup>
 import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
+import cProgressCircle from "@/subpacks/c-progress-circle/components/c-progress-circle/c-progress-circle.vue"
 import {
   ref,
   reactive

+ 189 - 75
pages.json

@@ -9,103 +9,175 @@
 		{
 			"path": "pages/index/index",
 			"style": {
-				"navigationStyle": "custom"
+				"navigationStyle": "custom",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/exam/index",
+			"path": "pages/exam/index",
 			"style": {
-				"navigationStyle": "custom"
+				"navigationStyle": "custom",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/my/index",
-			"style" :
-			{
-				"navigationBarTitleText" : "我的"
+			"path": "pages/my/index",
+			"style": {
+				"navigationBarTitleText": "我的",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/my/mesList",
-			"style" :
-			{
-				"navigationBarTitleText" : "消息"
+			"path": "pages/my/mesList",
+			"style": {
+				"navigationBarTitleText": "消息",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/my/zhengshu",
-			"style" :
-			{
-				"navigationBarTitleText" : "证书"
+			"path": "pages/my/zhengshu",
+			"style": {
+				"navigationBarTitleText": "证书",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/my/setting",
-			"style" :
-			{
-				"navigationBarTitleText" : "设置"
+			"path": "pages/my/setting",
+			"style": {
+				"navigationBarTitleText": "设置",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/demo/index",
-			"style" :
-			{
-				"navigationBarTitleText" : "demo"
+			"path": "pages/demo/index",
+			"style": {
+				"navigationBarTitleText": "demo"
 			}
 		},
 		{
-			"path" : "pages/course/index",
-			"style" :
-			{
-				"navigationBarTitleText" : "课程"
+			"path": "pages/course/index",
+			"style": {
+				"navigationBarTitleText": "课程",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
-			{
-			"path" : "pages/course/kechengInfo",
-			"style" :
-			{
-				"navigationBarTitleText" : "课程详情"
+		{
+			"path": "pages/course/kechengInfo",
+			"style": {
+				"navigationBarTitleText": "课程详情",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/score/index",
-			"style" :
-			{
-				"navigationStyle" : "custom"
+			"path": "pages/score/index",
+			"style": {
+				"navigationStyle": "custom",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/score/kaoshiChengjiInfo",
-			"style" :
-			{
-					"navigationStyle" : "custom"
+			"path": "pages/score/kaoshiChengjiInfo",
+			"style": {
+				"navigationStyle": "custom",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/exam/exam",
+			"path": "pages/exam/exam",
 			"style": {
-				"navigationStyle": "custom"
+				"navigationStyle": "custom",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/lianxi/index",
-			"style" : 
-			{
-				"navigationBarTitleText" : "练习"
+			"path": "pages/lianxi/index",
+			"style": {
+				"navigationBarTitleText": "练习",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/lianxi/lianxi",
-			"style" : 
-			{
-				"navigationBarTitleText" : ""
+			"path": "pages/lianxi/lianxi",
+			"style": {
+				"navigationBarTitleText": "",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		{
-			"path" : "pages/baoming/index",
-			"style" : 
-			{
-				"navigationBarTitleText" : "报名"
+			"path": "pages/baoming/index",
+			"style": {
+				"navigationBarTitleText": "报名",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
 			}
 		},
 		// {
@@ -116,29 +188,63 @@
 		// 	}
 		// },
 		{
-			"path" : "pages/my/mesPage",
-			"style" : 
-			{
-				"navigationBarTitleText" : "消息详情"
+			"path": "pages/my/mesPage",
+			"style": {
+				"navigationBarTitleText": "消息详情",
+			"componentPlaceholder": {
+				"uni-card": "view",
+				"uni-load-more": "view",
+				"uni-badge":"view",
+				"c-progress-circle":"view"
+			}
 			}
 		},
 		{
-			"path" : "pages/my/credit",
-			"style" : 
-			{
-				"navigationBarTitleText" : "学分"
+			"path": "pages/my/credit",
+			"style": {
+				"navigationBarTitleText": "学分",
+				"componentPlaceholder": {
+					"uni-card": "view",
+					"uni-load-more": "view",
+					"uni-badge":"view",
+					"c-progress-circle":"view"
+				}
+			}
+		},
+		{
+			"path": "components/zhuapaiConfirm/submitScore",
+			"style": {
+				"componentPlaceholder": {
+					"c-progress-circle":"view"
+				}
+			}
+		},
+		{
+			"path": "components/custom-scroll-list-chengji/custom-scroll-list-chengji",
+			"style": {
+				"componentPlaceholder": {
+					"uni-load-more": "view"
+				}
+			}
+		},
+		{
+			"path": "components/custom-scroll-list/custom-scroll-list",
+			"style": {
+				"componentPlaceholder": {
+					"uni-load-more": "view"
+				}
 			}
 		}
 	],
 	"tabBar": {
-			"color": "#565656",
-			"selectedColor": "#0856E6",
-			"borderStyle": "black",
-			"backgroundColor": "#ffffff",
-			"fontSize": "13px",
-			"iconWidth": "28px",
-			"spacing": "0px",
-			"list": [{
+		"color": "#565656",
+		"selectedColor": "#0856E6",
+		"borderStyle": "black",
+		"backgroundColor": "#ffffff",
+		"fontSize": "13px",
+		"iconWidth": "28px",
+		"spacing": "0px",
+		"list": [{
 				"pagePath": "pages/index/index",
 				"iconPath": "static/images/tabbar/unselect/index-sj.png",
 				"selectedIconPath": "static/images/tabbar/select/index-sj.png",
@@ -148,7 +254,7 @@
 				"iconPath": "static/images/tabbar/unselect/exam-sj.png",
 				"selectedIconPath": "static/images/tabbar/select/exam-sj.png",
 				"text": "考试"
-			}, 
+			},
 			{
 				"pagePath": "pages/score/index",
 				"iconPath": "static/images/tabbar/unselect/score-sj.png",
@@ -159,13 +265,21 @@
 				"iconPath": "static/images/tabbar/unselect/my-sj.png",
 				"selectedIconPath": "static/images/tabbar/select/my-sj.png",
 				"text": "我的"
-			}]
-		},
+			}
+		]
+	},
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
 		"navigationBarTitleText": "麦塔软件",
 		"navigationBarBackgroundColor": "#fff"
 	},
-
+	"subPackages": [
+		// 声明 uni_modules 分包
+		{
+			"root": "subpacks", // 将 uni_modules 作为分包根目录
+			"name": "subpack",
+			"pages": []
+		}
+	],
 	"uniIdRouter": {}
-}
+}

+ 3 - 3
pages/baoming/index.vue

@@ -1,17 +1,17 @@
 <template>
-	<custom-scroll-list :refreshFn="getBaomingList" :tabList="tabData" :defaultTab="0" ref="scrollRef"
+<!-- 	<custom-scroll-list :refreshFn="getBaomingList" :tabList="tabData" :defaultTab="0" ref="scrollRef"
 		placeholder="请输入报名考试名称">
 		<template #default="{list}">
 			<scroll-list-card-baoming v-for="(item,index) in list" :key="item.lxId" :data="item"
 				@btnClick="handleClick"></scroll-list-card-baoming>
 		</template>
-	</custom-scroll-list>
+	</custom-scroll-list> -->
 	<!-- 考试须知 -->
 	<kaoshixuzhi ref="ksxzRef" @confirm="handleConfirm"></kaoshixuzhi>
 </template>
 
 <script setup>
-	import scrollListCardBaoming from "@/components/score-list-card-baoming/score-list-card-baoming.vue"
+	// import scrollListCardBaoming from "@/components/score-list-card-baoming/score-list-card-baoming.vue"
 	import kaoshixuzhi from "@/components/kaoshixuzhi/kaoshixuzhi.vue"
 	import {
 		getBaomingList,

+ 6 - 4
pages/index/index.vue

@@ -7,8 +7,8 @@
 		</view>
 		<!-- meul-box -->
 		<view class="index-meul-box">
-			<uni-grid :column="4" :show-border="false" :square="false" @change="gridClick">
-				<uni-grid-item v-for="(item ,index) in menuList" :index="index" :key="index">
+			<view :column="4" :show-border="false" :square="false" @change="gridClick">
+				<view v-for="(item ,index) in menuList" :index="index" :key="index">
 					<view class="lli-grid-item">
 						<image class="grid-item-image" :src="item.url" mode="aspectFill" />
 						<text class="grid-item-text">{{item.text}}</text>
@@ -16,8 +16,8 @@
 							<uni-badge :text="item.badge" :type="item.type" :customStyle="{background: '#FF5551'}" />
 						</view>
 					</view>
-				</uni-grid-item>
-			</uni-grid>
+				</view>
+			</view>
 		</view>
 
 		<!-- 课程list -->
@@ -71,6 +71,8 @@
 		getClientKaoshiInfo
 	} from "@/api/exam.js";
 	import kaoshixuzhi from "@/components/kaoshixuzhi/kaoshixuzhi.vue"
+  import uniBadge from "@/subpacks/uni-badge/components/uni-badge/uni-badge";
+  import uniCard from "@/subpacks/uni-card/components/uni-card/uni-card";
 	import {
 		ref,
 		reactive