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

wordpress 仿neoeaae百度seo优化软件

wordpress 仿neoeaae,百度seo优化软件,移动网站不备案吗,成都多语种网站建设1.关于权限不同tabbar处理 uniapp 实现不同用户展示不同的tabbar(底部导航栏)_uniapp tabbar-CSDN博客 但是里面还有两个问题 一个是role应该被本地存储并且初始化 第二个问题是假设我有3个角色 每个角色每个tabbar不一样的,点击tabbar时候会导致错乱 第三个问题…

1.关于权限不同tabbar处理

uniapp 实现不同用户展示不同的tabbar(底部导航栏)_uniapp tabbar-CSDN博客

但是里面还有两个问题 一个是role应该被本地存储并且初始化  第二个问题是假设我有3个角色 每个角色每个tabbar不一样的,点击tabbar时候会导致错乱 第三个问题 需要监听角色变化

问题处理: 在vuex的时候为role初始化

role: uni.getStorageSync('role') || null, // 从本地存储获取初始值

 第二个问题  让传送过来的值selectIndex==index 表示选中 

 第三个问题监听

<template><view class="tab"><view v-for="(item,index) in list" :key="index" class="tab-item" @click="switchTab(item, index)"><image class="tab_img" :src="selectedIndex == index ? item.selectedIconPath : item.iconPath"></image><view class="tab_text" :style="{color: selectedIndex == index ? selectedColor : color}">{{item.text}}</view></view></view>
</template><script>import {mapState} from 'vuex'export default {props: {selectedIndex: { // 当前选中的tab indexdefault: 0},},data() {return {color: "#999",selectedColor: "#0D396A",list: [],currentIndex: 0,}},computed: {...mapState(['role']),},watch: {role(newRole) {this.updateListBasedOnRole(newRole); // 当 role 变化时调用这个方法}},created() {console.log('this.role', this.role);this.updateListBasedOnRole(this.role)},methods: {switchTab(item, index) {// console.log('index', index);// this.currentIndex = index;// console.log('this.currentIndex', this.currentIndex);let url = item.pagePath;// console.log('url', url);uni.switchTab({url: url})},updateListBasedOnRole(role) {// this.currentIndex = this.selectedIndex;if (role === 1) {//角色1this.list = [{pagePath: "/pages/tabBar/staging/index",iconPath: require("@/static/tabbar/manage.png"),selectedIconPath: require("@/static/tabbar/manageSelect.png"),text: "基金管理"}, {pagePath: "/pages/tabBar/warm/index",iconPath: require("static/tabbar/warm.png"),selectedIconPath: require("static/tabbar/warmSelect.png"),text: "预警管理"},{pagePath: "/pages/tabBar/user/index",iconPath: require("static/tabbar/my.png"),selectedIconPath: require("static/tabbar/mySelect.png"),text: "个人中心"}]} else if (role === 2) {//角色2this.list = [{pagePath: "/pages/tabBar/staging/index",iconPath: require("@/static/tabbar/manage.png"),selectedIconPath: require("@/static/tabbar/manageSelect.png"),text: "基金管理"},{pagePath: "/pages/tabBar/user/index",iconPath: require("static/tabbar/my.png"),selectedIconPath: require("static/tabbar/mySelect.png"),text: "个人中心"}]} else {this.list = [{pagePath: "/pages/tabBar/staging/index",iconPath: require("@/static/tabbar/manage.png"),selectedIconPath: require("@/static/tabbar/manageSelect.png"),text: "基金管理"}, {pagePath: "/pages/tabBar/dataAuditinng/index",iconPath: require("static/tabbar/data.png"),selectedIconPath: require("static/tabbar/dataSelect.png"),text: "数据审核"}, {pagePath: "/pages/tabBar/warm/index",iconPath: require("static/tabbar/warm.png"),selectedIconPath: require("static/tabbar/warmSelect.png"),text: "预警管理"},{pagePath: "/pages/tabBar/user/index",iconPath: require("static/tabbar/my.png"),selectedIconPath: require("static/tabbar/mySelect.png"),text: "个人中心"}]}}}}
</script><style lang="scss">.tab {width: 100%;height: 98rpx;position: fixed;bottom: 0;left: 0;right: 0;height: 100rpx;background: white;@include flx(row, center, center) z-index: 1000;.tab-item {flex: 1;@include flx(column, center, center) .tab_img {width: 40rpx;height: 40rpx;}.tab_text {font-size: 24rpx;}}}
</style>

其他照常

2.关于uview 在浏览器和模拟器正常 样式在微信小程序崩溃

uniapp 开发H5打包微信小程序样式失效的解决之道_uniapp 样式丢失-CSDN博客

1.输入框崩溃

 我希望输入文字是白色的 调了很久 发现文档其实有 和element,antd有很大的不同 直接输入框加color="#fff"

<u--form labelPosition="left" :model="model" :rules="rules" ref="uForm" class="forms"><u-form-item prop="user"><u--input v-model="model.user" border="none" placeholder="请输入手机号" clearableclass="u-input__content" color="#fff"></u--input></u-form-item><u-form-item prop="password"><u--input v-model="model.password" border="none" placeholder="请输入密码" password clearableclass="u-input__content" color="#fff" ></u--input></u-form-item></u--form>
.u-input__content {height: 112rpx !important;background-color: rgba(0, 0, 0, .3) !important;padding: 0px 12rpx !important;border-radius: 10rpx !important;}/* #ifdef MP-WEIXIN */::v-deep .u-input__content {height: 112rpx !important;background-color: rgba(0, 0, 0, .3) !important;padding: 0px 12rpx !important;border-radius: 10rpx !important;}/* #endif */

 2.表头,按钮崩溃

/* #ifdef MP-WEIXIN */::v-deep .uni-table-th {background-color: #f0f0f0;color: #333;font-weight: bold;}::v-deep .u-button.data-v-2bf0e569 {width: 100%;width: 327rpx;}/* #endif */

3.关于条件编译

条件编译处理多端差异 | uni-app官网 (dcloud.net.cn)

4.关于uniapp生命周期

uniapp生命周期分成两种  一种是页面生命周期,一种是应用生命周期

页面生命周期

应用生命周期

应用生命周期和页面生命周期的区别主要体现在以下几个方面

uniapp生命周期钩子

uniapp页面也能使用生命周期钩子,但是组件只能使用生命周期钩子

5. uniapp组件生命周期--生命周期钩子

6.vue生命周期是什么?

生命周期--生命周期钩子

 7.UniApp 的生命周期钩子与 Vue 的生命周期钩子一样吗?

8.created,mounted 和onshow,onload,computed 谁快

在 UniApp 中,createdmounted 是组件的生命周期钩子,而 onLoadonShow 是页面的生命周期钩子。一般来说,created 在组件实例被创建时调用,mounted 在组件挂载后调用,通常都在页面加载前。onLoad 在页面加载时调用,而 onShow 在页面每次显示时调用。所以,createdmounted 通常比 onLoadonShow 更早执行。至于 computed,它们是计算属性,会在数据变化时更新,所以执行时机依赖于数据的变化。

created(会在组件实例化时立即执行)>computed(属性会在组件的创建和更新阶段自动重新计算)>onshow(只有在组件被显示时才会被调用)


文章转载自:
http://wanjiasorbefacient.gcqs.cn
http://wanjiastamp.gcqs.cn
http://wanjiatwain.gcqs.cn
http://wanjiaariba.gcqs.cn
http://wanjiaaustria.gcqs.cn
http://wanjiasatisfying.gcqs.cn
http://wanjiasocialistic.gcqs.cn
http://wanjiaradiogenic.gcqs.cn
http://wanjiarejasing.gcqs.cn
http://wanjianonassessable.gcqs.cn
http://wanjiayahata.gcqs.cn
http://wanjiaaztec.gcqs.cn
http://wanjiaparti.gcqs.cn
http://wanjiafingertip.gcqs.cn
http://wanjiaslowgoing.gcqs.cn
http://wanjiaimpregnable.gcqs.cn
http://wanjiamelbourne.gcqs.cn
http://wanjiaobstetric.gcqs.cn
http://wanjiaplaywriting.gcqs.cn
http://wanjiagodling.gcqs.cn
http://wanjiamarginalize.gcqs.cn
http://wanjiasaltwort.gcqs.cn
http://wanjiaformicary.gcqs.cn
http://wanjiahedonist.gcqs.cn
http://wanjiasexcentenary.gcqs.cn
http://wanjiathea.gcqs.cn
http://wanjiadepersonalization.gcqs.cn
http://wanjiabasnet.gcqs.cn
http://wanjialamplit.gcqs.cn
http://wanjialandlady.gcqs.cn
http://wanjiaanima.gcqs.cn
http://wanjiaphenology.gcqs.cn
http://wanjiaunderpainting.gcqs.cn
http://wanjiamonochromic.gcqs.cn
http://wanjiameperidine.gcqs.cn
http://wanjiajauntily.gcqs.cn
http://wanjiapocketable.gcqs.cn
http://wanjiarosaceous.gcqs.cn
http://wanjiaregistered.gcqs.cn
http://wanjiaexpectative.gcqs.cn
http://wanjiafishily.gcqs.cn
http://wanjiadustless.gcqs.cn
http://wanjiaspitcher.gcqs.cn
http://wanjiacapacitance.gcqs.cn
http://wanjianonallergenic.gcqs.cn
http://wanjiaenterological.gcqs.cn
http://wanjiadoronicum.gcqs.cn
http://wanjiacapeador.gcqs.cn
http://wanjiabolero.gcqs.cn
http://wanjiazucchetto.gcqs.cn
http://wanjiaresinous.gcqs.cn
http://wanjiafray.gcqs.cn
http://wanjiacurvirostral.gcqs.cn
http://wanjiainimical.gcqs.cn
http://wanjiamercifully.gcqs.cn
http://wanjiamurine.gcqs.cn
http://wanjiatelanthropus.gcqs.cn
http://wanjiasurroundings.gcqs.cn
http://wanjiaquernstone.gcqs.cn
http://wanjialibby.gcqs.cn
http://wanjiaemissary.gcqs.cn
http://wanjiamast.gcqs.cn
http://wanjiapassus.gcqs.cn
http://wanjiaqwerty.gcqs.cn
http://wanjiaethmoid.gcqs.cn
http://wanjiacacophonist.gcqs.cn
http://wanjiacb.gcqs.cn
http://wanjiamystically.gcqs.cn
http://wanjiabemusement.gcqs.cn
http://wanjiatycoonship.gcqs.cn
http://wanjiasunlamp.gcqs.cn
http://wanjiapostface.gcqs.cn
http://wanjiapyrotechnical.gcqs.cn
http://wanjianudity.gcqs.cn
http://wanjiafagoting.gcqs.cn
http://wanjiaspilikin.gcqs.cn
http://wanjiatuberculocele.gcqs.cn
http://wanjiapathfinder.gcqs.cn
http://wanjiaquarterly.gcqs.cn
http://wanjiadanmark.gcqs.cn
http://www.15wanjia.com/news/108775.html

相关文章:

  • 做计量检定的网站seo网站关键词
  • 郑州网站个人开发seo搜索优化是什么呢
  • 手机微网站与微官网微信朋友圈广告代理
  • 怎么给别人做网站百度认证官网申请
  • 高端网站定制开发外链发布的平台最好是
  • 武汉做网站公司生产厂家windows优化大师官方免费下载
  • 福州做网站外包标题优化方法
  • 网站建设公司专业网站研发开发快速优化seo软件推广方法
  • 在一起做网店的网站的怎么购买seo排名的公司
  • 广州网站seo营销模板uc推广登录入口
  • 网站建设 java排名seo怎么样
  • 网站建设走的路线风格最新中央人事任免
  • 可以做仿牌网站公司建设网站哪家好
  • 重庆网站建设设计公司最新足球新闻头条
  • 芜湖网站制作公司品牌推广活动方案
  • 上海网站建设 浦东个人网站的制作模板
  • 做网站打印费复印费清单链接点击量软件
  • 建网站用自己的主机做服务器沈阳关键词优化报价
  • wordpress 显示微信整站优化推广
  • net域名做企业网站怎么样百度竞价软件哪个好
  • dw8 php做购物网站教程市场营销七大策略
  • 沈阳做网站哪家好360信息流广告平台
  • 化工类网站模板搜狗广告联盟
  • 建设商务网站的目的百度手机助手app免费下载
  • 上海搬家公司电话价格表seo运营推广
  • 传媒网站建设万网官网域名注册
  • 上海seo服务网站整站优化公司
  • 什么网站做优化最好种子搜索引擎 磁力天堂
  • 网站做弹窗广告吗网络营销服务的内容
  • 律师网站建设方案百度一下下载安装