瀏覽代碼

修改生日

shish 11 月之前
父節點
當前提交
db7bda08ab
共有 2 個文件被更改,包括 10 次插入4 次删除
  1. 7 0
      hdPad/src/pages/home/components/birthdayEdit.vue
  2. 3 4
      hdPad/src/pages/home/components/customInfo.vue

+ 7 - 0
hdPad/src/pages/home/components/birthdayEdit.vue

@@ -204,11 +204,18 @@ export default {
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     font-size: 12px;
     font-size: 12px;
+    transition: all 0.2s;
     
     
     &.active {
     &.active {
         background-color: #0076FF;
         background-color: #0076FF;
         color: white;
         color: white;
         border-color: #0076FF;
         border-color: #0076FF;
+        transform: scale(1.1);
+        box-shadow: 0 2px 4px rgba(0, 118, 255, 0.2);
+    }
+    
+    &:active {
+        background-color: #e8f5ff;
     }
     }
 }
 }
 
 

+ 3 - 4
hdPad/src/pages/home/components/customInfo.vue

@@ -30,13 +30,12 @@
           <text class="label">生日</text>
           <text class="label">生日</text>
           <view class="value-container">
           <view class="value-container">
 
 
-            <text class="value" v-if="Number(customInfo.birthdayMonth)>0">
+            <text class="value" v-if="Number(customInfo.birthdayMonth)>0" @click="changeBirthday()">
               {{ customInfo.lunar==1?"农历 ":"" }}{{ customInfo.birthdayMonth }}月{{ customInfo.birthdayDate }}日
               {{ customInfo.lunar==1?"农历 ":"" }}{{ customInfo.birthdayMonth }}月{{ customInfo.birthdayDate }}日
               <text v-if="customInfo.lunar==1 && customInfo.birthday!='0000-00-00'">({{customInfo.birthday}})</text>
               <text v-if="customInfo.lunar==1 && customInfo.birthday!='0000-00-00'">({{customInfo.birthday}})</text>
-              <text @click="changeBirthday()" style="color:#007aff;margin-left:20upx;">修改</text>
             </text>
             </text>
-            <text class="value" v-else>
-              <text style="color:#007aff;" @click="changeBirthday()">设置</text>
+            <text class="value" v-else @click="changeBirthday()">
+              <text style="color:#007aff;">设置</text>
             </text>
             </text>
 
 
           </view>
           </view>