Showing
1 changed file
with
6 additions
and
4 deletions
| 1 | -import { Logger } from 'wdKit' | 1 | +import { SpConstants } from 'wdConstant/Index' |
| 2 | +import { Logger, SPHelper } from 'wdKit' | ||
| 2 | 3 | ||
| 3 | @Component | 4 | @Component |
| 4 | export struct LoginInputComponent { | 5 | export struct LoginInputComponent { |
| @@ -16,15 +17,16 @@ export struct LoginInputComponent { | @@ -16,15 +17,16 @@ export struct LoginInputComponent { | ||
| 16 | }.width('100%').padding({ left: 25, right: 25 }) | 17 | }.width('100%').padding({ left: 25, right: 25 }) |
| 17 | } | 18 | } |
| 18 | 19 | ||
| 19 | - aboutToAppear(){ | 20 | + async aboutToAppear(){ |
| 20 | if (this.pageType == 1) { | 21 | if (this.pageType == 1) { |
| 21 | - this.phoneContent = '18655957611'; | 22 | + this.phoneContent = await SPHelper.default.get(SpConstants.USER_PHONE,"") as string; |
| 23 | + Logger.debug("ddd") | ||
| 22 | } | 24 | } |
| 23 | } | 25 | } |
| 24 | @Builder | 26 | @Builder |
| 25 | addCodeLayout() { | 27 | addCodeLayout() { |
| 26 | if (this.pageType == 1){ | 28 | if (this.pageType == 1){ |
| 27 | - TextInput({ placeholder: this.securityPhone('18655957611') }) | 29 | + TextInput({ placeholder: this.securityPhone(this.phoneContent) }) |
| 28 | .fontSize(16) | 30 | .fontSize(16) |
| 29 | .height(48) | 31 | .height(48) |
| 30 | .maxLength(11) | 32 | .maxLength(11) |
-
Please register or login to post a comment