Browse Source

我要报备跳转链接修改,改成跳转小程序

yanym 3 weeks ago
parent
commit
c70122634d
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/utils/index.ts
  2. 1 1
      src/views/AIDesign/design.vue

+ 2 - 2
src/utils/index.ts

@@ -144,7 +144,7 @@ export const toLBHome = () => {
   }
   }
 }
 }
 
 
-export const toXiaoChengxu = (appid) => {
+export const toXiaoChengxu = (appid,pageUrl='') => {
   let url = window.location.href.split("#")[0];
   let url = window.location.href.split("#")[0];
   const formData = new FormData();
   const formData = new FormData();
   formData.append('url', url);
   formData.append('url', url);
@@ -165,7 +165,7 @@ export const toXiaoChengxu = (appid) => {
             "launchMiniprogram",
             "launchMiniprogram",
             {
             {
               appid: appid, // 需跳转的小程序appid
               appid: appid, // 需跳转的小程序appid
-              path: "" // 所需跳转的小程序内页面路径及参数。非必填
+              path: pageUrl // 所需跳转的小程序内页面路径及参数。非必填
             },
             },
             function (res) {
             function (res) {
               if (res.err_msg == "launchMiniprogram:ok") {
               if (res.err_msg == "launchMiniprogram:ok") {

+ 1 - 1
src/views/AIDesign/design.vue

@@ -1170,7 +1170,7 @@ export default class extends Vue {
   private toProjectLink() {
   private toProjectLink() {
     this.showProjectPopover = false;
     this.showProjectPopover = false;
     // window.location.href = this.addProjectLink;
     // window.location.href = this.addProjectLink;
-      toXiaoChengxu(`${process.env.VUE_APP_BASE_DISID9}`);
+      toXiaoChengxu(`${process.env.VUE_APP_BASE_DISID9}`,'packageC/projectFiling/index');
   }
   }
 
 
   //获取风格选项图片列表
   //获取风格选项图片列表