Browse Source

Merge branch '我要报备跳转链接修改' into 20260415生产发布版本

yanym 3 tuần trước cách đây
mục cha
commit
ec8483052d
3 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 1 0
      .env
  2. 2 2
      src/utils/index.ts
  3. 2 1
      src/views/AIDesign/design.vue

+ 1 - 0
.env

@@ -1,6 +1,7 @@
 VUE_APP_PublicTitle=AI设计
 #  DIS小程序appid:gh_4eaccc0824ca
 VUE_APP_BASE_DISID6=wx818da06b25f30cf5
+VUE_APP_BASE_DISID9=wx0e5521113960dc82
 #企业微信 
 # 应用appID
 VUE_APP_APPID=ww5444eb205d75e730

+ 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];
   const formData = new FormData();
   formData.append('url', url);
@@ -165,7 +165,7 @@ export const toXiaoChengxu = (appid) => {
             "launchMiniprogram",
             {
               appid: appid, // 需跳转的小程序appid
-              path: "" // 所需跳转的小程序内页面路径及参数。非必填
+              path: pageUrl // 所需跳转的小程序内页面路径及参数。非必填
             },
             function (res) {
               if (res.err_msg == "launchMiniprogram:ok") {

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

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