jialuyu 1 tháng trước cách đây
mục cha
commit
ebe4dc92fb

+ 1 - 1
pages/experience/add-work.js

@@ -45,7 +45,7 @@ export default {
                         department: data.department || '',
                         content: data.workContent || data.content || '',
                         isIntern: data.isInternship === 1 || data.isIntern || false,
-                        isHidden: data.isHidden || false
+                        isHidden: !!data.isHidden
                     };
                 }
             }

+ 19 - 4
pages/experience/add-work.scss

@@ -1,10 +1,25 @@
 @import './form-common.scss';
 
 .switch-row {
-    .s-label {
-        font-size: 32rpx;
-        font-weight: 500;
-        color: #1A1A1A;
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+
+    .switch-left {
+        display: flex;
+        flex-direction: column;
+
+        .s-label {
+            font-size: 32rpx;
+            font-weight: 500;
+            color: #1A1A1A;
+        }
+
+        .s-hint {
+            font-size: 24rpx;
+            color: #999999;
+            margin-top: 4rpx;
+        }
     }
 }
 

+ 4 - 1
pages/experience/add-work.vue

@@ -79,7 +79,10 @@
       </view>
       
       <view class="switch-row">
-          <text class="s-label">屏蔽该公司</text>
+          <view class="switch-left">
+              <text class="s-label">屏蔽该公司</text>
+              <text class="s-hint">开启后,投递时该公司将无法查看此经历</text>
+          </view>
           <switch :checked="form.isHidden" color="#1F6CFF" style="transform: scale(0.8);" @change="e => form.isHidden = e.detail.value" />
       </view>
       </view>

+ 17 - 3
pages/experience/experience.scss

@@ -177,10 +177,24 @@
                         font-size: 30rpx; // Reduced from 32rpx
                         font-weight: 600; // Stand out
                         color: #1A1A1A;
-                        flex: 1;
-                        margin-bottom: 0;
                         line-height: 1.4;
-                        padding-right: 40rpx; // Prevent overlap with close icon
+                        flex: 1;
+                    }
+
+                    .status-tags {
+                        display: flex;
+                        align-items: center;
+                        margin-left: 16rpx;
+
+                        .tag-hidden {
+                            font-size: 20rpx;
+                            color: #9AADD1;
+                            background-color: rgba(154, 173, 209, 0.12);
+                            padding: 4rpx 12rpx;
+                            border-radius: 6rpx;
+                            font-weight: 500;
+                            border: 1rpx solid rgba(154, 173, 209, 0.2);
+                        }
                     }
                 }
 

+ 3 - 0
pages/experience/experience.vue

@@ -53,6 +53,9 @@
             <view class="item-content">
               <view class="title-row">
                 <text class="item-title">{{ item.company }}</text>
+                <view class="status-tags">
+                  <text class="tag-hidden" v-if="item.isHidden === 1 || item.isHidden === true">已屏蔽</text>
+                </view>
               </view>
               <view class="item-desc">
                 <text class="desc-text">{{ item.positionName || item.position || '工作经历' }}</text>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/experience/add-work.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/experience/experience.js.map


+ 1 - 1
unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -7048,7 +7048,7 @@ function isConsoleWritable() {
 function initRuntimeSocketService() {
   const hosts = "198.18.0.1,127.0.0.1,192.168.1.191";
   const port = "8090";
-  const id = "mp-weixin_R6ubbw";
+  const id = "mp-weixin_JVicmV";
   const lazy = typeof swan !== "undefined";
   let restoreError = lazy ? () => {
   } : initOnError();

+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/experience/add-work.js

@@ -36,7 +36,7 @@ const _sfc_main = {
             department: data.department || "",
             content: data.workContent || data.content || "",
             isIntern: data.isInternship === 1 || data.isIntern || false,
-            isHidden: data.isHidden || false
+            isHidden: !!data.isHidden
           };
         }
       }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/experience/add-work.wxml


+ 15 - 1
unpackage/dist/dev/mp-weixin/pages/experience/add-work.wxss

@@ -206,11 +206,25 @@ page.data-v-ab00616a {
   opacity: 1;
   pointer-events: none;
 }
-.switch-row .s-label.data-v-ab00616a {
+.switch-row.data-v-ab00616a {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+}
+.switch-row .switch-left.data-v-ab00616a {
+  display: flex;
+  flex-direction: column;
+}
+.switch-row .switch-left .s-label.data-v-ab00616a {
   font-size: 32rpx;
   font-weight: 500;
   color: #1A1A1A;
 }
+.switch-row .switch-left .s-hint.data-v-ab00616a {
+  font-size: 24rpx;
+  color: #999999;
+  margin-top: 4rpx;
+}
 .picker-popup.data-v-ab00616a {
   position: fixed;
   top: 0;

+ 7 - 5
unpackage/dist/dev/mp-weixin/pages/experience/experience.js

@@ -178,13 +178,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
       return common_vendor.e({
         a: common_vendor.o(($event) => _ctx.deleteWork(index), index),
         b: common_vendor.t(item.company),
-        c: common_vendor.t(item.positionName || item.position || "工作经历"),
-        d: item.time || item.startTime
+        c: item.isHidden === 1 || item.isHidden === true
+      }, item.isHidden === 1 || item.isHidden === true ? {} : {}, {
+        d: common_vendor.t(item.positionName || item.position || "工作经历"),
+        e: item.time || item.startTime
       }, item.time || item.startTime ? {
-        e: common_vendor.t(item.startTime ? item.startTime + "—" + (item.endTime ? item.endTime : "至今") : item.time)
+        f: common_vendor.t(item.startTime ? item.startTime + "—" + (item.endTime ? item.endTime : "至今") : item.time)
       } : {}, {
-        f: index,
-        g: common_vendor.o(($event) => _ctx.editWork(index), index)
+        g: index,
+        h: common_vendor.o(($event) => _ctx.editWork(index), index)
       });
     }),
     i: common_vendor.o((...args) => _ctx.addProject && _ctx.addProject(...args)),

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/experience/experience.wxml


+ 15 - 3
unpackage/dist/dev/mp-weixin/pages/experience/experience.wxss

@@ -149,10 +149,22 @@
   font-size: 30rpx;
   font-weight: 600;
   color: #1A1A1A;
-  flex: 1;
-  margin-bottom: 0;
   line-height: 1.4;
-  padding-right: 40rpx;
+  flex: 1;
+}
+.section .item-list .item .item-content .title-row .status-tags.data-v-5164d016 {
+  display: flex;
+  align-items: center;
+  margin-left: 16rpx;
+}
+.section .item-list .item .item-content .title-row .status-tags .tag-hidden.data-v-5164d016 {
+  font-size: 20rpx;
+  color: #9AADD1;
+  background-color: rgba(154, 173, 209, 0.12);
+  padding: 4rpx 12rpx;
+  border-radius: 6rpx;
+  font-weight: 500;
+  border: 1rpx solid rgba(154, 173, 209, 0.2);
 }
 .section .item-list .item .item-content .item-desc.data-v-5164d016 {
   display: flex;

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác