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

网站建设的问题疑问wordpress在php下安装教程

网站建设的问题疑问,wordpress在php下安装教程,网站推广服务网址,注册的网站一、实现堆叠卡片轮播图: 需求: 实现堆叠轮播图效果堆叠到后面的图片有虚化效果可以在堆叠图片上写文字或叠加图片等效果可以手动滑动#xff0c;也可以定时自动轮播 二、代码实现#xff1a; 1.封装一个组件myswiper.vue !-- 折叠轮播图 组件-- template也可以定时自动轮播 二、代码实现 1.封装一个组件myswiper.vue !-- 折叠轮播图 组件-- templateview classswpbigview classswiperPanel refswiperPanel touchstartstartMove touchendendMoveview classswiperItem v-for(item, index) in swiperList :keyindex :style{transform: itemStyle[index].transform, zIndex: itemStyle[index].zIndex, opacity: itemStyle[index].opacity}view classchildrenview classpicimage classpici :srcitem.url/imageimage classbanner_signal src../../static/banner_signal.png mode/imageview classswpnew标题/view/view/view/view/view/view /templatescriptvar timer;export default {props: {swiperList: {type: Array,default: ()[{type: Array,url: ../../static/ceshi1.png,}, {type: Array,url: ../../static/ceshi2.png,}, {type: Array,url: ../../static/ceshi3.png,}]}},data() {return {slideNote: {x: 0,y: 0},screenWidth: 0,itemStyle: []};},created() {var macInfo uni.getSystemInfoSync();this.screenWidth macInfo.screenWidth;// 计算swiper样式this.swiperList.forEach((item, index) {this.itemStyle.push(this.getStyle(index))})timer setInterval((){this.rightSlider();},3000)},methods: {rightSlider(){var newList JSON.parse(JSON.stringify(this.itemStyle));var last [newList.pop()]newList last.concat(newList)this.itemStyle newList;},getStyle(e) {if (e this.swiperList.length / 2) {var right this.swiperList.length - ereturn {transform: scale( (1 - right / 10) ) translate(- (right * 9) %,0px),zIndex: 9999 - right,opacity: 0.5 / right}} else {return {transform: scale( (1 - e / 10) ) translate( (e * 9) %,0px),zIndex: 9999 - e,opacity: 0.5 / e}}},startMove(e) {clearInterval(timer);this.slideNote.x e.changedTouches[0] ? e.changedTouches[0].pageX : 0;this.slideNote.y e.changedTouches[0] ? e.changedTouches[0].pageY : 0;},endMove(e) {timer setInterval((){this.rightSlider();},3000)var newList JSON.parse(JSON.stringify(this.itemStyle));if ((e.changedTouches[0].pageX - this.slideNote.x) 0) {// 向左滑动var last [newList.pop()]newList last.concat(newList)} else {// 向右滑动newList.push(newList[0])newList.splice(0, 1)}this.itemStyle newList}}} /scriptstyle langscss.swpbig{overflow: hidden;}.swiperPanel {margin-top: 200upx;height: 680upx;width: 686upx;overflow: hidden;position: relative;margin-left:80upx;.swiperItem {height: 100%;width: 100%;position: absolute;top: 0;left: 0upx;transition: all .5s;.children {// height: 100%;width: 570upx;margin: 2upx 160upx 2upx 0;position: relative;.pic {position: relative;height: 645rpx;width: 560rpx;border-radius: 10upx;}.pici{position: absolute;height: 645rpx;width: 560rpx;border-radius: 10upx; }.banner_signal{position: absolute;height: 645rpx;width: 560rpx;top: 0;}.swpnew{position: absolute;height: 63rpx;font-size: 45rpx;font-weight: bold;color: #FFF;line-height: 53rpx;right: 28rpx;margin-top: 12rpx;letter-spacing: 5rpx;}}}} /style 2.在需要的页面引用 templateview classmySwiper :swiperListswiperList/mySwiper /view /templatescript// 组件导入import mySwiper from ../../components/myswiper.vueexport default {// 组件注册components: {blackSwiper},data() {return {//组件数据处理swiperList: [{type: Array,url: https://copyright.bdstatic.com/vcg/creative/cc9c744cf9f7c864889c563cbdeddce6.jpgh_1280,}, {type: Array,url: https://inews.gtimg.com/om_bt/OjPq2cnMN_-ivDKjxpCZ2kk_ab8YC5VMnL-0pQ21fUvd4AA/1000,}, {type: Array,url: https://inews.gtimg.com/om_bt/OuevRi3lDJoCccAqM17UARGbNlk9CRf3pGPv7He7zA8yYAA/1000,}]};},} /script完成~
http://www.pierceye.com/news/938485/

相关文章:

  • 做英文兼职的网站四川路桥建设股份有限公司网站
  • 电商网站开发的意义传统营销
  • 怎么自己创建网站或者app足球世界排名
  • 营站快车代理平台跑腿网站开发
  • 免费自助建站系统下载html5手机网站制作
  • 工信部网站怎么查网址邹平县建设局网站
  • 郑州有学网站制作网站背景修改
  • 免费建建网站域名没过期 网站打不开怎么办
  • 单页企业网站模板WordPress社团展示
  • 网站建设需要具备什么条件网站首页新世纪建设集团有限公司
  • 网站怎样做超链接si设计公司
  • 婚恋网站排名前三wordpress首页设置成文章还是页面
  • 制作网站 优帮云一键提交各大收录
  • 网站要怎么做才专业2022电商平台用户排行榜
  • 男男做暧网站免费网站建设期末论文
  • 电子政务门户网站建设wordpress 导入
  • 江苏建设监理协会网站网站建设siteserver
  • 家庭做网站做网站服务器可以挂到外地么
  • 做相册的网站 网易wordpress云服务器
  • 国内网站没备案自己做外贸购物网站
  • 国外h5网站模板下载长沙快速建站模板
  • 湛江网站建设方案找工程项目
  • 孝感住房和城乡建设部网站深圳市做网站公司
  • 网站开发环境配置做一个信息网站多少钱
  • 小企业网站建设的小知识wordpress显示关闭评论框
  • vue.js 可以做网站吗注册一个公司一年费用
  • 软件开发网站策划方案百度网站怎么用
  • 网站分页符素材wordpress自定义密码
  • 建设银行公积金预约网站首页大宗商品交易平台政策
  • 口碑好的秦皇岛网站建设哪里有沙漠网站建设