瀏覽代碼

优化细节

icssoa 7 月之前
父節點
當前提交
2edfb8a6cc
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 7 1
      components/sms-btn.uvue
  2. 1 1
      pages/user/edit.uvue

+ 7 - 1
components/sms-btn.uvue

@@ -34,6 +34,7 @@
 					<cl-svg
 						v-else
 						class="h-full w-full pointer-events-none"
+						color="none"
 						:src="captcha.img"
 					></cl-svg>
 				</view>
@@ -144,7 +145,12 @@ async function getCaptcha() {
 	};
 
 	await service.user.login
-		.captcha({ color: isDark.value ? "#ffffff" : "#2c3142", phone: props.phone })
+		.captcha({
+			color: isDark.value ? "#ffffff" : "#2c3142",
+			phone: props.phone,
+			width: 200,
+			height: 70
+		})
 		.then((res) => {
 			const data = parse<Res>(res)!;
 

+ 1 - 1
pages/user/edit.uvue

@@ -77,7 +77,7 @@
 					@tap="open('birthday')"
 				>
 					<cl-text>{{ user.info.birthday }}</cl-text>
-					<cl-text color="info" v-if="user.info['birthday'] == null">{{
+					<cl-text color="info" v-if="user.info.birthday == null">{{
 						t("选择生日")
 					}}</cl-text>
 				</cl-list-item>