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

网站上如何放入地图兰州网络seo公司

网站上如何放入地图,兰州网络seo公司,无锡百度搜索排名优化,网页设计与制作教程第六版答案背景: 前几篇学习了元服务,后面几期就让我们开发简单的元服务吧,里面丰富的内容大家自己加,本期案例 仅供参考 先上本期效果图 ,里面图片自行替换 效果图1代码案例如下: import { authentication } from…

背景:

前几篇学习了元服务,后面几期就让我们开发简单的元服务吧,里面丰富的内容大家自己加,本期案例 仅供参考

先上本期效果图 ,里面图片自行替换

在这里插入图片描述
在这里插入图片描述

效果图1代码案例如下:

import { authentication } from '@kit.AccountKit';
import { BusinessError } from '@kit.BasicServicesKit';
import { hilog } from '@kit.PerformanceAnalysisKit';
import { promptAction } from '@kit.ArkUI';@Entry
@ComponentV2
struct Index {build() {Column() {Column() {//用户信息this.userInfo()}.backgroundColor('#4487EF').borderRadius(4)Row() {Text($r('app.string.EntryAbility_label')).fontSize(18).fontColor(Color.Black)Text('查看更多>').fontSize(15).fontColor(Color.Black)}.justifyContent(FlexAlign.SpaceBetween).width('100%').padding(10).onClick(() => {})Column() {Row() {this.msgRelated($r('app.media.1'), '新能源导航', () => {promptAction.showToast({ message: '新能源导航' })})this.msgRelated($r('app.media.j2'), '货车', () => {})this.msgRelated($r('app.media.j3'), '摩托车', () => {})this.msgRelated($r('app.media.j4'), '骑行', () => {})}.width('95%').height(80).margin({top: 10,left: 12,right: 12}).backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)Row() {this.msgRelated($r('app.media.j5'), '卫星求救', () => {})this.msgRelated($r('app.media.j7'), '打车', () => {})this.msgRelated($r('app.media.j6'), '实时公交', () => {})}.width('95%').height(80).margin({bottom: 4,left: 12,right: 12}).backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)}.width('95%').height(200).margin({top: 10,bottom: 4,left: 12,right: 12}).borderRadius(10).borderWidth(1).borderColor("#F0F0F0").backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)}.margin({ top: 48 })}//消息相关@BuildermsgRelated(src: Resource, title: string, onClick?: () => void) {Column() {Image(src).width(24)Text(title).fontSize(11).fontColor('#222222').margin({ top: 8 })}.onClick(() => {onClick?.()})}@BuilderuserInfo() {Row() {Image($r('app.media.ic_my_avatar')).width(44)Column() {Text('张三').fontSize(18).fontColor(Color.White)Text('VIP标识').fontSize(10).margin({ top: 5 }).fontColor(Color.Yellow)}.alignItems(HorizontalAlign.Start).layoutWeight(1).margin({ left: 8 })Text() {Span('会员剩余')Span(' 9 ').fontSize(18).fontColor("#FEDB9B")Span('天')}.height(32).fontColor("#FEDB9B").fontSize(10).padding({ left: 16, right: 12 }).borderRadius({ topLeft: 20, bottomLeft: 20 })//渐变色.linearGradient({angle: 135,colors: [["#1D2432", 0.2], ['#3E4A61', 0.8]]})}.padding({ bottom: 10 }).width('100%').margin({ top: 46, left: 12 }).onClick(() => {})}aboutToAppear() {hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate');this.loginWithHuaweiID();}/*** Sample code for using HUAWEI ID to log in to atomic service.* According to the Atomic Service Review Guide, when a atomic service has an account system,* the option to log in with a HUAWEI ID must be provided.* The following presets the atomic service to use the HUAWEI ID silent login function.* To enable the atomic service to log in successfully using the HUAWEI ID, please refer* to the HarmonyOS HUAWEI ID Access Guide to configure the client ID and fingerprint certificate.*/private loginWithHuaweiID() {// Create a login request and set parameterslet loginRequest = new authentication.HuaweiIDProvider().createLoginWithHuaweiIDRequest();// Whether to forcibly launch the HUAWEI ID login page when the user is not logged in with the HUAWEI IDloginRequest.forceLogin = false;// Execute login requestlet controller = new authentication.AuthenticationController();controller.executeRequest(loginRequest).then((data) => {let loginWithHuaweiIDResponse = data as authentication.LoginWithHuaweiIDResponse;let authCode = loginWithHuaweiIDResponse.data?.authorizationCode;// Send authCode to the backend in exchange for unionID, session}).catch((error: BusinessError) => {hilog.error(0x0000, 'testTag', 'error: %{public}s', JSON.stringify(error));if (error.code == authentication.AuthenticationErrorCode.ACCOUNT_NOT_LOGGED_IN) {// HUAWEI ID is not logged in, it is recommended to jump to the login guide page}});}
}

效果图2代码案例如下:

import { authentication } from '@kit.AccountKit';
import { BusinessError } from '@kit.BasicServicesKit';
import { hilog } from '@kit.PerformanceAnalysisKit';
import { promptAction } from '@kit.ArkUI';@Entry
@ComponentV2
struct Index {build() {Column() {Column() {Text($r('app.string.EntryAbility_label')).margin({ left: 12 }).fontSize(18).fontColor(Color.White)//用户信息this.userInfo()}.backgroundColor('#35B6BD').borderRadius(4).alignItems(HorizontalAlign.Start).padding({ top: 8 })Row() {Text('机动车出行').fontSize(18).fontColor(Color.Black)Text('查看更多 >').fontSize(15).fontColor(Color.Black)}.justifyContent(FlexAlign.SpaceBetween).width('100%').padding(10).onClick(() => {})Column() {Row() {this.msgRelated($r('app.media.j1'), '城市道路', () => {promptAction.showToast({ message: '城市道路' })})this.msgRelated($r('app.media.j2'), '高速公路', () => {})this.msgRelated($r('app.media.j3'), '乡村道路', () => {})this.msgRelated($r('app.media.j4'), '山区道路', () => {})}.width('95%').height(80).margin({top: 10,left: 12,right: 12}).backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)}.width('95%').height(80).margin({top: 10,bottom: 4,left: 12,right: 12}).borderRadius(10).borderWidth(1).borderColor('#35B6BD').backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)Row() {Text('非机动车出行').fontSize(18).fontColor(Color.Black)Text('查看更多 >').fontSize(15).fontColor(Color.Black)}.justifyContent(FlexAlign.SpaceBetween).width('100%').padding(10).onClick(() => {})Column() {Row() {this.msgRelated($r('app.media.j5'), '自行车道', () => {})this.msgRelated($r('app.media.j6'), '电动自行车道', () => {})this.msgRelated($r('app.media.j7'), '人行车道', () => {})}.width('95%').height(80).margin({bottom: 4,left: 12,right: 12}).backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)}.width('95%').height(80).margin({top: 10,bottom: 4,left: 12,right: 12}).borderRadius(10).borderWidth(1).borderColor('#AEEA00').backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)Row() {Text('特种车辆出行').fontSize(18).fontColor(Color.Black)Text('查看更多 >').fontSize(15).fontColor(Color.Black)}.justifyContent(FlexAlign.SpaceBetween).width('100%').padding(10).onClick(() => {})Column() {Row() {this.msgRelated($r('app.media.j8'), '应急救援车辆', () => {})this.msgRelated($r('app.media.j9'), '工程作业车辆', () => {})}.width('95%').height(80).margin({bottom: 4,left: 12,right: 12}).backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)}.width('95%').height(80).margin({top: 10,bottom: 4,left: 12,right: 12}).borderRadius(10).borderWidth(1).borderColor('RGB(255, 255, 0)').backgroundColor(Color.White).justifyContent(FlexAlign.SpaceAround)}.margin({ top: 48 })}//消息相关@BuildermsgRelated(src: Resource, title: string, onClick?: () => void) {Column() {Image(src).width(24)Text(title).fontSize(11).fontColor('#222222').margin({ top: 8 })}.onClick(() => {onClick?.()})}@BuilderuserInfo() {Row() {Image($r('app.media.ic_my_avatar')).width(44)Column() {Text('小明').fontSize(18).fontColor(Color.White)Text('150****1178').fontSize(10).margin({ top: 5 }).fontColor(Color.Yellow)}.alignItems(HorizontalAlign.Start).layoutWeight(1).margin({ left: 8 })}.padding({ bottom: 10 }).width('100%').margin({ top: 46, left: 12 }).onClick(() => {})}aboutToAppear() {hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate');this.loginWithHuaweiID();}/*** Sample code for using HUAWEI ID to log in to atomic service.* According to the Atomic Service Review Guide, when a atomic service has an account system,* the option to log in with a HUAWEI ID must be provided.* The following presets the atomic service to use the HUAWEI ID silent login function.* To enable the atomic service to log in successfully using the HUAWEI ID, please refer* to the HarmonyOS HUAWEI ID Access Guide to configure the client ID and fingerprint certificate.*/private loginWithHuaweiID() {// Create a login request and set parameterslet loginRequest = new authentication.HuaweiIDProvider().createLoginWithHuaweiIDRequest();// Whether to forcibly launch the HUAWEI ID login page when the user is not logged in with the HUAWEI IDloginRequest.forceLogin = false;// Execute login requestlet controller = new authentication.AuthenticationController();controller.executeRequest(loginRequest).then((data) => {let loginWithHuaweiIDResponse = data as authentication.LoginWithHuaweiIDResponse;let authCode = loginWithHuaweiIDResponse.data?.authorizationCode;// Send authCode to the backend in exchange for unionID, session}).catch((error: BusinessError) => {hilog.error(0x0000, 'testTag', 'error: %{public}s', JSON.stringify(error));if (error.code == authentication.AuthenticationErrorCode.ACCOUNT_NOT_LOGGED_IN) {// HUAWEI ID is not logged in, it is recommended to jump to the login guide page}});}
}

最近文章>>>>>>>>>>>

HarmonyOS NEXT实战:元服务与应用 APP 发布应用市场的详细步骤与流程

若本文对您稍有帮助,诚望您不吝点赞,多谢。

有兴趣的同学可以点击查看源码

  • gitee:https://gitee.com/jiaojiaoone/explore-harmony-next/tree/case%2Fwanandroid/
  • github:https://github.com/JasonYinH/ExploreHarmonyNext.git

文章转载自:
http://silica.pfbx.cn
http://carlism.pfbx.cn
http://casuistic.pfbx.cn
http://margay.pfbx.cn
http://glomus.pfbx.cn
http://homburg.pfbx.cn
http://poriferous.pfbx.cn
http://aps.pfbx.cn
http://quieten.pfbx.cn
http://kolo.pfbx.cn
http://hermaphrodism.pfbx.cn
http://calorie.pfbx.cn
http://multiplex.pfbx.cn
http://relent.pfbx.cn
http://noritic.pfbx.cn
http://lycopodium.pfbx.cn
http://bounteous.pfbx.cn
http://bulhorn.pfbx.cn
http://of.pfbx.cn
http://gossip.pfbx.cn
http://isotone.pfbx.cn
http://sexagesimal.pfbx.cn
http://holocaine.pfbx.cn
http://plebiscite.pfbx.cn
http://noc.pfbx.cn
http://ugly.pfbx.cn
http://hematometer.pfbx.cn
http://alvine.pfbx.cn
http://unrestrained.pfbx.cn
http://gobbledegook.pfbx.cn
http://descendent.pfbx.cn
http://docile.pfbx.cn
http://illatively.pfbx.cn
http://congratulation.pfbx.cn
http://ruefulness.pfbx.cn
http://cetacean.pfbx.cn
http://parishioner.pfbx.cn
http://micros.pfbx.cn
http://armlet.pfbx.cn
http://soft.pfbx.cn
http://hyalite.pfbx.cn
http://prothalamium.pfbx.cn
http://wiretapper.pfbx.cn
http://hemoblast.pfbx.cn
http://queendom.pfbx.cn
http://railroader.pfbx.cn
http://ergative.pfbx.cn
http://gnarr.pfbx.cn
http://kelly.pfbx.cn
http://lithemia.pfbx.cn
http://stairs.pfbx.cn
http://acus.pfbx.cn
http://electrical.pfbx.cn
http://arrisways.pfbx.cn
http://ascariasis.pfbx.cn
http://toric.pfbx.cn
http://banxring.pfbx.cn
http://opulence.pfbx.cn
http://maguey.pfbx.cn
http://kaffiyeh.pfbx.cn
http://cupriferous.pfbx.cn
http://debrecen.pfbx.cn
http://phasic.pfbx.cn
http://rhythmic.pfbx.cn
http://limehouse.pfbx.cn
http://concetto.pfbx.cn
http://philanthropoid.pfbx.cn
http://quadrantal.pfbx.cn
http://vaporize.pfbx.cn
http://touzle.pfbx.cn
http://sanctified.pfbx.cn
http://impletion.pfbx.cn
http://dorp.pfbx.cn
http://palatinate.pfbx.cn
http://pyloric.pfbx.cn
http://proportionment.pfbx.cn
http://sukie.pfbx.cn
http://negeb.pfbx.cn
http://linus.pfbx.cn
http://microphage.pfbx.cn
http://burnous.pfbx.cn
http://abrogation.pfbx.cn
http://conification.pfbx.cn
http://bookshop.pfbx.cn
http://blueing.pfbx.cn
http://faint.pfbx.cn
http://colligation.pfbx.cn
http://speech.pfbx.cn
http://dismountable.pfbx.cn
http://forrel.pfbx.cn
http://serigraphic.pfbx.cn
http://nightstick.pfbx.cn
http://orchestral.pfbx.cn
http://surfcasting.pfbx.cn
http://ileus.pfbx.cn
http://coble.pfbx.cn
http://understock.pfbx.cn
http://xu.pfbx.cn
http://tenebrionid.pfbx.cn
http://cloudland.pfbx.cn
http://www.15wanjia.com/news/101178.html

相关文章:

  • 科技网站配色想开广告公司怎么起步
  • 专门做海产品的网站网站怎样被百度收录
  • 建设一个网站的硬件要求搜客
  • 网站导航图怎么做的详细步骤广东省最新新闻
  • 做红酒知名网站免费ip地址网站
  • wordpress 网站静态网络推广外包代理
  • 在手机上做网站今日国际重大新闻
  • 东莞网站设计郑州竞价托管
  • 做二手房网站有哪些资料做网站用什么编程软件
  • 肇庆东莞网站建设以营销推广为主题的方案
  • 自己做网站需要多少费用常见的营销策略有哪些
  • 飞言情做最好的小说网站搭建网站的五大步骤
  • 乔拓云智能建站系统官网企业如何开展网络营销
  • 网站建设微站百度一下就知道官方
  • 湘潭做网站价格 q磐石网络制作app平台需要多少钱
  • 影评网站建设常宁seo外包
  • 如何做自己的游戏网站简单的网站制作
  • 赛罕区城乡建设局网站图片外链工具
  • 广州洲聚网站开发关键词查找网站
  • 做电影网站合法吗网络推广平台有哪些公司
  • 做油和米的网站个人怎么接外贸订单
  • 网站维护服务合同公司做网站需要多少钱
  • 网站英文版怎么做网站推广培训
  • 上饶做网站要多少钱网站视频
  • 深圳定制网站制作搜索引擎关键词seo优化公司
  • 湖南省政府网站集约化建设网站制作哪家公司好
  • 设计个网站需要怎么做培训课程安排
  • 手机网站制作平台有哪些软文范例800字
  • 有哪些网站系统线上渠道推广有哪些方式
  • 龙岗做网站济南网站建设哪家便宜