|
|
@ -251,7 +251,8 @@ export default { |
|
|
|
isUserBlacklisted: false, // 用户是否被拉黑 |
|
|
|
currentProductId: null, // 当前查看品牌的商品ID |
|
|
|
searchTimer: null, // 搜索防抖定时器 |
|
|
|
isFromPickupFlow: false // 标记是否来自预约流程 |
|
|
|
isFromPickupFlow: false, // 标记是否来自预约流程 |
|
|
|
hasShownFirstTimeRules: false // 标记是否已显示过首次访问规则 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -970,6 +971,10 @@ export default { |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// 关闭商品明细弹窗 |
|
|
|
this.showDetailPanel = false |
|
|
|
|
|
|
|
this.$refs.rulePopup.openConfirmPopup(); |
|
|
|
}, |
|
|
|
handlePickupCancel() { |
|
|
@ -1114,6 +1119,25 @@ export default { |
|
|
|
addMoreItems() { |
|
|
|
this.showDetailPanel = false |
|
|
|
}, |
|
|
|
|
|
|
|
// 检查新用户首次访问规则 |
|
|
|
checkFirstTimeRules() { |
|
|
|
// 从本地存储检查是否已显示过首次规则 |
|
|
|
const hasShown = uni.getStorageSync('hasShownFirstTimeRules') |
|
|
|
if (!hasShown && !this.hasShownFirstTimeRules) { |
|
|
|
this.showFirstTimeRulesPopup() |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 显示新用户首次访问规则弹窗 |
|
|
|
showFirstTimeRulesPopup() { |
|
|
|
// 显示价格说明弹窗 |
|
|
|
this.showPriceInfoPopup = true |
|
|
|
|
|
|
|
// 标记已显示过首次规则 |
|
|
|
this.hasShownFirstTimeRules = true |
|
|
|
uni.setStorageSync('hasShownFirstTimeRules', true) |
|
|
|
}, |
|
|
|
fetchUserInfo() { |
|
|
|
if (uni.getStorageSync('token')) { |
|
|
|
this.login_status = getApp().globalData.login_status; |
|
|
@ -1314,6 +1338,9 @@ export default { |
|
|
|
onShow() { |
|
|
|
// 获取用户信息,检查黑名单状态 |
|
|
|
this.fetchUserInfo() |
|
|
|
|
|
|
|
// 检查是否为新用户首次访问,显示回收规则 |
|
|
|
this.checkFirstTimeRules() |
|
|
|
|
|
|
|
const id = getApp().globalData.targetRecycleCategoryId |
|
|
|
if (id) { |
|
|
|