zs 1 рік тому
батько
коміт
afbb948f98
51 змінених файлів з 571 додано та 583 видалено
  1. 10 0
      pages.json
  2. 8 8
      pages/home/index.vue
  3. 8 8
      pages/select/index.vue
  4. 25 1
      pagesHome/condition/index.vue
  5. 2 27
      pagesHome/rank/index.vue
  6. 8 8
      pagesHome/search/index.vue
  7. 94 0
      pagesHome/type/index.vue
  8. 7 1
      pagesMy/car/index.vue
  9. 8 6
      pagesMy/collect/index.vue
  10. 1 0
      unpackage/dist/dev/mp-weixin/app.js
  11. 1 0
      unpackage/dist/dev/mp-weixin/app.json
  12. 158 236
      unpackage/dist/dev/mp-weixin/common/vendor.js
  13. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-album/u-album.js
  14. 0 60
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js
  15. 0 4
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.json
  16. 0 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.wxml
  17. 0 72
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.wxss
  18. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js
  19. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-column-notice/u-column-notice.js
  20. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js
  21. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js
  22. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js
  23. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-row-notice/u-row-notice.js
  24. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-subsection/u-subsection.js
  25. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.js
  26. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper/u-swiper.js
  27. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.js
  28. 1 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-transition/u-transition.js
  29. 12 10
      unpackage/dist/dev/mp-weixin/pages/home/index.js
  30. 1 1
      unpackage/dist/dev/mp-weixin/pages/home/index.wxml
  31. 15 13
      unpackage/dist/dev/mp-weixin/pages/select/index.js
  32. 1 1
      unpackage/dist/dev/mp-weixin/pages/select/index.wxml
  33. 0 1
      unpackage/dist/dev/mp-weixin/pages/select/index.wxss
  34. 25 2
      unpackage/dist/dev/mp-weixin/pagesHome/condition/index.js
  35. 1 1
      unpackage/dist/dev/mp-weixin/pagesHome/condition/index.wxml
  36. 21 46
      unpackage/dist/dev/mp-weixin/pagesHome/rank/index.js
  37. 1 3
      unpackage/dist/dev/mp-weixin/pagesHome/rank/index.json
  38. 1 1
      unpackage/dist/dev/mp-weixin/pagesHome/rank/index.wxml
  39. 3 13
      unpackage/dist/dev/mp-weixin/pagesHome/rank/index.wxss
  40. 32 30
      unpackage/dist/dev/mp-weixin/pagesHome/search/index.js
  41. 1 1
      unpackage/dist/dev/mp-weixin/pagesHome/search/index.wxml
  42. 0 1
      unpackage/dist/dev/mp-weixin/pagesHome/search/index.wxss
  43. 60 0
      unpackage/dist/dev/mp-weixin/pagesHome/type/index.js
  44. 8 0
      unpackage/dist/dev/mp-weixin/pagesHome/type/index.json
  45. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/type/index.wxml
  46. 20 0
      unpackage/dist/dev/mp-weixin/pagesHome/type/index.wxss
  47. 11 5
      unpackage/dist/dev/mp-weixin/pagesMy/car/index.js
  48. 1 1
      unpackage/dist/dev/mp-weixin/pagesMy/car/index.wxml
  49. 13 7
      unpackage/dist/dev/mp-weixin/pagesMy/collect/index.js
  50. 1 1
      unpackage/dist/dev/mp-weixin/pagesMy/collect/index.wxml
  51. 0 1
      unpackage/dist/dev/mp-weixin/pagesMy/collect/index.wxss

+ 10 - 0
pages.json

@@ -123,6 +123,16 @@
 						"backgroundColorBottom": "#F4F5F6"
 					}
 				},
+				{
+					"path": "type/index",
+					"style": {
+						"navigationBarTitleText": "搜索",
+						"navigationBarBackgroundColor": "#F8F8F8",
+						"backgroundColor": "#F8F8F8",
+						"backgroundColorTop": "#F4F5F6",
+						"backgroundColorBottom": "#F4F5F6"
+					}
+				},
 				{
 					"path": "login/index",
 					"style": {

+ 8 - 8
pages/home/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="content">
 		<view class="top">
-			<u-search shape="square" :show-action="false" placeholder="品牌/车系"></u-search>
+			<u-search shape="square" :show-action="false" placeholder="品牌/车系" @change="toChange"></u-search>
 		</view>
 		<view class="bottom">
 			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
@@ -41,8 +41,6 @@
 	const $config = getCurrentInstance()?.appContext.config.globalProperties.$config;
 	// 基本信息
 	const config = ref({ logoUrl: [] });
-	// 查询
-	const searchInfo = ref({});
 	// 列表
 	const list = ref([]);
 	const total = ref(0);
@@ -73,10 +71,7 @@
 			limit: limit.value,
 			status: '0'
 		}
-		const res = await $api('car', 'GET', {
-			...info,
-			...searchInfo.value
-		});
+		const res = await $api('car', 'GET', info);
 		if (res.errcode === 0) {
 			list.value = list.value.concat(res.data)
 			total.value = res.total
@@ -87,8 +82,13 @@
 			});
 		}
 	};
+	// 搜索
+	const toChange = () => {
+		uni.navigateTo({
+			url: `/pagesHome/type/index`
+		})
+	};
 	const toCommon = (item) => {
-		console.log(item);
 		uni.navigateTo({
 			url: `/pagesHome/search/index?type=${item.type || ''}`
 		})

+ 8 - 8
pages/select/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="content">
 		<view class="top">
-			<u-search shape="square" :show-action="false" placeholder="品牌/车系"></u-search>
+			<u-search shape="square" :show-action="false" placeholder="品牌/车系" @change="toChange"></u-search>
 		</view>
 		<view class="bottom">
 			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
@@ -72,8 +72,6 @@
 	const $config = getCurrentInstance()?.appContext.config.globalProperties.$config;
 	// 基本信息
 	const config = ref({ logoUrl: [] });
-	// 查询
-	const searchInfo = ref({});
 	// 列表
 	const list = ref([]);
 	const total = ref(0);
@@ -136,10 +134,7 @@
 			limit: limit.value,
 			status: '0'
 		}
-		const res = await $api('car', 'GET', {
-			...info,
-			...searchInfo.value
-		});
+		const res = await $api('car', 'GET', info);
 		if (res.errcode === 0) {
 			list.value = list.value.concat(res.data)
 			total.value = res.total
@@ -150,6 +145,12 @@
 			});
 		}
 	};
+	// 搜索
+	const toChange = () => {
+		uni.navigateTo({
+			url: `/pagesHome/type/index`
+		})
+	};
 	const toRoute = (item) => {
 		uni.navigateTo({
 			url: `/${item.route}`,
@@ -258,7 +259,6 @@
 					display: flex;
 					margin: 1vw 0 0 0;
 					padding: 1vw;
-					height: 100px;
 
 					.left {
 						.image {

+ 25 - 1
pagesHome/condition/index.vue

@@ -49,7 +49,7 @@
 			</scroll-view>
 		</view>
 		<view class="foot">
-			<view class="left">重置</view>
+			<view class="left" @tap="toReset">重置</view>
 			<view class="right">
 				<view class="button" @tap="toSearch">共{{total}}辆车符合条件</view>
 			</view>
@@ -83,6 +83,8 @@
 	const brandInfo = ref({}); // 车牌信息
 	const cityInfo = ref({}); // 城市信息
 	const searchList = ref([]); // 选中的搜索信息
+	// 查询
+	const searchInfo = ref({});
 	// 字典表
 	const boxTypeList = ref([]);
 	const structureList = ref([]);
@@ -181,6 +183,23 @@
 			return item
 		})
 		tabbar.value = data
+		const info = {
+			skip: 0,
+			limit: 1,
+			status: '0'
+		}
+		const res = await $api('car', 'GET', {
+			...info,
+			...searchInfo.value
+		});
+		if (res.errcode === 0) {
+			total.value = res.total
+		} else {
+			uni.showToast({
+				title: res.errmsg || '',
+				icon: 'error',
+			});
+		}
 	};
 	// 点击左边的栏目切换
 	const swichMenu = (index) => {
@@ -234,6 +253,11 @@
 			url: `/pagesHome/search/index`
 		})
 	};
+	// 重置
+	const toReset = () => {
+		searchInfo.value = {}
+		search()
+	};
 </script>
 <style lang="scss" scoped>
 	.content {

+ 2 - 27
pagesHome/rank/index.vue

@@ -1,14 +1,6 @@
 <template>
 	<view class="content">
 		<view class="top">
-			<u-swiper :list="url" height="200px" keyName="url" @change="e => currentNum = e.current"
-				indicatorStyle="right: 20px" radius="0">
-				<template #indicator>
-					<view class="indicator-num">
-						<text class="indicator-num__text">{{ currentNum + 1 }}/{{ url.length }}</text>
-					</view>
-				</template>
-			</u-swiper>
 			<u-subsection mode="subsection" activeColor="#ffbc00" :list="tabList" :current="curNow"
 				@change="sectionChange"></u-subsection>
 		</view>
@@ -16,8 +8,6 @@
 			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
 				<view class="list-scroll-view">
 					<view class="list" v-for="(item, index) in list" :key="index" @tap="toView(item)">
-						<up-badge :absolute="true" :offset="offset" numberType="overflow" shape="horn" max="99"
-							:value="index+1"></up-badge>
 						<view class="left">
 							<image class="image" :src="item.file&&item.file.length>0?item.file[0].url:''">
 							</image>
@@ -63,9 +53,6 @@
 	const curNow = ref(0);
 	// 基本信息
 	const config = ref({ logoUrl: [] });
-	// 轮播图
-	const currentNum = ref(1);
-	const url = ref([{ url: 'https://cdn.uviewui.com/uview/album/1.jpg' }, { url: 'https://cdn.uviewui.com/uview/album/2.jpg' }, { url: 'https://cdn.uviewui.com/uview/album/3.jpg' }, { url: 'https://cdn.uviewui.com/uview/album/4.jpg' }, { url: 'https://cdn.uviewui.com/uview/album/5.jpg' }]);
 	// 列表
 	const list = ref([
 		{
@@ -240,19 +227,7 @@
 		height: 100vh;
 
 		.top {
-			.indicator-num {
-				padding: 2px 0;
-				background-color: rgba(0, 0, 0, 0.35);
-				border-radius: 5px;
-				width: 35px;
-				@include flex;
-				justify-content: center;
-
-				&__text {
-					color: var(--mainColor);
-					font-size: var(--font12Size);
-				}
-			}
+			padding: 2vw;
 		}
 
 		.bottom {
@@ -264,7 +239,6 @@
 				display: flex;
 				margin: 1vw 0 0 0;
 				padding: 1vw;
-				height: 100px;
 
 				.left {
 					.image {
@@ -278,6 +252,7 @@
 					display: flex;
 					flex-direction: column;
 					justify-content: space-between;
+					margin: 0 0 0 2vw;
 					width: 100%;
 
 					.name {

+ 8 - 8
pagesHome/search/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="content">
 		<view class="top">
-			<u-search shape="square" :show-action="false" placeholder="请输入车辆的名称或品牌"></u-search>
+			<u-search shape="square" :show-action="false" placeholder="请输入车辆的名称或品牌" @change="toChange"></u-search>
 			<view class="search">
 				<view class="list" v-for="(item, index) in searchList" :key="index" @tap="toSearch(item)">
 					<view :class="[item.is_open==false?'title_1':'title_2']">{{item.title}}</view>
@@ -97,8 +97,6 @@
 	const $config = getCurrentInstance()?.appContext.config.globalProperties.$config;
 	// 基本信息
 	const config = ref({ logoUrl: [] });
-	// 查询
-	const searchInfo = ref({});
 	const type = ref('0');
 	const is_show = ref(false);
 	//查询
@@ -181,10 +179,7 @@
 			limit: limit.value,
 			status: '0'
 		}
-		const res = await $api('car', 'GET', {
-			...info,
-			...searchInfo.value
-		});
+		const res = await $api('car', 'GET',info);
 		if (res.errcode === 0) {
 			list.value = list.value.concat(res.data)
 			total.value = res.total
@@ -217,6 +212,12 @@
 			})
 		} else is_show.value = searchList.value.some(item => item.is_open == true)
 	};
+	// 搜索
+	const toChange = () => {
+		uni.navigateTo({
+			url: `/pagesHome/type/index`
+		})
+	};
 	// 关闭筛选
 	const toClose = () => {
 		is_show.value = false
@@ -441,7 +442,6 @@
 					display: flex;
 					margin: 1vw 0 0 0;
 					padding: 1vw;
-					height: 100px;
 
 					.left {
 						.image {

+ 94 - 0
pagesHome/type/index.vue

@@ -0,0 +1,94 @@
+<template>
+	<view class="content">
+		<image class="logo" :src="config?.logo[0]?.url||'/static/logo.png'"></image>
+	</view>
+</template>
+
+<script setup lang="ts">
+	import { getCurrentInstance, ref } from 'vue';
+	//该依赖已内置不需要单独安装
+	import { onLoad } from "@dcloudio/uni-app";
+	// 请求接口
+	const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
+	const $app = getCurrentInstance()?.appContext.config.globalProperties.$app;
+	const $config = getCurrentInstance()?.appContext.config.globalProperties.$config;
+	// 基本信息
+	const config = ref({ logo: [] });
+	onLoad(async () => {
+		await searchConfig();
+		await search();
+	})
+	// config信息
+	const searchConfig = async () => {
+		let res = await $api(`config`, 'GET', {});
+		if (res.errcode == 0) {
+			config.value = res.data
+			uni.setStorage({
+				key: 'config',
+				data: res.data,
+			})
+		}
+	};
+	// 查询
+	const search = async () => {
+		uni.getStorage({
+			key: 'openid',
+			success: function (res) {
+				uni.reLaunch({
+					url: `/pages/home/index`
+				})
+			},
+			fail: function (err) {
+				uni.login({
+					success: async function (res) {
+						if (res.code) {
+							uni.reLaunch({
+								url: `/pages/home/index`
+							})
+							// const aee = await $app('/wechat/api/login/app', 'GET', {
+							// 	js_code: res.code,
+							// 	config: $config.wx_projectkey
+							// })
+							// if (aee.errcode == '0') {
+							// 	uni.setStorage({
+							// 		key: "openid",
+							// 		data: aee.data.openid
+							// 	})
+							// 	uni.reLaunch({
+							// 		url: `/pages/home/index`
+							// 	})
+							// } else {
+							// 	uni.showToast({
+							// 		title: aee.errmsg,
+							// 		icon: 'none'
+							// 	})
+							// }
+						} else {
+							uni.showToast({
+								title: res.errMsg,
+								icon: 'none'
+							})
+						}
+					}
+				});
+			}
+		})
+	};
+</script>
+<style lang="scss" scoped>
+	.content {
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		justify-content: center;
+		width: 100vw;
+		height: 100vh;
+
+		.logo {
+			width: 50vw;
+			height: 50vw;
+			border-radius: 90px;
+			box-shadow: 0 0 5px #f1f1f1;
+		}
+	}
+</style>

+ 7 - 1
pagesMy/car/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="content">
 		<view class="top">
-			<u-search shape="square" :show-action="false" placeholder="品牌/车系"></u-search>
+			<u-search shape="square" :show-action="false" placeholder="品牌/车系" @change="toChange"></u-search>
 		</view>
 		<view class="bottom">
 			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
@@ -121,6 +121,12 @@
 		const res = list.find((f) => f.value == data);
 		return res?.label || '暂无';
 	};
+	// 搜索
+	const toChange = () => {
+		uni.navigateTo({
+			url: `/pagesHome/type/index`
+		})
+	};
 	// 分页
 	const toPage = () => {
 		if (total.value > list.value.length) {

+ 8 - 6
pagesMy/collect/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="content">
 		<view class="top">
-			<u-search shape="square" :show-action="false" placeholder="品牌/车系"></u-search>
+			<u-search shape="square" :show-action="false" placeholder="品牌/车系" @change="toChange"></u-search>
 		</view>
 		<view class="bottom">
 			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
@@ -166,10 +166,7 @@
 		// 	limit: limit.value,
 		// 	status: '0'
 		// }
-		// const res = await $api('car', 'GET', {
-		// 	...info,
-		// 	...searchInfo.value
-		// });
+		// const res = await $api('car', 'GET', info);
 		// if (res.errcode === 0) {
 		// 	list.value = list.value.concat(res.data)
 		// 	total.value = res.total
@@ -180,6 +177,12 @@
 		// 	});
 		// }
 	};
+	// 搜索
+	const toChange = () => {
+		uni.navigateTo({
+			url: `/pagesHome/type/index`
+		})
+	};
 	const toRoute = (item) => {
 		uni.navigateTo({
 			url: `/${item.route}`,
@@ -262,7 +265,6 @@
 				display: flex;
 				margin: 1vw 0 0 0;
 				padding: 1vw;
-				height: 100px;
 
 				.left {
 					.image {

+ 1 - 0
unpackage/dist/dev/mp-weixin/app.js

@@ -20,6 +20,7 @@ if (!Math) {
   "./pagesHome/car/index.js";
   "./pagesHome/shop/index.js";
   "./pagesHome/picture/index.js";
+  "./pagesHome/type/index.js";
   "./pagesHome/login/index.js";
   "./pagesMy/basic/index.js";
   "./pagesMy/collect/index.js";

+ 1 - 0
unpackage/dist/dev/mp-weixin/app.json

@@ -20,6 +20,7 @@
         "car/index",
         "shop/index",
         "picture/index",
+        "type/index",
         "login/index"
       ]
     },

+ 158 - 236
unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -14085,7 +14085,7 @@ hooks.HTML5_FMT = {
   MONTH: "YYYY-MM"
   // <input type="month" />
 };
-const props$m = {
+const props$l = {
   props: {
     // 搜索框形状,round-圆形,square-方形
     shape: {
@@ -14207,7 +14207,7 @@ const props$m = {
     }
   }
 };
-const props$l = {
+const props$k = {
   props: {
     // 头像图片路径(不能为相对路径)
     src: {
@@ -14499,7 +14499,7 @@ const icons = {
   "uicon-zh": "",
   "uicon-en": ""
 };
-const props$k = {
+const props$j = {
   props: {
     // 图标类名
     name: {
@@ -14588,7 +14588,7 @@ const props$k = {
     }
   }
 };
-const props$j = {
+const props$i = {
   props: {
     // 列表锚点文本内容
     text: {
@@ -14617,10 +14617,10 @@ const props$j = {
     }
   }
 };
-const props$i = {
+const props$h = {
   props: {}
 };
-const props$h = {
+const props$g = {
   props: {
     // 右边锚点非激活的颜色
     inactiveColor: {
@@ -14649,7 +14649,7 @@ const props$h = {
     }
   }
 };
-const props$g = {
+const props$f = {
   props: {
     // 显示的内容,数组
     text: {
@@ -14719,7 +14719,7 @@ const props$g = {
     }
   }
 };
-const props$f = {
+const props$e = {
   props: {
     // 是否虚线
     dashed: {
@@ -14763,7 +14763,7 @@ const props$f = {
     }
   }
 };
-const props$e = {
+const props$d = {
   props: {
     // input的label提示语
     label: {
@@ -14806,7 +14806,7 @@ const props$e = {
     }
   }
 };
-const props$d = {
+const props$c = {
   props: {
     // 当前form的需要验证字段的集合
     model: {
@@ -15742,131 +15742,6 @@ Schema.register = function register(type2, validator) {
 };
 Schema.warning = warning;
 Schema.messages = messages;
-const props$c = {
-  props: {
-    // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
-    list: {
-      type: Array,
-      default: defprops.swiper.list
-    },
-    // 是否显示面板指示器
-    indicator: {
-      type: Boolean,
-      default: defprops.swiper.indicator
-    },
-    // 指示器非激活颜色
-    indicatorActiveColor: {
-      type: String,
-      default: defprops.swiper.indicatorActiveColor
-    },
-    // 指示器的激活颜色
-    indicatorInactiveColor: {
-      type: String,
-      default: defprops.swiper.indicatorInactiveColor
-    },
-    // 指示器样式,可通过bottom,left,right进行定位
-    indicatorStyle: {
-      type: [String, Object],
-      default: defprops.swiper.indicatorStyle
-    },
-    // 指示器模式,line-线型,dot-点型
-    indicatorMode: {
-      type: String,
-      default: defprops.swiper.indicatorMode
-    },
-    // 是否自动切换
-    autoplay: {
-      type: Boolean,
-      default: defprops.swiper.autoplay
-    },
-    // 当前所在滑块的 index
-    current: {
-      type: [String, Number],
-      default: defprops.swiper.current
-    },
-    // 当前所在滑块的 item-id ,不能与 current 被同时指定
-    currentItemId: {
-      type: String,
-      default: defprops.swiper.currentItemId
-    },
-    // 滑块自动切换时间间隔
-    interval: {
-      type: [String, Number],
-      default: defprops.swiper.interval
-    },
-    // 滑块切换过程所需时间
-    duration: {
-      type: [String, Number],
-      default: defprops.swiper.duration
-    },
-    // 播放到末尾后是否重新回到开头
-    circular: {
-      type: Boolean,
-      default: defprops.swiper.circular
-    },
-    // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
-    previousMargin: {
-      type: [String, Number],
-      default: defprops.swiper.previousMargin
-    },
-    // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
-    nextMargin: {
-      type: [String, Number],
-      default: defprops.swiper.nextMargin
-    },
-    // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
-    acceleration: {
-      type: Boolean,
-      default: defprops.swiper.acceleration
-    },
-    // 同时显示的滑块数量,nvue、支付宝小程序不支持
-    displayMultipleItems: {
-      type: Number,
-      default: defprops.swiper.displayMultipleItems
-    },
-    // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
-    // 只对微信小程序有效
-    easingFunction: {
-      type: String,
-      default: defprops.swiper.easingFunction
-    },
-    // list数组中指定对象的目标属性名
-    keyName: {
-      type: String,
-      default: defprops.swiper.keyName
-    },
-    // 图片的裁剪模式
-    imgMode: {
-      type: String,
-      default: defprops.swiper.imgMode
-    },
-    // 组件高度
-    height: {
-      type: [String, Number],
-      default: defprops.swiper.height
-    },
-    // 背景颜色
-    bgColor: {
-      type: String,
-      default: defprops.swiper.bgColor
-    },
-    // 组件圆角,数值或带单位的字符串
-    radius: {
-      type: [String, Number],
-      default: defprops.swiper.radius
-    },
-    // 是否加载中
-    loading: {
-      type: Boolean,
-      default: defprops.swiper.loading
-    },
-    // 是否显示标题,要求数组对象中有title属性
-    showTitle: {
-      type: Boolean,
-      default: defprops.swiper.showTitle
-    }
-  }
-};
 const props$b = {
   props: {
     // tab的数据
@@ -15916,83 +15791,6 @@ const props$b = {
     }
   }
 };
-const props$a = {
-  props: {
-    // 是否显示圆点
-    isDot: {
-      type: Boolean,
-      default: defprops.badge.isDot
-    },
-    // 显示的内容
-    value: {
-      type: [Number, String],
-      default: defprops.badge.value
-    },
-    // 显示的内容
-    modelValue: {
-      type: [Number, String],
-      default: defprops.badge.modelValue
-    },
-    // 是否显示
-    show: {
-      type: Boolean,
-      default: defprops.badge.show
-    },
-    // 最大值,超过最大值会显示 '{max}+'
-    max: {
-      type: [Number, String],
-      default: defprops.badge.max
-    },
-    // 主题类型,error|warning|success|primary
-    type: {
-      type: String,
-      default: defprops.badge.type
-    },
-    // 当数值为 0 时,是否展示 Badge
-    showZero: {
-      type: Boolean,
-      default: defprops.badge.showZero
-    },
-    // 背景颜色,优先级比type高,如设置,type参数会失效
-    bgColor: {
-      type: [String, null],
-      default: defprops.badge.bgColor
-    },
-    // 字体颜色
-    color: {
-      type: [String, null],
-      default: defprops.badge.color
-    },
-    // 徽标形状,circle-四角均为圆角,horn-左下角为直角
-    shape: {
-      type: String,
-      default: defprops.badge.shape
-    },
-    // 设置数字的显示方式,overflow|ellipsis|limit
-    // overflow会根据max字段判断,超出显示`${max}+`
-    // ellipsis会根据max判断,超出显示`${max}...`
-    // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
-    numberType: {
-      type: String,
-      default: defprops.badge.numberType
-    },
-    // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
-    offset: {
-      type: Array,
-      default: defprops.badge.offset
-    },
-    // 是否反转背景和字体颜色
-    inverted: {
-      type: Boolean,
-      default: defprops.badge.inverted
-    },
-    // 是否绝对定位
-    absolute: {
-      type: Boolean,
-      default: defprops.badge.absolute
-    }
-  }
-};
 const button = {
   props: {
     lang: String,
@@ -16031,7 +15829,7 @@ const openType = {
     }
   }
 };
-const props$9 = {
+const props$a = {
   props: {
     // 是否细边框
     hairline: {
@@ -16183,6 +15981,131 @@ const props$9 = {
     }
   }
 };
+const props$9 = {
+  props: {
+    // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
+    list: {
+      type: Array,
+      default: defprops.swiper.list
+    },
+    // 是否显示面板指示器
+    indicator: {
+      type: Boolean,
+      default: defprops.swiper.indicator
+    },
+    // 指示器非激活颜色
+    indicatorActiveColor: {
+      type: String,
+      default: defprops.swiper.indicatorActiveColor
+    },
+    // 指示器的激活颜色
+    indicatorInactiveColor: {
+      type: String,
+      default: defprops.swiper.indicatorInactiveColor
+    },
+    // 指示器样式,可通过bottom,left,right进行定位
+    indicatorStyle: {
+      type: [String, Object],
+      default: defprops.swiper.indicatorStyle
+    },
+    // 指示器模式,line-线型,dot-点型
+    indicatorMode: {
+      type: String,
+      default: defprops.swiper.indicatorMode
+    },
+    // 是否自动切换
+    autoplay: {
+      type: Boolean,
+      default: defprops.swiper.autoplay
+    },
+    // 当前所在滑块的 index
+    current: {
+      type: [String, Number],
+      default: defprops.swiper.current
+    },
+    // 当前所在滑块的 item-id ,不能与 current 被同时指定
+    currentItemId: {
+      type: String,
+      default: defprops.swiper.currentItemId
+    },
+    // 滑块自动切换时间间隔
+    interval: {
+      type: [String, Number],
+      default: defprops.swiper.interval
+    },
+    // 滑块切换过程所需时间
+    duration: {
+      type: [String, Number],
+      default: defprops.swiper.duration
+    },
+    // 播放到末尾后是否重新回到开头
+    circular: {
+      type: Boolean,
+      default: defprops.swiper.circular
+    },
+    // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
+    previousMargin: {
+      type: [String, Number],
+      default: defprops.swiper.previousMargin
+    },
+    // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
+    nextMargin: {
+      type: [String, Number],
+      default: defprops.swiper.nextMargin
+    },
+    // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
+    acceleration: {
+      type: Boolean,
+      default: defprops.swiper.acceleration
+    },
+    // 同时显示的滑块数量,nvue、支付宝小程序不支持
+    displayMultipleItems: {
+      type: Number,
+      default: defprops.swiper.displayMultipleItems
+    },
+    // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
+    // 只对微信小程序有效
+    easingFunction: {
+      type: String,
+      default: defprops.swiper.easingFunction
+    },
+    // list数组中指定对象的目标属性名
+    keyName: {
+      type: String,
+      default: defprops.swiper.keyName
+    },
+    // 图片的裁剪模式
+    imgMode: {
+      type: String,
+      default: defprops.swiper.imgMode
+    },
+    // 组件高度
+    height: {
+      type: [String, Number],
+      default: defprops.swiper.height
+    },
+    // 背景颜色
+    bgColor: {
+      type: String,
+      default: defprops.swiper.bgColor
+    },
+    // 组件圆角,数值或带单位的字符串
+    radius: {
+      type: [String, Number],
+      default: defprops.swiper.radius
+    },
+    // 是否加载中
+    loading: {
+      type: Boolean,
+      default: defprops.swiper.loading
+    },
+    // 是否显示标题,要求数组对象中有title属性
+    showTitle: {
+      type: Boolean,
+      default: defprops.swiper.showTitle
+    }
+  }
+};
 const props$8 = {
   props: {
     color: {
@@ -16782,29 +16705,28 @@ exports.onPullDownRefresh = onPullDownRefresh;
 exports.onShow = onShow;
 exports.openType = openType;
 exports.p = p;
-exports.props = props$m;
-exports.props$1 = props$l;
-exports.props$10 = props$c;
-exports.props$11 = props$b;
-exports.props$12 = props$a;
-exports.props$13 = props$9;
-exports.props$14 = props$8;
-exports.props$15 = props$7;
-exports.props$16 = props$6;
-exports.props$17 = props$5;
-exports.props$18 = props$4;
-exports.props$19 = props$3;
-exports.props$2 = props$k;
-exports.props$20 = props$2;
-exports.props$21 = props$1;
-exports.props$22 = props;
-exports.props$3 = props$j;
-exports.props$4 = props$i;
-exports.props$5 = props$h;
-exports.props$6 = props$g;
-exports.props$7 = props$f;
-exports.props$8 = props$e;
-exports.props$9 = props$d;
+exports.props = props$l;
+exports.props$1 = props$k;
+exports.props$10 = props$b;
+exports.props$11 = props$a;
+exports.props$12 = props$9;
+exports.props$13 = props$8;
+exports.props$14 = props$7;
+exports.props$15 = props$6;
+exports.props$16 = props$5;
+exports.props$17 = props$4;
+exports.props$18 = props$3;
+exports.props$19 = props$2;
+exports.props$2 = props$j;
+exports.props$20 = props$1;
+exports.props$21 = props;
+exports.props$3 = props$i;
+exports.props$4 = props$h;
+exports.props$5 = props$g;
+exports.props$6 = props$f;
+exports.props$7 = props$e;
+exports.props$8 = props$d;
+exports.props$9 = props$c;
 exports.ref = ref;
 exports.resolveComponent = resolveComponent;
 exports.s = s;

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-album/u-album.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-album",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$15],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$14],
   data() {
     return {
       // 单图的宽度

+ 0 - 60
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js

@@ -1,60 +0,0 @@
-"use strict";
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "u-badge",
-  mixins: [common_vendor.mpMixin, common_vendor.props$12, common_vendor.mixin],
-  computed: {
-    // 是否将badge中心与父组件右上角重合
-    boxStyle() {
-      let style = {};
-      return style;
-    },
-    // 整个组件的样式
-    badgeStyle() {
-      const style = {};
-      if (this.color) {
-        style.color = this.color;
-      }
-      if (this.bgColor && !this.inverted) {
-        style.backgroundColor = this.bgColor;
-      }
-      if (this.absolute) {
-        style.position = "absolute";
-        if (this.offset.length) {
-          const top = this.offset[0];
-          const right = this.offset[1] || top;
-          style.top = common_vendor.index.$u.addUnit(top);
-          style.right = common_vendor.index.$u.addUnit(right);
-        }
-      }
-      return style;
-    },
-    showValue() {
-      switch (this.numberType) {
-        case "overflow":
-          return Number(this.value) > Number(this.max) ? this.max + "+" : this.value;
-        case "ellipsis":
-          return Number(this.value) > Number(this.max) ? "..." : this.value;
-        case "limit":
-          return Number(this.value) > 999 ? Number(this.value) >= 9999 ? Math.floor(this.value / 1e4 * 100) / 100 + "w" : Math.floor(this.value / 1e3 * 100) / 100 + "k" : this.value;
-        default:
-          return Number(this.value);
-      }
-    }
-  }
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return common_vendor.e({
-    a: _ctx.show && ((Number(_ctx.value) === 0 ? _ctx.showZero : true) || _ctx.isDot)
-  }, _ctx.show && ((Number(_ctx.value) === 0 ? _ctx.showZero : true) || _ctx.isDot) ? {
-    b: common_vendor.t(_ctx.isDot ? "" : $options.showValue),
-    c: common_vendor.n(_ctx.isDot ? "u-badge--dot" : "u-badge--not-dot"),
-    d: common_vendor.n(_ctx.inverted && "u-badge--inverted"),
-    e: common_vendor.n(_ctx.shape === "horn" && "u-badge--horn"),
-    f: common_vendor.n(`u-badge--${_ctx.type}${_ctx.inverted ? "--inverted" : ""}`),
-    g: common_vendor.s(_ctx.$u.addStyle(_ctx.customStyle)),
-    h: common_vendor.s($options.badgeStyle)
-  } : {});
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-aa9883b1"], ["__file", "D:/project/二手车/car_applet/node_modules/uview-plus/components/u-badge/u-badge.vue"]]);
-wx.createComponent(Component);

+ 0 - 4
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.wxml

@@ -1 +0,0 @@
-<text wx:if="{{a}}" class="{{[c, d, e, f, 'u-badge', 'data-v-aa9883b1']}}" style="{{g + ';' + h}}">{{b}}</text>

+ 0 - 72
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.wxss

@@ -1,72 +0,0 @@
-/**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
-/* uni.scss */
-view.data-v-aa9883b1, scroll-view.data-v-aa9883b1, swiper-item.data-v-aa9883b1 {
-  display: flex;
-  flex-direction: column;
-  flex-shrink: 0;
-  flex-grow: 0;
-  flex-basis: auto;
-  align-items: stretch;
-  align-content: flex-start;
-}
-.u-badge.data-v-aa9883b1 {
-  border-top-right-radius: 100px;
-  border-top-left-radius: 100px;
-  border-bottom-left-radius: 100px;
-  border-bottom-right-radius: 100px;
-
-  display: flex;
-
-  flex-direction: row;
-  line-height: 11px;
-  text-align: center;
-  font-size: 11px;
-  color: #FFFFFF;
-}
-.u-badge--dot.data-v-aa9883b1 {
-  height: 8px;
-  width: 8px;
-}
-.u-badge--inverted.data-v-aa9883b1 {
-  font-size: 13px;
-}
-.u-badge--not-dot.data-v-aa9883b1 {
-  padding: 2px 5px;
-}
-.u-badge--horn.data-v-aa9883b1 {
-  border-bottom-left-radius: 0;
-}
-.u-badge--primary.data-v-aa9883b1 {
-  background-color: #3c9cff;
-}
-.u-badge--primary--inverted.data-v-aa9883b1 {
-  color: #3c9cff;
-}
-.u-badge--error.data-v-aa9883b1 {
-  background-color: #f56c6c;
-}
-.u-badge--error--inverted.data-v-aa9883b1 {
-  color: #f56c6c;
-}
-.u-badge--success.data-v-aa9883b1 {
-  background-color: #5ac725;
-}
-.u-badge--success--inverted.data-v-aa9883b1 {
-  color: #5ac725;
-}
-.u-badge--info.data-v-aa9883b1 {
-  background-color: #909399;
-}
-.u-badge--info--inverted.data-v-aa9883b1 {
-  color: #909399;
-}
-.u-badge--warning.data-v-aa9883b1 {
-  background-color: #f9ae3d;
-}
-.u-badge--warning--inverted.data-v-aa9883b1 {
-  color: #f9ae3d;
-}

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-button",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.button, common_vendor.openType, common_vendor.props$13],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.button, common_vendor.openType, common_vendor.props$11],
   data() {
     return {};
   },

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-column-notice/u-column-notice.js

@@ -1,7 +1,7 @@
 "use strict";
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$18],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$17],
   watch: {
     text: {
       immediate: true,

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-line",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$14],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$13],
   computed: {
     lineStyle() {
       const style = {};

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-link",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$22],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$21],
   computed: {
     linkStyle() {
       const style = {

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-loading-icon",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$20],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$19],
   data() {
     return {
       // Array.form可以通过一个伪数组对象创建指定长度的数组

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-row-notice/u-row-notice.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-row-notice",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$19],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$18],
   data() {
     return {
       animationDuration: "0",

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-subsection/u-subsection.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-subsection",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$11],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$10],
   data() {
     return {
       // 组件尺寸

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-swiper-indicator",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$21],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$20],
   data() {
     return {
       lineWidth: 22

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper/u-swiper.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u-swiper",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$10],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12],
   data() {
     return {
       currentIndex: 0

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.js

@@ -2,7 +2,7 @@
 const common_vendor = require("../../../../common/vendor.js");
 const _sfc_main = {
   name: "u--text",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.value, common_vendor.button, common_vendor.openType, common_vendor.props$16],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.value, common_vendor.button, common_vendor.openType, common_vendor.props$15],
   emits: ["click"],
   computed: {
     valueStyle() {

+ 1 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-transition/u-transition.js

@@ -33,7 +33,7 @@ const _sfc_main = {
     }
   },
   // 将mixin挂在到组件中,uni.$u.mixin实际上为一个vue格式对象
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transition, common_vendor.props$17],
+  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transition, common_vendor.props$16],
   watch: {
     show: {
       handler(newVal) {

+ 12 - 10
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -15,7 +15,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
     (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
     const config = common_vendor.ref({ logoUrl: [] });
-    const searchInfo = common_vendor.ref({});
     const list = common_vendor.ref([]);
     const total = common_vendor.ref(0);
     const skip = common_vendor.ref(0);
@@ -42,10 +41,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         limit: limit.value,
         status: "0"
       };
-      const res = await $api("car", "GET", {
-        ...info,
-        ...searchInfo.value
-      });
+      const res = await $api("car", "GET", info);
       if (res.errcode === 0) {
         list.value = list.value.concat(res.data);
         total.value = res.total;
@@ -56,6 +52,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         });
       }
     };
+    const toChange = () => {
+      common_vendor.index.navigateTo({
+        url: `/pagesHome/type/index`
+      });
+    };
     const toView = (item) => {
       common_vendor.index.navigateTo({
         url: `/pagesHome/car/index?id=${item.id || item._id}`
@@ -82,12 +83,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
     return (_ctx, _cache) => {
       return common_vendor.e({
-        a: common_vendor.p({
+        a: common_vendor.o(toChange),
+        b: common_vendor.p({
           shape: "square",
           ["show-action"]: false,
           placeholder: "品牌/车系"
         }),
-        b: common_vendor.f(list.value, (item, index, i0) => {
+        c: common_vendor.f(list.value, (item, index, i0) => {
           return {
             a: item.file && item.file.length > 0 ? item.file[0].url : "",
             b: common_vendor.t(item.series || "暂无"),
@@ -98,11 +100,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             g: common_vendor.o(($event) => toView(item), index)
           };
         }),
-        c: is_bottom.value
+        d: is_bottom.value
       }, is_bottom.value ? {
-        d: common_vendor.t(config.value.bottom_title || "没有更多了!")
+        e: common_vendor.t(config.value.bottom_title || "没有更多了!")
       } : {}, {
-        e: common_vendor.o(toPage)
+        f: common_vendor.o(toPage)
       });
     };
   }

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/index.wxml


+ 15 - 13
unpackage/dist/dev/mp-weixin/pages/select/index.js

@@ -15,7 +15,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
     const $config = (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
     const config = common_vendor.ref({ logoUrl: [] });
-    const searchInfo = common_vendor.ref({});
     const list = common_vendor.ref([]);
     const total = common_vendor.ref(0);
     const skip = common_vendor.ref(0);
@@ -73,10 +72,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         limit: limit.value,
         status: "0"
       };
-      const res = await $api("car", "GET", {
-        ...info,
-        ...searchInfo.value
-      });
+      const res = await $api("car", "GET", info);
       if (res.errcode === 0) {
         list.value = list.value.concat(res.data);
         total.value = res.total;
@@ -87,6 +83,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         });
       }
     };
+    const toChange = () => {
+      common_vendor.index.navigateTo({
+        url: `/pagesHome/type/index`
+      });
+    };
     const toRoute = (item) => {
       common_vendor.index.navigateTo({
         url: `/${item.route}`
@@ -130,12 +131,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
     return (_ctx, _cache) => {
       return common_vendor.e({
-        a: common_vendor.p({
+        a: common_vendor.o(toChange),
+        b: common_vendor.p({
           shape: "square",
           ["show-action"]: false,
           placeholder: "品牌/车系"
         }),
-        b: common_vendor.f(common_vendor.unref($config).searchList, (item, index, i0) => {
+        c: common_vendor.f(common_vendor.unref($config).searchList, (item, index, i0) => {
           return {
             a: common_vendor.n(item.icon),
             b: common_vendor.t(item.title || "暂无"),
@@ -143,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             d: common_vendor.o(($event) => toRoute(item), index)
           };
         }),
-        c: common_vendor.f(carList.value, (item, index, i0) => {
+        d: common_vendor.f(carList.value, (item, index, i0) => {
           return {
             a: item.logo && item.logo.length > 0 ? item.logo[0].url : "/static/logo.png",
             b: common_vendor.t(item.name),
@@ -151,14 +153,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             d: common_vendor.o(($event) => toCommon(item, "0"), index)
           };
         }),
-        d: common_vendor.f(typeList.value, (item, index, i0) => {
+        e: common_vendor.f(typeList.value, (item, index, i0) => {
           return {
             a: common_vendor.t(item.title || "暂无"),
             b: index,
             c: common_vendor.o(($event) => toCommon(item, "1"), index)
           };
         }),
-        e: common_vendor.f(list.value, (item, index, i0) => {
+        f: common_vendor.f(list.value, (item, index, i0) => {
           return common_vendor.e({
             a: item.file && item.file.length > 0 ? item.file[0].url : "",
             b: common_vendor.t(item.series || "暂无"),
@@ -181,11 +183,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             m: common_vendor.o(($event) => toView(item), index)
           });
         }),
-        f: is_bottom.value
+        g: is_bottom.value
       }, is_bottom.value ? {
-        g: common_vendor.t(config.value.bottom_title || "没有更多了!")
+        h: common_vendor.t(config.value.bottom_title || "没有更多了!")
       } : {}, {
-        h: common_vendor.o(toPage)
+        i: common_vendor.o(toPage)
       });
     };
   }

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/select/index.wxml


+ 0 - 1
unpackage/dist/dev/mp-weixin/pages/select/index.wxss

@@ -54,7 +54,6 @@
   display: flex;
   margin: 1vw 0 0 0;
   padding: 1vw;
-  height: 100px;
 }
 .content .bottom .two .list .left .image.data-v-4723889f {
   width: 130px;

+ 25 - 2
unpackage/dist/dev/mp-weixin/pagesHome/condition/index.js

@@ -29,6 +29,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const brandInfo = common_vendor.ref({});
     const cityInfo = common_vendor.ref({});
     const searchList = common_vendor.ref([]);
+    const searchInfo = common_vendor.ref({});
     const boxTypeList = common_vendor.ref([]);
     const structureList = common_vendor.ref([]);
     const emissionList = common_vendor.ref([]);
@@ -119,6 +120,23 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         return item;
       });
       tabbar.value = data;
+      const info = {
+        skip: 0,
+        limit: 1,
+        status: "0"
+      };
+      const res = await $api("car", "GET", {
+        ...info,
+        ...searchInfo.value
+      });
+      if (res.errcode === 0) {
+        total.value = res.total;
+      } else {
+        common_vendor.index.showToast({
+          title: res.errmsg || "",
+          icon: "error"
+        });
+      }
     };
     const swichMenu = (index) => {
       if (index == current.value)
@@ -170,6 +188,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         url: `/pagesHome/search/index`
       });
     };
+    const toReset = () => {
+      searchInfo.value = {};
+      search();
+    };
     return (_ctx, _cache) => {
       return {
         a: common_vendor.f(tabbar.value, (item, index, i0) => {
@@ -231,8 +253,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         d: scrollRightTop.value,
         e: itemId.value,
         f: common_vendor.o(rightScroll),
-        g: common_vendor.t(total.value),
-        h: common_vendor.o(toSearch)
+        g: common_vendor.o(toReset),
+        h: common_vendor.t(total.value),
+        i: common_vendor.o(toSearch)
       };
     };
   }

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesHome/condition/index.wxml


+ 21 - 46
unpackage/dist/dev/mp-weixin/pagesHome/rank/index.js

@@ -1,16 +1,12 @@
 "use strict";
 const common_vendor = require("../../common/vendor.js");
 if (!Array) {
-  const _easycom_u_swiper2 = common_vendor.resolveComponent("u-swiper");
   const _easycom_u_subsection2 = common_vendor.resolveComponent("u-subsection");
-  const _easycom_up_badge2 = common_vendor.resolveComponent("up-badge");
-  (_easycom_u_swiper2 + _easycom_u_subsection2 + _easycom_up_badge2)();
+  _easycom_u_subsection2();
 }
-const _easycom_u_swiper = () => "../../node-modules/uview-plus/components/u-swiper/u-swiper.js";
 const _easycom_u_subsection = () => "../../node-modules/uview-plus/components/u-subsection/u-subsection.js";
-const _easycom_up_badge = () => "../../node-modules/uview-plus/components/u-badge/u-badge.js";
 if (!Math) {
-  (_easycom_u_swiper + _easycom_u_subsection + _easycom_up_badge)();
+  _easycom_u_subsection();
 }
 const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "index",
@@ -18,12 +14,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     var _a, _b;
     (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
     (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
-    const offset = common_vendor.ref(["-2px", "355px"]);
+    common_vendor.ref(["-2px", "355px"]);
     const tabList = common_vendor.ref(["销量榜", "保值榜", "店铺规模榜"]);
     const curNow = common_vendor.ref(0);
     const config = common_vendor.ref({ logoUrl: [] });
-    const currentNum = common_vendor.ref(1);
-    const url = common_vendor.ref([{ url: "https://cdn.uviewui.com/uview/album/1.jpg" }, { url: "https://cdn.uviewui.com/uview/album/2.jpg" }, { url: "https://cdn.uviewui.com/uview/album/3.jpg" }, { url: "https://cdn.uviewui.com/uview/album/4.jpg" }, { url: "https://cdn.uviewui.com/uview/album/5.jpg" }]);
     const list = common_vendor.ref([
       {
         id: "1",
@@ -168,59 +162,40 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
     return (_ctx, _cache) => {
       return common_vendor.e({
-        a: common_vendor.t(currentNum.value + 1),
-        b: common_vendor.t(url.value.length),
-        c: common_vendor.o((e) => currentNum.value = e.current),
-        d: common_vendor.p({
-          list: url.value,
-          height: "200px",
-          keyName: "url",
-          indicatorStyle: "right: 20px",
-          radius: "0"
-        }),
-        e: common_vendor.o(sectionChange),
-        f: common_vendor.p({
+        a: common_vendor.o(sectionChange),
+        b: common_vendor.p({
           mode: "subsection",
           activeColor: "#ffbc00",
           list: tabList.value,
           current: curNow.value
         }),
-        g: common_vendor.f(list.value, (item, index, i0) => {
+        c: common_vendor.f(list.value, (item, index, i0) => {
           return common_vendor.e({
-            a: "581af8d0-2-" + i0,
-            b: common_vendor.p({
-              absolute: true,
-              offset: offset.value,
-              numberType: "overflow",
-              shape: "horn",
-              max: "99",
-              value: index + 1
-            }),
-            c: item.file && item.file.length > 0 ? item.file[0].url : "",
-            d: common_vendor.t(item.name || "暂无"),
-            e: item.year
+            a: item.file && item.file.length > 0 ? item.file[0].url : "",
+            b: common_vendor.t(item.name || "暂无"),
+            c: item.year
           }, item.year ? {
-            f: common_vendor.t(item.year || "暂无")
+            d: common_vendor.t(item.year || "暂无")
           } : {}, {
-            g: item.kilometer
+            e: item.kilometer
           }, item.kilometer ? {
-            h: common_vendor.t(item.kilometer || "暂无")
+            f: common_vendor.t(item.kilometer || "暂无")
           } : {}, {
-            i: item.city
+            g: item.city
           }, item.city ? {
-            j: common_vendor.t(item.city || "暂无")
+            h: common_vendor.t(item.city || "暂无")
           } : {}, {
-            k: common_vendor.t(item.money || "0"),
-            l: common_vendor.o(($event) => toChat(item), index),
-            m: index,
-            n: common_vendor.o(($event) => toView(item), index)
+            i: common_vendor.t(item.money || "0"),
+            j: common_vendor.o(($event) => toChat(item), index),
+            k: index,
+            l: common_vendor.o(($event) => toView(item), index)
           });
         }),
-        h: is_bottom.value
+        d: is_bottom.value
       }, is_bottom.value ? {
-        i: common_vendor.t(config.value.bottom_title || "没有更多了!")
+        e: common_vendor.t(config.value.bottom_title || "没有更多了!")
       } : {}, {
-        j: common_vendor.o(toPage)
+        f: common_vendor.o(toPage)
       });
     };
   }

+ 1 - 3
unpackage/dist/dev/mp-weixin/pagesHome/rank/index.json

@@ -6,8 +6,6 @@
   "backgroundColorTop": "#F4F5F6",
   "backgroundColorBottom": "#F4F5F6",
   "usingComponents": {
-    "u-swiper": "../../node-modules/uview-plus/components/u-swiper/u-swiper",
-    "u-subsection": "../../node-modules/uview-plus/components/u-subsection/u-subsection",
-    "up-badge": "../../node-modules/uview-plus/components/u-badge/u-badge"
+    "u-subsection": "../../node-modules/uview-plus/components/u-subsection/u-subsection"
   }
 }

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesHome/rank/index.wxml


+ 3 - 13
unpackage/dist/dev/mp-weixin/pagesHome/rank/index.wxss

@@ -10,18 +10,8 @@
   width: 100vw;
   height: 100vh;
 }
-.content .top .indicator-num.data-v-581af8d0 {
-  padding: 2px 0;
-  background-color: rgba(0, 0, 0, 0.35);
-  border-radius: 5px;
-  width: 35px;
-  display: flex;
-  flex-direction: row;
-  justify-content: center;
-}
-.content .top .indicator-num__text.data-v-581af8d0 {
-  color: var(--mainColor);
-  font-size: var(--font12Size);
+.content .top.data-v-581af8d0 {
+  padding: 2vw;
 }
 .content .bottom.data-v-581af8d0 {
   position: relative;
@@ -32,7 +22,6 @@
   display: flex;
   margin: 1vw 0 0 0;
   padding: 1vw;
-  height: 100px;
 }
 .content .bottom .list .left .image.data-v-581af8d0 {
   width: 130px;
@@ -43,6 +32,7 @@
   display: flex;
   flex-direction: column;
   justify-content: space-between;
+  margin: 0 0 0 2vw;
   width: 100%;
 }
 .content .bottom .list .right .name.data-v-581af8d0 {

+ 32 - 30
unpackage/dist/dev/mp-weixin/pagesHome/search/index.js

@@ -17,7 +17,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
     (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
     const config = common_vendor.ref({ logoUrl: [] });
-    const searchInfo = common_vendor.ref({});
     const type = common_vendor.ref("0");
     const is_show = common_vendor.ref(false);
     const searchList = common_vendor.ref([{ title: "默认排序", type: "0", is_open: false }, { title: "品牌", type: "1", is_open: false }, { title: "价格", type: "2", is_open: false }, { title: "更多筛选", type: "3", is_open: false }]);
@@ -91,10 +90,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         limit: limit.value,
         status: "0"
       };
-      const res = await $api("car", "GET", {
-        ...info,
-        ...searchInfo.value
-      });
+      const res = await $api("car", "GET", info);
       if (res.errcode === 0) {
         list.value = list.value.concat(res.data);
         total.value = res.total;
@@ -127,6 +123,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
       } else
         is_show.value = searchList.value.some((item) => item.is_open == true);
     };
+    const toChange = () => {
+      common_vendor.index.navigateTo({
+        url: `/pagesHome/type/index`
+      });
+    };
     const toClose = () => {
       is_show.value = false;
       searchList.value = searchList.value.map((item, index) => {
@@ -236,12 +237,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
     return (_ctx, _cache) => {
       return common_vendor.e({
-        a: common_vendor.p({
+        a: common_vendor.o(toChange),
+        b: common_vendor.p({
           shape: "square",
           ["show-action"]: false,
           placeholder: "请输入车辆的名称或品牌"
         }),
-        b: common_vendor.f(searchList.value, (item, index, i0) => {
+        c: common_vendor.f(searchList.value, (item, index, i0) => {
           return common_vendor.e({
             a: common_vendor.t(item.title),
             b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
@@ -265,9 +267,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             i: common_vendor.o(($event) => toSearch(item), index)
           });
         }),
-        c: type.value == "0"
+        d: type.value == "0"
       }, type.value == "0" ? {
-        d: common_vendor.f(sortList.value, (item, index, i0) => {
+        e: common_vendor.f(sortList.value, (item, index, i0) => {
           return {
             a: common_vendor.t(item.title),
             b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
@@ -276,7 +278,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           };
         })
       } : type.value == "2" ? {
-        f: common_vendor.f(moneyList.value, (item, index, i0) => {
+        g: common_vendor.f(moneyList.value, (item, index, i0) => {
           return {
             a: common_vendor.t(item.title),
             b: common_vendor.n(item.is_open == false ? "title_1" : "title_2"),
@@ -285,34 +287,34 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           };
         })
       } : {}, {
-        e: type.value == "2",
-        g: is_show.value,
-        h: common_vendor.o(toClose),
-        i: Object.keys(brandInfo.value).length > 0 || Object.keys(moneyInfo.value).length > 0 || moreList.value.length > 0
+        f: type.value == "2",
+        h: is_show.value,
+        i: common_vendor.o(toClose),
+        j: Object.keys(brandInfo.value).length > 0 || Object.keys(moneyInfo.value).length > 0 || moreList.value.length > 0
       }, Object.keys(brandInfo.value).length > 0 || Object.keys(moneyInfo.value).length > 0 || moreList.value.length > 0 ? common_vendor.e({
-        j: brandInfo.value && brandInfo.value.type
+        k: brandInfo.value && brandInfo.value.type
       }, brandInfo.value && brandInfo.value.type ? {
-        k: common_vendor.t(brandInfo.value.title),
-        l: common_vendor.p({
+        l: common_vendor.t(brandInfo.value.title),
+        m: common_vendor.p({
           color: "#000",
           size: "14px",
           name: "close"
         }),
-        m: common_vendor.o(($event) => toDelete({}, "0"))
+        n: common_vendor.o(($event) => toDelete({}, "0"))
       } : {}, {
-        n: moneyInfo.value && moneyInfo.value.type
+        o: moneyInfo.value && moneyInfo.value.type
       }, moneyInfo.value && moneyInfo.value.type ? {
-        o: common_vendor.t(moneyInfo.value.title),
-        p: common_vendor.p({
+        p: common_vendor.t(moneyInfo.value.title),
+        q: common_vendor.p({
           color: "#000",
           size: "14px",
           name: "close"
         }),
-        q: common_vendor.o(($event) => toDelete({}, "1"))
+        r: common_vendor.o(($event) => toDelete({}, "1"))
       } : {}, {
-        r: moreList.value.length > 0
+        s: moreList.value.length > 0
       }, moreList.value.length > 0 ? {
-        s: common_vendor.f(moreList.value, (item, index, i0) => {
+        t: common_vendor.f(moreList.value, (item, index, i0) => {
           return {
             a: common_vendor.t(item.title),
             b: "2519f642-5-" + i0,
@@ -320,15 +322,15 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             d: common_vendor.o(($event) => toDelete(item, "2"), index)
           };
         }),
-        t: common_vendor.p({
+        v: common_vendor.p({
           color: "#000",
           size: "14px",
           name: "close"
         })
       } : {}, {
-        v: common_vendor.o(toReset)
+        w: common_vendor.o(toReset)
       }) : {}, {
-        w: common_vendor.f(list.value, (item, index, i0) => {
+        x: common_vendor.f(list.value, (item, index, i0) => {
           return common_vendor.e({
             a: item.file && item.file.length > 0 ? item.file[0].url : "",
             b: common_vendor.t(item.series || "暂无"),
@@ -352,11 +354,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             n: common_vendor.o(($event) => toView(item), index)
           });
         }),
-        x: is_bottom.value
+        y: is_bottom.value
       }, is_bottom.value ? {
-        y: common_vendor.t(config.value.bottom_title || "没有更多了!")
+        z: common_vendor.t(config.value.bottom_title || "没有更多了!")
       } : {}, {
-        z: common_vendor.o(toPage)
+        A: common_vendor.o(toPage)
       });
     };
   }

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesHome/search/index.wxml


+ 0 - 1
unpackage/dist/dev/mp-weixin/pagesHome/search/index.wxss

@@ -103,7 +103,6 @@
   display: flex;
   margin: 1vw 0 0 0;
   padding: 1vw;
-  height: 100px;
 }
 .content .bottom .one .list .left .image.data-v-2519f642 {
   width: 130px;

+ 60 - 0
unpackage/dist/dev/mp-weixin/pagesHome/type/index.js

@@ -0,0 +1,60 @@
+"use strict";
+const common_vendor = require("../../common/vendor.js");
+const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
+  __name: "index",
+  setup(__props) {
+    var _a, _b, _c;
+    const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
+    (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$app;
+    (_c = common_vendor.getCurrentInstance()) == null ? void 0 : _c.appContext.config.globalProperties.$config;
+    const config = common_vendor.ref({ logo: [] });
+    common_vendor.onLoad(async () => {
+      await searchConfig();
+      await search();
+    });
+    const searchConfig = async () => {
+      let res = await $api(`config`, "GET", {});
+      if (res.errcode == 0) {
+        config.value = res.data;
+        common_vendor.index.setStorage({
+          key: "config",
+          data: res.data
+        });
+      }
+    };
+    const search = async () => {
+      common_vendor.index.getStorage({
+        key: "openid",
+        success: function(res) {
+          common_vendor.index.reLaunch({
+            url: `/pages/home/index`
+          });
+        },
+        fail: function(err) {
+          common_vendor.index.login({
+            success: async function(res) {
+              if (res.code) {
+                common_vendor.index.reLaunch({
+                  url: `/pages/home/index`
+                });
+              } else {
+                common_vendor.index.showToast({
+                  title: res.errMsg,
+                  icon: "none"
+                });
+              }
+            }
+          });
+        }
+      });
+    };
+    return (_ctx, _cache) => {
+      var _a2, _b2;
+      return {
+        a: ((_b2 = (_a2 = config.value) == null ? void 0 : _a2.logo[0]) == null ? void 0 : _b2.url) || "/static/logo.png"
+      };
+    };
+  }
+});
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2f32406a"], ["__file", "D:/project/二手车/car_applet/pagesHome/type/index.vue"]]);
+wx.createPage(MiniProgramPage);

+ 8 - 0
unpackage/dist/dev/mp-weixin/pagesHome/type/index.json

@@ -0,0 +1,8 @@
+{
+  "navigationBarTitleText": "搜索",
+  "navigationBarBackgroundColor": "#F8F8F8",
+  "backgroundColor": "#F8F8F8",
+  "backgroundColorTop": "#F4F5F6",
+  "backgroundColorBottom": "#F4F5F6",
+  "usingComponents": {}
+}

+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/type/index.wxml

@@ -0,0 +1 @@
+<view class="content data-v-2f32406a"><image class="logo data-v-2f32406a" src="{{a}}"></image></view>

+ 20 - 0
unpackage/dist/dev/mp-weixin/pagesHome/type/index.wxss

@@ -0,0 +1,20 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+/* uni.scss */
+.content.data-v-2f32406a {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  width: 100vw;
+  height: 100vh;
+}
+.content .logo.data-v-2f32406a {
+  width: 50vw;
+  height: 50vw;
+  border-radius: 90px;
+  box-shadow: 0 0 5px #f1f1f1;
+}

+ 11 - 5
unpackage/dist/dev/mp-weixin/pagesMy/car/index.js

@@ -73,6 +73,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
       const res = list2.find((f) => f.value == data);
       return (res == null ? void 0 : res.label) || "暂无";
     };
+    const toChange = () => {
+      common_vendor.index.navigateTo({
+        url: `/pagesHome/type/index`
+      });
+    };
     const toPage = () => {
       if (total.value > list.value.length) {
         common_vendor.index.showLoading({
@@ -88,12 +93,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
     return (_ctx, _cache) => {
       return common_vendor.e({
-        a: common_vendor.p({
+        a: common_vendor.o(toChange),
+        b: common_vendor.p({
           shape: "square",
           ["show-action"]: false,
           placeholder: "品牌/车系"
         }),
-        b: common_vendor.f(list.value, (item, index, i0) => {
+        c: common_vendor.f(list.value, (item, index, i0) => {
           return common_vendor.e({
             a: common_vendor.t(item.brand || "暂无"),
             b: common_vendor.t(item.bank || "暂无"),
@@ -125,11 +131,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             p: index
           });
         }),
-        c: is_bottom.value
+        d: is_bottom.value
       }, is_bottom.value ? {
-        d: common_vendor.t(config.value.bottom_title || "没有更多了!")
+        e: common_vendor.t(config.value.bottom_title || "没有更多了!")
       } : {}, {
-        e: common_vendor.o(toPage)
+        f: common_vendor.o(toPage)
       });
     };
   }

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesMy/car/index.wxml


+ 13 - 7
unpackage/dist/dev/mp-weixin/pagesMy/collect/index.js

@@ -124,6 +124,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
     const search = async () => {
     };
+    const toChange = () => {
+      common_vendor.index.navigateTo({
+        url: `/pagesHome/type/index`
+      });
+    };
     const toView = (item) => {
       common_vendor.index.navigateTo({
         url: `/pagesHome/car/index?id=${item.id || item._id}`
@@ -161,17 +166,18 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
     return (_ctx, _cache) => {
       return common_vendor.e({
-        a: common_vendor.p({
+        a: common_vendor.o(toChange),
+        b: common_vendor.p({
           shape: "square",
           ["show-action"]: false,
           placeholder: "品牌/车系"
         }),
-        b: common_vendor.p({
+        c: common_vendor.p({
           name: "trash",
           size: "15"
         }),
-        c: common_vendor.o(toDelete),
-        d: common_vendor.f(list.value, (item, index, i0) => {
+        d: common_vendor.o(toDelete),
+        e: common_vendor.f(list.value, (item, index, i0) => {
           return common_vendor.e({
             a: item.file && item.file.length > 0 ? item.file[0].url : "",
             b: common_vendor.t(item.name || "暂无"),
@@ -193,11 +199,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             l: common_vendor.o(($event) => toView(item), index)
           });
         }),
-        e: is_bottom.value
+        f: is_bottom.value
       }, is_bottom.value ? {
-        f: common_vendor.t(config.value.bottom_title || "没有更多了!")
+        g: common_vendor.t(config.value.bottom_title || "没有更多了!")
       } : {}, {
-        g: common_vendor.o(toPage)
+        h: common_vendor.o(toPage)
       });
     };
   }

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesMy/collect/index.wxml


+ 0 - 1
unpackage/dist/dev/mp-weixin/pagesMy/collect/index.wxss

@@ -31,7 +31,6 @@
   display: flex;
   margin: 1vw 0 0 0;
   padding: 1vw;
-  height: 100px;
 }
 .content .bottom .list .left .image.data-v-523c5cf9 {
   width: 130px;