From 61bd03c3b83cdb5be0eb0e8badcdf0f75e3c43fc Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 01 十二月 2025 16:32:10 +0800
Subject: [PATCH] feat: 页面

---
 apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue |   56 ++++++++++++++--------------
 apps/cMiniApp/config/dev.js                                 |    4 +-
 apps/cMiniApp/config/index.js                               |   32 ++++++++--------
 3 files changed, 46 insertions(+), 46 deletions(-)

diff --git a/apps/cMiniApp/config/dev.js b/apps/cMiniApp/config/dev.js
index ea12242..c84544a 100644
--- a/apps/cMiniApp/config/dev.js
+++ b/apps/cMiniApp/config/dev.js
@@ -3,8 +3,8 @@
 module.exports = {
   env: {
     NODE_ENV: '"development"',
-    // BASE_URL: '"http://localhost:53780"',
-    BASE_URL: '"https://testfj.81812333.com"',
+    BASE_URL: '"http://localhost:53780"',
+    // BASE_URL: '"https://testfj.81812333.com"',
     BASE_URL_JX: '"https://api.jx818.com"',
     APP_ENV: '"development"',
 
diff --git a/apps/cMiniApp/config/index.js b/apps/cMiniApp/config/index.js
index 752f8e8..14ef20c 100644
--- a/apps/cMiniApp/config/index.js
+++ b/apps/cMiniApp/config/index.js
@@ -134,24 +134,24 @@
         })
       );
 
-      // if (process.env.NODE_ENV !== 'development') {
-      chain.merge({
-        plugin: {
-          install: {
-            plugin: require('terser-webpack-plugin'),
-            args: [
-              {
-                terserOptions: {
-                  compress: true, // 榛樿浣跨敤terser鍘嬬缉
-                  keep_classnames: true, // 涓嶆敼鍙榗lass鍚嶇О
-                  keep_fnames: true, // 涓嶆敼鍙樺嚱鏁板悕绉�
+      if (process.env.NODE_ENV !== 'development') {
+        chain.merge({
+          plugin: {
+            install: {
+              plugin: require('terser-webpack-plugin'),
+              args: [
+                {
+                  terserOptions: {
+                    compress: true, // 榛樿浣跨敤terser鍘嬬缉
+                    keep_classnames: true, // 涓嶆敼鍙榗lass鍚嶇О
+                    keep_fnames: true, // 涓嶆敼鍙樺嚱鏁板悕绉�
+                  },
                 },
-              },
-            ],
+              ],
+            },
           },
-        },
-      });
-      // }
+        });
+      }
 
       chain.merge({
         optimization: {
diff --git a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
index e44efb3..d81634d 100644
--- a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
@@ -164,41 +164,41 @@
   }
 });
 
-const tmplIds = ['ziC07K27Km9OAywf-KYwHiWgn195j9tmuFKxbDZ79tg'];
+const tmplIds = ['T7Gta6H6TROZjcqeSWVTG2wWGGInWh0fGTOgCCgVBuk'];
 
 const handleApply = _.debounce(
   useAccessReal(
     async () => {
       try {
-        if (!Taro.requestSubscribeMessage) {
-          await Message.confirm({ message: '浣犵殑寰俊鐗堟湰杩囦綆锛屼笉鏀寔璁㈤槄娑堟伅锛屾槸鍚︾户缁姤鍚�' });
-        }
-        const res = await Taro.getSetting({
-          withSubscriptions: true,
-        });
-        let setting: boolean[] = [];
-        if (res.subscriptionsSetting && res.subscriptionsSetting.itemSettings) {
-          setting = tmplIds
-            .map((id) => res.subscriptionsSetting.itemSettings[id] !== 'accept')
-            .filter(Boolean);
-        }
-        console.log('setting: ', setting);
+        // if (!Taro.requestSubscribeMessage) {
+        //   await Message.confirm({ message: '浣犵殑寰俊鐗堟湰杩囦綆锛屼笉鏀寔璁㈤槄娑堟伅锛屾槸鍚︾户缁姤鍚�' });
+        // }
+        // const res = await Taro.getSetting({
+        //   withSubscriptions: true,
+        // });
+        // let setting: boolean[] = [];
+        // if (res.subscriptionsSetting && res.subscriptionsSetting.itemSettings) {
+        //   setting = tmplIds
+        //     .map((id) => res.subscriptionsSetting.itemSettings[id] !== 'accept')
+        //     .filter(Boolean);
+        // }
+        // console.log('setting: ', setting);
         // if (setting.length > 0) {
-        Taro.requestSubscribeMessage({
-          tmplIds: tmplIds,
-          success: function (res) {
-            console.log('res: ', res);
-          },
-        });
+        //   Taro.requestSubscribeMessage({
+        //     tmplIds: tmplIds,
+        //     success: function (res) {
+        //       console.log('res: ', res);
+        //     },
+        //   });
         // }
-        // let params: API.ApplyTaskCommand = {
-        //   ids: [id],
-        // };
-        // let res = await taskUserServices.applyTask(params);
-        // if (res) {
-        //   Message.success('鎶ュ悕鎴愬姛');
-        //   refetch({ type: 'inactive' });
-        // }
+        let params: API.ApplyTaskCommand = {
+          ids: [id],
+        };
+        let res = await taskUserServices.applyTask(params);
+        if (res) {
+          Message.success('鎶ュ悕鎴愬姛');
+          refetch({ type: 'inactive' });
+        }
       } catch (error) {}
     },
     { message: '瀹炲悕鎴愬姛鍚庢墠鍙姤鍚嶏紝璇峰墠寰�瀹炲悕璁よ瘉' }

--
Gitblit v1.9.1