当前位置: 首页 > news >正文

自建网站免费厦门网站排名优化价格

自建网站免费,厦门网站排名优化价格,电子商务经营范围有哪些?,百度官网地址代码#xff1a;这里的prompt.showToast是弹出提示#xff0c;Extend(TextInput) 的功能是对TextInput做了公用的样式。isShowProgress是用来控制isShowProgress#xff0c;出来一个等待效果 import prompt from ‘ohos.promptAction’; import router from ‘ohos.router… 代码这里的prompt.showToast是弹出提示Extend(TextInput) 的功能是对TextInput做了公用的样式。isShowProgress是用来控制isShowProgress出来一个等待效果 import prompt from ‘ohos.promptAction’; import router from ‘ohos.router’; import CommonConstants from ‘…/common/constants/CommonConstants’; /** 样式TextInput / Extend(TextInput) function inputStyle() { .placeholderColor( r ( ′ a p p . c o l o r . p l a c e h o l d e r c o l o r ′ ) ) . h e i g h t ( r(app.color.placeholder_color)) .height( r(′app.color.placeholderc​olor′)).height(r(‘app.float.login_input_height’)) .fontSize( r ( ′ a p p . f l o a t . b i g t e x t s i z e ′ ) ) . b a c k g r o u n d C o l o r ( r(app.float.big_text_size)) .backgroundColor( r(′app.float.bigt​exts​ize′)).backgroundColor(r(‘app.color.background’)) .width(CommonConstants.FULL_PARENT) .padding({ left: CommonConstants.INPUT_PADDING_LEFT }) .margin({ top: $r(‘app.float.input_margin_top’) }) } /*样式 */ Extend(Line) function lineStyle() { .width(CommonConstants.FULL_PARENT) .height( r ( ′ a p p . f l o a t . l i n e h e i g h t ′ ) ) . b a c k g r o u n d C o l o r ( r(app.float.line_height)) .backgroundColor( r(′app.float.lineh​eight′)).backgroundColor(r(‘app.color.line_color’)) } Extend(Text) function blueTextStyle() { .fontColor( r ( ′ a p p . c o l o r . l o g i n b l u e t e x t c o l o r ′ ) ) . f o n t S i z e ( r(app.color.login_blue_text_color)) .fontSize( r(′app.color.loginb​luet​extc​olor′)).fontSize(r(‘app.float.small_text_size’)) .fontWeight(FontWeight.Medium) } /** 登陆界面 */ Entry Component struct LoginPage { State account: string ‘’; State password: string ‘’; State isShowProgress: boolean false; private timeOutId: number -1; Builder imageButton(src: Resource) { Button({ type: ButtonType.Circle, stateEffect: true }) { Image(src) } .height( r ( ′ a p p . f l o a t . o t h e r l o g i n i m a g e s i z e ′ ) ) . w i d t h ( r(app.float.other_login_image_size)) .width( r(′app.float.otherl​ogini​mages​ize′)).width(r(‘app.float.other_login_image_size’)) .backgroundColor($r(‘app.color.background’)) } login(): void { if (this.account ‘’ || this.password ‘’) { prompt.showToast({ message: ‘输入帐号密码不能为空’ }) } else { this.isShowProgress true; if (this.timeOutId -1) { this.timeOutId setTimeout(() { this.isShowProgress false; this.timeOutId -1; router.pushUrl({ url: ‘pages/MainPage’ }); }, CommonConstants.LOGIN_DELAY_TIME); } } } aboutToDisappear() { clearTimeout(this.timeOutId); this.timeOutId -1; } build() { Column() { Image( r ( ′ a p p . m e d i a . i m g ′ ) ) . w i d t h ( r(app.media.img)) .width( r(′app.media.img′)).width(r(‘app.float.logo_image_size’)) .height($r(‘app.float.logo_image_size’)) .margin({ top: $r(‘app.float.logo_margin_top’), bottom: KaTeX parse error: Expected EOF, got } at position 35: …argin_bottom) }̲) Text(r(‘app.string.login_page’)) .fontSize( r ( ′ a p p . f l o a t . p a g e t i t l e t e x t s i z e ′ ) ) . f o n t W e i g h t ( F o n t W e i g h t . M e d i u m ) . f o n t C o l o r ( r(app.float.page_title_text_size)) .fontWeight(FontWeight.Medium) .fontColor( r(′app.float.paget​itlet​exts​ize′)).fontWeight(FontWeight.Medium).fontColor(r(‘app.color.title_text_color’)) Text( r ( ′ a p p . s t r i n g . l o g i n m o r e ′ ) ) . f o n t S i z e ( r(app.string.login_more)) .fontSize( r(′app.string.loginm​ore′)).fontSize(r(‘app.float.normal_text_size’)) .fontColor($r(‘app.color.login_more_text_color’)) .margin({ bottom: $r(‘app.float.login_more_margin_bottom’), top: $r(‘app.float.login_more_margin_top’) }) TextInput({ placeholder: $r(app.string.account) }).maxLength(CommonConstants.INPUT_ACCOUNT_LENGTH).type(InputType.Number).inputStyle().onChange((value: string) {this.account value;})Line().lineStyle()TextInput({ placeholder: $r(app.string.password) }).maxLength(CommonConstants.INPUT_PASSWORD_LENGTH).type(InputType.Password).inputStyle().onChange((value: string) {this.password value;})Line().lineStyle()Row() {Text($r(app.string.message_login)).blueTextStyle()Text($r(app.string.forgot_password)).blueTextStyle()}.justifyContent(FlexAlign.SpaceBetween).width(CommonConstants.FULL_PARENT).margin({ top: $r(app.float.forgot_margin_top) })Button($r(app.string.login), { type: ButtonType.Capsule }).width(CommonConstants.BUTTON_WIDTH).height($r(app.float.login_button_height)).fontSize($r(app.float.normal_text_size)).fontWeight(FontWeight.Medium).backgroundColor($r(app.color.login_button_color)).margin({ top: $r(app.float.login_button_margin_top), bottom: $r(app.float.login_button_margin_bottom) }).onClick(() {this.login();})Text($r(app.string.register_account)).fontColor($r(app.color.login_blue_text_color)).fontSize($r(app.float.normal_text_size)).fontWeight(FontWeight.Medium)if (this.isShowProgress) {LoadingProgress().color($r(app.color.loading_color)).width($r(app.float.login_progress_size)).height($r(app.float.login_progress_size)).margin({ top: $r(app.float.login_progress_margin_top) })}Blank()Text($r(app.string.other_login_method)).fontColor($r(app.color.other_login_text_color)).fontSize($r(app.float.little_text_size)).fontWeight(FontWeight.Medium).margin({ top: $r(app.float.other_login_margin_top), bottom: $r(app.float.other_login_margin_bottom) })Row({ space: CommonConstants.LOGIN_METHODS_SPACE }) {this.imageButton($r(app.media.login_method1))this.imageButton($r(app.media.login_method2))this.imageButton($r(app.media.login_method3))} } .backgroundColor($r(app.color.background)) .height(CommonConstants.FULL_PARENT) .width(CommonConstants.FULL_PARENT) .padding({left: $r(app.float.page_padding_hor),right: $r(app.float.page_padding_hor),bottom: $r(app.float.login_page_padding_bottom) })} }
http://www.zqtcl.cn/news/129886/

相关文章:

  • 我想建个网站想做电商应该怎么入门
  • 广州番禺网站制作推广网站建设徐州百度网络网站
  • 有没有个人做网站的新网站做seo 的效果
  • 做网站和app哪个简单旅游资讯网站建设方案
  • 网站建设考级百度怎样可以搜到自己的网站
  • 自助建站免费自助建站网站广州企业网站
  • 常德论坛尚一网唐山seo网络推广
  • 网站建设预付流程网站设计风格的关键词
  • 常德网站制作怎么做自己的网页
  • 做的网站为什么图片看不了wordpress循环该分类子分类
  • 源码出售网站怎么做一个产品的网络营销方案
  • 安丘营销型网站建设国外教育网站模板
  • 做网站案例百度小说排行榜前十
  • 东昌网站建设公司上传到网站去的文档乱码
  • 如何制作自己的网站链接教程网络营销seo招聘
  • 网站制作资料收集wordpress资源网模板
  • 随州网站设计开发服务做网站制作步骤
  • 东莞凤岗做网站黄山旅游攻略住宿
  • 网站开发常用插件免费库存管理软件哪个好
  • 河池网站开发工程师招聘网如何做品牌运营与推广
  • 做网站运营难吗零基础网站建设教程
  • 深圳蚂蚁网络网站建设wordpress电影主题
  • 网站域名收费吗搜索引擎不收录网站
  • 海兴网站建设价格wordpress替代软件
  • 做网站哪家服务器好小区物业管理系统
  • 上海推广网站公司网站建设首选
  • 网站建设行业分析报告网站建设视频教程
  • 服装网站建设图企业网站建设开题报告是什么
  • 建设外贸商城网站制作网站建设的中期目标
  • 网站定做地方门户网站带手机版