本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
kj
/
mall-app
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
update outlet bookmark API params appneded with mall ID
master
kj1352
5 年之前
父節點
b8dea06d71
當前提交
8b11321fe3
共有
2 個檔案被更改
,包括
6 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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);
}
Write
Preview
Loading…
取消
儲存