使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
kj
/
mall-app
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
update outlet bookmark API params appneded with mall ID
master
kj1352
5 年前
父节点
b8dea06d71
当前提交
8b11321fe3
共有
2 个文件被更改
,包括
6 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+3
-0
src/app/mall-details/mall-details.page.ts
+3
-0
src/app/outlet-details/outlet-details.page.ts
+ 3
- 0
src/app/mall-details/mall-details.page.ts
查看文件
@@ -27,6 +27,9 @@ export class MallDetailsPage implements OnInit {
}
toggleOutletBookmark(outlet) {
outlet.mall = {
mall_id: this.mallDetails.id
};
outlet.is_bookmarked = !outlet.is_bookmarked;
this.mallService.updateOutlet(outlet);
}
+ 3
- 0
src/app/outlet-details/outlet-details.page.ts
查看文件
@@ -35,6 +35,9 @@ export class OutletDetailsPage implements OnInit {
ngOnInit() { }
toggleOutletBookmark() {
this.outlet_details.mall = {
mall_id: this.mallId
};
this.outlet_details.is_bookmarked = !this.outlet_details.is_bookmarked;
this.mallService.updateOutlet(this.outlet_details);
}
撰写
预览
正在加载...
取消
保存