Commit 8aa75363 by yancanhua

Merge branch 'feature_tomaven' into v1.1.0

2 parents 3a788c28 4c55ade7
Showing 30 changed files with 1726 additions and 6 deletions
...@@ -4,9 +4,9 @@ MODE = 'development' ...@@ -4,9 +4,9 @@ MODE = 'development'
# 发布路径 # 发布路径
PUBLISH_PATH = '/' PUBLISH_PATH = '/'
BASE_URL = '/ BASE_URL = '/
'
# 开发环境 # 开发环境
VITE_API_BASE_URL = 'http://localhost:6903/admin/rest/' VITE_API_BASE_URL = 'http://aus.test.glsx.com.cn/admin/rest'
#VITE_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJnb25nbGVpIiwicmVhbE5hbWUiOiLpvprno4oiLCJwYXNzd29yZCI6IiQyYSQxMCRsaDJuODZ1alVOcUsuTzljb2F4RVFPSzhoZlRIUm5vclEwMW5ZQWFzZ2lkV2NLNkVOMjc5bSIsImlzcyI6ImRvY3dpc2VyQXBwIiwiZXhwIjoxODI2NjMwMzQ4LCJpYXQiOjE3NTQ2MzAzNDgsImp0aSI6IjEiLCJhdXRob3JpdGllcyI6WyJBRE1JTklTVFJBVE9SIl19.q0GaDc5b20YSCRZ2TKZXNO9rz0FAs-6Sl_mVjCuIbWE' #VITE_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJnb25nbGVpIiwicmVhbE5hbWUiOiLpvprno4oiLCJwYXNzd29yZCI6IiQyYSQxMCRsaDJuODZ1alVOcUsuTzljb2F4RVFPSzhoZlRIUm5vclEwMW5ZQWFzZ2lkV2NLNkVOMjc5bSIsImlzcyI6ImRvY3dpc2VyQXBwIiwiZXhwIjoxODI2NjMwMzQ4LCJpYXQiOjE3NTQ2MzAzNDgsImp0aSI6IjEiLCJhdXRob3JpdGllcyI6WyJBRE1JTklTVFJBVE9SIl19.q0GaDc5b20YSCRZ2TKZXNO9rz0FAs-6Sl_mVjCuIbWE'
VITE_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yIiwicmVhbE5hbWUiOiLotoXnuqfnrqHnkIblkZgiLCJwYXNzd29yZCI6IiQyYSQxMCRlQ21jWmxPaFltVUxrNklibjR3RVgudjNpa0dzcnBpYjh0SlBlcGJ6NVl1SXFWbUpCVER4eSIsImlzcyI6ImF1c0FwcCIsImV4cCI6MTgzNjA1OTc3MywiaWF0IjoxNzY0MDU5NzczLCJqdGkiOiIzMCIsImF1dGhvcml0aWVzIjpbIlJPTEVfU1VQRVIiXX0.mV7SjrweQfLj8BQ7jBJ5W_05Jo1-vGyseulT6Blk-ag' VITE_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yIiwicmVhbE5hbWUiOiJhZG1pbmlzdHJhdG9yIiwicGFzc3dvcmQiOiIkMmEkMTAkQ0ZudVRoVHgyRHBMZC9UdkVVdVZGZXhqM1plUnlLQVNwMkllUW41VHFUbU5yN1N4UFI0VG0iLCJpc3MiOiJhdXNBcHAiLCJleHAiOjE4NDExNTk5OTgsImlhdCI6MTc2OTE1OTk5OCwianRpIjoiOTYiLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUEVSIl19.SCTolgZ7my8M3uK6YkV3svZas8qcdIzU_GP1XS7bhUk'
...@@ -62,6 +62,9 @@ ...@@ -62,6 +62,9 @@
"vite-plugin-electron-renderer": "^0.14.5", "vite-plugin-electron-renderer": "^0.14.5",
"vite-svg-loader": "^5.1.0" "vite-svg-loader": "^5.1.0"
}, },
"volta":{
"node":"16.20.2"
},
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.9.5" "@rollup/rollup-linux-x64-gnu": "4.9.5"
} }
......
...@@ -46,6 +46,20 @@ export const financeRouter: Array<RouteRecordRaw> = [ ...@@ -46,6 +46,20 @@ export const financeRouter: Array<RouteRecordRaw> = [
} }
}, },
{ {
path: '/finance/preference',
component: () => import( '@/views/finance/preference/PreferencePage.vue'),
meta: {
breadcrumbs: [{name: '车商管理'}, {name: '收车偏好'}]
}
},
{
path: '/finance/preference/view',
component: () => import( '@/views/finance/preference/ViewPreference.vue'),
meta: {
breadcrumbs: [{name: '车商管理'}, {name: '收车偏好', path: '/finance/preference'}, {name: '收车偏好详情'}]
}
},
{
path: '/finance/withdraw', path: '/finance/withdraw',
component: () => import( '@/views/finance/withdraw/WithdrawPage.vue'), component: () => import( '@/views/finance/withdraw/WithdrawPage.vue'),
meta: { meta: {
......
<template>
<div class="logBox">
<div class="log-list">
<div class="progressBox">
<div class="progressBox-point"></div>
<div class="progressBox-line"></div>
</div>
<div class="log-title">
<div class="logBox-content">偏好品牌:<span>新增“奔驰”,新增“宝马”</span></div>
<div class="logBox-time">
<div class="logBox-point">M</div>
<span style="padding-left: 4px;">方世盛</span>
<span style="padding-left: 8px;">2026-01-20 14:32:05</span>
</div>
</div>
</div>
<div class="log-list">
<div class="progressBox">
<div class="progressBox-point bg-1956fe"></div>
<div class="progressBox-line"></div>
</div>
<div class="log-title">
<div class="logBox-content">偏好品牌:<span>新增“奔驰”,新增“宝马”</span></div>
<div class="logBox-time">
<div class="logBox-point">M</div>
<span style="padding-left: 4px;">方世盛</span>
<span style="padding-left: 8px;">2026-01-20 14:32:05</span>
</div>
</div>
</div>
<div class="moreBox">
查看更多
<DoubleLeftOutlined color="#666666" font-size="16px;" style="transform: rotate(270deg);" />
</div>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-facing-decorator";
import { DoubleLeftOutlined } from '@ant-design/icons-vue';
@Component({ components: { DoubleLeftOutlined } })
export default class OperationLog extends Vue {
@Prop({ type: String, required: true })
list: any[];
}
</script>
<style lang="less" scoped>
.logBox {
width: 100%;
height: auto;
float: left;
}
.log-list {
width: 100%;
float: left;
margin-bottom: 16px;
}
.progressBox {
width: 24px;
float: left;
}
.progressBox-point {
width: 8px;
height: 8px;
border: 2px solid #1956fe;
border-radius: 8px;
}
.bg-1956fe {
background: #1956fe;
}
.progressBox-line {
width: 2px;
height: 40px;
background: #1956fe;
margin-top: 3px;
margin-left: 2px;
}
.log-title {
width: -webkit-calc(100% - 24px);
width: -moz-calc(100% - 24px);
width: calc(100% - 24px);
float: left;
}
.logBox-content {
width: 100%;
height: 20px;
line-height: 20px;
float: left;
color: #777c85;
font-size: 14px;
font-weight: 400;
}
.logBox-content span {
color: #2f3133;
}
.logBox-time {
width: 100%;
height: 20px;
line-height: 20px;
float: left;
color: #777c85;
font-size: 12px;
font-weight: 400;
margin-top: 6px;
}
.logBox-point {
width: 14px;
height: 14px;
line-height: 14px;
background: #e6efff;
text-align: center;
float: left;
margin: 3px 0;
color: #1956fe;
font-size: 8px;
font-weight: 700;
border-radius: 8px;
}
.moreBox {
width: 100%;
height: 20px;
float: left;
color: #666666;
font-size: 14px;
font-weight: 400;
line-height: 20px;
margin-top: 8px;
margin-bottom: 22px;
cursor: pointer;
}
</style>
<template>
<div>
<a-popover placement="top">
<template #content>
<div style="display: flex; flex-wrap: wrap;">
<div v-for="(item, index) in returnPageList()" :key="index" class="tag-box">{{ item.label }}</div>
</div>
</template>
<div style="float: left;">
<div v-for="(item, index) in returnPageList()" :key="index" style="float: left;">
<div v-if="index < 2" class="tag-box">{{ item.label }}</div>
</div>
<div class="tag-box">+ {{ returnPageList().length - 2 }}</div>
</div>
</a-popover>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue, Watch } from "vue-facing-decorator";
import { returnPreferenceList } from "@/views/finance/preference/listData";
interface TagItem {
label: string;
value: string;
}
@Component({ components: {} })
export default class PageMultipleTag extends Vue {
@Prop({ type: Array, required: true })
listValue: any[];
@Prop({ type: String, required: true })
tagValue: string;
private cachedTagList: TagItem[] = [];
@Watch('tagValue')
@Watch('listValue')
updateTagList() {
this.cachedTagList = this.generateTagList();
}
private generateTagList(): TagItem[] {
const list = returnPreferenceList(this.listValue) || [];
const tagValues = (this.tagValue || '').split(',').filter(Boolean);
return tagValues.map((item) => {
const itemObj = list.find((itemObj: any) => itemObj.value === item);
return { label: itemObj?.label || '', value: item };
});
}
returnPageList(): TagItem[] {
if (this.cachedTagList.length === 0) {
this.updateTagList();
}
return this.cachedTagList;
}
}
</script>
<style lang="less" scoped>
.tag-box {
padding: 0 8px;
height: 24px;
line-height: 24px;
text-align: center;
border-radius: 4px;
background: #f0f2f5;
color: #2f3133;
font-size: 12px;
font-weight: 400;
float: left;
margin-right: 6px;
}
</style>
<template>
<a-card title="信息" :bordered="false" size="small">
<a-spin :spinning="submitted">
<a-form layout="vertical" v-if="formState" :model="formState" :label-col="labelCol"
:wrapper-col="wrapperCol" ref="formRef" class="flex-form">
<title-divider title="经营信息"></title-divider>
<a-form-item label="经营模式" name="businessModel" :rules="[{ required: true, message: '请选择经营模式' }]">
<a-select ref="select" v-model:value="formState.businessModel" placeholder="请选择经营模式">
<a-select-option value="1">批发</a-select-option>
<a-select-option value="2">零售</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="注册地区" :name="['ownership', 'carProvinceCity']"
:rules="[{ required: true, message: '请选择注册地区!' }]">
<a-cascader v-model:value="formState.carProvinceCity" :options="areaData" placeholder="请选择注册地区"
@change="handleCitiesChange" />
</a-form-item>
<title-divider title="收车偏好"></title-divider>
<a-form-item label="偏好车况" name="vehicleCondition" :rules="[{ required: true, message: '请选择偏好车况' }]">
<a-select v-model:value="formState.vehicleCondition" mode="tags" placeholder="请选择偏好车况">
<a-select-option v-for="(item, index) in vehicleConditionList" :key="index"
:value="item.value">{{ item.label }}</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="偏好车龄" name="vehicleAge" :rules="[{ required: true, message: '请选择偏好车龄' }]">
<a-select v-model:value="formState.vehicleAge" mode="tags" placeholder="请选择偏好车龄">
<a-select-option v-for="(item, index) in vehicleAgeList" :key="index" :value="item.value">
{{ item.label }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="燃油类型" name="vehicleFuelType" :rules="[{ required: true, message: '请选择燃油类型' }]">
<a-select v-model:value="formState.vehicleFuelType" mode="tags" placeholder="请选择燃油类型">
<a-select-option v-for="(item, index) in fuelTypeList" :key="index" :value="item.value">
{{ item.label }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="收车车型" name="vehicleType" :rules="[{ required: true, message: '请选择收车车型' }]">
<a-select v-model:value="formState.vehicleType" mode="tags" placeholder="请选择收车车型">
<a-select-option v-for="(item, index) in vehicleTypeList" :key="index" :value="item.value">
{{ item.label }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="偏好品牌" name="vehicleBrand" :rules="[{ required: true, message: '请选择偏好品牌' }]">
<a-select v-model:value="formState.vehicleBrand" mode="tags" placeholder="请选择偏好品牌">
<a-select-option v-for="(item, index) in brands" :key="index" :value="item.value">
{{ item.label }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item class="footer-btns">
<a-button type="primary" class="mr-10" @click="submitForm">保存</a-button>
<a-button @click="$goBack()">取消</a-button>
</a-form-item>
</a-form>
</a-spin>
</a-card>
</template>
<script lang="ts">
import { Component } from "vue-facing-decorator";
import { reactive } from 'vue';
import { Venue } from "lib/src/entity/venue/entity/Venue";
import { DeleteOutlined, EditOutlined, PlusOutlined } from "@ant-design/icons-vue";
import { FormComponent } from "autumn-antv/lib/core/form/FormComponent";
import TitleDivider from "@/components/TitleDivider.vue";
import { DefaultOptionType } from "ant-design-vue/es/vc-cascader/Cascader";
import { convertToTree } from "@/common/chinaarea";
import { returnPreferenceList } from "@/views/finance/preference/listData";
import { GscApiController } from "@/api/GscApiController";
@Component({
components: { TitleDivider, EditOutlined, DeleteOutlined, PlusOutlined }
})
export default class PreferenceForm extends FormComponent<Venue> {
areaData: DefaultOptionType[] = [];
vehicleConditionList = returnPreferenceList('vehicleConditionList');
vehicleAgeList = returnPreferenceList('vehicleAgeList');
fuelTypeList = returnPreferenceList('vehicleFuelTypeList');
vehicleTypeList = returnPreferenceList('vehicleModelList');
brands: DefaultOptionType[] = [];
created(): void {
const venue = new Venue();
this.formState = reactive<Venue>(venue);
this.areaData = convertToTree(false);
GscApiController.getCarBrandComplete(this.axios).then(res => {
const brandRes: any = res.data;
this.brands = (brandRes.data.carinfos || []).map(item => ({ label: item.name, value: item.id, }));
});
}
handleCitiesChange(value, selectedOptions: DefaultOptionType[]): void {
console.log(value);
this.formState.carProvinceId = Number(selectedOptions[0].value);
this.formState.carProvinceName = selectedOptions[0].label;
this.formState.carCityId = Number(selectedOptions[1].value);
this.formState.carCityName = selectedOptions[1].label;
}
onValidSuccess(formValue: Venue): void {
}
onValidFailure(errorMessage: any) {
console.error('错误信息:', errorMessage);
}
}
</script>
<style lang="less" scoped>
</style>
<template>
<div>
<a-descriptions :column="3" size="small">
<template #title>
<title-tip-icon></title-tip-icon>
车商基础信息
</template>
<a-descriptions-item label="车商ID">
{{ deposit.id }}
</a-descriptions-item>
<a-descriptions-item label="车商手机号">
{{ deposit.mobile }}
</a-descriptions-item>
<a-descriptions-item label="车商昵称">
{{ deposit.nickName }}
</a-descriptions-item>
<a-descriptions-item label="实名姓名">
{{ deposit.realName }}
</a-descriptions-item>
<a-descriptions-item label="调研状态">
{{ deposit.researchStatus }}
</a-descriptions-item>
<a-descriptions-item label="注册时间">
{{ deposit.createTime }}
</a-descriptions-item>
<a-descriptions-item label="首次填写时间">
{{ deposit.createTime }}
</a-descriptions-item>
<a-descriptions-item label="更新时间">
{{ deposit.updateTime }}
</a-descriptions-item>
<a-descriptions-item label="编辑人">
{{ deposit.upName }}
</a-descriptions-item>
</a-descriptions>
<div v-if="pageState == 'VIEW'">
<a-descriptions :column="3" size="small">
<template #title>
<title-tip-icon></title-tip-icon>
经营信息
</template>
<a-descriptions-item label="运营模式">
{{ deposit.businessModel }}
</a-descriptions-item>
<a-descriptions-item label="注册地区">
{{ deposit.cityCode }}
</a-descriptions-item>
</a-descriptions>
<a-descriptions :column="3" size="small">
<template #title>
<title-tip-icon></title-tip-icon>
收车偏好详情
</template>
<a-descriptions-item label="偏好车况">
{{ deposit.vehicleCondition }}
</a-descriptions-item>
<a-descriptions-item label="偏好车龄">
{{ deposit.vehicleAge }}
</a-descriptions-item>
<a-descriptions-item label="燃油类型">
{{ deposit.vehicleFuelType }}
</a-descriptions-item>
<a-descriptions-item label="收车车型">
{{ deposit.vehicleModel }}
</a-descriptions-item>
<a-descriptions-item label="偏好品牌">
{{ deposit.brand }}
</a-descriptions-item>
</a-descriptions>
</div>
<div v-if="pageState == 'EDIT'">
<a-form :model="formData" :label-col="labelCol" :wrapper-col="wrapperCol" ref="formRef">
</a-form>
</div>
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-facing-decorator';
import { Deposit } from "lib/src/entity/finance/entity/Deposit";
import { DepositController } from "@/api/DepositController";
@Component({
components: {}
})
export default class ViewPreference extends Vue {
pageState = 'VIEW'//VIEW查看状态 EDIT编辑状态
formData: {}
depositId: number;
deposit: Deposit;
created() {
this.depositId = Number(this.$route.query.depositId);
DepositController.getDepositDetailById(this.axios, this.depositId).then(response => {
this.deposit = response.data;
});
}
}
</script>
<style scoped lang="less"></style>
export const returnPreferenceList = e => {
const lists = {
vehicleConditionList: [
{ label: '精品(A/B级)', value: '1' },
{ label: '瑕疵(C级)', value: '2' },
{ label: '重大事故/水泡/火烧(D级)', value: '3' }
],
vehicleAgeList: [
{ label: '1-3年', value: '1' },
{ label: '3-6年', value: '2' },
{ label: '6-10年', value: '3' },
{ label: '>10年', value: '4' }
],
vehicleFuelTypeList: [
{ label: '燃油', value: '1' },
{ label: '新能源', value: '2' }
],
vehicleModelList: [
{ label: '轿车', value: '1' },
{ label: 'SUV', value: '2' },
{ label: 'MPV', value: '3' },
{ label: '跑车', value: '4' },
{ label: '皮卡', value: '5' }
]
};
return lists[e] || [];
};
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,13 @@ PUBLISH_PATH = '/' ...@@ -6,7 +6,13 @@ PUBLISH_PATH = '/'
# 平台端请求路径 # 平台端请求路径
# VITE_APP_API_BASE_URL = 'http://192.168.0.108:5001/rest/' # VITE_APP_API_BASE_URL = 'http://192.168.0.108:5001/rest/'
VITE_APP_API_URL = 'http://localhost:6901/api/' # VITE_APP_API_URL = 'http://localhost:6901/api/'
VITE_APP_API_BASE_URL = 'http://localhost:6901/' # VITE_APP_API_BASE_URL = 'http://localhost:6901/'
# VITE_APP_API_URL = 'http://120.237.107.125:6911/api/'
# VITE_APP_API_BASE_URL = 'http://120.237.107.125:6911/'
VITE_APP_API_URL = 'https://aus.test.glsx.com.cn/app/api/'
VITE_APP_API_BASE_URL = 'https://aus.test.glsx.com.cn/app/'
VITE_APP_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJnb25nbGVpIiwiaXNzIjoiZG9jd2lzZXJBcHAiLCJtb2JpbGUiOiIxODgyMjg4NTUxOCIsImV4cCI6MTgzMjUwMDcxOSwiaWF0IjoxNzYwNTAwNzE5LCJqdGkiOiIxIn0.8AR4Q8YG65yzBL2LfFUecMiTuWIbkJF4wIctHZhnUdQ' VITE_APP_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJnb25nbGVpIiwiaXNzIjoiZG9jd2lzZXJBcHAiLCJtb2JpbGUiOiIxODgyMjg4NTUxOCIsImV4cCI6MTgzMjUwMDcxOSwiaWF0IjoxNzYwNTAwNzE5LCJqdGkiOiIxIn0.8AR4Q8YG65yzBL2LfFUecMiTuWIbkJF4wIctHZhnUdQ'
<template>
<view>
<uni-popup ref="popupRef" type="center" background-color="#fff" border-radius="24px" z-index="10000"
:show-close="false">
<view class="wrapper">
<view class="top-bg">
<view class="top-icon">
<image src="/static/images/preference/top-icon.png" class="top-icon-image"></image>
</view>
<view class="top-title">
<image src="/static/images/preference/head-txt.png" class="top-icon-title"></image>
</view>
<view class="popup-content">只需1分钟,我们将为您智能推荐最符合您需求的车辆,节省90%的找车时间!</view>
<view @click="toIndexPage()" class="popup-button-primary">
立即完善
</view>
<view @click="closePopup" class="popup-button-text">
下次再说
</view>
<view class="popup-button-24"></view>
</view>
</view>
</uni-popup>
</view>
</template>
<script lang="ts">
import { Ref, Component, Vue } from "vue-facing-decorator";
import { onLoad } from "@dcloudio/uni-app";
@Component({})
export default class ImprovePopup extends Vue {
@Ref popupRef: any;
created(): void {
onLoad((option) => {
console.log('111111111111111111111111111popupRef-open', option);
this.popupRef.open('center');
});
}
toIndexPage() {
uni.navigateTo({url: '/module/preference/indexPage'});
this.closePopup();
}
closePopup() {
this.popupRef.close('center');
}
}
</script>
<style scoped lang="scss">
.wrapper {
width: 310px;
border-radius: 24px;
background: #ffffff;
}
.top-bg {
width: 100%;
height: 300px;
background-image: url("../static/images/preference/top-bg.png");
background-repeat: no-repeat;
background-size: 100%;
border-radius: 24px;
}
.top-icon {
width: 100px;
height: 100px;
float: left;
margin-top: 24px;
margin-left: 105px;
}
.top-icon-image {
width: 100px;
height: 100px;
z-index: -1;
}
.top-title {
width: 168px;
height: 64px;
float: left;
margin-top: 16px;
margin-left: 71px;
}
.top-icon-title {
width: 168px;
height: 64px;
z-index: -1;
}
.popup-content {
width: 262px;
height: 44px;
float: left;
color: #666666;
font-size: 14px;
font-weight: 常规体;
font-family: "苹方-简";
text-align: center;
line-height: 22px;
margin-top: 8px;
margin-left: 24px;
margin-right: 24px;
}
.popup-button-primary {
width: 262px;
height: 40px;
float: left;
line-height: 40px;
border-radius: 66px;
background: #185efe;
cursor: pointer;
text-align: center;
color: #ffffff;
font-size: 16px;
font-weight: 中黑体;
font-family: "苹方-简";
margin-top: 24px;
margin-left: 24px;
margin-right: 24px;
}
.popup-button-text {
width: 262px;
height: 20px;
float: left;
line-height: 20px;
color: #666666;
font-size: 14px;
font-weight: 常规体;
font-family: "苹方-简";
text-align: center;
cursor: pointer;
margin-top: 16px;
margin-left: 24px;
margin-right: 24px;
}
.popup-button-24 {
width: 100%;
height: 24px;
float: left;
}
</style>
<template>
<view class="pageBox">
<view class="width-calc">
<view class="content-title">
经营模式<span class="validate">*</span>
</view>
<view class="select-list">
<view v-for="(item, index) in operateArr" :key="index"
:class="{ 'select-but': true, 'ml-12': index === 1, 'pitchOn': pageData.businessModel === item.value }"
@click="selectOperate(item.value)">
{{ item.label }}
<view v-if="pageData.businessModel === item.value" class="pitchOn-img"></view>
</view>
</view>
<view class="tip-head">
<view class="tips-img-box">
<image src="/static/images/preference/tips.png" class="tips-img"></image>
</view>
<view class="tip-box">
<text class="tip">批发商模式优先推荐“高周转车型”,</text>
<text class="tip">零售模式优先推荐“高利润车型”。</text>
</view>
</view>
<view class="content-title mt-16" style="height: 28px; line-height: 28px;">
注册地区<span class="validate">*</span>
</view>
<view class="reason-select" @click="openChangeCity()">
<text v-if="pageData.cityName">{{ pageData.cityName }}</text>
<text v-else class="placeholder">请选择注册城市</text>
<uni-icons type="right" size="14" color="#999999" />
</view>
</view>
</view>
</template>
<script lang="ts">
import { Component, Vue, Watch } from 'vue-facing-decorator';
@Component({})
export default class stepOne extends Vue {
//页面数据
pageData = {
businessModel: '',
cityCode: '',
cityName: '',
cityCn: ''
}
//经营模式
operateArr = [
{ label: '批发', value: '1' },
{ label: '零售', value: '2' }
]
//选择经营模式
selectOperate(value: string) {
this.pageData.businessModel = value;
}
openChangeCity(): void {
const that = this;
uni.navigateTo({
url: '/pages/LocationCityPage', events: {
onReturnData: function (city: any) {
if (city) {
that.pageData.cityCode = city.code || '';
that.pageData.cityName = city.name || '';
that.pageData.cityCn = city.value || '';
}
}
},
});
}
// 深度监听整个pageData对象
@Watch('pageData', { deep: true, immediate: true })
watchPageData(newVal: any, oldVal: any) {
console.log('pageData 变化:', '新值:', newVal, '旧值:', oldVal)
this.$emit('oneData', newVal);
}
}
</script>
<style scoped lang="scss">
.pageBox {
width: 100%;
background: #fff;
float: left;
}
.width-calc {
width: -webkit-calc(100% - 40px);
width: -moz-calc(100% - 40px);
width: calc(100% - 40px);
float: left;
margin: 0 20px;
padding-bottom: 20px;
}
.content-title {
width: 100%;
height: 50px;
color: #141e34;
font-size: 16px;
line-height: 50px;
float: left;
}
.validate {
color: #ee3040;
font-size: 16px;
padding-left: 2px;
}
.select-but {
width: -webkit-calc(50% - 6px);
width: -moz-calc(50% - 6px);
width: calc(50% - 6px);
height: 40px;
line-height: 40px;
border-radius: 4px;
background: #f5f9ff;
color: #333333;
font-size: 14px;
font-family: "苹方-简";
text-align: center;
float: left;
cursor: pointer;
position: relative;
}
.pitchOn {
background: #f5f9ff !important;
color: #185efe !important;
}
.pitchOn-img {
position: absolute;
top: 0;
right: 0;
width: 16px;
height: 16px;
z-index: 99;
background-image: url("@/static/images/preference/pitchOn.png");
background-repeat: no-repeat;
background-size: 100%;
}
.ml-12 {
margin-left: 12px;
}
.mt-16 {
margin-top: 16px;
}
.tip-head {
width: 100%;
float: left;
margin-top: 16px;
}
.tips-img-box {
width: 14px;
height: 36px;
float: left;
}
.tip-box {
width: -webkit-calc(100% - 18px);
width: -moz-calc(100% - 18px);
width: calc(100% - 18px);
height: 36px;
float: left;
margin-left: 4px;
}
.tips-img {
width: 14px;
height: 14px;
z-index: -1;
}
.tip {
width: 100%;
height: 18px;
float: left;
line-height: 18px;
color: #666666;
font-size: 12px;
}
.reason-select {
width: 100%;
height: 52px;
line-height: 52px;
float: left;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
border-bottom: 1px solid #e6ebf5;
cursor: pointer;
color: #333333;
}
.placeholder {
color: #999999;
font-size: 14px;
}
</style>
<template>
<view class="pageBox">
<view class="width-calc">
<view class="content-title">
偏好品牌<span>(多选)</span>
<view v-if="vehicleBrandList.length" @click="handleClear()" class="clearBox">
<uni-icons type="trash" size="13" color="#141E34" />
<span class="clear-text">清空</span>
</view>
</view>
<view class="reason-select" @click="handleBrandSelect()">
<text v-if="vehicleBrandList.length"> 已选 {{ vehicleBrandList.length }} 个品牌</text>
<text v-else class="placeholder">请选择偏好品牌</text>
<uni-icons type="right" size="14" color="#999999" />
</view>
<view class="brandListBox">
<view v-for="(item, index) in vehicleBrandList" :key="index" class="brand-item">
{{ item.name }}
<uni-icons type="closeempty" size="12" color="#828CA0" @click="handleRemove(item)" />
</view>
</view>
</view>
</view>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-facing-decorator';
@Component({})
export default class stepThree extends Vue {
vehicleBrandList: any = []
//清空选择的品牌
handleClear() {
this.vehicleBrandList = [];
this.$emit('threeData', { brandList: this.vehicleBrandList });
}
//删除选中的品牌
handleRemove(item: any) {
const index = this.vehicleBrandList.indexOf(item);
if (index !== -1) {
this.vehicleBrandList.splice(index, 1);
}
this.$emit('threeData', { brandList: this.vehicleBrandList });
}
//选择偏好品牌
handleBrandSelect() {
const that = this;
uni.setStorageSync('storagVehicleBrandList', JSON.stringify(that.vehicleBrandList));
uni.navigateTo({
url: '/module/preference/selectVehicleBrand', events: {
onReturnData: function (res: any) {
that.vehicleBrandList = res.data || [];
that.$emit('threeData', { brandList: that.vehicleBrandList });
}
},
});
}
}
</script>
<style scoped lang="scss">
.pageBox {
width: 100%;
background: #fff;
float: left;
padding-bottom: 20px;
}
.width-calc {
width: -webkit-calc(100% - 40px);
width: -moz-calc(100% - 40px);
width: calc(100% - 40px);
float: left;
margin: 0 20px;
}
.content-title {
width: 100%;
height: 24px;
color: #141e34;
font-size: 16px;
line-height: 24px;
float: left;
margin-top: 16px;
position: relative;
}
.reason-select {
width: 100%;
height: 52px;
line-height: 52px;
float: left;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
border-bottom: 1px solid #e6ebf5;
cursor: pointer;
color: #333333;
}
.placeholder {
color: #999999;
font-size: 14px;
}
.clearBox {
position: absolute;
right: 2px;
top: 50%;
transform: translateY(-50%);
height: 20px;
cursor: pointer;
}
.clear-text {
height: 20px;
line-height: 20px;
color: #333333;
font-size: 14px;
text-align: center;
padding-left: 4px;
}
.brandListBox {
width: 100%;
float: left;
margin-top: 6px;
}
.brand-item {
max-width: 180px;
height: 36px;
line-height: 36px;
border-radius: 4px;
background: #f8f9fb;
font-size: 14px;
color: #333333;
float: left;
margin-top: 10px;
margin-right: 10px;
align-items: center;
padding: 0 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.brand-item uni-icons {
margin-left: 2px;
flex-shrink: 0;
}
</style>
<template>
<view class="pageBox">
<view class="width-calc">
<view class="content-title">
偏好车况<span class="validate">*</span>
</view>
<view class="select-list">
<view v-for="(item, index) in situationList" :key="index" @click="handleSelect('situationList', index)"
:class="{ 'select-but': true, 'ml-12': item.value == '2', 'w-100': item.value == '3', 'pitchOn': item.select }">
{{ item.label }}
<view v-if="item.select" class="pitchOn-img"></view>
</view>
</view>
<view class="content-title">
偏好车龄<span class="validate">*</span>
</view>
<view class="select-list">
<view v-for="(item, index) in vehicleAgeList" :key="index"
@click="handleSelect('vehicleAgeList', index)"
:class="{ 'select-but': true, 'ml-12': item.value == '2' || item.value == '4', 'pitchOn': item.select }">
{{ item.label }}
<view v-if="item.select" class="pitchOn-img"></view>
</view>
</view>
<view class="content-title">
燃油类型<span class="validate">*</span>
</view>
<view class="select-list">
<view v-for="(item, index) in vehicleTypeList" :key="index"
@click="handleSelect('vehicleTypeList', index)"
:class="{ 'select-but': true, 'ml-12': item.value == '2', 'pitchOn': item.select }">
{{ item.label }}
<view v-if="item.select" class="pitchOn-img"></view>
</view>
</view>
<view class="content-title">
收车车型<span class="validate">*</span>
</view>
<view class="select-list">
<view v-for="(item, index) in vehicleModelList" :key="index"
@click="handleSelect('vehicleModelList', index)"
:class="{ 'select-but2': true, 'ml-12': item.value == '2' || item.value == '3' || item.value == '5', 'pitchOn': item.select }">
{{ item.label }}
<view v-if="item.select" class="pitchOn-img"></view>
</view>
</view>
</view>
</view>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-facing-decorator';
@Component({})
export default class stepTwo extends Vue {
situationList = [
{ label: '精品(A/B级)', value: '1', select: false },
{ label: '瑕疵(C级)', value: '2', select: false },
{ label: '重大事故/水泡/火烧(D级)', value: '3', select: false }
]
vehicleAgeList = [
{ label: '1-3年', value: '1', select: false },
{ label: '3-6年', value: '2', select: false },
{ label: '6-10年', value: '3', select: false },
{ label: '>10年', value: '4', select: false }
]
vehicleTypeList = [
{ label: '燃油', value: '1', select: false },
{ label: '新能源', value: '2', select: false },
]
vehicleModelList = [
{ label: '轿车', value: '1', select: false },
{ label: 'SUV', value: '2', select: false },
{ label: 'MPV', value: '3', select: false },
{ label: '跑车', value: '4', select: false },
{ label: '皮卡', value: '5', select: false },
]
handleSelect(key: string, index: number) {
this[key][index].select = !this[key][index].select;
this.$emit('twoData', {
vehicleCondition: this.situationList.filter(item => item.select).map(item => item.value).join(','),
vehicleAge: this.vehicleAgeList.filter(item => item.select).map(item => item.value).join(','),
vehicleFuelType: this.vehicleTypeList.filter(item => item.select).map(item => item.value).join(','),
vehicleModel: this.vehicleModelList.filter(item => item.select).map(item => item.value).join(',')
});
}
}
</script>
<style scoped lang="scss">
.pageBox {
width: 100%;
background: #fff;
float: left;
}
.width-calc {
width: -webkit-calc(100% - 40px);
width: -moz-calc(100% - 40px);
width: calc(100% - 40px);
float: left;
margin: 0 20px;
}
.content-title {
width: 100%;
height: 24px;
color: #141e34;
font-size: 16px;
line-height: 24px;
float: left;
margin-top: 16px;
margin-bottom: 10px;
}
.validate {
color: #ee3040;
font-size: 16px;
padding-left: 2px;
}
.select-but {
width: -webkit-calc(50% - 6px);
width: -moz-calc(50% - 6px);
width: calc(50% - 6px);
height: 40px;
line-height: 40px;
border-radius: 4px;
background: #f5f9ff;
color: #333333;
font-size: 14px;
text-align: center;
float: left;
cursor: pointer;
position: relative;
margin-bottom: 12px;
}
.select-but2 {
width: -webkit-calc(33.333333% - 8px);
width: -moz-calc(33.333333% - 8px);
width: calc(33.333333% - 8px);
height: 40px;
line-height: 40px;
border-radius: 4px;
background: #f5f9ff;
color: #333333;
font-size: 14px;
text-align: center;
float: left;
cursor: pointer;
position: relative;
margin-bottom: 12px;
}
.pitchOn {
background: #f5f9ff !important;
color: #185efe !important;
}
.pitchOn-img {
position: absolute;
top: 0;
right: 0;
width: 16px;
height: 16px;
z-index: 99;
background-image: url("@/static/images/preference/pitchOn.png");
background-repeat: no-repeat;
background-size: 100%;
}
.ml-12 {
margin-left: 12px;
}
.mt-16 {
margin-top: 16px;
}
.w-100 {
width: 100% !important;
}
</style>
<template>
<view class="page">
<!-- 进度条 -->
<view class="stepBox">
<image v-if="stepActive == 'ONE'" src="/static/images/preference/stepOne.png" class="step-image" />
<image v-else-if="stepActive == 'TWO'" src="/static/images/preference/stepTwo.png" class="step-image" />
<image v-else-if="stepActive == 'THREE'" src="/static/images/preference/stepThree.png" class="step-image" />
</view>
<!-- 内容区域 -->
<view class="contentBox">
<stepOne v-show="stepActive == 'ONE'" @oneData="stepEmitOneData" />
<stepTwo v-show="stepActive == 'TWO'" @twoData="stepEmitTwoData" />
<stepThree v-show="stepActive == 'THREE'" @threeData="stepEmitThreeData" />
</view>
<!--底部提交按钮-->
<view class="bottom-fixed">
<view v-if="stepActive == 'ONE'" class="submitBut but1" @click="nextStep('TWO')"
:class="{ 'disabled': pageData.businessModel && pageData.cityCode }">下一步</view>
<view v-if="stepActive == 'TWO'" class="width-calc-36">
<view class="plainBtn" @click="upStep('ONE')">上一步</view>
<view class="submitBut but2"
:class="{ 'disabled': pageData.vehicleCondition && pageData.vehicleAge && pageData.vehicleFuelType && pageData.vehicleModel }"
@click="nextStep('THREE')">下一步</view>
</view>
<view v-if="stepActive == 'THREE'" class="width-calc-36">
<view class="plainBtn" @click="upStep('TWO')">上一步</view>
<view class="submitBut but2" :class="{ 'disabled': pageData.brandList.length }" @click="handleSubmit()">
保存偏好
</view>
</view>
</view>
</view>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-facing-decorator';
import { onLoad } from "@dcloudio/uni-app";
import stepOne from "@/module/preference/components/step-one.vue";
import stepTwo from "@/module/preference/components/step-two.vue";
import stepThree from "@/module/preference/components/step-three.vue";
@Component({ components: { stepOne, stepTwo, stepThree } })
export default class indexPage extends Vue {
//页面进度
stepActive = 'ONE';//ONE,TWO,THREE
//页面提交数据
pageData = {
businessModel: '',
cityCode: '',
cityName: '',
cityCn: '',
vehicleCondition: '',
vehicleAge: '',
vehicleFuelType: '',
vehicleModel: '',
brandList: [] as string[],
}
created(): void {
onLoad((option) => {
console.log('onLoadindexPage')
});
}
//下一步
nextStep(value: string) {
if (value == 'TWO' && (!this.pageData?.businessModel || !this.pageData?.cityCode)) {
return;
}
if (value == 'THREE' && (!this.pageData?.vehicleCondition || !this.pageData?.vehicleAge || !this.pageData?.vehicleFuelType || !this.pageData?.vehicleModel)) {
return;
}
this.stepActive = value;
}
//上一步
upStep(value: string) {
this.stepActive = value;
}
//保存
handleSubmit() {
if (!this.pageData.brandList.length) {
return
}
// uni.showModal({
// title: '提示',
// content: '偏好未完成填写,稍后可在「我的-收车偏好」中继续填写',
// success: (res) => {
// console.log('onOk');
// }
// });
}
stepEmitOneData(data: any) {
this.pageData.businessModel = data.businessModel || '';
this.pageData.cityCode = data.cityCode || '';
this.pageData.cityName = data.cityName || '';
this.pageData.cityCn = data.cityCn || '';
console.log('stepEmitData', this.pageData);
}
stepEmitTwoData(data: any) {
this.pageData.vehicleCondition = data.vehicleCondition || '';
this.pageData.vehicleAge = data.vehicleAge || '';
this.pageData.vehicleFuelType = data.vehicleFuelType || '';
this.pageData.vehicleModel = data.vehicleModel || '';
console.log('stepEmitData', this.pageData);
}
stepEmitThreeData(data: any) {
this.pageData.brandList = data.brandList || [];
console.log('stepEmitData', this.pageData);
}
}
</script>
<style scoped lang="scss">
.page {
width: 100vw;
height: 100vh;
background-color: #f8f9fb;
}
.stepBox {
width: 100%;
height: 74px;
float: left;
background: #f7f9fc;
}
.step-image {
width: 390px;
height: 57px;
z-index: -1;
margin: 0 auto;
}
.contentBox {
width: 100%;
float: left;
}
.bottom-fixed {
width: 100%;
background: #ffffff;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 80px;
}
.submitBut {
height: 48px;
line-height: 48px;
border-radius: 48px;
background: #185efe80;
float: left;
text-align: center;
color: #ffffff;
font-size: 16px;
cursor: pointer;
}
.but1 {
width: -webkit-calc(100% - 36px);
width: -moz-calc(100% - 36px);
width: calc(100% - 36px);
margin: 8px 18px 0;
}
.but2 {
width: -webkit-calc(62% - 16px);
width: -moz-calc(62% - 16px);
width: calc(62% - 16px);
margin-left: 16px;
}
.disabled {
background: #185efe !important;
color: #ffffff !important;
}
.plainBtn {
width: 38%;
height: 48px;
line-height: 48px;
border-radius: 48px;
background: #f8f9fc;
float: left;
text-align: center;
color: #333333;
font-size: 16px;
cursor: pointer;
}
.width-calc-36 {
width: -webkit-calc(100% - 36px);
width: -moz-calc(100% - 36px);
width: calc(100% - 36px);
float: left;
margin: 8px 18px 0;
}
</style>
<template>
<van-index-bar :index-list="indexList">
<template v-for="(letter) in indexList" :key="letter">
<van-index-anchor :index="letter">{{ letter }}</van-index-anchor>
<van-cell v-for="(brand, index) in getBrandsByLetter(letter)" :key="brand.id">
<template slot="title">
<div class="brand-cell" @click="bindClick(brand, index)">
<image class="brand-image" :src="brand.logoUrl" mode="aspectFill" />
{{ brand.name }}
<div class="check-icon">
<image v-if="!brand.selected" src="/static/images/preference/selectFalse.png"
class="check-icon-image" />
<image v-else src="/static/images/preference/selectTrue.png" class="check-icon-image" />
</div>
</div>
</template>
</van-cell>
</template>
<!--底部提交按钮-->
<div class="bottom-height-100"></div>
<div class="bottom-fixed">
<div class="width-calc-36">
<div class="plainBtn" @click="handleCancel()">取消</div>
<div class="submitBut but2" :class="{ 'disabled': selectedBrand.length }" @click="handleSubmit()">
确定(已选{{ selectedBrand.length }}个)
</div>
</div>
</div>
</van-index-bar>
</template>
<script lang="ts">
import { Component, Ref, Vue } from "vue-facing-decorator";
import { onLoad, onShow } from "@dcloudio/uni-app";
import { GscApiController } from "@/api/GscApiController";
type Brand = {
id: string;
letter: string,
name: string;
logoUrl: string;
childs: Brand[];
selected: boolean;
}
@Component({
components: {}
})
export default class selectVehicleBrand extends Vue {
brands: Brand[] = [];
selectedBrand: Brand[] = [];
indexList: string[] = [
'A', 'B', 'C', 'D', 'E', 'F', 'G',
'H', 'I', 'J', 'K', 'L', 'M', 'N',
'O', 'P', 'Q', 'R', 'S', 'T',
'U', 'V', 'W', 'X', 'Y', 'Z'
];
@Ref
popup: any;
created(): void {
onLoad((option) => {
this.loadData();
});
onShow(options => {
});
}
//获取品牌列表数据
loadData(): void {
const cacheBrands = uni.getStorageSync('cacheBrands');
if (cacheBrands && cacheBrands.length > 0) {
this.brands = cacheBrands;
} else {
GscApiController.getCarBrandComplete(this.axios).then(res => {
const brandRes: any = res.data;
this.brands = brandRes.data.carinfos;
uni.setStorageSync('cacheBrands', this.brands);
});
}
//默认回显已经选中的品牌
const storagVehicleBrandList = JSON.parse(uni.getStorageSync('storagVehicleBrandList') || '[]');
this.brands = this.brands.map(item => {
const brandObj = storagVehicleBrandList.find((brand: { id: string; }) => brand.id === item.id) || {};
item.selected = brandObj.id ? true : false;
return item;
});
}
getBrandsByLetter(letter: string): Brand[] {
return this.brands.filter(brand => brand.letter === letter);
}
bindClick(brand: any, index: number) {
if(this.selectedBrand.length >= 10) {
uni.showToast({
title: '最多可选10个品牌',
icon: 'none'
});
return;
}
this.brands[index].selected = !this.brands[index].selected;
this.selectedBrand = this.brands.filter(brand => brand.selected);
}
handleSubmit() {
const that = this;
if (!that.selectedBrand.length) {
return console.log('请选择品牌');
}
console.log('onReturnData', that.selectedBrand);
const eventChannel = this.getOpenerEventChannel();
eventChannel.emit('onReturnData', { data: that.selectedBrand });
uni.navigateBack();
}
handleCancel(): void {
uni.navigateBack();
}
}
</script>
<style lang="scss" scoped>
.bottom-fixed {
width: 100%;
background: #ffffff;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 80px;
}
.width-calc-36 {
width: -webkit-calc(100% - 36px);
width: -moz-calc(100% - 36px);
width: calc(100% - 36px);
float: left;
margin: 8px 18px 0;
}
.submitBut {
height: 48px;
line-height: 48px;
border-radius: 48px;
background: #185efe80;
float: left;
text-align: center;
color: #ffffff;
font-size: 16px;
cursor: pointer;
}
.but2 {
width: -webkit-calc(62% - 16px);
width: -moz-calc(62% - 16px);
width: calc(62% - 16px);
margin-left: 16px;
}
.disabled {
background: #185efe !important;
color: #ffffff !important;
}
.plainBtn {
width: 38%;
height: 48px;
line-height: 48px;
border-radius: 48px;
background: #f8f9fc;
float: left;
text-align: center;
color: #333333;
font-size: 16px;
cursor: pointer;
}
.brands-container {
height: 100vh;
background-color: #f5f5f5;
}
.brand-cell {
display: flex;
align-items: center;
gap: 8px;
position: relative;
}
.check-icon {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
}
.check-icon-image {
width: 16px;
height: 16px;
}
.brand-image {
width: 32px;
height: 32px;
margin-right: 12px;
}
.popup-content {
width: 260px;
}
.scroll-content {
height: calc(100vh - 120px);
}
page {
.title-class {
flex: none !important;
}
.value-class {
//flex: none !important;
}
}
.bottom-height-100 {
width: 100%;
height: 100px;
}
</style>
...@@ -426,6 +426,26 @@ ...@@ -426,6 +426,26 @@
} }
} }
] ]
},
{
"root": "module/preference",
"pages": [
{
"path": "indexPage",
"style": {
"navigationBarTitleText": "收车偏好设置",
"enablePullDownRefresh": false,
"backgroundColor": "#f8f9fb"
}
},
{
"path": "selectVehicleBrand",
"style": {
"navigationBarTitleText": "选择品牌",
"enablePullDownRefresh": true
}
}
]
} }
], ],
"tabBar": { "tabBar": {
......
...@@ -87,6 +87,10 @@ ...@@ -87,6 +87,10 @@
<van-dialog use-slot :show="showCertifyDialog" :show-cancel-button="false" :show-confirm-button="false"> <van-dialog use-slot :show="showCertifyDialog" :show-cancel-button="false" :show-confirm-button="false">
<certification-dialog @close="showCertifyDialog=false"></certification-dialog> <certification-dialog @close="showCertifyDialog=false"></certification-dialog>
</van-dialog> </van-dialog>
<!-- 完善收车偏好弹窗 -->
<improve-popup ref="improvePopupRef" />
</template> </template>
<script lang="ts"> <script lang="ts">
import {Component, Vue} from "vue-facing-decorator"; import {Component, Vue} from "vue-facing-decorator";
...@@ -108,8 +112,10 @@ import {ConfigController} from "@/api/ConfigController"; ...@@ -108,8 +112,10 @@ import {ConfigController} from "@/api/ConfigController";
import {BusinessConfig} from "lib/src/entity/business/domain/BusinessConfig"; import {BusinessConfig} from "lib/src/entity/business/domain/BusinessConfig";
import {FileInfo} from "autumn-vue/lib/core/bean/FileInfo"; import {FileInfo} from "autumn-vue/lib/core/bean/FileInfo";
import ImprovePopup from "@/components/ImprovePopup.vue";
@Component({ @Component({
components: {CertificationDialog, BidSuccessDialog, CustomNavBar, LikeAuctionVehicles, RecommendAuctionVehicles} components: {CertificationDialog, BidSuccessDialog, CustomNavBar, LikeAuctionVehicles, RecommendAuctionVehicles, ImprovePopup}
}) })
export default class HomePage extends Vue { export default class HomePage extends Vue {
......
...@@ -123,6 +123,12 @@ ...@@ -123,6 +123,12 @@
</view> </view>
<text class="tool-name">关于我们</text> <text class="tool-name">关于我们</text>
</view> </view>
<view class="tool-item" @click="navigateTo('/module/preference/indexPage')">
<view class="tool-icon">
<image src="/static/images/profile/preference.png" mode="aspectFill" class="tools-image"/>
</view>
<text class="tool-name">收车偏好</text>
</view>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!