修改多语言处理和商品显示关闭问题

master
于肖磊 2026-03-10 18:37:13 +08:00
parent 6f595a4cb5
commit d81a6ff496
1 changed files with 6 additions and 8 deletions

View File

@ -1625,15 +1625,15 @@
// 关闭推荐商品 // 关闭推荐商品
product_close_event(e) { product_close_event(e) {
try { try {
const id = e?.currentTarget?.dataset?.id || '';
this.video_data_list.forEach((item) => { this.video_data_list.forEach((item) => {
if (item.id == id) { if (item.id == this.current_video_id) {
item.show_goods = false; item.show_goods = false;
} }
}); });
// this.video_data_list = this.video_data_list; // this.video_data_list = this.video_data_list;
this.$set(this, 'video_data_list', this.video_data_list) this.$set(this, 'video_data_list', this.video_data_list);
console.log(this.video_data_list);
e.stopPropagation();
} catch (error) { } catch (error) {
console.error('product_close_event error:', error); console.error('product_close_event error:', error);
} }
@ -1702,11 +1702,9 @@
// 处理不同操作 // 处理不同操作
if (obj.type == 'delete') { if (obj.type == 'delete') {
// 确认删除 // 确认删除
const tips = t('common.warm_tips');
const content = t('common.delete_confirm_tips');
uni.showModal({ uni.showModal({
title: tips, title: t('common_warm_tips'),
content: content, content: t('common_delete_confirm_tips'),
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
// 调用删除接口 // 调用删除接口