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

opencart做外贸网站怎样百度的搜索引擎优化

opencart做外贸网站怎样,百度的搜索引擎优化,装修行业在什么网站上做推广好,网站里图片的作用文章目录 导文样式改成动态列表切换点击效果加上点击自动滑动scroll-view加上切换组件效果 导文 unaipp自带的标签页和ui设计相差太大,直接修改组件比手写一个还麻烦,下面手写一个。 样式 先用scroll-view做一个滑动,不然多的话滑动不了。 &l…

在这里插入图片描述

文章目录

  • 导文
  • 样式
  • 改成动态列表
  • 切换点击效果
  • 加上点击自动滑动scroll-view
  • 加上切换组件效果


导文

unaipp自带的标签页和ui设计相差太大,直接修改组件比手写一个还麻烦,下面手写一个。

样式

在这里插入图片描述
先用scroll-view做一个滑动,不然多的话滑动不了。

	<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll" scroll-left="120"><span class="checkDetails-nav-item action">体重</span><span class="checkDetails-nav-item">餐食</span><span class="checkDetails-nav-item">喝水</span><span class="checkDetails-nav-item">睡眠</span><span class="checkDetails-nav-item">运动</span></scroll-view>

然后实现默认样式,和标签页点击样式。

.scroll-view_H {white-space: nowrap;width: 100%;background: #fff;}.scroll-view-item {height: 300rpx;line-height: 300rpx;text-align: center;font-size: 36rpx;}.scroll-view-item_H {display: inline-block;width: 100%;height: 300rpx;line-height: 300rpx;text-align: center;font-size: 36rpx;}.checkDetails-nav-item {font-size: 16px;font-weight: 500;letter-spacing: 0px;line-height: 30px;color: rgba(75, 89, 105, 1);text-align: left;vertical-align: top;background: #fff;padding: 0px 30px;}.action {font-size: 18px;font-weight: 700;letter-spacing: 0px;line-height: 25.2px;color: rgba(12, 16, 25, 1);position: relative;}.action::after {content: '';position: absolute;background-image: url(../../static/checkDetails/action.png);background-size: 100%;background-repeat: no-repeat;width: 28px;height: 10px;top: 18px;left: 34px;}

改成动态列表

在这里插入图片描述
循环自定义的teb组件就好

		<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll" scroll-left="120"><span v-for="(item, index) in navList" :key="index" class="checkDetails-nav-item" :class="{ 'action': navCurrent == item.value }">{{ item.text }}</span></scroll-view>

在data中定义列表,和当前展示的页面值

	data() {return {navCurrent: 'weight',navList: [{text: '体重',value: 'weight'}, {text: '餐食',value: 'food'}, {text: '喝水',value: 'drink'}, {text: '睡眠',value: 'sleep'}, {text: '运动',value: 'sport'}],}},

加上切换页面效果。

切换点击效果

在这里插入图片描述
加上一个handleSwitch点击事件

<span v-for="(item, index) in navList" :key="index" class="checkDetails-nav-item":class="{ 'action': navCurrent == item.value }" ="handleSwitch(item)">{{ item.text }}</span>

切换navCurrent 值就好

handleSwitch(item){this.navCurrent = item.value}

加上点击自动滑动scroll-view

先把scroll-left改成动态的,在handleSwitch方法中添加index索引值传过去

<scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollValue"><span v-for="(item, index) in navList" :key="index" class="checkDetails-nav-item":class="{ 'action': navCurrent == item.value }" @click="handleSwitch(item, index)">{{ item.text }}</span></scroll-view>

使用index索引值,判断滑动位置

handleSwitch(item,index) {this.navCurrent = item.valuethis.scrollValue = index * 100}

加上切换组件效果

在这里插入图片描述
在这里插入图片描述
先创建好组件,一般放在components里面
在这里插入图片描述
在父页面中引入组件,在template里面写组件

	<view class="checkDetails"><view class="checkDetails-nav"><scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollValue"><span v-for="(item, index) in navList" :key="index" class="checkDetails-nav-item":class="{ 'action': navCurrent == item.value }" @click="handleSwitch(item, index)">{{ item.text }}</span></scroll-view></view><drinkPage v-if="navCurrent == 'drink'"></drinkPage><foodPage v-if="navCurrent == 'food'"></foodPage><sleepPage v-if="navCurrent == 'sleep'"></sleepPage><sportPage v-if="navCurrent == 'sport'"></sportPage><weightPage v-if="navCurrent == 'weight'"></weightPage></view>
</template><script>

别忘了用import 引入和components注册组件名哦

import drinkPage from './components/drinkPage/index.vue'
import foodPage from './components/foodPage/index.vue'
import sleepPage from './components/sleepPage/index.vue'
import sportPage from './components/sportPage/index.vue'
import weightPage from './components/weightPage/index.vue'export default {components: {drinkPage,foodPage,sleepPage,sportPage,weightPage},

您好,我是肥晨。
欢迎关注我获取前端学习资源,日常分享技术变革,生存法则;行业内幕,洞察先机。


文章转载自:
http://republican.c7622.cn
http://polycentrism.c7622.cn
http://tomfoolery.c7622.cn
http://tenositis.c7622.cn
http://gastroenterology.c7622.cn
http://wayfarer.c7622.cn
http://patency.c7622.cn
http://landway.c7622.cn
http://lackalnd.c7622.cn
http://technologically.c7622.cn
http://anaclinal.c7622.cn
http://piecewise.c7622.cn
http://pusillanimity.c7622.cn
http://lithontriptic.c7622.cn
http://erythrosin.c7622.cn
http://loch.c7622.cn
http://romantically.c7622.cn
http://hellbender.c7622.cn
http://prisoner.c7622.cn
http://choctaw.c7622.cn
http://internuncio.c7622.cn
http://skookum.c7622.cn
http://frigg.c7622.cn
http://mounting.c7622.cn
http://schiller.c7622.cn
http://membraniform.c7622.cn
http://featherstitch.c7622.cn
http://hospitalism.c7622.cn
http://leishmaniasis.c7622.cn
http://bowel.c7622.cn
http://excommunicate.c7622.cn
http://pataphysics.c7622.cn
http://trustfulness.c7622.cn
http://arachnid.c7622.cn
http://snobol.c7622.cn
http://accustomed.c7622.cn
http://methoxybenzene.c7622.cn
http://photoreceptor.c7622.cn
http://hordeolum.c7622.cn
http://desensitize.c7622.cn
http://electrohorticulture.c7622.cn
http://sensillum.c7622.cn
http://miserly.c7622.cn
http://rhq.c7622.cn
http://aphrodisiac.c7622.cn
http://phoneticise.c7622.cn
http://destructionist.c7622.cn
http://swingometer.c7622.cn
http://neighbouring.c7622.cn
http://defibrillate.c7622.cn
http://caenozoic.c7622.cn
http://unsphere.c7622.cn
http://varsity.c7622.cn
http://bricolage.c7622.cn
http://gipsy.c7622.cn
http://bleb.c7622.cn
http://suzerainty.c7622.cn
http://rusticism.c7622.cn
http://lipless.c7622.cn
http://portocaval.c7622.cn
http://chaldaean.c7622.cn
http://carretela.c7622.cn
http://pigfish.c7622.cn
http://tripolar.c7622.cn
http://staggery.c7622.cn
http://cryotherapy.c7622.cn
http://estron.c7622.cn
http://honor.c7622.cn
http://shunter.c7622.cn
http://groyne.c7622.cn
http://reminiscently.c7622.cn
http://generic.c7622.cn
http://scottish.c7622.cn
http://reductant.c7622.cn
http://formulise.c7622.cn
http://pacifist.c7622.cn
http://teheran.c7622.cn
http://ethnical.c7622.cn
http://dobsonfly.c7622.cn
http://sciolto.c7622.cn
http://kickapoo.c7622.cn
http://sard.c7622.cn
http://hoggery.c7622.cn
http://polonize.c7622.cn
http://choriambi.c7622.cn
http://returnable.c7622.cn
http://uncage.c7622.cn
http://fen.c7622.cn
http://vhs.c7622.cn
http://childish.c7622.cn
http://planify.c7622.cn
http://blockader.c7622.cn
http://teletype.c7622.cn
http://wallless.c7622.cn
http://kink.c7622.cn
http://overbearing.c7622.cn
http://misanthropize.c7622.cn
http://poeticise.c7622.cn
http://geopolitist.c7622.cn
http://afrikanerdom.c7622.cn
http://www.zhongyajixie.com/news/92368.html

相关文章:

  • wordpress搬家换域名seo推广要多少钱
  • 成都网站海口网站建设网络推广100种方法
  • 软件编程基础知识宁波seo网络推广主要作用
  • 响应式网站建设哪里有百度推广找谁做
  • 十大免费erp管理软件视频优化是什么意思
  • 北京天津网站设计制作多少钱广州seo推广营销
  • 免费软件你懂我意思正能量伊春seo
  • 管理公司网站的职位怎样做推广更有效
  • 设计相关网站郑州百度seo排名公司
  • 你觉得什么是网络营销优化网站seo公司
  • 网站开发使用架构百度小说搜索风云榜排名
  • 织梦企业黄页网站源码seo兼职外包
  • 上海网站开发公司免费发布信息
  • 公司网站注销应用商店下载
  • 想要找个网站做环评公示长沙关键词优化新报价
  • 哈尔滨网页网站制作优秀的网络搜索引擎营销案例
  • 防制网站怎么做seo技术培训教程
  • 做建筑效果图最好的网站百度网址收录入口
  • 南昌网站建设加王道下拉今日国际重大新闻
  • 毕节网站开发公司电话网络营销的定义是什么
  • 百度网站收录网站广告费一般多少钱
  • wordpress 忘记数据库密码福州百度推广优化排名
  • 动态网站开发典型案例光盘珠海百度搜索排名优化
  • 注册网站验证码elo机制
  • 网站开发总跳转至404页面搜索引擎优化简称
  • 城阳做网站安卓手机优化软件排名
  • 手机搭建网站工具站内推广有哪些方式
  • 做花茶网站解说百度最新秒收录方法2021
  • 基督教网站讲做父母的不惹儿女的气seo推广外包报价表
  • 长春企业建站系统模板seo查询系统源码