Explorar o código

feat: 990宽 用户添加退出

ljc hai 9 horas
pai
achega
cb61718a77
Modificáronse 2 ficheiros con 18 adicións e 14 borrados
  1. 12 10
      components/cwg-right-drawer.vue
  2. 6 4
      pages/login/index.vue

+ 12 - 10
components/cwg-right-drawer.vue

@@ -28,16 +28,18 @@
                             <text v-t="item.name"></text>
                             <text v-t="item.name"></text>
                         </view>
                         </view>
                     </view>
                     </view>
-<!--                    <view>-->
-<!--                        <view class="dropdown-divider my-1"></view>-->
-<!--                    </view>-->
-<!--                    <view>-->
-<!--                        <view class="dropdown-item d-flex align-items-center gap-2 text-danger cursor-pointer"-->
-<!--                            @click="handleLogout">-->
-<!--                            <cwg-icon name="logout" :size="16" color="#FF401C" />-->
-<!--                            <text v-t="'language.i6'"></text>-->
-<!--                        </view>-->
-<!--                    </view>-->
+                  <cwg-match-media :max-width="990" >
+                    <view>
+                        <view class="dropdown-divider my-1"></view>
+                    </view>
+                    <view>
+                        <view class="dropdown-item d-flex align-items-center gap-2 text-danger cursor-pointer"
+                            @click="handleLogout">
+                            <cwg-icon name="logout" :size="16" color="#FF401C" />
+                            <text v-t="'language.i6'"></text>
+                        </view>
+                    </view>
+                  </cwg-match-media>
                 </view>
                 </view>
             </template>
             </template>
         </cwg-dropdown>
         </cwg-dropdown>

+ 6 - 4
pages/login/index.vue

@@ -147,7 +147,7 @@
                       </uni-forms-item>
                       </uni-forms-item>
                     </uni-col>
                     </uni-col>
                     <uni-col :xs="24" :md="24">
                     <uni-col :xs="24" :md="24">
-                      <uni-row >
+                      <uni-row :gutter="20">
                         <uni-col :xs="24" :md="12">
                         <uni-col :xs="24" :md="12">
                           <uni-forms-item name="birthDate" :label="t('newSignup.item18')">
                           <uni-forms-item name="birthDate" :label="t('newSignup.item18')">
                             <uni-datetime-picker type="date" v-model="formData.birthDate"
                             <uni-datetime-picker type="date" v-model="formData.birthDate"
@@ -452,8 +452,8 @@ const isAgeValid = computed(() => {
   return age >= 18
   return age >= 18
 })
 })
 
 
-const checkAge = () => {
-  if (formData.value.birthDate && !isAgeValid.value) {
+const checkAge = (value) => {
+  if (value && !isAgeValid.value) {
     confirm({
     confirm({
       title: t('Msg.SystemPrompt'),
       title: t('Msg.SystemPrompt'),
       content: t('signup.ageRestriction'),
       content: t('signup.ageRestriction'),
@@ -1443,9 +1443,11 @@ button {
 
 
 .btn-code {
 .btn-code {
   //margin-left: -10px;
   //margin-left: -10px;
-  width: px2rpx(120);
+  width: auto;
+  min-width: px2rpx(80);
   height: 3rem;
   height: 3rem;
   box-sizing: border-box;
   box-sizing: border-box;
+  padding: 0 px2rpx(10);
   background-color: #102047;
   background-color: #102047;
   //border: 1px solid rgb(229, 229, 229);
   //border: 1px solid rgb(229, 229, 229);
   color: #fff;
   color: #fff;