first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<template>
<div id="app">
<router-view :key="$route.query.id"/>
<!-- <router-view/> -->
</div>
</template>
<script>
export default{
name: 'App'
}
</script>
<style lang="less">
@import "~@less/normalize.less";
</style>

View File

@@ -0,0 +1,2 @@
@import "./color.less";
@import "./mixins.less";

View File

@@ -0,0 +1,202 @@
.hairline(@position, @color) when (@position = top) {
&:before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: auto;
right: auto;
height: 1px;
width: 100%;
background-color: @color;
display: block;
z-index: 15;
// .transform-origin(50% 0%);
html.pixel-ratio-2 & {
.transform(scaleY(0.5));
}
html.pixel-ratio-3 & {
.transform(scaleY(0.33));
}
}
}
.hairline(@position, @color) when (@position = left) {
&:before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: auto;
right: auto;
width: 1px;
height: 100%;
background-color: @color;
display: block;
z-index: 15;
// .transform-origin(0% 50%);
html.pixel-ratio-2 & {
.transform(scaleX(0.5));
}
html.pixel-ratio-3 & {
.transform(scaleX(0.33));
}
}
}
.hairline(@position, @color) when (@position = bottom) {
&:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
right: auto;
top: auto;
height: 1px;
width: 100%;
background-color: @color;
display: block;
z-index: 15;
html.pixel-ratio-2 & {
.transform(scaleY(0.5));
}
html.pixel-ratio-3 & {
.transform(scaleY(0.33));
}
}
}
.hairline(@position, @color) when (@position = right) {
&:after {
content: '';
position: absolute;
right: 0;
top: 0;
left: auto;
bottom: auto;
width: 1px;
height: 100%;
background-color: @color;
display: block;
z-index: 15;
// .transform-origin(100% 50%);
html.pixel-ratio-2 & {
.transform(scaleX(0.5));
}
html.pixel-ratio-3 & {
.transform(scaleX(0.33));
}
}
}
// Shadow
.depth(@level:1) {
& when (@level = 0) {
box-shadow: none;
}
& when (@level = 1) {
box-shadow: 0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);
}
& when (@level = 2) {
box-shadow: 0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);
}
& when (@level = 3) {
box-shadow: 0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);
}
& when (@level = 4) {
box-shadow: 0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);
}
& when (@level = 5) {
box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12);
}
& when (@level = 6) {
box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);
}
& when (@level = 7) {
box-shadow: 0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12);
}
& when (@level = 8) {
box-shadow: 0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);
}
& when (@level = 9) {
box-shadow: 0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12);
}
& when (@level = 10) {
box-shadow: 0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12);
}
& when (@level = 11) {
box-shadow: 0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12);
}
& when (@level = 12) {
box-shadow: 0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12);
}
& when (@level = 13) {
box-shadow: 0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12);
}
& when (@level = 14) {
box-shadow: 0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12);
}
& when (@level = 15) {
box-shadow: 0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12);
}
& when (@level = 16) {
box-shadow: 0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);
}
& when (@level = 17) {
box-shadow: 0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12);
}
& when (@level = 18) {
box-shadow: 0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12);
}
& when (@level = 19) {
box-shadow: 0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12);
}
& when (@level = 20) {
box-shadow: 0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12);
}
& when (@level = 21) {
box-shadow: 0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12);
}
& when (@level = 22) {
box-shadow: 0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12);
}
& when (@level = 23) {
box-shadow: 0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12);
}
& when (@level = 24) {
box-shadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);
}
// & when (@level = 1) {
// box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px;
// }
// & when (@level = 2) {
// box-shadow: rgba(0, 0, 0, 0.156863) 0px 3px 10px, rgba(0, 0, 0, 0.227451) 0px 3px 10px;
// }
// & when (@level = 3) {
// box-shadow: rgba(0, 0, 0, 0.188235) 0px 10px 30px, rgba(0, 0, 0, 0.227451) 0px 6px 10px;
// }
// & when (@level = 4) {
// box-shadow: rgba(0, 0, 0, 0.247059) 0px 14px 45px, rgba(0, 0, 0, 0.219608) 0px 10px 18px;
// }
// & when (@level = 5) {
// box-shadow: rgba(0, 0, 0, 0.298039) 0px 19px 60px, rgba(0, 0, 0, 0.219608) 0px 15px 20px;
// }
}
// No Scrollbar
.no-scrollbar() {
&::-webkit-scrollbar {
display: none !important;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
opacity: 0 !important;
}
}
.ellipsis() {
white-space:nowrap;
text-overflow:ellipsis;
overflow:hidden;
word-wrap: break-word;
}

View File

@@ -0,0 +1,425 @@
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Change the default font family in all browsers (opinionated).
* 2. Prevent adjustments of font size after orientation changes in IE and iOS.
*/
.content {
margin-top: 1.333rem;
}
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
* Remove the margin in all browsers (opinionated).
*/
body {
margin: 0;
}
/* HTML5 display definitions
========================================================================== */
/**
* Add the correct display in IE 9-.
* 1. Add the correct display in Edge, IE, and Firefox.
* 2. Add the correct display in IE.
*/
article,
aside,
details, /* 1 */
figcaption,
figure,
footer,
header,
main, /* 2 */
menu,
nav,
section,
summary { /* 1 */
display: block;
}
/**
* Add the correct display in IE 9-.
*/
audio,
canvas,
progress,
video {
display: inline-block;
}
/**
* Add the correct display in iOS 4-7.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Add the correct display in IE 10-.
* 1. Add the correct display in IE.
*/
template, /* 1 */
[hidden] {
display: none;
}
/* Links
========================================================================== */
/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/
a {
background-color: transparent; /* 1 */
-webkit-text-decoration-skip: objects; /* 2 */
}
/**
* Remove the outline on focused links when they are also active or hovered
* in all browsers (opinionated).
*/
a:active,
a:hover {
outline-width: 0;
}
/* Text-level semantics
========================================================================== */
/**
* 1. Remove the bottom border in Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
b,
strong {
font-weight: inherit;
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* Add the correct font style in Android 4.3-.
*/
dfn {
font-style: italic;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Add the correct background and color in IE 9-.
*/
mark {
background-color: #ff0;
color: #000;
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10-.
*/
img {
border-style: none;
}
/**
* Hide the overflow in IE.
*/
svg:not(:root) {
overflow: hidden;
}
/* Grouping content
========================================================================== */
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
pre,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct margin in IE 8.
*/
figure {
margin: 1em 40px;
}
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/* Forms
========================================================================== */
/**
* 1. Change font properties to `inherit` in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
select,
textarea {
font: inherit; /* 1 */
margin: 0; /* 2 */
}
/**
* Restore the font weight unset by the previous rule.
*/
optgroup {
font-weight: bold;
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
-webkit-appearance: button; /* 2 */
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Change the border, margin, and padding in all browsers (opinionated).
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Remove the default vertical scrollbar in IE.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
*/
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Correct the text style of placeholders in Chrome, Edge, and Safari.
*/
::-webkit-input-placeholder {
color: inherit;
opacity: 0.54;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}

View File

@@ -0,0 +1,89 @@
ul,li,p,h1,h2,h3,h4{
padding: 0;
margin: 0;
}
.dib_bling{
.video{
margin-top: 1.6033rem;;
}
.contentdib{
margin-top: 0 importent;
padding: 0 .31rem;
padding-top: .69rem;
border-bottom: .01rem solid #e5e5e5;
padding-bottom: .42rem;
background: #fff;
.content_top{
p{
font-size: .48rem;
color: #333;
font-weight: 500;
letter-spacing: .01rem;
}
span{
margin-top: .2rem;
font-size: .31rem;
color: #999;
}
}
.content_bottom{
display: flex;
justify-content: space-between;
.left{
display: flex;
.collect{
margin-right: .6rem;
display: flex;
align-items: center;
img{
height: .37rem;
width: .37rem;
margin-right: .11rem;
}
span{
font-size: .32rem;
color: #999;
}
}
.like{
margin-right: .6rem;
display: flex;
align-items: center;
img{
height: .37rem;
width: .37rem;
margin-right: .11rem;
}
span{
font-size: .32rem;
color: #999;
}
}
}
.introduction{
display: flex;
justify-content: center;
align-items: center;
span{
font-size: .32rem;
color: #999;
margin-right: .15rem;
}
img{
width: .26rem;
}
}
}
.text{
font-size: .37rem;
color: #999;
font-weight: 500;
margin-top: .26rem;
line-height: .62rem;
}
}
.tuijian{
padding: 0 .32rem .52rem .32rem;
border-bottom: .01rem solid #e5e5e5;
}
}

View File

@@ -0,0 +1,7 @@
@import "../_.less";
.home {
h2 {
color: @red;
}
}

View File

@@ -0,0 +1,38 @@
ul,li,p,h1,h2,h3,h4{
padding: 0;
margin: 0;
}
.newInfo{
padding: 0 0.338rem 0 0.311rem;
margin-top: 1.676rem;
width: 9.36rem;
height: 1.227rem;
position: relative;
p {
font-size: 0.533rem;
line-height: 0.72rem;
letter-spacing: 0.013rem;
color: #333333;
}
.time{
display: flex;
align-items: center;
p{
font-size: 0.324rem;
color: #999999;
margin-right: 0.243rem;
}
}
.shi{
position: absolute;
top: 20.5rem;
left: 0;
right: 0;
}
.tui{
margin-top: 20px;
}
.pin{
margin-top: 20px;
}
}

View File

@@ -0,0 +1,60 @@
.contentpost{
.swiper{
// height: 400px;
// background-color: rgb(153, 153, 153);
// margin-top: 1.333rem;
.my-swipe{
.van-swipe-item {
display: flex;
align-items: center;
color: #fff;
font-size: 0.5405rem;
margin: 0 auto;
background-color: #fff;
margin-top: 1.6032rem;
img{
width: 100%;
}
}
}
}
.comment_item{
padding: .3rem;
border-bottom: .21rem solid #f3f3f3;
background: #fff;
.top{
display: flex;
height: 1.4rem;
align-items: center;
margin-bottom: .37rem;
img{
width: .96rem;
height: .96rem;
border-radius: 50%;
}
.right{
height: 29%;
margin-left: .4rem;
.right_top{
p{
font-size: .37rem;
color: #333;
margin: 0;
line-height: 0;
}
}
.right_bottom{
font-size: .32rem;
color: #999;
line-height: .75rem;
}
}
}
.bottom{
font-size: .43rem;
color: #333;
line-height: .67rem;
}
}
}

View File

@@ -0,0 +1,106 @@
@import "../_.less";
.radio {
width: 7.467rem;
text-align: center;
margin: 0 auto;
.title {
font-size: 0.48rem;
color: #000000;
margin-bottom: 0.84rem;
margin-top: 1.347rem;
}
.logo {
width: 7.467rem;
height: 7.467rem;
margin-bottom: 0.667rem;
}
.sound_spectrum {
width: 100%;
height: 1.2rem;
}
.action {
margin-top: 0.733rem;
display: flex;
align-items: center;
justify-content: space-between;
li {
display: flex;
flex-direction: column;
align-items: center;
img {
width: 0.52rem;
height: 0.52rem;
}
span {
font-size: 0.267rem;
color: #999999;
margin-top: 0.173rem;
}
.play {
width: 1.6rem;
height: 1.6rem;
}
}
}
.pop {
display: flex;
flex-direction: column;
height: 100%;
.pop_title {
font-size: .37rem;
font-weight: 500;
color: #000;
text-align: center;
border-bottom: .01rem solid #ccc;
line-height: 1.6rem;
}
ul {
flex: 1;
overflow-y: scroll;
li {
height: 1.6rem;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 .39rem;
border-bottom: .01rem solid #ccc;
.left{
font-size: 0;
position: relative;
.left_title {
font-size: .37rem;
color: #000;
}
.desc {
margin-top: .2rem;
font-size: .32rem;
color: #999;
}
img {
width: .37rem;
height: .39rem;
margin-left: .57rem;
position: absolute;
right: -35px;
top: 50%;
transform: translateY(-50%);
}
}
.right{
font-size: .37rem;
color: #000;
line-height: 1.6rem;
}
}
}
.close {
font-size: .37rem;
font-weight: 500;
text-align: center;
border-top: .01rem solid #ccc;
line-height: 1.6rem;
height: 1.6rem;
}
}
}

View File

@@ -0,0 +1,15 @@
.tv {
.van-cell {
height: 1.6rem;
line-height: 1.1rem;
}
.playing {
width: 0.36rem;
height: 0.4rem;
}
.tv_item_title {
font-size: .43rem;
color: #333;
font-weight: 700;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -0,0 +1,137 @@
<template>
<div class="comment">
<div class="header">全部评论</div>
<ul class="contents" v-if="data.length != 0">
<li class="pinglun" v-for="(v,i) in data" :key="i">
<div class="pinglun_item">
<div class="pl_top">
<div class="top_left">
<img :src="v.image" alt="" />
<div class="names">
<div class="name">
<div class="name_left">{{v.nick_name}}</div>
<div class="name_right">
<img src="/static/img/icon/give_thumbs-up.png" alt="" />
<div class="zan">{{v.praise_count}}</div>
</div>
</div>
<div class="time">{{v.create_time}}</div>
</div>
</div>
</div>
<div class="pl_content">
{{v.content}}
</div>
</div>
</li>
</ul>
<div class="no" v-else>
<img src="/static/img/hm_bg_img_no.png" alt="">
<p>快来发表你的评论吧</p>
</div>
</div>
</template>
<script>
export default {
name: "v-comment",
props: {
data: {
type: Array,
default: () => [],
},
},
data() {
return {};
},
created() {},
methods: {},
};
</script>
<style scoped lang="less">
.header {
width: 100%;
height: 1.333rem;
line-height: 1.333rem;
padding-left: 0.32rem;
box-sizing: border-box;
font-weight: 700;
font-size: .43rem;
color: #333;
margin: 0;
}
.contents {
.pinglun {
padding: .5rem 0 .32rem 0;
.pl_top {
display: flex;
justify-content: space-between;
padding-left: 0.307rem;
padding-right: 0.32rem;
box-sizing: border-box;
.top_left {
display: flex;
width: 100%;
img {
width: 0.933rem;
height: 0.933rem;
border-radius: 50%;
}
.names {
margin-left: 0.267rem;
width: 87%;
.name {
display: flex;
justify-content: space-between;
align-items: center;
.name_left {
font-size: 0.373rem;
}
.name_right {
display: flex;
align-items: center;
img {
width: 0.347rem;
height: 0.36rem;
}
.zan {
font-size: 0.32rem;
color: #999999;
margin-left: 0.133rem;
}
}
}
.time {
font-size: 0.267rem;
color: #999999;
margin-top: 0.133rem;
}
}
}
}
.pl_content {
padding-left: 1.507rem;
padding-right: 0.52rem;
box-sizing: border-box;
margin-top: 0.4rem;
font-size: 0.373rem;
}
}
}
.no{
width: 5.56rem;
height: 4.653rem;
margin: auto;
margin-top: 0.6rem;
margin-bottom: 1.533rem;
img{
width: 100%;
}
p{
font-size: .37rem;
color: #999;
text-align: center;
}
}
</style>

View File

@@ -0,0 +1,64 @@
<template>
<div class="header">
<div class="left">
<img class="logo" src="/static/img/icon/gw_img_logo.png" alt="">
<img class="logo_text" src="/static/img/icon/logo_text_icon.png" alt="">
</div>
<div class="right">打开</div>
</div>
</template>
<script>
export default {
name: "v-header",
data() {
return {}
},
created() {
},
methods: {}
}
</script>
<style scoped lang="less">
.header {
width: 100%;
height: 1.333rem;
background-color: #000000;
opacity: 0.7;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 999;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0.32rem;
box-sizing: border-box;
.left {
display: flex;
align-items: center;
.logo {
width: 0.867rem;
height: 0.867rem;
margin-right: 0.253rem;
}
.logo_text {
width: 1.76rem;
height: 0.613rem;
}
}
.right {
width: 1.92rem;
height: 0.693rem;
background-color: #d0302c;
border-radius: 0.107rem;
font-size: 0.32rem;
color: #ffffff;
text-align: center;
line-height: 0.693rem;
}
}
</style>

View File

@@ -0,0 +1,22 @@
<template>
<div class="kong">打开APP查看全部评论</div>
</template>
<script>
export default {
name: "v-kong",
}
</script>
<style lang="less" scoped>
.kong{
width: 9.36rem;
height: 1.173rem;
border-radius: 0.107rem;
border: solid 0.027rem #d0302c;
margin: 0 auto;
margin: 0.553rem 0.32rem 0.547rem 0.32rem;
font-size: 0.373rem;
line-height: 1.173rem;
color: #d0302c;
text-align: center;
}
</style>

View File

@@ -0,0 +1,22 @@
<template>
<div class="live">
live
</div>
</template>
<script>
export default {
name: "live",
data() {
return {}
},
created() {
},
methods: {}
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,104 @@
<template>
<div class="radio">
<v-video v-if="VideoUrl.length != 0"
ref="v_video"
:show="false"
:url="VideoUrl">
</v-video>
<div class="title">{{ radioData.title }}</div>
<img class="logo" :src="radioData.logo" alt="">
<img class="sound_spectrum"
:src="playStatus ? '/static/img/sound_spectrum2.png' : '/static/img/sound_spectrum.gif' " alt="">
<ul class="action">
<li @click="getRadio()">
<img src="/static/img/icon/live_broadcast_icon.png" alt="">
<span>当前直播</span>
</li>
<li>
<img class="play"
@click="playRadio"
:src=" playStatus ? '/static/img/radio_up.png' : '/static/img/radio_stop.png' "
alt="">
</li>
<li @click="openMenu">
<img src="/static/img/icon/program_list_icon.png" alt="">
<span>节目列表</span>
</li>
</ul>
<van-popup v-model="isShow" position="bottom" :style="{ height: '65%' }">
<div class="pop">
<div class="pop_title">节目单</div>
<ul>
<li v-for="(v,i) in menuList" :key="i" @click="changeItem(i)">
<div class="left">
<div class="left_title">{{ v.menu_name }}</div>
<div class="desc">{{ v.nick_name }}</div>
<img v-if="i == currentMenuIndex" src="/static/img/act-list.gif" alt="">
</div>
<div class="right">{{ v.start_time }}-{{ v.end_time }}</div>
</li>
</ul>
<div class="close" @click="isShow = false">关闭</div>
</div>
</van-popup>
</div>
</template>
<script>
export default {
name: "radio",
data() {
return {
playStatus: true,
isShow: false,
radioData: {},
menuList: [],
currentMenuIndex: 0,
VideoUrl: []
}
},
created() {
this.getRadio();
},
methods: {
changeItem(i) {
this.currentMenuIndex = i;
this.isShow = false;
},
async openMenu() {
if (this.menuList.length == 0) {
this.menuList = await this.$http.index.getMenuList()
}
this.isShow = true;
},
playRadio() {
this.playStatus = !this.playStatus;
if (this.playStatus) {
// 暂停
this.$refs.v_video.pause()
} else {
// 播放
this.$refs.v_video.play()
}
},
async getRadio() {
this.radioData = await this.$http.index.radio();
this.VideoUrl = [
{
type: "application/x-mpegURL",
src: "https://vse2-as-all78.secdn.net/logos-channel/live/biblescreen-ad-free/chunklist_sess105845977.m3u8"
// src: this.radioData.play_url
}
]
console.log(this.VideoUrl);
}
}
}
</script>
<style lang="less" scoped>
@import "~@page/radio.less";
</style>

View File

@@ -0,0 +1,55 @@
<template>
<div @click="show=close()" v-if="show" class="shi">
<div class="more">
<img src="/static/img/select-down.png" alt="" />
</div>
<div class="xu">
<div class="shi_text">打开APP阅读全文</div>
</div>
</div>
</template>
<script>
export default {
name: "v-shi",
data(){
return{
show:true
}
},
methods:{
close(){
this.show=false;
this.$emit("change")
}
}
};
</script>
<style lang="less" scoped>
.shi {
width: 100%;
.more {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.413rem;
img {
width: 0.693rem;
height: 0.533rem;
}
}
.xu{
.shi_text {
width: 9.36rem;
height: 1.173rem;
background-color: #d0302c;
border-radius: 0.107rem;
font-size: 0.373rem;
line-height: 1.173rem;
color: #ffffff;
margin: 0 auto;
text-align: center;
}
}
}
</style>

View File

@@ -0,0 +1,135 @@
<template>
<div class="tuijian">
<div class="tj_header">相关推荐</div>
<ul class="heng" v-if="them != 1">
<router-link :to="{ path: '/dib_bling', query: { id: v.id }}" tag="li" class="con" v-for="(v,i) in data" :key="i">
<div class="img">
<img :src="v.cover" alt="" />
</div>
<div class="nr">
{{v.title}}
</div>
</router-link>
</ul>
<ul class="shu" v-else>
<router-link :to="{ path: '/new_info', query: { id: v.id }}" tag="li" class="cons" v-for="(v,i) in data" :key="i">
<div class="shu_left">
<div class="wenzi">
{{v.title}}
</div>
<div class="rq">{{v.update_time}}</div>
</div>
<div class="shu_right">
<img :src="v.icon" alt="" />
</div>
</router-link>
</ul>
</div>
</template>
<script>
export default {
name: "v-tuijian",
props: {
data: {
type: Array,
default: () => [],
},
them: {
type: Number,
default: 2,
},
},
data() {
return {};
},
watch: {
$route(to, from) {
if (this.$route.query.id) {
console.info( "重新调用评论接口" );
}
}
},
created() {},
methods: {},
};
</script>
<style scoped lang="less">
.tuijian {
padding-left: 0.32rem;
padding-right: 0.32rem;
box-sizing: border-box;
.tj_header {
font-weight: 600;
height: 1.333rem;
line-height: 1.333rem;
font-size: 0.427rem;
}
.heng {
width: 100%;
display: flex;
overflow-x: auto;
overflow-y: hidden;
.con {
width: 3.653rem;
margin-right: 0.133rem;
flex-shrink: 0;
.img {
position: relative;
img {
width: 100%;
}
.time {
position: absolute;
bottom: 0.173rem;
right: 0.187rem;
font-size: 0.293rem;
color: #ffffff;
}
}
.nr {
font-size: 0.373rem;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
}
}
.shu {
.cons {
display: flex;
height: 3.747rem;
box-sizing: border-box;
padding-top: 0.5rem;
border-bottom: 0.001rem solid #999;
justify-content: space-between;
.shu_left {
.wenzi {
font-size: 0.427rem;
line-height: 0.667rem;
color: #333333;
}
.rq {
font-size: 0.32rem;
color: #999999;
margin-top: 0.573rem;
}
}
.shu_right {
img {
width: 3.013rem;
height: 2.267rem;
}
}
}
.cons:last-child {
border-bottom: 0;
}
}
}
</style>

View File

@@ -0,0 +1,63 @@
<template>
<div class="tv">
<van-cell-group>
<van-cell
@click="enterInfo(v)"
v-for="(v,i) in channelData" :key="i">
<template #default v-if="img">
<img v-if="v.id == id" class="playing" src="/static/img/act-list.gif" alt="">
</template>
<template #title>
<span class="tv_item_title">{{ v.title }}</span>
</template>
</van-cell>
</van-cell-group>
</div>
</template>
<script>
export default {
name: "tv",
props: {
img: {
type: Boolean,
default: false
},
id: {
type: Number,
default: 0
}
},
data() {
return {
channelData: []
}
},
created() {
this.channelList();
},
methods: {
enterInfo(v) {
this.$router.push({
name: 'tvInfo',
query: {
url: v.play_url,
id: v.id
}
})
},
async channelList() {
this.channelData = await this.$http.index.channelList({
page: 1,
count: 15
});
console.log(this.channelData)
}
}
}
</script>
<style lang="less" scoped>
@import "~@page/tv.less";
</style>

View File

@@ -0,0 +1,91 @@
<template>
<div class="vieo">
<video-player
v-show="show"
class="video-player-box"
ref="videoPlayer"
:options="playerOptions"
:playsinline="true">
</video-player>
</div>
</template>
<script>
import { videoPlayer } from 'vue-video-player'
import 'video.js/dist/video-js.css'
import "videojs-contrib-hls"
export default {
name: 'v-video',
props: {
url: {
type: Array,
default: () => []
},
imgposter:{
type: String ,
default: () => {}
},
show: {
type: Boolean,
default: true
}
},
data() {
return {
playerOptions: {
playbackRates: [0.5, 1.0, 1.5, 2.0],
autoplay: false,
muted: false,
loop: false,
preload: "none",
language: "zh-CN",
aspectRatio: "16:9",
fluid: false,
poster: this.imgposter,
sources: this.url,
notSupportedMessage: "此视频暂无法播放,请稍后再试",
controlBar: {
// 当前时间和总时间的 分隔符
timeDivider: true,
//当前播放时间
currentTimeDisplay: true,
// 总时间
durationDisplay: true,
/**
* 区分 currentTimeDisplay,timeDivider,durationDisplay
* remainingTimeDisplay显示默认样式,只显示当前播放时间,一般
* 为false
*/
remainingTimeDisplay: false,
fullscreenToggle: true,
},
}
}
},
created() {},
mounted() {
},
methods: {
play(event) {
this.player.play();
},
pause(event) {
this.player.pause();
},
},
computed: {
player() {
return this.$refs.videoPlayer.player
}
},
components: {
videoPlayer
}
}
</script>
<style>
</style>

View File

@@ -0,0 +1,25 @@
export default {
devBaseUrl: 'https://zbhapi.ahtv.cn/h5', // 开发阶段的请求地址
prodBaseUrl: 'https://zbhapi.ahtv.cn/h5', // 正式阶段的请求地址
apiList: {
newsDetail: '/newsDetail',
radio: '/radio',
getMenuList: '/getMenuList',
channelList: '/channelList',
newsDetail: '/newsDetail',
videoDetail: '/videoDetail',
interactDetail: '/interactDetail',
},
checkBaseUrl: function () {
switch (process.env.NODE_ENV) {
case "development":
return this.devBaseUrl
break;
case "production":
return this.prodBaseUrl
break;
default:
break;
}
}
}

View File

@@ -0,0 +1,71 @@
import axios from "axios";
import config from "@/config";
import { Toast } from 'vant';
export default class Axios {
constructor() {
this.instance = axios.create({
baseURL: config.checkBaseUrl(),
timeout: 3000,
headers: {}
});
this.interceptors();
}
// {
// url: '/index',
// data: {}
// headers: {}
// }
async get(option) {
Toast.loading({
duration: 0,
message: '加载中...',
forbidClick: true,
})
return await this.instance.get(option.url, {
params: option.data,
headers: option.headers
});
}
async post(option) {
return await this.instance.post(option.url, option.data, {
headers: option.headers
});
}
interceptors() {
// 添加请求拦截器
this.instance.interceptors.request.use(function (config) {
// 在发送请求之前做些什么
return config;
}, function (error) {
// 对请求错误做些什么
return Promise.reject(error);
});
// 添加响应拦截器
this.instance.interceptors.response.use(function (response) {
// 对响应数据做点什么
Toast.clear()
switch (response.data.resultCode) {
case "000":
return response.data.data
break;
case "500":
Toast.fail(response.data.message);
throw new Error(response.data.message);
break;
default:
break;
}
}, function (error) {
// 对响应错误做点什么
return Promise.reject(error);
});
}
}

View File

@@ -0,0 +1,39 @@
import 'amfe-flexible'
import Vue from 'vue'
import App from './App'
import router from './router'
import serve from "./serve/_";
import utils from "./utils";
import Vant from 'vant';
import 'vant/lib/index.css';
import video from "./components/video";
import header from "./components/header";
import comment from "./components/comment";
import tuijian from "./components/tuijian";
import kong from "./components/kong_text";
import shi from "./components/shi_text";
Vue.use(Vant);
Vue.config.productionTip = false;
// 全局组件
Vue.component(video.name, video);
Vue.component(header.name, header);
Vue.component(comment.name, comment);
Vue.component(tuijian.name, tuijian);
Vue.component(kong.name, kong);
Vue.component(shi.name, shi);
// 全局方法
Vue.prototype.$http = serve
Vue.prototype.$util = utils
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})

View File

@@ -0,0 +1,41 @@
<template>
<div class="home">
<van-tabs v-model="active" line-width="0.307rem">
<van-tab title="包河Radio">
<radio></radio>
</van-tab>
<van-tab title="包河Tv">
<tv></tv>
</van-tab>
<van-tab title="融媒直播">
<live></live>
</van-tab>
</van-tabs>
</div>
</template>
<script>
import radio from "@/components/radio";
import tv from "@/components/tv";
import live from "@/components/live";
export default {
data() {
return {
active: 0
}
},
created() {
},
methods: {
},
components: {
radio,tv,live
}
}
</script>
<style lang="less" scoped>
@import "~@page/home.less";
</style>

View File

@@ -0,0 +1,80 @@
<template>
<div class="dib_bling" v-if="Object.keys(detail).length != 0">
<v-header></v-header>
<v-video
v-if="videoUrl.length != 0"
ref="v_video"
:url="detail.detail.play_url"
class="video"
:imgposter="detail.detail.cover">
</v-video>
<!-- <v-video class="video"></v-video> -->
<div class="contentdib">
<div class="content_top">
<p>{{ detail.detail.title }}</p>
<span>{{ detail.detail.publish_time }}</span>
<span>10:45</span>
</div>
<div class="content_bottom">
<div class="left">
<div class="collect">
<img src="/static/img/icon/collection-icon.png" alt="" />
<span>收藏</span>
</div>
<div class="like">
<img src="/static/img/icon/give_thumbs-up.png" alt="" />
<span>{{ detail.detail.like_count }}</span>
</div>
</div>
<div class="introduction" @click="openclose()">
<span>简介</span>
<img v-if="imgshow" src="/static/img/icon/open-just.png" alt="" />
<img v-else src="/static/img/icon/open-close.png" alt="" />
</div>
</div>
<div
class="text"
v-if="imgshow"
v-html="detail.detail.des"
></div>
</div>
<v-tuijian :data="detail.recommend" :them="2" class="tuijian"></v-tuijian>
<v-comment></v-comment>
<v-kong></v-kong>
</div>
</template>
<script>
export default {
name: "dibBling",
data() {
return {
detail: {},
height: "0rem",
videoUrl: [],
imgshow:false,
};
},
created() {
this.dibBlingType();
},
methods: {
openclose(){
this.imgshow = !this.imgshow
},
async dibBlingType() {
var res = await this.$http.index.videoDetail({
id: this.$route.query.id,
});
console.log(res);
this.detail = res;
this.videoUrl = [{ type: "video/mp4", src: this.detail.play_url }];
},
},
};
</script>
<style lang="less" scoped>
@import "~@page/dibBling.less";
</style>

View File

@@ -0,0 +1,45 @@
<template>
<div class="newInfo" v-if="Object.keys(detail).length != 0">
<v-header></v-header>
<p>{{ detail.detail.title }}</p>
<div class="time">
<p>{{ detail.detail.create_time }}</p>
<p>浏览量{{ detail.detail.viewer_count }}</p>
</div>
<div class="content" :style="{height:height,overflow:'hidden'}" v-html="detail.detail.content"></div>
<v-shi class="shi" @change="height='auto' "></v-shi>
<v-tuijian class="tui" :data="detail.recommend" :them="1"></v-tuijian>
<v-comment class="pin"></v-comment>
</div>
</template>
<script>
export default {
name: "newInfo",
data() {
return {
detail: {},
height:'18.9189rem',
}
},
created(){
this.newInfotype();
},
methods:{
async newInfotype(){
var res = await this.$http.index.newsDetail({
id:this.$route.query.id,
});
console.log(res);
this.detail = res;
},
},
}
</script>
<style lang="less" scoped>
@import "~@page/newInfo.less";
</style>

View File

@@ -0,0 +1,53 @@
<template>
<div class="contentpost" v-if="Object.keys(detail).length != 0">
<v-header></v-header>
<div class="swiper">
<van-swipe class="my-swipe" indicator-color="white" >
<van-swipe-item v-for="(v,i) in detail.detail.image" :key="i">
<img :src="v" alt="">
</van-swipe-item>
</van-swipe>
</div>
<div class="comment_item">
<div class="top">
<img class="left" :src="detail.detail.image_url" alt="" />
<div class="right">
<div class="right_top">
<p>{{ detail.detail.nick_name }}</p>
</div>
<div class="right_bottom">{{ detail.detail.create_time }}</div>
</div>
</div>
<div class="bottom">{{ detail.detail.content }}</div>
</div>
<v-comment :data="detail.comment"></v-comment>
<v-kong></v-kong>
</div>
</template>
<script>
export default {
name: "postInfo",
data() {
return {
detail: {},
};
},
created() {
this.postInfoType();
},
methods: {
async postInfoType() {
var res = await this.$http.index.interactDetail({
id: this.$route.query.id,
});
console.log(res);
this.detail = res;
},
},
};
</script>
<style lang="less" scoped>
@import "~@page/postInfo.less";
</style>

View File

@@ -0,0 +1,60 @@
<template>
<div class="tvInfo">
<v-header></v-header>
<div class="content">
<v-video v-if="videoUrl.length != 0"
ref="v_video"
:url="videoUrl">
</v-video>
<van-tabs v-model="active">
<van-tab title="频道">
<tv :img="true" :id="Number($route.query.id)"></tv>
</van-tab>
<van-tab title="评论">
<!-- {id:1} -->
<v-comment :data="[{id:1}]"></v-comment>
<v-tuijian :them="1"></v-tuijian>
<v-kong></v-kong>
<v-shi></v-shi>
</van-tab>
</van-tabs>
</div>
</div>
</template>
<script>
import tv from "@/components/tv";
export default {
name: "tvInfo",
data() {
return {
active: 0,
videoUrl: []
}
},
watch: {
$route(to, from) {
if (this.$route.query.id) {
console.info( "重新调用评论接口" );
}
}
},
async created() {
this.videoUrl = [
{ type: 'video/flv', src: this.$route.query.url }
]
console.log(this.$route.query.url)
},
methods: {
},
components: {
tv
}
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,40 @@
import Vue from 'vue'
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'home',
component: () => import(/* webpackChunkName: "home" */ '../page/Home.vue')
},
{
path: '/tv_info',
name: 'tvInfo',
component: () => import(/* webpackChunkName: "home" */ '../page/tvInfo.vue')
},
{
path: '/new_info',
name: 'newInfo',
component: () => import(/* webpackChunkName: "home" */ '../page/newInfo.vue')
},
{
path: '/dib_bling',
name: 'dibBling',
component: () => import(/* webpackChunkName: "home" */ '../page/dibBling.vue')
},
{
path: '/post_info',
name: 'postInfo',
component: () => import(/* webpackChunkName: "home" */ '../page/postInfo.vue')
},
]
})

View File

@@ -0,0 +1,5 @@
import indexServe from "./indexServe";
export default {
index: new indexServe()
}

View File

@@ -0,0 +1,60 @@
import http from "@/http";
import config from "@/config";
export default class indexServe {
async newsDetail(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.newsDetail,
data: data,
headers: headers
})
}
async radio(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.radio,
data: data,
headers: headers
})
}
async getMenuList(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.getMenuList,
data: data,
headers: headers
})
}
async channelList(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.channelList,
data: data,
headers: headers
})
}
async newsDetail(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.newsDetail,
data: data,
headers: headers
})
}
async videoDetail(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.videoDetail,
data: data,
headers: headers
})
}
async interactDetail(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.interactDetail,
data: data,
headers: headers
})
}
}

View File

@@ -0,0 +1,7 @@
class Utils {
test() {
console.log("测试测试");
}
}
export default new Utils();