Showing
3 changed files
with
8 additions
and
0 deletions
| @@ -29,6 +29,7 @@ export struct LoginInputComponent { | @@ -29,6 +29,7 @@ export struct LoginInputComponent { | ||
| 29 | addCodeLayout() { | 29 | addCodeLayout() { |
| 30 | if (this.pageType == 1){ | 30 | if (this.pageType == 1){ |
| 31 | TextInput({ placeholder: this.securityPhone(this.phoneContent) }) | 31 | TextInput({ placeholder: this.securityPhone(this.phoneContent) }) |
| 32 | + .placeholderColor("#CCCCCC") | ||
| 32 | .fontSize(16) | 33 | .fontSize(16) |
| 33 | .height(48) | 34 | .height(48) |
| 34 | .maxLength(11) | 35 | .maxLength(11) |
| @@ -50,6 +51,7 @@ export struct LoginInputComponent { | @@ -50,6 +51,7 @@ export struct LoginInputComponent { | ||
| 50 | TextInput({ placeholder: "请输入手机号" }) | 51 | TextInput({ placeholder: "请输入手机号" }) |
| 51 | .fontSize(16) | 52 | .fontSize(16) |
| 52 | .height(48) | 53 | .height(48) |
| 54 | + .placeholderColor("#CCCCCC") | ||
| 53 | .maxLength(11) | 55 | .maxLength(11) |
| 54 | .margin({ top: 36 }) | 56 | .margin({ top: 36 }) |
| 55 | .backgroundColor("#F5F5F5") | 57 | .backgroundColor("#F5F5F5") |
| @@ -69,6 +71,7 @@ export struct LoginInputComponent { | @@ -69,6 +71,7 @@ export struct LoginInputComponent { | ||
| 69 | 71 | ||
| 70 | Row() { | 72 | Row() { |
| 71 | TextInput({ placeholder: "验证码" }) | 73 | TextInput({ placeholder: "验证码" }) |
| 74 | + .placeholderColor("#CCCCCC") | ||
| 72 | .layoutWeight(1) | 75 | .layoutWeight(1) |
| 73 | .fontSize(16) | 76 | .fontSize(16) |
| 74 | .height(48) | 77 | .height(48) |
| @@ -215,6 +215,7 @@ struct LoginPage { | @@ -215,6 +215,7 @@ struct LoginPage { | ||
| 215 | Column() { | 215 | Column() { |
| 216 | TextInput({ placeholder: "请输入账号", controller: this.phoneController }) | 216 | TextInput({ placeholder: "请输入账号", controller: this.phoneController }) |
| 217 | .fontSize(16) | 217 | .fontSize(16) |
| 218 | + .placeholderColor("#CCCCCC") | ||
| 218 | .height(48) | 219 | .height(48) |
| 219 | .backgroundColor("#F5F5F5") | 220 | .backgroundColor("#F5F5F5") |
| 220 | .borderRadius(4) | 221 | .borderRadius(4) |
| @@ -254,6 +255,7 @@ struct LoginPage { | @@ -254,6 +255,7 @@ struct LoginPage { | ||
| 254 | @Builder | 255 | @Builder |
| 255 | addPasswordInputLayout() { | 256 | addPasswordInputLayout() { |
| 256 | TextInput({ placeholder: "请输入密码", text: this.passwordContent }) | 257 | TextInput({ placeholder: "请输入密码", text: this.passwordContent }) |
| 258 | + .placeholderColor("#CCCCCC") | ||
| 257 | .layoutWeight(1) | 259 | .layoutWeight(1) |
| 258 | .fontSize(16) | 260 | .fontSize(16) |
| 259 | .height(48) | 261 | .height(48) |
| @@ -199,6 +199,7 @@ export struct SettingPasswordLayout { | @@ -199,6 +199,7 @@ export struct SettingPasswordLayout { | ||
| 199 | Row() { | 199 | Row() { |
| 200 | Row() { | 200 | Row() { |
| 201 | TextInput({ placeholder: item.inputPlacholder }) | 201 | TextInput({ placeholder: item.inputPlacholder }) |
| 202 | + .placeholderColor("#CCCCCC") | ||
| 202 | .type(InputType.Password) | 203 | .type(InputType.Password) |
| 203 | .showPasswordIcon(true) | 204 | .showPasswordIcon(true) |
| 204 | .backgroundColor('#00000000') | 205 | .backgroundColor('#00000000') |
| @@ -225,6 +226,7 @@ export struct SettingPasswordLayout { | @@ -225,6 +226,7 @@ export struct SettingPasswordLayout { | ||
| 225 | Row() { | 226 | Row() { |
| 226 | Row() { | 227 | Row() { |
| 227 | TextInput({ placeholder: item.inputPlacholder }) | 228 | TextInput({ placeholder: item.inputPlacholder }) |
| 229 | + .placeholderColor("#CCCCCC") | ||
| 228 | .backgroundColor('#00000000') | 230 | .backgroundColor('#00000000') |
| 229 | .onChange((value: string) => { | 231 | .onChange((value: string) => { |
| 230 | this.inputTextChange(value, item.inputTag) | 232 | this.inputTextChange(value, item.inputTag) |
| @@ -251,6 +253,7 @@ export struct SettingPasswordLayout { | @@ -251,6 +253,7 @@ export struct SettingPasswordLayout { | ||
| 251 | Image($r('app.media.get_code_bg')).width('100%').borderRadius('4vp') | 253 | Image($r('app.media.get_code_bg')).width('100%').borderRadius('4vp') |
| 252 | Row() { | 254 | Row() { |
| 253 | TextInput({ placeholder: item.inputPlacholder }) | 255 | TextInput({ placeholder: item.inputPlacholder }) |
| 256 | + .placeholderColor("#CCCCCC") | ||
| 254 | .backgroundColor('#00000000') | 257 | .backgroundColor('#00000000') |
| 255 | .width('67.28%') | 258 | .width('67.28%') |
| 256 | .onChange((value: string) => { | 259 | .onChange((value: string) => { |
-
Please register or login to post a comment