|
@@ -9,16 +9,22 @@ export class PromotionController {
|
|
|
console.log("onMenuClick", menu, item);
|
|
|
}
|
|
|
onEdit(item: any) {
|
|
|
+
|
|
|
+ const _params = new URLSearchParams(decodeURIComponent(location.search));
|
|
|
+ const host = _params.get("host")
|
|
|
+
|
|
|
if (location.host == "www.infish.cn") {
|
|
|
- const url = `${location.origin}/projects/queenshow/editor.html#/?id=${item._id}`;
|
|
|
+ const url = `${location.origin}/projects/queenshow/editor.html?host=${host}#/?id=${item._id}`;
|
|
|
location.href = url;
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- const url = `${location.origin}/editor.html#/?id=${item._id}`;
|
|
|
+ const url = `${location.origin}/editor.html?host=${host}#/?id=${item._id}`;
|
|
|
location.href = url;
|
|
|
}
|
|
|
onPreview(item: any) {
|
|
|
+ const _params = new URLSearchParams(decodeURIComponent(location.search));
|
|
|
+
|
|
|
if (location.host == "www.infish.cn") {
|
|
|
const url = `${location.origin}/projects/queenshow/share.html#/?id=${item._id}`;
|
|
|
location.href = url;
|
|
@@ -26,7 +32,5 @@ export class PromotionController {
|
|
|
}
|
|
|
const url = `${location.origin}/share.html#/?id=${item._id}`;
|
|
|
location.href = url;
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}
|