进一步完善关注页面

This commit is contained in:
zyronon 2018-10-19 13:55:55 +08:00
parent 50d3278887
commit afe7d1332a
4 changed files with 908 additions and 29 deletions

878
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui"> <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
<meta name="screen-orientation" content="portrait"/> <meta name="screen-orientation" content="portrait"/>
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
@ -10,12 +11,19 @@
<meta name="x5-fullscreen" content="true"> <meta name="x5-fullscreen" content="true">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>抖音</title> <title>抖音</title>
</head> <style>
<body> body{
<noscript> height: 0!important;
<strong>We're sorry but douyin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> }
</noscript> </style>
<div id="app"></div> </head>
<!-- built files will be auto injected --> <body>
</body> <noscript>
<strong>
We're sorry but douyin doesn't work properly without JavaScript enabled. Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html> </html>

View File

@ -1,12 +1,12 @@
<template> <template>
<div id="attention" > <div id="attention" >
<div class="items pl10p pr10p"> <div class="items p10p">
<div class="item"> <div class="item mb20p pb20p" v-for="item of items">
<div class="header"> <div class="header mb10p">
<img src="../../assets/img/head-image.jpeg" alt=""> <img src="../../assets/img/head-image.jpeg" alt="">
<span class="ml5p">TTentau</span> <span class="ml5p">TTentau</span>
</div> </div>
<div class="my-comment mt5p"> <div class="my-comment mb10p">
最靠近北极有个不生不来之地北极熊比人还多对中国免签 <span class="tag">#带他去旅行</span> 最靠近北极有个不生不来之地北极熊比人还多对中国免签 <span class="tag">#带他去旅行</span>
</div> </div>
<div class="other-comment p10p"> <div class="other-comment p10p">
@ -14,7 +14,7 @@
<span class="tag">#购物车里是什么</span> <span class="tag">#购物车里是什么</span>
<span>无敌浩克</span> <span>无敌浩克</span>
</div> </div>
<div class="video-container mb10p"> <div class="video-container mb10p ">
<video src="../../assets/video/吴三二的光年之外.mp4"></video> <video src="../../assets/video/吴三二的光年之外.mp4"></video>
<div class="music"> <div class="music">
<img src="../../assets/img/music.svg" alt="" class="music-image"> <img src="../../assets/img/music.svg" alt="" class="music-image">
@ -73,6 +73,13 @@
name: "Attention", name: "Attention",
components: { components: {
Footer Footer
},
data(){
return {
items:[
{},{},{}
]
}
} }
} }
</script> </script>
@ -85,25 +92,28 @@
background: #2e3244; background: #2e3244;
color: #b8b9c1; color: #b8b9c1;
.items { .items {
.item { >.item {
border-bottom: 1px solid #494950;
.header { .header {
display: flex; display: flex;
justify-content: start; justify-content: start;
align-items: center; align-items: center;
img { img {
width: 30px; width: 40px;
height: 30px; height: 40px;
border-radius: 50%; border-radius: 50%;
} }
} }
.other-comment { .other-comment {
display: none;
background: #15161b; background: #15161b;
border-radius: 10px 10px 0 0; border-radius: 10px 10px 0 0;
} }
.video-container { .video-container {
position: relative; position: relative;
width: 80%;
video { video {
border-radius: 0 0 10px 10px; border-radius: 10px 10px 10px 10px;
width: 100%; width: 100%;
} }
.music { .music {

View File

@ -76,7 +76,8 @@
loves: 1234, loves: 1234,
comments: 666, comments: 666,
shared: 999 shared: 999
},{ },
{
videoUrl: '../assets/video/吴三二的光年之外.mp4', videoUrl: '../assets/video/吴三二的光年之外.mp4',
isLoved: false, isLoved: false,
loves: 1234, loves: 1234,