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

长沙电子商务网站建设seo的形式有哪些

长沙电子商务网站建设,seo的形式有哪些,南京装修公司,登录后跳转到之前wordpress一、先上效果 二 方法 1、自定义底部tabbar 实现: https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html 官网去抄 简单写下:在代码根目录下添加入口文件 除了js 文件的list 需要调整 其他原封不动 代码&#xf…

一、先上效果

在这里插入图片描述

二 方法

1、自定义底部tabbar

实现:

https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html 官网去抄

简单写下:在代码根目录下添加入口文件 除了js 文件的list 需要调整 其他原封不动
在这里插入图片描述

代码:
js部分

Component({data: {selected: 0,color: "#7A7E83",selectedColor: "#0081FF",list: [{  // 同app.json下的tabbar列表"iconPath": "/assets/img/build.png","selectedIconPath": "/assets/img/buildSelect.png","pagePath": "/pages/index/index","text": "淘楼"},{"iconPath": "/assets/img/my.png","selectedIconPath": "/assets/img/selectMy.png","pagePath": "/pages/my/index","text": "我的"}]},attached() {},methods: {switchTab(e) {console.log(e.currentTarget)const data = e.currentTarget.datasetconst url = data.pathwx.switchTab({url})this.setData({selected: data.index})}}
})

json

{"component": true,"usingComponents": {}
}

wxml

<!--miniprogram/custom-tab-bar/index.wxml-->
<view class="tab-bar"><view class="tab-bar-border"></view><view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab"><image src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image><view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</view></view>
</view>

wxss

  position: fixed;bottom: 0;left: 0;right: 0;height: 48px;background: white;display: flex;padding-bottom: env(safe-area-inset-bottom);z-index: 99;
}.tab-bar-border {background-color: rgba(0, 0, 0, 0.33);position: absolute;left: 0;top: 0;width: 100%;height: 1px;transform: scaleY(0.5);
}.tab-bar-item {flex: 1;text-align: center;display: flex;justify-content: center;align-items: center;flex-direction: column;
}.tab-bar-item image {width: 27px;height: 27px;
}.tab-bar-item view {font-size: 10px;
}.tab-bar {position: fixed;bottom: 0;left: 0;right: 0;height: 48px;background: white;display: flex;padding-bottom: env(safe-area-inset-bottom);z-index: 99;
}.tab-bar-border {background-color: rgba(0, 0, 0, 0.33);position: absolute;left: 0;top: 0;width: 100%;height: 1px;transform: scaleY(0.5);
}.tab-bar-item {flex: 1;text-align: center;display: flex;justify-content: center;align-items: center;flex-direction: column;
}.tab-bar-item image {width: 27px;height: 27px;
}.tab-bar-item view {font-size: 10px;
}

2、 list 的中的页面 都需要在onShow中加入一下方法

    if (typeof this.getTabBar === 'function' &&this.getTabBar()) {this.getTabBar().setData({selected: 0})}

三、遮罩层 盖住底部tabbar 自己实现一个遮罩层或者使用组件 我这儿用的组件 只需要让z-index:的值大于99999 即可

<!-- 遮罩层 -->
<van-overlay show="{{ overlayShow }}" vertical z-index="{{999999}}"><view class="overlay-content"><van-loading type="spinner">加载中...</van-loading></view>
</van-overlay>
http://www.qdjiajiao.com/news/12423.html

相关文章:

  • 商务网站策划 网站目标与经营模式定位免费网站推广2023
  • 做毕业设计网站需要的工具网络营销七个步骤
  • 中国最好的公司排名seo分析网站
  • 建设自己的网站怎么做网站建设与网站设计
  • 连云港做网站建设网络营销策划推广方案
  • 制作网站需要什么知识关键词app下载
  • 枣阳网站建设跨境电商靠谱吗
  • 今天军事新闻最新消息详细seo准
  • 大数据营销系统软件免费seo提交工具
  • wordpress企业原创主题windows优化工具
  • 网站如何做快捷支付接口今日冯站长之家
  • 太原建站服务网站推广找哪家公司好
  • 提供网站建设的公司seo网络排名优化方法
  • 西安做网站xamokj最有效的app推广方式有哪些
  • 网站排名优化机构seo顾问服务公司站长
  • 专业营销的网站建设公司哪家好深圳百度推广联系方式
  • 移动端社区 wordpress百度seo排名如何提升
  • 现在找个网站这么难的吗阿里云万网域名查询
  • 百度统计会对原网站产生影响吗网站空间费用一年多少
  • 门户网站改版百度网站排名查询工具
  • 欧美男女做黄色网站网络广告名词解释
  • 什么网站做h5做得好惠州seo快速排名
  • 网站建设方案书ppt商务软文写作范文200字
  • 动漫设计专业学什么优化大师软件大全
  • 网址跳转网站东莞今天最新消息新闻
  • 关于网站建设的合同协议市场营销方案范文5篇
  • 盐城网站设计seo网站推广企业
  • 手机网站用单独做吗网络广告的特点
  • 盐城北京网站建设百度小说排行榜总榜
  • 大连网络备案做网站长沙优化科技