Browse Source

添加科创通链接

infish2018 3 months ago
parent
commit
48d5fb3334

+ 1 - 1
scripts/deployHtmlToServer.js

@@ -23,7 +23,7 @@ fs.writeFileSync(nativePath + path.sep + 'share.html', shareHtml);
 // var consoleHtml = fs.readFileSync('dist/console.html');
 // fs.writeFileSync(nativePath + path.sep + 'console.html', consoleHtml);
 
-var serverPath = `/var/www/html/projects/queenshow`;
+var serverPath = `/var/www/queenshow`;
 
 var ftpUtils = new sftp({
     remotePath: serverPath,

+ 0 - 1
src/pages/h5/share/Promotion.tsx

@@ -39,7 +39,6 @@ export default defineComponent(() => {
         desc: data.desc,
       };
       state.useForPc = editor.controls.pageCtrl.rootPage.value.useFor == "pc";
-      alert(1);
       editor.controls.wxCtrl.setShareData(shareData);
       editor.controls.wxCtrl.setShare(shareData);
 

+ 3 - 0
src/pages/website/Promotion2/components/PromotionItem.tsx

@@ -130,6 +130,9 @@ export default defineUI({
                   <Menu.Item>
                     <div onClick={() => emit("menu", "delete")}>删除</div>
                   </Menu.Item>
+                  <Menu.Item>
+                    <div onClick={() => emit("menu", "kct")}>科创通链接</div>
+                  </Menu.Item>
 
                   {isSys && !record.published && (
                     <Menu.Item>

+ 6 - 1
src/pages/website/Promotion2/controller.tsx

@@ -50,8 +50,13 @@ export function createPromotinController(
     const shareLink = `${location.origin}${getPathname()}share.html?id=${
       record._id
     }&isSys=${isSys}`;
-
+    const height = 3000;
+    const embedLink = `<p><iframe style="border: none;" title="Embedded 3dqueen" src="${shareLink}" width="100%" height="${height}px"></iframe></p>`
+    
     switch (name) {
+      case "kct": //科创通嵌入链接
+        clipboard.copy(embedLink);
+        break
       case "copyLink":
         clipboard.copy(shareLink);
         break;