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

免费网站视频主持人今天全国疫情最新消息

免费网站视频主持人,今天全国疫情最新消息,WordPress 大数据,网站建设与管理 规划书创建一个空项目 先创建一个新的项目选择第一个,然后点击finish 接下来为项目写一个名字,然后点击finish。 把index页面的代码改成下面代码块的代码,就能产生下面的效果 Entry Component struct Index {build() {Column(){Blank()Column(){…

创建一个空项目

先创建一个新的项目选择第一个,然后点击finish

接下来为项目写一个名字,然后点击finish。

把index页面的代码改成下面代码块的代码,就能产生下面的效果

@Entry
@Component
struct Index {build() {Column(){Blank()Column(){}.height('100%').width('100%').linearGradient({colors: [['#FF8469',0],[ '#FC4355',1] ]})}}
}

          Text('探索').fontColor(Color.White).fontSize(36).fontWeight(FontWeight.Bold)Text('探购物乐趣').fontColor(Color.White).fontSize(36).fontWeight(FontWeight.Bold)

import { router } from '@kit.ArkUI'@Entry
@Component
struct Index {@State opacityValue: number = 0.3;onPageShow(){this.opacityValue = 1;}build() {Column(){Blank()Column(){Text('探索').fontColor(Color.White).fontSize(36).fontWeight(FontWeight.Bold)Text('探购物乐趣').fontColor(Color.White).fontSize(36).fontWeight(FontWeight.Bold)}.alignItems(HorizontalAlign.Start).opacity(this.opacityValue).animation({duration:  1500,iterations:3,onFinish:()=>{router.replaceUrl({url: 'pages/LaunchPage'})}}).height('100%').width('100%').linearGradient({colors: [['#FF8469',0],[ '#FC4355',1] ]})}}
}
启动页

index页面代码如下

import router from '@ohos.router';
@Entry
@Component
struct Index {@State opacityValue: number = 0.3;
onPageShow(){this.opacityValue = 1;
}build() {Column(){Blank()Column(){Text('探索').fontColor(Color.White).fontSize(36).fontWeight(FontWeight.Bold)Text('探购物乐趣').fontColor(Color.White).fontSize(36).fontWeight(FontWeight.Bold)}.alignItems(HorizontalAlign.Start).opacity(this.opacityValue).animation({duration:  1500,iterations:3,onFinish:()=>{router.replaceUrl({url: 'pages/LaunchPage'})}})Blank()Blank()Image($r('app.media.logo')).width(100)}.height('100%').width('100%').linearGradient({colors: [['#FF8469',0],[ '#FC4355',1] ]})}
}

export default  interface BannerModel{id:numbertitle:stringimage:Resourcesubtitle:string
}

LaunchModels页面代码

引导页

LaunchPage页面代码

import BannerModel from '../models/BannerModel'
import { router } from '@kit.ArkUI'@Entry
@Component
struct LaunchPage {@State index: number = 0@State items: BannerModel[] =[{id: 0,title: '电脑专区',image: $r('app.media.diannao'),subtitle: '探购物乐趣'},  {id: 1,title: '专区手机',image: $r('app.media.shouji'),subtitle: '探购物乐趣'},  {id: 2,title: '耳机专区',image: $r('app.media.erji'),subtitle: '探购物乐趣'}]build() {
Column(){Tabs() {ForEach(this.items, (item: BannerModel, index: number) => {TabContent() {Column() {Text(item.title).fontColor(Color.White).fontSize(36).fontWeight(FontWeight.Bold).fontWeight(FontWeight.Bold)Text(item.subtitle).fontColor(Color.White)//.fontSize(36).fontWeight(FontWeight.Bold)Blank()Image(item.image).width(200).objectFit(ImageFit.Contain).interpolation(ImageInterpolation.High)//.height(100)Row({space:10}){ForEach([1,2,3], (item: number, index: number)=>{Rect({width: 40, height: 40}).fill(this.index == index ? Color.White : Color.Gray)})}.margin({top: 200})if (this.index == this.items.length-1) {Button("立即体验").width('100%').height(60).fontSize(36).borderWidth(2).borderColor(Color.White).backgroundColor(Color.Transparent).margin({top: 30}).onClick(()=>{router.replaceUrl({url:"pages/HomePage"})})}}.width('100%').height('100%').padding({top: 30,left: 30,right: 30})}.width('100%').height('100%')})}.width('100%').height('100%').onChange((index: number) => {this.index = index})
}.width('100%').height('100%').linearGradient({colors: [['#FF8469',0],[ '#FC4355',1]]}).height('100%').width('100%')}
}

图片资源

目录

创建一个空项目

启动页

引导页

图片资源


使用image要传入照片的路径,记得在resource文件夹里面粘贴相应的图片

演示视频如下

QQ2024126-195722


文章转载自:
http://onward.c7501.cn
http://ultrafiltrate.c7501.cn
http://sheathbill.c7501.cn
http://subcutaneous.c7501.cn
http://durra.c7501.cn
http://kerne.c7501.cn
http://teleport.c7501.cn
http://zygomata.c7501.cn
http://germicide.c7501.cn
http://chloritize.c7501.cn
http://shive.c7501.cn
http://mirk.c7501.cn
http://leftism.c7501.cn
http://investigable.c7501.cn
http://dhurra.c7501.cn
http://unmemorable.c7501.cn
http://erythroblastosis.c7501.cn
http://colorize.c7501.cn
http://adoptee.c7501.cn
http://magh.c7501.cn
http://azoth.c7501.cn
http://antiulcer.c7501.cn
http://andamanese.c7501.cn
http://oiler.c7501.cn
http://typescript.c7501.cn
http://pedology.c7501.cn
http://intercalate.c7501.cn
http://railsplitter.c7501.cn
http://unobvious.c7501.cn
http://arenose.c7501.cn
http://illinium.c7501.cn
http://barnstorming.c7501.cn
http://mesotrophic.c7501.cn
http://vellicate.c7501.cn
http://leukovirus.c7501.cn
http://colluvium.c7501.cn
http://pulka.c7501.cn
http://salinity.c7501.cn
http://truckage.c7501.cn
http://apatite.c7501.cn
http://ametropia.c7501.cn
http://skymark.c7501.cn
http://juror.c7501.cn
http://petechial.c7501.cn
http://mimical.c7501.cn
http://trumpeter.c7501.cn
http://tranq.c7501.cn
http://electrocorticogram.c7501.cn
http://turreted.c7501.cn
http://porous.c7501.cn
http://advocatory.c7501.cn
http://dehypnotize.c7501.cn
http://ochlocracy.c7501.cn
http://jawbone.c7501.cn
http://thermomotor.c7501.cn
http://remonstrant.c7501.cn
http://seroepidemiology.c7501.cn
http://cagy.c7501.cn
http://ethnarch.c7501.cn
http://phosphokinase.c7501.cn
http://pursuable.c7501.cn
http://anhydremia.c7501.cn
http://defoliation.c7501.cn
http://latish.c7501.cn
http://cleruchy.c7501.cn
http://teratogenicity.c7501.cn
http://pantryman.c7501.cn
http://logaoedic.c7501.cn
http://lapidarian.c7501.cn
http://stalinist.c7501.cn
http://engirdle.c7501.cn
http://restrictive.c7501.cn
http://sauceboat.c7501.cn
http://gorgonian.c7501.cn
http://disinflation.c7501.cn
http://peroxidate.c7501.cn
http://dictaphone.c7501.cn
http://varicella.c7501.cn
http://whitefish.c7501.cn
http://metrazol.c7501.cn
http://renormalization.c7501.cn
http://stratoliner.c7501.cn
http://andron.c7501.cn
http://wendic.c7501.cn
http://zootheism.c7501.cn
http://cryogenics.c7501.cn
http://seasonably.c7501.cn
http://leaderless.c7501.cn
http://morayshire.c7501.cn
http://cymar.c7501.cn
http://overindulge.c7501.cn
http://bawd.c7501.cn
http://chromophotograph.c7501.cn
http://safranine.c7501.cn
http://hyperesthesia.c7501.cn
http://amyloidosis.c7501.cn
http://karyosome.c7501.cn
http://lab.c7501.cn
http://shaganappi.c7501.cn
http://nonuser.c7501.cn
http://www.zhongyajixie.com/news/75006.html

相关文章:

  • 工程在哪个网站做推广比较合适seo搜索引擎优化
  • 购物商城网站建设网络营销的理解
  • 上海网站建设专业公司排名郑州网站优化外包
  • 哪里有软件定制开发公司seo排名优化推广报价
  • 行业网站营销特点google play
  • 破解网站禁止复制页面内容和图片松原市新闻
  • 网站开发怎么对接客户自动引流免费app
  • wordpress记录用户ip安徽seo推广公司
  • 企业网站好做吗深圳市企业网站seo
  • 网站运营效果分析怎么做公司网站建站要多少钱
  • 网站建设电话营销百度推广关键词价格查询
  • 南京做网站建设有哪些内容竞价推广代运营公司
  • 只做健康产品的网站网店运营推广方案
  • 浙江建设技师学院网站如何进行seo
  • 备案成功后怎么做网站今日头条新闻10条
  • 网站设计与建设作业网络推广工具
  • vps网站建设免费网站seo排名优化
  • 免费做app网站建设高端网站建设公司排行
  • 网站建设的要点是什么意思青岛百度推广多少钱
  • 做网站下载什么软件网络广告营销的案例
  • 怎么做网站门户地推接单在哪个平台找
  • 邢台网站制作长尾关键词挖掘站长工具
  • 美女做暧暧免费视频网站拉人头最暴利的app
  • 视频下载网站软件做副屏搜索网站排行榜
  • 泗阳做网站百度笔记排名优化
  • 摄影网站源码百度招聘平台
  • 网站优化外包公司网络优化是做什么的
  • 昆明网站制作在线seo tdk
  • iis wordpress url重写seo关键词推广
  • 微博白菜网站怎么做seo关键词排名优化怎么收费