Commit d309b292 by yancanhua

fix: 收车偏好自测问题优化

1 parent 04d8861f
......@@ -9,7 +9,7 @@
class="top-icon-image"></image>
</view>
<view class="top-title">
<image src="https://img02.glsx.com.cn/aus/images/preference/head-txt.png"
<image src="https://img02.glsx.com.cn/aus/images/preference/head-txt.png?v=20260209"
class="top-icon-title"></image>
</view>
<view class="popup-content">只需1分钟,我们将为您智能推荐最符合您需求的车辆,节省90%的找车时间!</view>
......
......@@ -199,7 +199,7 @@ export default class ProfilePage extends Vue {
backgroundImageUrl = BACKGROUND_IMAGE_1;
showPreference: boolean = true; //是否显示收车偏好
showPreference: boolean = false; //是否显示收车偏好
created(): void {
......@@ -252,23 +252,18 @@ export default class ProfilePage extends Vue {
}
}
//获取是否显示收车偏好
getPreference() {
// const authService: AuthService = this.$auth;
// const accountInfo = authService.getAuthentication();
// if (accountInfo && accountInfo.accountType) {
// this.showPreference = false;
// } else {
// }
PreferenceController.getPreferenceDetails(this.axios, { isIndexPage: false }).then((response: any) => {
const data = response.data || {};
if (data.success) {
const { status } = data.data || {};
this.showPreference = status === 0;
}
}).finally(() => { });
const authService: AuthService = this.$auth;
if (authService.isLogin()) {
PreferenceController.getPreferenceDetails(this.axios, { isIndexPage: false }).then((response: any) => {
const data = response.data || {};
if (data.success) {
const { status } = data.data || {};
this.showPreference = status === 0;
}
}).finally(() => { });
}
}
navigateTo(url: string): void {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!