zs 1 năm trước cách đây
mục cha
commit
d532acba70
3 tập tin đã thay đổi với 14 bổ sung19 xóa
  1. 6 6
      pages/my/index.vue
  2. 1 5
      pagesHome/login/index.vue
  3. 7 8
      pagesMy/record/index.vue

+ 6 - 6
pages/my/index.vue

@@ -55,7 +55,7 @@
 	};
 	// 公共跳转
 	const toCommon = (e) => {
-		if (user.value && user.value._id) {
+		// if (user.value && user.value._id) {
 			if (e) {
 				uni.navigateTo({
 					url: `/${e}`
@@ -68,11 +68,11 @@
 					})
 				} catch (e) { }
 			}
-		} else {
-			uni.navigateTo({
-				url: `/pagesHome/login/index`
-			})
-		}
+		// } else {
+		// 	uni.navigateTo({
+		// 		url: `/pagesHome/login/index`
+		// 	})
+		// }
 	};
 </script>
 <style lang="scss" scoped>

+ 1 - 5
pagesHome/login/index.vue

@@ -4,7 +4,7 @@
 			<scroll-view scroll-y="true" class="scroll-view">
 				<view class="list-scroll-view">
 					<view class="wx">
-						<view class="wx_1" @tap="validate">
+						<view class="wx_1">
 							<image class="image" src="/static/login.png">
 							</image>
 						</view>
@@ -100,10 +100,6 @@
 		]
 	}
 	const uForm = ref(null);
-	// 人脸验证
-	const validate = () => {
-		console.log('人脸验证');
-	};
 	// 开始验证
 	const formSubmit = () => {
 		if (agree.value) {

+ 7 - 8
pagesMy/record/index.vue

@@ -1,14 +1,14 @@
 <template>
 	<view class="content">
 		<view class="top">
-			<u-search shape="square" :show-action="false" placeholder="品牌/车系" @focus="toChange"></u-search>
+			<u-search shape="square" :show-action="false" placeholder="搜索" @focus="toChange"></u-search>
 		</view>
 		<view class="bottom">
 			<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">
 						<view class="name textOver">
-							<text>{{item.brand||'暂无'}} {{item.bank||'暂无'}} {{item.type||'暂无'}}</text>
+							<text>{{item.name||'暂无'}}</text>
 						</view>
 						<view class="other textOver" v-if="item.start">
 							<text>上牌日期:</text>
@@ -79,7 +79,7 @@
 	const searchOther = async () => {
 		let res;
 		// 状态
-		res = await $api(`dictData`, 'GET', { code: 'valuation', is_use: '0' });
+		res = await $api(`dictData`, 'GET', { code: 'status', is_use: '0' });
 		if (res.errcode === 0) statusList.value = res.data;
 	};
 	// config信息
@@ -91,9 +91,9 @@
 		const info = {
 			skip: skip.value,
 			limit: limit.value,
-			// openid: openid.value
+			// user: user.value._id
 		}
-		const res = await $api('estimate', 'GET', {
+		const res = await $api('apply', 'GET', {
 			...info,
 			...searchInfo.value
 		});
@@ -123,9 +123,8 @@
 	};
 	// 搜索
 	const toChange = () => {
-		uni.navigateTo({
-			url: `/pagesHome/type/index`
-		})
+		if (e) searchInfo.value.name = e
+		else searchInfo.value = {}
 	};
 	// 分页
 	const toPage = () => {