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

全国做网站的百度手机助手网页版

全国做网站的,百度手机助手网页版,韩漫网站建设,网站建设网页制作uniapp的启动页、开屏广告 启动页配置广告开屏 启动页配置 在manifest.json文件中找到APP启动界面配置,可以看到有Android和iOS的启动页面的配置 ,选择自定义启动图即可配置 广告开屏 在pages中新建一个广告开屏文件并在pases.json的最顶部配置这个页…

uniapp的启动页、开屏广告

  • 启动页配置
  • 广告开屏

启动页配置

在manifest.json文件中找到APP启动界面配置,可以看到有Android和iOS的启动页面的配置 ,选择自定义启动图即可配置
在这里插入图片描述

广告开屏

在pages中新建一个广告开屏文件并在pases.json的最顶部配置这个页面的路由代码如下:

"pages": [{"path": "pages/index","style": {//取消原生导航栏"navigationStyle": "custom","navigationBarTitleText": "启动页","app-plus": {"titleNView": false}}}]

配置完成回到新建的index文件中编辑你想要的广告开屏内容,列如:

<template><view class="guide uni-flex uni-column justify-align-center ":style="{ background: 'url(' + imgUrl + ')  no-repeat' }" @click="navigateTo"><view class="content">{{ content }}</view><view class="content-wrap uni-flex justify-align-center uni-column"></view><!-- 右上角跳过按钮 --><!-- <view class="passbtn" @click.stop="launchApp">跳过</view> --></view>
</template><script>export default {props: {imgUrl: { // 图片路径type: String,default: '',}},data() {return {content: '',totalTime: 4,clock: null};},onLoad() {this.getData()},onHide() {clearInterval(this.clock);},methods: {navigateTo() {// clearInterval(this.clock);},getData() {this.clock = setInterval(() => {this.totalTime--;this.content = this.totalTime + 's后跳转';if (this.totalTime == 0) {this.launchApp()}}, 1000);console.log(this.clock);},launchApp() {//跳过引导页,储存本地值,下次进入直接跳过// clearInterval(this.clock);// this.$mRouter.push('/pages/index/index')uni.switchTab({url:'/pages/index/index'})}}}
</script><style scoped>page {width: 100%;height: 100%;}.content {position: fixed;top: 60upx;right: 50upx;color: #838892;}.guide {height: 100%;height: 100%;position: relative;background-size: cover !important;background-position: center center !important;}.passbtn {width: 130upx;height: 60upx;line-height: 60upx;position: fixed;z-index: 999;bottom: 50upx;right: 50upx;color: #838892;text-align: center;border-width: 1upx;border-color: rgba(0, 0, 0, 0.5);border-style: solid;border-radius: 30upx;font-size: 28upx;padding-left: 25upx;padding-right: 25upx;}
</style>

若有不妥,积极发言!

http://www.khdw.cn/news/45839.html

相关文章:

  • 北京市建设工程第四检测所网站免费个人网站建站
  • 把自己做的网站开放到外网微信营销软件手机版
  • 廊坊网站建设公司费用今日武汉最新消息
  • 百度网站降权最新seo自动优化软件
  • 网站建设工作讲话网络软营销
  • 做网站推广的方法有哪些专业seo站长工具全面查询网站
  • 自己做网站写文章免费的网站推广
  • 广告支持模式的网站今日桂林头条新闻
  • 张家港市地方政府网站建设存在的问题与对策怎么做网站链接
  • 目前做响应式网站最好的cms网站排名怎么做上去
  • 携程旅游网官方网站 做攻略网络推广的方法和技巧
  • 学做ps的网站有哪些网站制作培训
  • 网站做收录聚名网官网登录
  • 温州网站改版公司哪家好最快新闻资讯在哪看
  • 做外文H网站导航网站怎么推广
  • 学做网站需要什么基础十大广告联盟
  • 网站为什么要seo网站建设优化推广系统
  • WordPress多种类文件上传网站搜索引擎优化的步骤
  • 网站流量真难做百度竞价推广运营
  • iwebshop怎么做网站网络营销推广外包服务
  • 安卓做任务赚钱网站深圳疫情最新情况
  • 施工企业资质包括哪些河南郑州网站推广优化
  • 公司网站建设需要咨询什么问题口碑营销成功案例有哪些
  • 做网赌需要在哪些网站投广告百度客服在线咨询
  • 湖南的商城网站建设百度关键词指数工具
  • 150m网站空间关键词排名优化怎么做
  • 猪八戒网站找做微信小程序的小程序自助搭建平台
  • 下载织梦做网站软件优化教程网官网
  • 外贸公司的网站建设模板下载链接买卖价格
  • wordpress设置url错误合肥网络公司seo