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

网站空间怎样设置用户名和密码百度关键词排名优化

网站空间怎样设置用户名和密码,百度关键词排名优化,wordpress带汉字图片不显示,定制做网站文章目录 1. 实现效果2. 精简版核心代码3. 完整功能点#xff08;本文章不写#xff0c;只写核心代码#xff09; 1. 实现效果 2. 精简版核心代码 使用的 vue3 vant4组件使用van-swipe进行轮播图切换实现 templatediv :style{width: width px,overflo… 文章目录 1. 实现效果2. 精简版核心代码3. 完整功能点本文章不写只写核心代码 1. 实现效果 2. 精简版核心代码 使用的 vue3 vant4组件使用van-swipe进行轮播图切换实现 templatediv :style{width: width px,overflow: hidden,} classcontainervan-swipe :looptrue vertical :heightheight :widthwidth :show-indicatorsfalse changeonChange:style{ height: height px }van-swipe-item v-for(item, index) in videoList :keyindex classswiper-slide-itemdiv clickonVideoClick(item, index) z-index1 classswiperItemVideovideo classvideoPlayer :idvideoPlayer_ index refplayer :keyindex :posteritem.poster:srcitem.src :widthwidth autoplay :mutedmuteding loop x5-video-player-typeh5webkit-playsinlinetrue x-webkit-airplaytrue x5-video-orientationportraintplaysInlinetrue x5-video-player-fullscreenportraint x5-video-ignore-metadatatrue/videovan-image v-if!playing classplay w-[40px] h-[40px] :srcgetAssetsFile(icon/play.png) //divShortsBottom refbottomRef :itemitem //van-swipe-item/van-swipe/div /template script setup langts nameSetting import {getAssetsFile } from /utils/tool const player ref(null); const currentIndex ref(0); const playing ref(true); const muteding ref(true) const width ref(window.innerWidth); const height ref(window.innerHeight); let bottomRef ref(null) let bottomHeight ref(0); const currentVideoInfo ref({videoId: , });/*** 切换视频*/ const onChange (index) {console.log(index, index)currentVideoInfo.value {videoId: };const preVideoId videoPlayer_ currentIndex.value;const preVideo: any document.getElementById(preVideoId);if (preVideo) preVideo.pause();const nextVideoId videoPlayer_ index;const nextVideo: any document.getElementById(nextVideoId);if (nextVideo) nextVideo.play();currentIndex.value index;player.value nextVideo;playing.value trueif (index videoList.length - 1) {console.log(没有更多了)} }; /*** 播放|暂停*/ const onVideoClick (item, index) {const video: any document.getElementById(videoPlayer_ index);if (video playing.value) {video.pause();playing.value false;} else {video.play();playing.value true;} };onMounted(() {if (bottomRef.value) {console.log(bottomRef.value[0].bottomHeight, 1)bottomHeight.value bottomRef.value[0].bottomHeight}const index currentIndex.value;const videos: any document.querySelectorAll(video);for (const video of videos) {let videoId videoPlayer_ index;if (video video.id video.id ! videoId) {video.pause();} else {player.value video;}} });onBeforeUnmount(() {const videos: any document.querySelectorAll(video);for (const video of videos) {if (video video.id) {video.pause();}} });/*** 短视频列表*/ const videoList [{videoId: Date.now() 1,title: 抖音美女主播JK超短裙学生妆美女跳舞展示爱了爱了。,poster: http://img01.sogoucdn.com/app/a/201023/27e5400e26fbef1ea32f9aff60c0b015,src: https://txmov2.a.yximgs.com/upic/2020/11/08/19/BMjAyMDExMDgxOTQxNTlfNTIzNDczMzQ0XzM4OTQ1MDk5MTI4XzFfMw_b_Bc770a92f0cf153407d60a2eddffeae2a.mp4,uploadTime: 2023-11-08 19:41,ipLocation: 上海,author: {authorId: 101,avatar: https://i02piccdn.sogoucdn.com/4f85fc70df81d04a,nickName: 陌路,genderName: 男} }, {videoId: Date.now() 2,title: 御姐美女抖音作品来个自拍视频把好美啊。,poster: http://img02.sogoucdn.com/app/a/201023/0866f6a339e58d647eb476f72045e980,src: https://txmov2.a.yximgs.com/upic/2020/10/02/09/BMjAyMDEwMDIwOTAwMDlfMTIyMjc0NTk0Ml8zNjk3Mjg0NjcxOF8xXzM_b_B28a4518e86e2cf6155a6c1fc9cf79c6d.mp4,uploadTime: 2023-10-02 09:41,ipLocation: 贵州,author: {authorId: 102,avatar: http://img02.sogoucdn.com/app/a/201023/0866f6a339e58d647eb476f72045e980,nickName: 御姐呀,genderName: 女} }, {videoId: Date.now() 3,title: 抖音主播可爱妹子新学的舞蹈超可爱的美女主播。,poster: https://i02piccdn.sogoucdn.com/2acf176d90718d73,src: https://txmov6.a.yximgs.com/upic/2020/08/23/00/BMjAyMDA4MjMwMDMyNDRfMTYzMzY5MDA0XzM0ODI4MDcyMzQ5XzFfMw_b_B9a1c9d4e3a090bb2815994d7f33a906a.mp4,uploadTime: 2023-08-23 00:41,ipLocation: 广州,author: {authorId: 103,avatar: https://i02piccdn.sogoucdn.com/2acf176d90718d73,nickName: 野花猫,genderName: 女} }, {videoId: Date.now() 4,title: 多个美女带着遮阳帽出去散步自拍视频好好看。,poster: https://i02piccdn.sogoucdn.com/45c34c84c106bbb7,src: https://alimov2.a.yximgs.com/upic/2020/07/02/14/BMjAyMDA3MDIxNDUyMDlfOTExMjIyMjRfMzE1OTEwNjAxNTRfMV8z_b_Bf3005d42ce9c01c0687147428c28d7e6.mp4,uploadTime: 2023-07-02 14:41,ipLocation: 山西,author: {authorId: 104,avatar: https://i02piccdn.sogoucdn.com/45c34c84c106bbb7,nickName: 蓝姬,genderName: 女} }, ]; /script style langless scoped .container {display: flex;flex-direction: column;overflow: hidden;.swiper-wrapper {flex: 1;}.swiper-slide-item {display: flex;flex-direction: column;width: 100%;.swiperItemVideo {z-index: 1;flex: 1;overflow-y: auto;width: 100%;position: relative;.play {position: absolute;z-index: 2;content: ;top: 50%;left: 50%;transform: translate(-50%, -50%);animation: move 0.3s linear alternate;}}.videoPlayer {background: #000;height: 100%;z-index: 2;}} }keyframes move {0% {transform: translate(-50%, -50%) scale(2);opacity: 0;}100% {transform: translate(-50%, -50%) scale(1);opacity: 1;} } /styleShortsBottom 组件代码 templatediv classvideoInfo refbottomRefdiv classtop mb-[8px]van-image classlogo w-[40px] h-[40px] mr-[8px] round :srcgetAssetsFile(logo.png) /span classnickName mr-[12px]{{ item.author.nickName }}/spandiv classbtn-content clickFollowvan-button typeprimary sizesmall classbtnFollow/van-button/divdiv classcloseSoundvan-image classlogo w-[16px] h-[16px] :srcgetAssetsFile(icon/closeSound.png) //div/divvan-text-ellipsis classtitle :contentitem.title //div /template script setup langtsimport { ref, onMounted } from vue;import { getAssetsFile } from /utils/toolinterface Props {item : any;}const props withDefaults(definePropsProps(), {item: {},});let bottomRef ref(null)let bottomHeight ref(0)const Follow (){console.log(关注)}onMounted(() {if (bottomRef.value) {bottomHeight.value bottomRef.value.offsetHeight}});defineExpose({ bottomHeight })//暴露子组件的方法或者数据 /scriptstyle langless scoped.videoInfo {background: #161616;color: #f5f5f5;padding: 16px 20px 34px 16px;text-align: left;position: relative;::after {position: absolute;display: block;content: ;bottom: 0px;left: 0;width: 100%;height: 0px;background: red;z-index: 1;}.top {display: flex;justify-content: flex-start;align-items: center;.nickName {font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;font-weight: 700;font-size: 14px;color: #FFFFFF;line-height: 14px;}.closeSound {margin-left: auto;width: 32px;height: 32px;padding: 8px;border-radius: 50%;background: rgba(255, 255, 255, 0.1);}}.title {font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;font-weight: 400;font-size: 14px;color: #FFFFFF;line-height: 14px;}} /style3. 完整功能点本文章不写只写核心代码 视频点赞视频分享视频用户基础信息视频暂停/播放视频声音控制上下切换视频视频封面图设置
http://www.w-s-a.com/news/224670/

相关文章:

  • 网络营销策划名词解释泉州百度推广排名优化
  • 一键生成网站的软件互联网营销师是干什么
  • 网站后台管理水印怎么做手机优化设置
  • 哪个网站做图文素材多wordpress++优化
  • 建设网站就选用什么样的公司网站类型分类有哪些
  • 找平面设计师网站网站建设须知
  • 建设联结是不是正规网站wordpress 微博同步
  • 瑞安微网站建设广州推广
  • 做旅游宣传网站的流程图中国企业集成网电子商务
  • 开发商城网站开发成交功能网站
  • 网站建设公司专业公司排名搭建网站的企业
  • 网站建设难吗海南智能网站建设报价
  • 企业网站建设选题的依据及意义校园网站建设的论文
  • 网站版面设计方案水电维修在哪个网站上做推广好些
  • 邹平建设局官方网站企业宣传片广告公司
  • 南京建设集团网站建站极速通
  • 网站建设与推广员岗位职责网站开发应如何入账
  • 企业网站的作用和目的手机回收站
  • 大连零基础网站建设培训电话郎溪做网站
  • 成都科技网站建设注册公司最少需要多少注册资金
  • 找公司做网站注意事项麻城建设局网站停办
  • 沧州企业做网站wordpress 消息通知
  • 网站开发外包计入什么科目怎样申请网站空间
  • 西安建设局网站小孩把巴塘网站建设
  • 做网站 客户一直要求改郑州做优惠券网站的公司
  • 专门做特卖的网站是什么东北石油大学秦皇岛吧
  • 网站建设需要云主机吗wordpress 下载数据表插件
  • 集团网站建设哪个好石龙镇仿做网站
  • 网站建设费税率是多少项目备案信息查询
  • 网站开发php有哪些权威发布型舆情回应