shish 11 miesięcy temu
rodzic
commit
db7bda08ab

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

@@ -204,11 +204,18 @@ export default {
     align-items: center;
     justify-content: center;
     font-size: 12px;
+    transition: all 0.2s;
     
     &.active {
         background-color: #0076FF;
         color: white;
         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>
           <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 }}日
               <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 class="value" v-else>
-              <text style="color:#007aff;" @click="changeBirthday()">设置</text>
+            <text class="value" v-else @click="changeBirthday()">
+              <text style="color:#007aff;">设置</text>
             </text>
 
           </view>