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

给网站开发自己的一封信网红店的营销方式

给网站开发自己的一封信,网红店的营销方式,网站seo课程,厦门seo网站排名优化基于HarmonyOS的宠物收养系统的设计与实现#xff08;一#xff09; 本系统是简易的宠物收养系统#xff0c;为了更加熟练地掌握HarmonyOS相关技术的使用。 项目创建 创建一个空项目取名为PetApp 首页实现#xff08;组件导航使用#xff09; 官方文档#xff1a;组…基于HarmonyOS的宠物收养系统的设计与实现一 本系统是简易的宠物收养系统为了更加熟练地掌握HarmonyOS相关技术的使用。 项目创建 创建一个空项目取名为PetApp 首页实现组件导航使用 官方文档组件导航(Navigation) 实现目标效果 5个工具选项对应5个页面点击工具栏在内容区切换子组件页面和标题 打开src/main/ets/pages 编辑Index.ets文件 Index.ets import { AccountPage } from ./AccountPage import { FavoritePage } from ./FavoritePage import { HomePage } from ./HomePage import { MapsPage } from ./MapsPage import { MessagePage } from ./MessagePageEntry Component struct Index {private menuItem:NavigationMenuItem {value:,icon:./images/list.png,action:(){}}private toolBarItemHome:ToolbarItem {value:Home,icon:./images/home.png,action:(){this.pageName HomePagethis.title Home}}private toolBarItemMaps:ToolbarItem {value:Maps,icon:./images/maps.png,action:(){this.pageName MapsPagethis.title Maps}}private toolBarItemFavorite:ToolbarItem {value:Favorite,icon:./images/favorite.png,action:(){this.pageName FavoritePagethis.title Favorite}}private toolBarItemMessage:ToolbarItem {value:Message,icon:./images/message.png,action:(){this.pageName MessagePagethis.title Message}}private toolBarItemAccount:ToolbarItem {value:Account,icon:./images/account.png,action:(){this.pageName AccountPagethis.title Account}}State pageName:string HomePage;State title:string Homebuild() {Navigation(this.pageStack){if(this.pageName HomePage){HomePage()}else if(this.pageName MapsPage){MapsPage()}else if(this.pageName FavoritePage){FavoritePage()}else if(this.pageName MessagePage){MessagePage()}else {AccountPage()}}.titleMode(NavigationTitleMode.Mini)//标题模式.title(this.title)//设置标题.menus([this.menuItem])//设置顶部菜单.toolbarConfiguration([this.toolBarItemHome,this.toolBarItemMaps,this.toolBarItemFavorite,this.toolBarItemMessage,this.toolBarItemAccount])//底部工具栏} }添加首页 HomePage.ets Entry Component export struct HomePage {build() {NavDestination(){Text(home)Text(home)Text(home)}} }添加地图页MapsPage.ets Entry Component export struct MapsPage {build() {NavDestination(){Text(maps)Text(maps)Text(maps)}} }添加喜欢宠物页FavoritePage.ets Entry Component export struct MapsPage {build() {NavDestination(){Text(maps)Text(maps)Text(maps)}} }添加消息页MessagePage.ets Entry Component export struct MessagePage {build() {NavDestination(){Text(Message)Text(Message)Text(Message)}} }添加账号信息页AccountPage.ets Entry Component export struct AccountPage {build() {NavDestination(){Text(Account)Text(Account)Text(Account)}} }实现效果 实现点击工具栏高亮 修改index.ets添加changeState方法、activeIcon属性、status属性。 import { AccountPage } from ./AccountPage import { FavoritePage } from ./FavoritePage import { HomePage } from ./HomePage import { MapsPage } from ./MapsPage import { MessagePage } from ./MessagePageEntry Component struct Index {aboutToAppear(): void {this.changeState(0)}changeState(index:number){for(let i0;ithis.toolBars.length;i){this.toolBars[i].statusToolbarItemStatus.NORMAL}this.toolBars[index].status ToolbarItemStatus.ACTIVE}private menuItem:NavigationMenuItem {value:,icon:./images/list.png,action:(){}}State toolBarItemHome:ToolbarItem {value:Home,icon:./images/home.png,activeIcon:./images/home_a.png,action:(){this.pageName HomePagethis.title Homethis.changeState(0)}}State toolBarItemMaps:ToolbarItem {value:Maps,icon:./images/maps.png,status:ToolbarItemStatus.NORMAL,activeIcon:./images/maps_a.png,action:(){this.pageName MapsPagethis.title Mapsthis.changeState(1)}}State toolBarItemFavorite:ToolbarItem {value:Favorite,icon:./images/favorite.png,activeIcon:./images/favorite_a.png,action:(){this.pageName FavoritePagethis.title Favoritethis.changeState(2)}}State toolBarItemMessage:ToolbarItem {value:Message,icon:./images/message.png,activeIcon:./images/message_a.png,action:(){this.pageName MessagePagethis.title Messagethis.changeState(3)}}State toolBarItemAccount:ToolbarItem {value:Account,icon:./images/account.png,activeIcon:./images/account_a.png,action:(){this.pageName AccountPagethis.title Accountthis.changeState(4)}}State toolBars:ToolbarItem[] [this.toolBarItemHome,this.toolBarItemMaps,this.toolBarItemFavorite,this.toolBarItemMessage,this.toolBarItemAccount];State pageName:string HomePage;State title:string Homebuild() {Navigation(this.pageStack){if(this.pageName HomePage){HomePage()}else if(this.pageName MapsPage){MapsPage()}else if(this.pageName FavoritePage){FavoritePage()}else if(this.pageName MessagePage){MessagePage()}else {AccountPage()}}.titleMode(NavigationTitleMode.Mini)//标题模式.title(this.title)//设置标题.menus([this.menuItem])//设置顶部菜单.toolbarConfiguration(this.toolBars)//底部工具栏} }实现效果
http://www.hkea.cn/news/14460596/

相关文章:

  • 美团网站建设规划书建设通官网通
  • 建筑网站水泡网国外对企业网站开发的研究
  • 站群seo企业网站报价方案下载
  • 济南网站建设推广报价青岛专业做网站的公司
  • 深圳网站建设迅美域名的作用
  • 大连建设主管部门官方网站贡井区建设局网站
  • 凤岗东莞微信网站建设中关村手机在线
  • 网站建设哪些好做城市网站的标语
  • 西安模板建站公司企业网站建设知名
  • 做ppt的模板的网站有哪些wordpress 开源模板
  • 美食网站要怎么做电子商务网站 功能
  • 网站建设书籍附光盘谷歌商店paypal官网下载
  • 网站开发人才培养目标山东振国网站建设
  • 设计网站大全威县网站建设代理价格
  • 投资网站php源码加盟网站有哪些
  • 上海网站关键字优wordpress博客设置主题方法
  • 做网站开发没有人带广州公布一批重点场所
  • 怎么自己编写网站网站制作规划设计内容
  • 阳江网站建设推广公司电话网站是用什么编程语言编写的
  • 如何用ppt形式做网站宝塔怎么做两个网站
  • 花生壳做网站用自己网站域名这么做邮箱
  • 青岛找网站建设公司哪家好版面设计的目的是什么
  • 网站建设电子有没有个人做网站的
  • 重庆网站建设方案苏州公司建设网站
  • dede网站源码打包下载进出口贸易公司怎么注册
  • 视频网站开发项目介绍公司的文案
  • 上海网站群建设百度竞价包年推广公司
  • 长子网站建设网站怎么做排名优化
  • 在线视频网站怎么做南京市建设工程造价信息网
  • 沧州建设局网站手机网站开发的目的及定位