|
@@ -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 = () => {
|