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,15 @@
<template>
<div id="app">
<router-view/>
</div>
</template>
<script>
export default {
name: 'App'
}
</script>
<style lang="less">
@import "~@less/_";
</style>

View File

@@ -0,0 +1,5 @@
@import "./config/color.less";
@import "./config/size.less";
@import "./mixins/mixins.less";
@import "./mixins/normalize.less";
@import "./mixins/resetUI.less";

View File

@@ -0,0 +1,3 @@
@defaultSize: 14px;
@smallSize: 12px;
@bigSize_19: 19px;

View File

@@ -0,0 +1,260 @@
.transform(@t) {
-webkit-transform: @t;
transform: @t;
}
.flex-shrink(@fs) {
-webkit-box-flex: @fs;
-webkit-flex-shrink: @fs;
-ms-flex: 0 @fs auto;
flex-shrink: @fs;
}
.clearfix() {
&:after,
&:before {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
.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));
}
}
}
// For left and top
.hairline-color(@position, @color) when not (@position = right) and not (@position = bottom) {
&:before {
background-color: @color;
}
}
// 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;
// }
}
// Highlighted Links
.active-highlight(@color:rgba(255, 255, 255, 0.15)){
&:before {
content: '';
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background-color: @color;
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
.transition(600ms);
}
&.active-state:before,
html:not(.watch-active-state) &:active:before {
opacity: 1;
.transition(150ms);
}
}
.active-highlight-color(@color) {
&:before {
background-image: -webkit-radial-gradient(center, circle cover, @color 66%, rgba(red(@color),green(@color),blue(@color),0) 66%);
background-image: radial-gradient(circle at center, @color 66%, rgba(red(@color),green(@color),blue(@color),0) 66%);
}
}
// 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,435 @@
/*! 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.
*/
html,
body,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
p,
div {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 0;
/*background: transparent;*/
}
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,
figcaption,
figure,
footer,
header,
main,
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,
[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"],
[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,435 @@
/*! 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.
*/
html, body, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,p,div {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 0;
/*background: transparent;*/
}
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,8 @@
@import "../_.less";
.about {
h2 {
color: @themeColor;
font-size: @bigSize_19;
}
}

View File

@@ -0,0 +1,21 @@
<template lang="pug">
.live live
bottom-t
</template>
<script>
export default {
data () {
return {
active: 0
}
},
methods: {
}
}
</script>
<style lang="less" scoped>
</style>

View File

@@ -0,0 +1,175 @@
<template lang="pug">
.radio
vue-video(
ref="video",
:url="playUrl",
:is-show="false",
v-if="playUrl.length != 0"
)
.title {{ radio.title }}
img.music_img(:src="radio.logo")
img.music_gif(
:src="status ? '/static/img/sound_spectrum.png' : '/static/img/sound_spectrum.gif'"
)
ul.action
li(@click="GetRadio")
img(src="/static/img/icon/live_broadcast_icon.png")
p 当前播放
li
img(
@click="PlayVideo",
:src="status ? '/static/img/radio_up.png' : '/static/img/radio_stop.png'"
)
li(@click="showMenu")
img(src="/static/img/icon/program_list_icon.png")
p 节目列表
van-popup(v-model="isShow", position="bottom", :style="{ height: '70%' }")
.menu_title 节目单
ul.menu_list
li(v-for="(item,index) in menuList" :key="index")
.left
.text
span {{ item.menu_name }}
.name {{ item.nick_name }}
img(src="/static/img/act-list.gif")
span {{ item.start_time }} - {{ item.end_time }}
</template>
<script>
export default {
data() {
return {
isShow: false, // 控制节目单的显示隐藏,true显示,false 隐藏
active: 0,
status: true, // true 未播放,false 播放中
radio: {},
playUrl: [],
menuList: [] // 节目列表
};
},
created() {
this.GetRadio();
},
methods: {
async GetRadio() {
this.radio = await this.$http.index.radio();
this.playUrl = [
{
type: "application/x-mpegURL",
src: this.radio.play_url,
},
];
},
async showMenu() {
this.menuList = await this.$http.index.getMenuList();
console.log( this.menuList);
this.isShow = !this.isShow;
},
PlayVideo() {
// console.log(this.$refs.video);
if (this.status) {
this.$refs.video.onPlayerPlay();
} else {
this.$refs.video.onPlayerPause();
}
this.status = !this.status;
},
},
};
</script>
<style lang="less" scoped>
.radio {
display: flex;
flex-direction: column;
align-items: center;
.title {
font-size: 0.48rem;
color: #000000;
margin-bottom: 0.84rem;
margin-top: 1.347rem;
}
.music_img {
width: 7.467rem;
height: 7.467rem;
margin-bottom: 0.67rem;
}
.music_gif {
width: 7.467rem;
height: 1.2rem;
margin-bottom: 0.733rem;
}
.action {
display: flex;
width: 7.48rem;
justify-content: space-between;
align-items: center;
li {
text-align: center;
img {
width: 0.52rem;
height: 0.52rem;
margin-bottom: 0.173ren;
}
p {
font-size: 0.267rem;
color: #999999;
}
&:nth-child(2) {
img {
width: 1.6rem;
height: 1.6rem;
}
}
}
}
.menu_title {
font-size: 0.37rem;
font-weight: 500;
color: #000;
text-align: center;
border-bottom: 0.01rem solid #ccc;
line-height: 1.6rem;
}
.menu_list {
width: 100%;
li {
display: flex;
align-items: center;
padding: 0 0.39rem;
border-bottom: 0.01rem solid #ccc;
height: 1.6rem;
justify-content: space-between;
.left {
display: flex;
align-items: center;
.text {
text-align: center;
span {
font-size: 0.37rem;
color: #000;
}
.name {
margin-top: 0.2rem;
font-size: 0.32rem;
color: #999;
}
}
img {
width: 0.37rem;
height: 0.39rem;
margin-left: 0.57rem;
}
}
span {
font-size: 0.37rem;
color: #000;
}
}
}
}
</style>

View File

@@ -0,0 +1,109 @@
<template lang="pug">
.recommend
.recommend_title 相关推荐
ul.recommend_content( v-if="type == 0")
router-link(v-for="v,i in this.res" tag="li" :key="i" :to="{ path: '/NewsDetail',query:{id:v.id}}")
.recommend_left
p {{v.title }}
span {{v.update_time}}
img.recommend_right( :src='v.icon')
ul.recommend_content( v-if="type == 1" class="type1_f")
router-link(tag="li" class="type1" v-for="v,i in res" this.tag="li" :key="i" :to="{ path: '/Sevents',query:{id:v.id} }")
img(:src="v.cover")
p {{v.title}}
</template>
<script>
export default {
name: 'recommend',
props: {
type: {
type: Number,
default: 1
}, //type为0时是竖排样式 type为1时是横向滑动样式
res: {
type: Array,
default: () =>{[]}
}
},
created() {
},
data() {
return {
}
},
methods: {
},
};
</script>
<style lang="less" scoped>
.type1_f::-webkit-scrollbar{
display: none;
}
.recommend{
background-color: #fff;
.recommend_title{
display: flex;
align-items: center;
font-size: 0.427rem;
color: #333333;
height: 1.347rem;
padding: 0 0.32rem;
}
.type1_f {
display: flex;
overflow: auto;
padding-left: 0.32rem;
.type1 {
flex-direction:column;
margin-right: 0.133rem;
width: 3.635rem;
img{
width: 3.653rem;
height: 2.08rem;
margin-bottom: 0.32rem;
}
p {
width: 3.413rem;
height: 0.947rem;
font-size: 0.373rem;
overflow: hidden;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;
}
}
}
.recommend_content{
li{
display: flex;
justify-content: space-between;
.recommend_left{
padding-top: 0.613rem;
padding-bottom: 0.587rem;
margin-left: 0.32rem;
p{
font-size: 0.427rem;
color: #333333;
margin-bottom: 0.573rem;
}
span{
font-size: 0.32rem;
color: #999999;
}
}
.recommend_right{
margin-top: 0.427rem;
width: 3.013rem;
height: 2.267rem;
margin-right: 0.32rem;
}
}
}
}
</style>

View File

@@ -0,0 +1,21 @@
<template lang="pug">
.tv
tv-list
</template>
<script>
export default {
data () {
return {
active: 0
}
},
methods: {
}
}
</script>
<style lang="less" scoped>
</style>

View File

@@ -0,0 +1,82 @@
<template lang="pug">
van-list(v-model='loading',
:finished='finished',
:immediate-check="false",
finished-text='没有更多了',
@load='onLoad')
ul.tv-list
router-link(v-for="v,i in list" tag="li" :key="i" :to="{ path: '/tvinfo', query: { id: v.id, url: v.play_url } }")
span(:class="v.id == $route.query.id ? 'active' : '' ") {{ v.title }}
img(src="/static/img/act-list.gif" v-if="v.id == $route.query.id && show")
</template>
<script>
export default {
name: 'tv-list',
props: {
show: {
type: Boolean,
default: false
}
},
data() {
return {
active: 0,
loading: false,
finished: false,
page: 1,
tvObj: {},
list: []
};
},
created() {
this.channelList()
},
methods: {
async channelList() {
var res = await this.$http.index.channelList({
page: this.page,
count: 15
});
res.last_page = 2
this.list = [ ...this.list, ...res.data ];
this.tvObj = res;
this.loading = false;
},
onLoad() {
if (this.page >= this.tvObj.last_page) {
this.finished = true;
} else {
this.page += 1;
this.channelList()
}
console.log("滚动到底部");
}
},
};
</script>
<style lang="less" scoped>
.tv-list {
background-color: #ffffff;
li {
height: 1.6rem;
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 0.547rem;
padding-right: 0.36rem;
span {
font-size: 0.427rem;
color: #333333;
}
.active {
color: #d0302c !important;
}
img {
width: 0.36rem;
height: 0.4rem;
}
}
}
</style>

View File

@@ -0,0 +1,48 @@
<template lang="pug">
.bottom-t
span 打开APP查看全部评论
</template>
<script>
export default {
name: 'bottom-t',
// props: {
// show: {
// type: Boolean,
// default: false
// }
// },
data() {
return {
}
},
methods: {
},
};
</script>
<style lang="less" scoped>
.bottom-t{
position: fixed;
width: 9.36rem;
height: 1.173rem;
border-radius: 0.107rem;
border: solid 0.027rem #d0302c;
bottom: 0.533rem;
display: flex;
align-items: center;
justify-content: center;
left: 0.307rem;
background-color: #fff;
span{
font-size: 0.373rem !important;
color: #d0302c !important;
font-size: 0.373rem;
color: #d0302c;
}
}
</style>

View File

@@ -0,0 +1,120 @@
<template lang="pug">
.comments_list
p.title 全部评论
.big(v-if="res.length != 0 ")
.one( v-for="v,i in res" :key="i")
.top
.left
img(:src='v.image', alt='')
.name
p {{v.nick_name}}
span {{v.create_time}}
.right
img(src='/static/img/icon/give_thumbs-up.png', alt='')
span {{v.praise_count}}
.text {{v.content}}
.two(v-else)
img.two_img(src="/static/img/hm_bg_img.png", alt='')
.two_text(:style="{fontSize:'0.4rem'}") 快来发表你的评论吧
</template>
<script>
export default {
name: 'comments',
props: {
res: {
type: Array,
default: () =>{[]}
}
},
created() {
},
data() {
return {
}
},
methods: {
},
};
</script>
<style lang="less" scoped>
.comments_list{
margin-bottom: 2rem;
.title{
margin-left: 0.32rem;
height: 1.347rem;
background-color: #ffffff;
font-size: 0.427rem !important;
color: #333333;
bottom:1.093rem;
display: flex;
align-items: center;
}
.one{
margin:0 0.32rem 0.5rem 0.307rem;
.top{
height: 1.747rem;
background-color: #ffffff;
display: flex;
justify-content: space-between;
padding-left: 0.307rem;
padding-right: 0.32rem;
align-items: center;
.left{
display: flex;
align-items: center;
img{
width: 0.933rem;
height: 0.947rem;
}
.name{
margin-left:0.27rem;
p{
font-size: 0.373rem;
color: #333333;
padding-bottom: 0.1rem;
}
span{
font-size: 0.267rem;
color: #999999;
}
}
}
.right{
img{
width: 0.347rem;
height: 0.36rem;
padding-right: 0.27rem;
}
span{
font-size: 0.32rem;
color: #999999;
}
}
}
.text{
width: 7.973rem;
font-size: 0.28rem;
line-height: 0.42rem;
color: #333333;
margin-left: 1.507rem;
}
}
.two{
display: flex;
flex-direction: column;
align-items: center;
.two_img{
width: 5.1rem;
height: 5.1rem;
}
.two_text{
top:0.68rem;
font-size:0.373rem;
color: #999999;
}
}
}
</style>

View File

@@ -0,0 +1,66 @@
<template lang="pug">
.nav
.left
img(class="navlogo" src="/static/img/icon/gw_img_logo.png")
img(class="navicon" src="/static/img/icon/logo_text_icon.png")
.right 打开
</template>
<script>
export default {
name: 'navt',
data () {
return {
}
},
methods: {
}
}
</script>
<style lang="less" scoped>
.nav {
width: 100%;
height: 1.3rem;
background-color: #000000;
opacity: 0.7;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
left: 0;
z-index: 100;
.left {
display: flex;
justify-content: space-between;
align-items: center;
margin-left: 0.3rem;
.navlogo {
width: 0.9rem;
height: 0.9rem;
margin-right: 0.3rem;
}
.navicon {
width: 1.8rem;
height: 0.6rem;
}
}
.right {
width: 1.9rem;
height: 0.7rem;
background-color: #d0302c;
border-radius: 0.1rem;
font-size: 0.3rem;
line-height: 0.7rem;
color: #ffffff;
text-align: center;
margin-right: 0.5333rem;
}
}
</style>

View File

@@ -0,0 +1,59 @@
<template lang="pug">
video-player.video-player-box(
ref="videoPlayer",
v-show="isShow"
:options="playerOptions",
:playsinline="true",
@play="onPlayerPlay()",
)
</template>
<script>
export default {
name: 'vue-video',
props: {
isShow: {
type: Boolean,
default: true,
},
url: {
type: Array,
default: () => []
}
},
data() {
return {
playerOptions: {
language: "en",
aspectRatio: "16:9",
playbackRates: [0.7, 1.0, 1.5, 2.0],
sources: this.url,
},
};
},
mounted() {
},
beforeDestroy() {
console.log("====== this.player ", this.player);
},
computed: {
player() {
return this.$refs.videoPlayer.player;
},
},
methods: {
onPlayerPlay() {
this.player && this.player.play();
},
onPlayerPause() {
this.player && this.player.pause();
},
},
};
</script>
<style lang="less" scoped>
.video-player-box {
width: 100%;
}
</style>

View File

@@ -0,0 +1,57 @@
import Vant from 'vant';
import 'vant/lib/index.css';
import VueVideoPlayer from 'vue-video-player'
import 'video.js/dist/video-js.css'
import "videojs-contrib-hls";
import { Swipe, SwipeItem } from 'vant';
import http from "@/service";
import utils from "@/utils";
import video from "@/components/video";
import TvList from "@/components/TvList";
import bottom from "@/components/bottom";
import comment from "@/components/comment";
import navt from "@/components/navt";
import recommend from "@/components/RelevantRecommend";
export default {
devBaseUrl: 'https://zbhapi.ahtv.cn/h5', // 开发阶段
testBaseUrl: '', // 测试阶段
prodBaseUrl: '', // 正式阶段
apiList: {
radio: '/radio', // 包河radio
channelList: '/channelList', // 包河tv
liveList: '/liveList', // 溶媒直播
getMenuList: '/getMenuList', // 节目列表
videoDetail:'/videoDetail',
getMenuList: '/getMenuList' ,// 节目列表
newsDetail: '/newsDetail',//新闻资讯
interactDetail: '/interactDetail' //帖子详情
},
VuePlugins: [ Vant, VueVideoPlayer ],
VuePlugins: [ Vant, VueVideoPlayer,Swipe,SwipeItem],
VueComponent: [video, TvList,recommend,bottom,navt,comment],
NotVuePlugins: [
{ n: '$http', v: http },
{ n: '$utils', v: utils },
],
CheckBaseUrl: function () {
switch (process.env.NODE_ENV) {
case "development":
return this.devBaseUrl;
break;
case "test":
return this.testBaseUrl;
break;
case "production":
return this.prodBaseUrl;
break;
default:
break;
}
}
}

View File

@@ -0,0 +1,77 @@
import axios from "axios";
import config from "@/config"
import { Toast } from 'vant';
export default class Http {
constructor() {
this.instance = axios.create({
baseURL: config.CheckBaseUrl(),
timeout: 10000,
headers: {
"Content-Type": "application/json; charset=utf-8"
}
});
this.interceptors();
}
async get(params) {
return await this.instance.get(params.url, {
params: params.data,
headers: params.headers
})
}
async post(params) {
return await this.instance.post(params.url, params.data, {
headers: params.headers
})
}
interceptors() {
// 添加请求拦截器
this.instance.interceptors.request.use(function (config) {
Toast.loading({
duration: 0,
message: '加载中...'
})
return config;
}, function (error) {
// 对请求错误做些什么
return Promise.reject(error);
});
// 添加响应拦截器
this.instance.interceptors.response.use(function (response) {
Toast.clear()
if (response.config.url == "/channelList") {
return response.data
} else {
switch (response.data.resultCode) {
case "000":
return response.data.data
break;
case 404:
Toast.fail({
duration: 3000,
message: response.data.message
})
throw new Error(response.data.message);
break;
default:
break;
}
}
return response.data;
}, function (error) {
// 对响应错误做点什么
return Promise.reject(error);
});
}
}

View File

@@ -0,0 +1,26 @@
import "amfe-flexible";
import Vue from 'vue'
import App from './App'
import router from './router'
import config from "@/config";
// 初始化vue插件
config.VuePlugins.forEach(v => Vue.use(v));
// 挂载自定义方法到vue实例上,实现全局访问
config.NotVuePlugins.forEach(v => Vue.prototype[v["n"]] = v["v"]);
// 注册全局vue组件
config.VueComponent.forEach(v => Vue.component(v.name, v))
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})

View File

@@ -0,0 +1,54 @@
<template lang="pug">
.home
van-tabs(
@change="tabChange",
v-model="active",
:swipeable="true",
line-width="0.32rem",
line-height="0.067rem",
:ticky="true"
)
van-tab(title="包河radio")
RadioComponents
van-tab(title="包河TV")
TvComponents
van-tab(title="融媒直播")
LiveComponents
</template>
<script>
import RadioComponents from "@/components/Radio";
import TvComponents from "@/components/Tv";
import LiveComponents from "@/components/Live";
export default {
created() {
this.active = Number(this.$route.query.type)
},
data() {
return {
active: 0,
};
},
methods: {
tabChange(index) {
this.$router.push({
query: {
type: index,
},
});
},
},
components: {
RadioComponents,
TvComponents,
LiveComponents,
},
};
</script>
<style lang="less" scoped>
@import "~@page/Home";
</style>

View File

@@ -0,0 +1,43 @@
<template lang="pug">
.tv-info
vue-video(:url="playUrl", v-if="playUrl.length != 0")
van-tabs(v-model="active")
van-tab(title="频道")
tv-list(:show="true")
van-tab(title="评论") 内容 2
</template>
<script>
export default {
data() {
return {
active: 0,
playUrl: [],
};
},
watch: {
$route: function (to, from) {
console.log("我监听到页面的地址和参数方式了改变");
this.setVideoUrl();
},
},
created() {
this.setVideoUrl();
console.log(this.playUrl);
},
methods: {
setVideoUrl() {
this.playUrl = [
{
type: "video/x-flv",
src: this.$route.query.url,
},
];
},
},
};
</script>
<style lang="less" scoped>
</style>

View File

@@ -0,0 +1,111 @@
<template lang="pug">
div
navt
.content(v-if="NewsDetail.length !=0")
.top
h2 {{NewsDetail.detail.title}}
span {{NewsDetail.detail.publish_time}}
.textlist(v-html="NewsDetail.detail.content" :class ="active ? 'active' : ''")
.bow(@click="onClick" v-show ="!active")
img(src="/static/img/select-down.png")
.bowtext 打开APP阅读全文
recommend(:type="0",:res='NewsDetail.recommend')
comments(:res='NewsDetail.comment')
bottom-t
</template>
<script>
export default {
data () {
return {
type:0,
active:false,
NewsDetail:{},
res:[]
}
},
created() {
this.newsDetail();
},
methods: {
async newsDetail() {
this.NewsDetail = await this.$http.index.newsDetail({id: this.$route.query.id,});
console.log(this.NewsDetail);
},
onClick(){
this.active = !this.active;
},
},
}
</script>
<style lang="less">
.textlist p {
font-size: 0.4rem !important;
color: #000000;
}
</style>
<style lang="less" scoped>
.content{
margin-top: 1.3rem;
padding: 0.3rem 0.3rem 0.3rem 0.3rem;
overflow-y: scroll;
position: relative;
overflow: hidden;
.top{
h2{
width: 9.4rem;
height: 1.2rem;
font-size: 0.5rem;
line-height: 0.7rem;
color: #333333;
}
span{
width: 5.3rem;
height: 0.3rem;
font-size: 0.3rem;
color: #999999;
margin-right: 0.2rem;
}
}
.textlist {
font-size: 0.4rem !important;
color: #000000;
height: 19rem;
margin-top: 0.3rem;
}
.active{
height: auto;
}
.bow{
text-align: center;
position: absolute;
bottom: 0;
background-image: linear-gradient(rgb(255, 255, 255), rgba(255, 255, 255, 0.144));
img{
width: 0.7rem;
height: 0.5rem;
margin-bottom: 0.4rem;
margin-top: 0.4rem;
}
.bowtext{
width: 9.4rem;
height: 1.2rem;
background-color: #d0302c;
border-radius: 0.1rem;
font-size: 0.3rem;
line-height: 1.2rem;
color: #ffffff;
}
}
}
</style>

View File

@@ -0,0 +1,110 @@
<template lang="pug">
div
navt
.content
van-swipe(
@change="onChange",
:loop="false",
:width="375",
:height="503.5",
v-if="res.detail"
)
van-swipe-item( v-for="(v, i) in res.detail.image", :key="i")
img(:src="v")
template(#indicator="")
.custom-indicator {{ current + 1 }}/{{ img_len }}
.Posts(v-if="res.detail")
.Posts_title
img(:src="res.detail.image_url")
.user
.user_name {{res.detail.nick_name}}
.time {{res.detail.create_time}}
.Posts_content {{res.detail.content}}
comments(:res="res.comment")
bottom-t
</template>
<script>
export default {
data() {
return {
current: 0,
res: [1],
img_len: 0,
};
},
created() {
this.interactDetail();
},
watch: {
res: function () {
this.res != [1] ? (this.img_len = this.res.detail.image.length) : "";
},
},
methods: {
async interactDetail() {
this.res = await this.$http.index.interactDetail({
id: this.$route.query.id,
});
},
onChange(index) {
this.current = index;
},
},
};
</script>
<style lang="less" scoped>
.custom-indicator {
position: absolute;
right: 0.533rem;
bottom: 0.627rem;
padding: 0.147rem 0.373rem ;
font-size: 0.373rem;
background: rgba(0, 0, 0, 0.57);
border-radius: .5rem;
}
.content {
margin-top: 1.333rem;
margin-bottom: 2.333rem;
}
.van-swipe-item {
img {
width: 100%;
}
}
.Posts {
padding: 0 0.333rem;
border-bottom: 0.213rem solid #f3f3f3;
.Posts_title {
height: 1.45rem;
display: flex;
align-items: center;
img {
width: 1rem;
height: 1rem;
border-radius: 50%;
margin-right: 0.213rem;
}
.user {
.user_name {
font-size: 0.373rem;
color: #333333;
}
.time {
margin-top: 0.2rem;
font-size: 0.32rem;
color: #999999;
}
}
}
.Posts_content {
font-size: 0.427rem;
line-height: 0.667rem;
color: #333333;
margin-bottom: 0.2rem;
}
}
</style>

View File

@@ -0,0 +1,138 @@
<template lang="pug">
.sevents
navt
.content(v-if="Object.keys(res).length !=0")
vue-video(:url="playUrl", v-if="playUrl.length != 0")
.text
.name {{ res.detail.title }}
p {{ res.detail.create_time }}
.bot
.left
.coll
img(src="/static/img/icon/collection-icon.png", alt="")
span.bot_text 收藏
.numb
img(src="/static/img/icon/give_thumbs-up.png", alt="")
span.num {{ res.detail.like_count }}
.right(@click="Getlist")
span.rights 简介
img.direction(
:src="isShow ? '/static/img/icon/open-just.png' : '/static/img/icon/open-close.png'",
alt=""
)
.act(v-show="isShow") {{ res.detail.des }}
recommend(:type="1", :res="res.recommend")
comments(:res="res.comment")
bottom-t
</template>
<script>
export default {
data() {
return {
type: 1,
res:{},
isShow: false,
playUrl: [],
};
},
watch: {
$route: function (to, from) {
console.log("我监听到页面的地址和参数方式了改变");
this.videoDetail();
},
},
created() {
this.videoDetail();
},
methods: {
async videoDetail() {
this.res = await this.$http.index.videoDetail({
id: this.$route.query.id,
});
this.playUrl = [
{
type: "video/mp4",
src: this.res.detail.play_url,
},
];
},
Getlist() {
this.isShow = !this.isShow;
},
},
};
</script>
<style lang="less" scoped>
.sevents {
.video-player-box {
margin-top: 1.2rem;
}
.text {
.name {
font-size: 0.48rem !important;
color: #333333 !important;
width: 9rem;
margin:0.66rem 0 0.2rem 0.37rem;
}
p {
font-size: 0.307rem !important;
color: #999999 !important;
padding: 0 0 0.36rem 0.306rem;
box-sizing: border-box;
}
.bot {
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 0 0.307rem 0 0.307rem;
.left {
display: flex;
.coll {
margin-right: 0.8rem;
img {
width: 0.347rem;
height: 0.347rem;
padding-right: 0.3rem;
}
.bot_text {
font-size: 0.32rem ;
color: #999999 ;
}
}
.numb {
img {
width: 0.347rem;
height: 0.36rem;
padding-right: 0.3rem;
}
.num {
font-size: 0.32rem;
color: #999999 ;
}
}
}
.right {
.rights {
font-size: 0.32rem ;
color: #999999 ;
}
img {
width: 0.227rem;
height: 0.133rem;
padding-left: 0.3rem;
}
}
}
.act {
margin: 0.387rem 0.38rem 0 0.32rem;
font-size: 0.373rem ;
color: #999999 ;
}
}
}
</style>

View File

@@ -0,0 +1,34 @@
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'Home',
component: () => import(/* webpackChunkName: "HelloWorld" */ '@/page/home/Home')
},
{
path: '/tvinfo',
name: 'TvInfo',
component: () => import(/* webpackChunkName: "about" */ '@/page/home/TvInfo')
},
{
path: '/PostsInfo',
name: 'PostsInfo',
component: () => import(/* webpackChunkName: "about" */ '@/page/PostsInfo/PostsInfo')
},
{
path: '/sevents',
name: 'Sevents',
component: () => import(/* webpackChunkName: "about" */ '@/page/Sevents/Sevents')
},
{
path: '/NewsDetail',
name: 'NewsDetail',
component: () => import(/* webpackChunkName: "about" */ '@/page/NewsDetail/NewsDetail')
}
]
})

View File

@@ -0,0 +1,3 @@
export default class carService {
}

View File

@@ -0,0 +1,9 @@
// 统一导出
import indexService from "@/service/indexService";
import carService from "@/service/carService";
export default {
index: new indexService(),
car: new carService(),
}

View File

@@ -0,0 +1,53 @@
import Http from "@/http";
import config from "@/config"
export default class indexService {
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 videoDetail (data = {}, headers = {}) {
return await (new Http()).get({
url: config.apiList.videoDetail,
data: data,
headers: headers
})
}
async newsDetail (data = {}, headers = {}) {
return await (new Http()).get({
url: config.apiList.newsDetail,
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,10 @@
class utils {
test() {
console.log("工具函数");
}
}
export default new utils();