@ -347,6 +347,7 @@ const seasonOptions: { value: string; label: string }[] = [
|
||||
const ct = new URLSearchParams(window.location.search).get('collection')
|
||||
const ALLOWED = ['rtw', 'menswear', 'womenswear', 'couture', 'resort', 'pre_fall', 'bridal', 'swimwear']
|
||||
if (ct && ALLOWED.includes(ct)) this.selectedCt = ct
|
||||
// 首页(含筛选后的首页)公开:未登录也直接加载首屏,不弹登录框
|
||||
this.loadPage(1)
|
||||
},
|
||||
|
||||
@ -393,7 +394,7 @@ const seasonOptions: { value: string; label: string }[] = [
|
||||
},
|
||||
|
||||
refreshFilter() {
|
||||
if (!this.requireLogin()) return
|
||||
// 首页公开:筛选切换后重新加载第 1 页,未登录也可查看
|
||||
this.loadPage(1)
|
||||
},
|
||||
|
||||
|
||||
@ -296,6 +296,7 @@ const cityOptions: { value: string; label: string }[] = [
|
||||
const city = new URLSearchParams(window.location.search).get('city')
|
||||
const allowed = (this.cityOptions || []).map((c: any) => c.value)
|
||||
if (city && allowed.includes(city)) this.selectedCity = city
|
||||
// 首页公开:未登录也直接加载首屏,不弹登录框
|
||||
this.loadPage(1)
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user