Jelajahi Sumber

feat: apijslist & detail with base href

ryanemax 9 jam lalu
induk
melakukan
013978e8fa

+ 1 - 1
docs/service-integration-complete.md

@@ -184,7 +184,7 @@ const subscription = this.aiService.streamCompletion(
 
 ### 3. WxworkSDKService (企微SDK服务)
 
-**文件**: `/src/modules/project/services/wxwork-sdk.service.ts`
+**文件**: `import {WxworkSDK} from 'fmode-ng/core'`
 
 **核心功能**:
 - ✅ JSAPI注册与签名

+ 6 - 4
npminstall-debug.log

@@ -4,8 +4,8 @@
   pkgs: [
     {
       name: 'fmode-ng',
-      version: '0.0.216',
-      type: 'version',
+      version: '^0.0.227',
+      type: 'range',
       alias: undefined,
       arg: [Result]
     }
@@ -15,7 +15,7 @@
   cacheDir: '/home/ryan/.npminstall_tarball',
   env: {
     npm_config_registry: 'https://registry.npmmirror.com',
-    npm_config_argv: '{"remain":[],"cooked":["--fix-bug-versions","--china","--userconfig=/home/ryan/.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","fmode-ng@0.0.216"],"original":["--fix-bug-versions","--china","--userconfig=/home/ryan/.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","fmode-ng@0.0.216"]}',
+    npm_config_argv: '{"remain":[],"cooked":["--fix-bug-versions","--china","--userconfig=/home/ryan/.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","-S","fmode-ng@^0.0.227"],"original":["--fix-bug-versions","--china","--userconfig=/home/ryan/.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","-S","fmode-ng@^0.0.227"]}',
     npm_config_user_agent: 'npminstall/7.12.0 npm/? node/v20.19.4 linux x64',
     npm_config_cache: '/home/ryan/.npminstall_tarball',
     NODE: '/usr/local/bin/node',
@@ -53,6 +53,7 @@
     npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
     npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs',
     npm_config_gl_binary_host: 'https://cdn.npmmirror.com/binaries/gl',
+    RIPGREP_PREBUILT_BINARIES_MIRROR: 'https://registry.npmmirror.com/-/binary/ripgrep-prebuilt',
     npm_rootpath: '/home/ryan/workspace/nova/yss-project',
     INIT_CWD: '/home/ryan/workspace/nova/yss-project'
   },
@@ -86,7 +87,8 @@
       npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp',
       npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
       npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs',
-      npm_config_gl_binary_host: 'https://cdn.npmmirror.com/binaries/gl'
+      npm_config_gl_binary_host: 'https://cdn.npmmirror.com/binaries/gl',
+      RIPGREP_PREBUILT_BINARIES_MIRROR: 'https://registry.npmmirror.com/-/binary/ripgrep-prebuilt'
     },
     '@ali/s2': { host: 'https://cdn.npmmirror.com/binaries/looksgood-s2' },
     sharp: { replaceHostFiles: [Array], replaceHostMap: [Object] },

+ 1 - 1
package.json

@@ -68,7 +68,7 @@
     "echarts": "^6.0.0",
     "esdk-obs-browserjs": "^3.25.6",
     "eventemitter3": "^5.0.1",
-    "fmode-ng": "^0.0.225",
+    "fmode-ng": "^0.0.227",
     "highlight.js": "^11.11.1",
     "ionicons": "^8.0.13",
     "jquery": "^3.7.1",

+ 1 - 1
src/modules/project/pages/project-detail/project-detail.component.html

@@ -108,7 +108,7 @@
               </svg>
               <div class="survey-text">
                 <p class="survey-desc">
-                  邀请 {{ contact.get('realname') || contact.get('name') }} 填写项目需求调查表
+                  邀请 客户 填写项目需求调查表
                 </p>
                 <p class="survey-meta">
                   了解客户需求,提供更精准的服务方案

+ 3 - 3
src/modules/project/pages/project-detail/project-detail.component.ts

@@ -564,17 +564,17 @@ export class ProjectDetailComponent implements OnInit {
 
     try {
       const chatId = this.groupChat.get('chat_id');
-      const surveyUrl = `${window.location.origin}/wxwork/${this.cid}/survey/project/${this.project?.id}`;
+      const surveyUrl = `${document.baseURI}/wxwork/${this.cid}/survey/project/${this.project?.id}`;
 
       await this.wxwork.ww.openExistedChatWithMsg({
         chatId: chatId,
         msg: {
           msgtype: 'link',
           link: {
-            title: '《家装效果图服务初次合作需求调查表》',
+            title: '《家装效果图服务需求调查表》',
             desc: '为让本次服务更贴合您的需求,请花3-5分钟填写简短问卷,感谢支持!',
             url: surveyUrl,
-            imgUrl: `${window.location.origin}/assets/logo.jpg`
+            imgUrl: `${document.baseURI}/assets/logo.jpg`
           }
         }
       });