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

重庆网站seo公司哪家好多城市网站建设

重庆网站seo公司哪家好,多城市网站建设,wordpress跟换域名,北京大兴网站建设公司效果如下图所示 首页有导航栏#xff0c;搜索框#xff0c;和视频列表#xff0c; 导航栏如下图 搜索框如下图 视频列表如下图 文件目录 视频首页页面代码如下 template view classvideo-home !-- 搜索栏 -- view class…效果如下图所示 首页有导航栏搜索框和视频列表 导航栏如下图 搜索框如下图 视频列表如下图 文件目录 视频首页页面代码如下 template   view classvideo-home     !-- 搜索栏 --     view classsearch-bar       input typetext placeholder搜索视频... v-modelsearchQuery inputhandleSearch /       button clickhandleSearch搜索/button     /view     !-- 视频分类导航 --     view classcategory-tabs       scroll-view scroll-x classtabs         view v-for(category, index) in categories :keyindex                :class[tab-item, { active: activeCategory category }]                clickchangeCategory(category)           {{ category }}         /view       /scroll-view     /view    !-- 视频列表 --    view classvideo-list      block v-for(item, index) in filteredVideos :keyindex        view classvideo-item clickgoToVideoDetail(item.id)          video refvideos :srcitem.videoUrl classvideo-thumbnail controls/video          view classvideo-content            text classvideo-title{{ item.title }}/text            text classvideo-summary{{ item.summary }}/text            text classvideo-date{{ formatDate(item.date) }}/text            text classvideo-duration{{ formatDuration(item.duration) }}/text          /view        /view      /block    /view   /view /template script export default {   data() {     return {       searchQuery: ,       activeCategory: 推荐,       categories: [推荐, 热门, 最新, 科技, 娱乐, 生活],       videoItems: [         // 示例视频条目请替换为实际数据或从后端获取的数据         { id: 1, title: 视频标题1, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/1.mp4, category: 推荐 },         { id: 2, title: 视频标题2, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/2.mp4, category: 热门 },        { id: 3, title: 视频标题3, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/3.mp4, category: 推荐 },        { id:4, title: 视频标题4, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/4.mp4, category: 热门 },        { id: 5, title: 视频标题5, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/5.mp4, category: 推荐 },        { id: 6, title: 视频标题6, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/6.mp4, category: 热门 },        { id:7, title: 视频标题7, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/7.mp4, category: 推荐 },        { id:8, title: 视频标题8, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/8.mp4, category: 热门 },        { id:9, title: 视频标题9, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/live1.mp4, category: 推荐 },        { id: 10, title: 视频标题10, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/live2.mp4, category: 热门 },        { id: 1, title: 视频标题1, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/1.mp4, category: 推荐 },         { id: 2, title: 视频标题2, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/2.mp4, category: 热门 },        { id: 3, title: 视频标题3, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/3.mp4, category: 推荐 },        { id:4, title: 视频标题4, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/4.mp4, category: 热门 },        { id: 5, title: 视频标题5, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/5.mp4, category: 推荐 },        { id: 6, title: 视频标题6, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/6.mp4, category: 娱乐 },        { id:7, title: 视频标题7, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/7.mp4, category: 科技 },        { id:8, title: 视频标题8, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/8.mp4, category: 最新 },        { id:9, title: 视频标题9, summary: 视频摘要..., date: new Date(), duration: 360, videoUrl: /static/videos/live1.mp4, category: 推荐 },        { id: 10, title: 视频标题10, summary: 视频摘要..., date: new Date(), duration: 540, videoUrl: /static/videos/live2.mp4, category: 热门 },               ],       currentPlaying: null // 用来追踪当前正在播放的视频元素     };   },   computed: {     filteredVideos() {       return this.videoItems.filter(item           (this.searchQuery ? item.title.includes(this.searchQuery) : true)         (this.activeCategory 推荐 || item.category this.activeCategory)       );     }   },   methods: {       goToVideoDetail(id) {             uni.navigateTo({               url: /pages/VideoDetail/VideoDetail?id${id}             });           },     handleSearch(event) {       // 如果需要对输入进行实时响应可以在这里实现       this.searchQuery event.target.value;     },     changeCategory(category) {       this.activeCategory category;     },     playVideo(videoUrl) {       const videos this.$refs.videos || [];       videos.forEach(video {         if (video.src videoUrl this.currentPlaying ! video) {           this.pauseCurrent();           video.play();           this.currentPlaying video;         } else if (this.currentPlaying video) {           video.pause();           this.currentPlaying null;         }       });     },     pauseCurrent() {       if (this.currentPlaying) {         this.currentPlaying.pause();       }     },     formatDate(date) {       const options { year: numeric, month: long, day: numeric };       return new Intl.DateTimeFormat(zh-CN, options).format(date);     },     formatDuration(seconds) {       const minutes Math.floor(seconds / 60);       const remainingSeconds seconds % 60;       return ${minutes}:${remainingSeconds.toString().padStart(2, 0)};     }   } }; /script style scoped /* 样式 */ .video-home {   padding: 100px; } .search-bar {   display: flex;   align-items: center;   margin-bottom: 10px; } .search-bar input {   flex: 1;   padding: 8px;   border: 1px solid #ccc;   border-radius: 4px; } .search-bar button {   margin-left: 5px;   padding: 8px 16px; } .category-tabs {   margin-bottom: 10px; } .tabs {   white-space: nowrap; } .tab-item {   display: inline-block;   padding: 8px 16px;   cursor: pointer; } .tab-item.active {   color: #3cc51f;   font-weight: bold; } .video-list .video-item {   display: flex;   margin-bottom: 10px;   padding: 10px;   background-color: #fff;   border-radius: 4px; } .video-thumbnail {   width: 400px;   height: 400px;   margin-right: 10px;   border-radius: 4px; } /* 调整视频缩略图大小 */ .video-thumbnail {   width: 100%; /* 让缩略图占满整个视频容器 */   height: auto; /* 维持视频的原始比例 */   border-radius: 8px; /* 匹配视频项的圆角 */   margin-right: 20px; /* 增大右侧外边距给文字内容留出更多空间 */ } .video-content {   flex: 2; } .video-title {   font-size: 16px;   font-weight: bold;   margin-bottom: 5px; } .video-summary {   font-size: 14px;   color: #666; } .video-date, .video-duration {   font-size: 12px;   color: #999; } .video-duration {   margin-top: 5px; } /* 视频列表样式 */ .video-list {   display: flex;   flex-wrap: wrap; /* 允许换行 */   gap: 20px; /* 设置项目之间的间距 */   margin: -10px; /* 调整外边距以对齐内部间距 */ } /style
http://www.tj-hxxt.cn/news/133544.html

相关文章:

  • 宁波自助模板建站余姚网站建设服务
  • 打开陕西建设厅网站电脑制作网站教程
  • 做网站找什么公司好网页设计范例
  • 网站域名怎么选择深圳市深度设计咨询有限公司
  • 建立网站赚钱开发一个彩票网站多少钱
  • 17模板网站数字营销传播
  • 太仓住房和城乡建设局网站有优惠券网站 怎么做代理
  • 网站与微信区别宝塔window搭建wordpress
  • 安庆做网站企业网站做qq链接
  • 闵行网站搭建哪里有网站模板大全 优帮云
  • 揭阳专业做网站深圳系统网站开发
  • 开发区网站制作公司关于企业网站建设数据现状分析
  • 网站刷新新前台是什么意思龙华龙岗光明最新通告
  • 潍坊网站排名推广wordpress标签3d
  • 网站开发资源网太原王建设
  • 网站制作不用备案做一个网站中的搜索功能怎么做
  • html 模板网站怎么把网站改为正在建设中
  • 北京建站公司兴田德润很好西安微信公众号制作
  • 播视频网站开发外包公司
  • 广州高端网站定制开发价格管理咨询师考试
  • 做网站商城需要申请商标吗wordpress微信公众号采集插件
  • 郑州一建集团公司官网珠海百度搜索排名优化
  • 制作网站的完整步骤天津市市建设与管理局网站
  • 深圳企业做网站响应式网站模板多少钱
  • 郑州航空港建设局网站微信做一个小程序需要多少钱
  • 中国建设网官方网站地址建设一个网站需要些什么材料
  • 互诺 网站好吗重庆梁平网站建设公司
  • 长沙网站搜索引擎优化wordpress图片显示距离
  • 网站排名与什么有关系优化关键词排名
  • 河北建设工程造价信息网站最新项目加盟代理