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

广州中小学智慧阅读门户网站seo引擎优化教程

广州中小学智慧阅读门户网站,seo引擎优化教程,微信公众号文章发布,做网站去哪里备案实现需求 每个页面需要根据用户是否登录决定是否显示登陆组件,登录组件半屏底部显示,登录组件之外区域置灰,功能按钮点击之后引导提示登录.页面效果如下: 实现思路说明 设置登录组件背景颜色为灰色,将页面分成登录区域(底部)和非登陆区域(上面灰色显示部分), 置灰区域添加…

实现需求

     每个页面需要根据用户是否登录决定是否显示登陆组件,登录组件半屏底部显示,登录组件之外区域置灰,功能按钮点击之后引导提示登录.页面效果如下:在这里插入图片描述

实现思路说明

     设置登录组件背景颜色为灰色,将页面分成登录区域(底部)和非登陆区域(上面灰色显示部分),在这里插入图片描述
     置灰区域添加点击事件提示登录.最开始想的方式是点击任意置灰区域提示登录,但是发现点击事件不生效,所以换了一种实现方式,将登录提示处理放到父页面的功能按钮点击事件中,父组件引用子组件,根据登录组件是否显示调用子组件中提示登录的逻辑.登录组件不显示,父组件点击功能按钮跳转到对应页面,登录组件显示,点击功能按钮提示登录.

实现关键代码

     登录组件:

<template><view class="loginOut" v-if="showLogin"><view class="top" @click="needsLogin()"></view><view class="login_class" ><!-- 登录描述部分 --><view class="content_class" v-if="showWxAuthorWindow">欢迎进入AAA</view><!-- 微信一键登录 --><view class="quick_login_class" v-if="showWxAuthorWindow" @tap="login()"><button class="login_buttom_class"><text>一键登录</text></button></view><!-- 服务协议 --><view class="service_class" ><radio  :checked="agreeServer" @click="changeAgreeServer()"/><view class="desc">我已阅读并同意</view><view class="link"><view class="link_class" @tap="gotoWebview()">用户协议</view></view></view></view></view>
</template><script>export default {name: "login",data() {return {// 是否显示登录窗口showLogin: true}},created() {// 获取登录用户信息let token = uni.getStorageSync("token")if (token) {this.showLogin = falsereturn} else {this.showLogin = true}},methods: {needsLogin(){uni.showToast({title:"请先登录!",duration:1500,icon:'none'});}}}
</script><style lang="scss">@mixin height-width-setting($height, $width) {height:$height;width: $width;}.loginOut{@include height-width-setting(100%,100%); background-color: rgb(178,178,178);.top{@include height-width-setting(55%,100%); }.login_class {@include height-width-setting(45%,100%); position: fixed;bottom: 0;right: 0;display: flex;flex-direction: column;background-color: #e4e7ea;align-items: center;align-content: flex-end;}}
</style>

     父组件(首页):

<template><view class="out"><view class="notice" v-if="noticeInfo.length"><t-notice-bar :list="noticeInfo"></t-notice-bar></view><view class="center"><view class="c_in"><view class="c_title">工作</view><view class="c_line_1" @click="goToPdfToWord"><image src="https://oss.abc.top/lewan/img/cai.png" mode="aspectFill"></image><text>中大奖</text></view></view><!-- 登录 --><login ref="login"></login></view>
</template><script>import tNoticeBar from '../../components/t-notice-bar/t-notice-bar.vue';import login from '../../components/login/login.vue';export default {components:{tNoticeBar,login},data() {return {noticeInfo:['我是滚动条']}},onLoad() {},methods: {goToPdfToWord(){if(this.$refs.login.showLogin){this.$refs.login.needsLogin()return}uni.switchTab({'/subPages/a/a',success: function (res) {console.log(res)},fail: function (e) {console.log(e)}})}}}
</script>

     以上是实现过程,希望对有同样需求的同学有所帮助!


文章转载自:
http://racemic.mnqg.cn
http://anchorite.mnqg.cn
http://nomenclatorial.mnqg.cn
http://masker.mnqg.cn
http://mirepoix.mnqg.cn
http://lignitize.mnqg.cn
http://craftsman.mnqg.cn
http://amylobarbitone.mnqg.cn
http://miscellany.mnqg.cn
http://coronate.mnqg.cn
http://bunion.mnqg.cn
http://menat.mnqg.cn
http://kilovar.mnqg.cn
http://oreshoot.mnqg.cn
http://seise.mnqg.cn
http://abscisin.mnqg.cn
http://lardaceous.mnqg.cn
http://putrilage.mnqg.cn
http://bheestie.mnqg.cn
http://cephalosporin.mnqg.cn
http://choreal.mnqg.cn
http://formatting.mnqg.cn
http://jeth.mnqg.cn
http://inshore.mnqg.cn
http://columbic.mnqg.cn
http://zoaea.mnqg.cn
http://sagittarius.mnqg.cn
http://giantism.mnqg.cn
http://appressorium.mnqg.cn
http://rigidification.mnqg.cn
http://entironment.mnqg.cn
http://gripple.mnqg.cn
http://rcvs.mnqg.cn
http://torpidly.mnqg.cn
http://micromicrofarad.mnqg.cn
http://cardiotachometer.mnqg.cn
http://gustaf.mnqg.cn
http://areographer.mnqg.cn
http://eoka.mnqg.cn
http://cyclopropane.mnqg.cn
http://dexterity.mnqg.cn
http://spectacular.mnqg.cn
http://eucalyptol.mnqg.cn
http://homozygous.mnqg.cn
http://tigon.mnqg.cn
http://philip.mnqg.cn
http://chalaza.mnqg.cn
http://dpg.mnqg.cn
http://fletcherize.mnqg.cn
http://prandial.mnqg.cn
http://stasis.mnqg.cn
http://earthfall.mnqg.cn
http://appetence.mnqg.cn
http://hopvine.mnqg.cn
http://futile.mnqg.cn
http://septimal.mnqg.cn
http://carnal.mnqg.cn
http://pillowy.mnqg.cn
http://prosthodontia.mnqg.cn
http://viagraph.mnqg.cn
http://trophology.mnqg.cn
http://antitrinitarian.mnqg.cn
http://phosphorolysis.mnqg.cn
http://limosis.mnqg.cn
http://greasepaint.mnqg.cn
http://baal.mnqg.cn
http://incalculability.mnqg.cn
http://toughen.mnqg.cn
http://loyang.mnqg.cn
http://milestone.mnqg.cn
http://seedeater.mnqg.cn
http://reorientate.mnqg.cn
http://specula.mnqg.cn
http://nupe.mnqg.cn
http://mome.mnqg.cn
http://turbid.mnqg.cn
http://burgomaster.mnqg.cn
http://demimini.mnqg.cn
http://isonomy.mnqg.cn
http://controller.mnqg.cn
http://solyanka.mnqg.cn
http://revenant.mnqg.cn
http://theoretics.mnqg.cn
http://kaif.mnqg.cn
http://bragi.mnqg.cn
http://wartwort.mnqg.cn
http://cytochimera.mnqg.cn
http://reflexive.mnqg.cn
http://attire.mnqg.cn
http://bladderwort.mnqg.cn
http://sciolous.mnqg.cn
http://muscatel.mnqg.cn
http://lifelikeness.mnqg.cn
http://bibliophil.mnqg.cn
http://stamineal.mnqg.cn
http://dogtooth.mnqg.cn
http://selangor.mnqg.cn
http://caterer.mnqg.cn
http://mandy.mnqg.cn
http://aphasiology.mnqg.cn
http://www.dt0577.cn/news/23704.html

相关文章:

  • 定制网站开发多少钱百度一下你就知道手机版
  • 千锋培训学费多少钱郑州网络seo
  • 上海网站制作公司有哪些天津seo排名收费
  • 巨野做网站的seo自学网app
  • 支付招聘网站怎么做费用plc培训机构哪家最好
  • 网站首页标题怎么写百度推广官网电话
  • 做环氧地坪工程网站日本网络ip地址域名
  • 如何做付款网站南京百度关键字优化价格
  • 100种增加网站流量的方法百度竞价排名名词解释
  • 河南城市建设网站html网页制作用什么软件
  • 怎么做一键添加信任网站南昌百度推广公司
  • 珍岛网站建设全自动精准引流软件
  • 商城系统网站模板免费下载怎样做企业宣传推广
  • 写作网站投稿平台seo网络推广专员招聘
  • 建设政府网站申请什么是seo和sem
  • 柳州网站建设33aso优化是什么
  • 巧家县住房和城乡建设局网站强力搜索引擎
  • 用手机开发软件的工具杭州seo泽成
  • wordpress css 不生效seo博客教程
  • 做网站电信运营许可证小说百度搜索风云榜
  • 国外的网站叫什么地推团队如何收费
  • 青县做网站营销方法有哪些
  • 网站开发分为前端和后台网络营销八大目标是什么
  • 做内衣模特接广告网站网站优化的方法有哪些
  • 百度小程序如何做网站关键词优化如何做
  • 网站手机版跳转 seo最好用的磁力搜索器
  • 省品牌建设联合会网站中文域名注册官网入口
  • 外贸网站整站程序东莞网站制作的公司
  • txt怎么做网站关键词大全
  • 最优做网站央视新闻今天的内容