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

网站被镜像怎么做seo编辑培训

网站被镜像怎么做,seo编辑培训,网站建设与维护试题,常见的b2b网站有哪些很早之前就写过自定义头部,但是那时偷懒写死了,现在用插槽重新写了个 有两种形式: type1是完全自定义的,可以自己去组件改也可以用插槽改 type2是正常的返回标题和右边按钮,使用就是 title"标题" rightClic…

很早之前就写过自定义头部,但是那时偷懒写死了,现在用插槽重新写了个
有两种形式:
type1是完全自定义的,可以自己去组件改也可以用插槽改
type2是正常的返回标题和右边按钮,使用就是 title="标题" @rightClick = "函数",右边按钮是插槽,可以和下面例子一样用

效果图

类型1
在这里插入图片描述

类型2 的h5
在这里插入图片描述
类型2的小程序
在这里插入图片描述

使用

<myHead title="首页" type="2"><view slot="right"><text>提交</text></view>
</myHead>

组件代码

<template><view class="myHead"><!-- myHead的占位 --><view class="myHead_placeholder" :style="{height: addUnit(height + statusBarHeight,'px')}"></view><view class="myHead_fixed" :style="{'paddingRight': capsuleWidth + 'px'}"><!-- 状态栏 --><view class="status_bar" :style="{height: addUnit(statusBarHeight)}"></view><!-- 头部本体 --><slot><view v-if="type == 1" class="myHead_content" :style="{height: addUnit(height)}"><image src="/static/img/logo.png"></image><text>为牛只-屠宰全产业护航{{capsuleWidth}}</text></view><view v-else class="myHead_content2" :style="{height: addUnit(height)}"><view class="left" @click="leftClick"><text class="iconfont icon-left"></text></view><view class="content">{{title}}</view><view class="right" @click="rightClick"><text>提交</text></view></view></slot></view></view>
</template><script>export default {name: "myHead",props: {// 点击左侧区域(返回图标),是否自动返回上一页autoBack: {type: Boolean,default: false},title: {type: String | Number,default: '标题'},type: {type: String | Number,default: 2}},data() {return {// 状态栏statusBarHeight: 0,// 头部本体高度height: 44,// 如果有胶囊capsuleWidth: 0};},mounted() {// 手机状态栏的高度this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight || 0this.getNavBarHeight()},methods: {// 获取胶囊宽度getNavBarHeight() {// 小程序环境// #ifdef MP-WEIXINconst menuButtonInfo = uni.getMenuButtonBoundingClientRect();uni.getSystemInfo({success: (systemInfo) => {this.capsuleWidth = menuButtonInfo.width + systemInfo.screenWidth - menuButtonInfo.right; // 胶囊宽度}})// #endif// #ifdef H5this.capsuleWidth = 0// #endif},addUnit(num, unit = 'px') {return num + unit},// 点击左侧区域leftClick() {// 如果配置了autoBack,自动返回上一页this.$emit('leftClick')if (this.autoBack) {uni.navigateBack()}},// 点击右侧区域rightClick() {this.$emit('rightClick')},}}
</script><style lang="scss" scoped>.myHead {.myHead_placeholder {width: 100%;}.myHead_fixed {position: fixed;left: 0;right: 0;top: 0;z-index: 11;.myHead_content {display: flex;align-items: center;image {width: 150rpx;margin-right: 10rpx;}text {font-size: 24rpx;color: rgba(29, 37, 65, 0.5);}}.myHead_content2 {display: flex;align-items: center;justify-content: space-between;padding: 0 20rpx;.left {font-size: 28rpx;}.content {flex: 1;text-align: center;font-size: 32rpx;}.right {font-size: 28rpx;}}}}
</style>
http://www.dtcms.com/wzjs/371900.html

相关文章:

  • 五星花园网站建设兼职如何做营销活动
  • 做中学网站成都seo优化推广
  • 沁县网站建设学生制作个人网站
  • 知名企业网站搭建房地产销售怎么找客户
  • wordpress站点名没有更改全网关键词云查询
  • 佛山网站建设哪里有saas建站平台
  • 网站建设优化兼职在家下载关键词推广软件
  • 网站媒体给房开做内容推广站长之家产品介绍
  • wap门户网站百度关键词优化怎么做
  • 宿迁建设网站深圳竞价托管公司
  • 郑州做网站hnqfu百度电脑端入口
  • 花钱做网站不给部署深圳网络营销策划
  • 网上三维展馆网站是怎么做的seo搜索引擎优化的内容
  • 建立一个网站用英语怎么说百度爱采购怎么推广
  • 动态网站开发考证答案百度手机版网页
  • 广州有哪些做网站的公司seo科技网
  • 深圳专业做网站的公司有哪些seo外包是什么意思
  • 沈阳世纪兴网站制作公司网页代码
  • 单页网站制作全套教程软文营销经典案例
  • asp单页网站源码渠道推广平台
  • 网站做百度推广多少钱百度竞价app
  • 男女做微电影网站sem竞价托管代运营
  • 怎么网上接网站开发单自己做b站2020推广网站
  • 南宁cms建站广东清远今天疫情实时动态防控
  • 微信导航网站如何建设社群运营的经典案例
  • 独立网站b2c2022当下社会热点话题
  • 网站运营频道内容建设百度小说搜索热度排行榜
  • 百货批发网站建设今日国内新闻头条15条
  • 很小众却很惊艳的公众号名字重庆seo优化效果好
  • 我的网站百度怎么搜索不到了自己怎么免费做百度推广