Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fffbb6ad
authored
Sep 20, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
17da5188
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
13 deletions
src/assets/css/news/down.css
src/assets/css/news/down.css.map
src/assets/css/news/down.less
src/store/modules/download/index.js
src/views/download/Index.vue
view/14.js
view/app.js
src/assets/css/news/down.css
View file @
fffbb6ad
...
...
@@ -142,6 +142,7 @@
flex-direction
:
row
;
justify-content
:
space-between
;
margin-top
:
0.387rem
;
align-items
:
flex-end
;
}
.news
.down-list
ul
li
.bar
.t2
{
font-size
:
14px
;
...
...
src/assets/css/news/down.css.map
View file @
fffbb6ad
{"version":3,"sources":["down.less"],"names":[],"mappings":"AAAA,KAEE;EACE,gCAAA;;AAHJ,KAME;EACE,gCAAA;EACA,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,gBAAA;EACA,gBAAA;;AAdJ,KAME,SAUE;EACE,kBAAA;EACA,aAAA;EACA,WAAA;EACA,WAAA;EACA,eAAA;EACA,YAAA;EACA,iBAAA;;AAvBN,KAME,SAoBE,EAAC;EACC,cAAA;EACA,gCAAA;;AA5BN,KAgCE;EAzBE,gCAAA;EACA,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,gBAAA;EACA,gBAAA;EAoBA,eAAA;EACA,SAAA;EACA,OAAA;EACA,UAAA;;AArCJ,KAgCE,cAhBE;EACE,kBAAA;EACA,aAAA;EACA,WAAA;EACA,WAAA;EACA,eAAA;EACA,YAAA;EACA,iBAAA;;AAv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GAGE,GAoBE,KAWE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,yBAAA;EACA,cAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,iBAAA;;AAhKZ,KAuKE;EACE,YAAA;EACA,mBAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,uBAAA;;AA7KJ,KAuKE,SAOE;EACE,WAAA;EACA,YAAA;;AAhLN,KAuKE,SAWE;EACE,oBAAA;EACA,eAAA;EACA,cAAA","file":"down.css"}
\ No newline at end of file
{"version":3,"sources":["down.less"],"names":[],"mappings":"AAAA,KAEE;EACE,gCAAA;;AAHJ,KAME;EACE,gCAAA;EACA,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,gBAAA;EACA,gBAAA;;AAdJ,KAME,SAUE;EACE,kBAAA;EACA,aAAA;EACA,WAAA;EACA,WAAA;EACA,eAAA;EACA,YAAA;EACA,iBAAA;;AAvBN,KAME,SAoBE,EAAC;EACC,cAAA;EACA,gCAAA;;AA5BN,KAgCE;EAzBE,gCAAA;EACA,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,gBAAA;EACA,gBAAA;EAoBA,eAAA;EACA,SAAA;EACA,OAAA;EACA,UAAA;;AArCJ,KAgCE,cAhBE;EACE,kBAAA;EACA,aAAA;EACA,WAAA;EACA,WAAA;EACA,eAAA;EACA,YAAA;EACA,iBAAA;;AAvBN,KAgCE,cANE,EAAC;EACC,cAAA;EACA,gCAAA;;AA5BN,KAwCE,WACE;EACE,UAAA;;AA1CN,KA8CE,SACE;EACE,aAAA;EACA,aAAA;EA9CF,gCAAA;EAgDE,sBAAA;;AAnDN,KA8CE,SACE,GAME;EACE,YAAA;EACA,UAAA;EACA,WAAA;EACA,WAAA;EACA,aAAA;;AA1DR,KA8CE,SACE,GAcE;EACE,YAAA;EACA,UAAA;EACA,YAAA;;AAhER,KA8CE,SACE,GAcE,QAKE;EACE,gBAAA;EACA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\ No newline at end of file
src/assets/css/news/down.less
View file @
fffbb6ad
.news { .borderBottom { border-bottom: 1px solid #e5e5e5; } .navList { border-bottom: 1px solid #e5e5e5; padding: 0 10px; clear: both; height: 40px; line-height: 40px; font-size: 14px; background: #fff; overflow: hidden; p { text-align: center; width: 33.33%; color: #333; float: left; cursor: pointer; height: 40px; line-height: 40px; } p.act { color: #e10601; border-bottom: 2px solid #e10601; } } .navListfixed { .navList; position: fixed; top: 39px; left: 0; right: 0px; } .navList44 { p { width: 25%; } } .listBox { li { padding: 10px; height: 100px; .borderBottom; box-sizing: border-box; img { height: 75px; width: 27%; float: left; border: 0px; outline: none; } .boxgrt { height: 75px; width: 66%; float: right; .title { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #333; font-size: 0.32rem; font-weight: bold; height: 50px; line-height: 25px; } .titleLook { font-size: 14px; color: #999; margin-top: 5px; } } } } .new-head { height: 49px; background: #f3f3f3; padding: 0 0.4rem; display: flex; flex-direction: row; align-items: center; .logo { width: 30px; height: 30px; display: block; img { width: 30px; height: 30px; display: block; } } .t1 { font-size: 16px; color: #1080d0; font-weight: 500; margin-left: 0.267rem; } } .down-list { margin-top: 0.5rem; ul { padding: 0 0.4rem; li { padding: 0.4rem 0; border-bottom: 1px solid #e5e5e5; &:last-child { border-bottom: none; } .t1 { font-size: 16px; color: #333333; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .bar { display: flex; flex-direction: row; justify-content: space-between; margin-top: 0.387rem; .t2 { font-size: 14px; color: #999999; } .btn { width: 85px; height: 30px; border-radius: 3px; border: solid 1px #1080d0; display: block; font-size: 14px; color: #1080d0; text-align: center; line-height: 30px; } } } } } .islogin{ height: 50px; background: #f3f3f3; display: flex; flex-direction: row; align-items: center; justify-content: center; img{ width: 20px; height: 20px; } a{ margin-left: 0.28rem; font-size: 12px; color: #333333; } } }
\ No newline at end of file
.news { .borderBottom { border-bottom: 1px solid #e5e5e5; } .navList { border-bottom: 1px solid #e5e5e5; padding: 0 10px; clear: both; height: 40px; line-height: 40px; font-size: 14px; background: #fff; overflow: hidden; p { text-align: center; width: 33.33%; color: #333; float: left; cursor: pointer; height: 40px; line-height: 40px; } p.act { color: #e10601; border-bottom: 2px solid #e10601; } } .navListfixed { .navList; position: fixed; top: 39px; left: 0; right: 0px; } .navList44 { p { width: 25%; } } .listBox { li { padding: 10px; height: 100px; .borderBottom; box-sizing: border-box; img { height: 75px; width: 27%; float: left; border: 0px; outline: none; } .boxgrt { height: 75px; width: 66%; float: right; .title { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #333; font-size: 0.32rem; font-weight: bold; height: 50px; line-height: 25px; } .titleLook { font-size: 14px; color: #999; margin-top: 5px; } } } } .new-head { height: 49px; background: #f3f3f3; padding: 0 0.4rem; display: flex; flex-direction: row; align-items: center; .logo { width: 30px; height: 30px; display: block; img { width: 30px; height: 30px; display: block; } } .t1 { font-size: 16px; color: #1080d0; font-weight: 500; margin-left: 0.267rem; } } .down-list { margin-top: 0.5rem; ul { padding: 0 0.4rem; li { padding: 0.4rem 0; border-bottom: 1px solid #e5e5e5; &:last-child { border-bottom: none; } .t1 { font-size: 16px; color: #333333; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .bar { display: flex; flex-direction: row; justify-content: space-between; margin-top: 0.387rem; align-items: flex-end; .t2 { font-size: 14px; color: #999999; } .btn { width: 85px; height: 30px; border-radius: 3px; border: solid 1px #1080d0; display: block; font-size: 14px; color: #1080d0; text-align: center; line-height: 30px; } } } } } .islogin{ height: 50px; background: #f3f3f3; display: flex; flex-direction: row; align-items: center; justify-content: center; img{ width: 20px; height: 20px; } a{ margin-left: 0.28rem; font-size: 12px; color: #333333; } } }
\ No newline at end of file
...
...
src/store/modules/download/index.js
View file @
fffbb6ad
...
...
@@ -31,7 +31,7 @@ const actions = {
if
(
data
.
err_code
==
0
)
{
commit
({
type
:
'getfileuploadbanner'
,
data
:
data
.
data
data
:
data
.
data
.
data
});
}
...
...
src/views/download/Index.vue
View file @
fffbb6ad
...
...
@@ -7,13 +7,15 @@
</a>
<span
class=
"t1"
>
猎芯网
</span>
</div>
<van-swipe
:autoplay=
"3000"
:height=
"bannerHeight"
v-if=
"getfileuploadbanner.data"
>
<van-swipe-item
v-for=
"(item, index) in getfileuploadbanner.data"
:key=
"index"
>
<a
:href=
"item.url"
:target=
"item.window_open > 0 ?'_blank':'_self'"
>
<img
:src=
"item.images"
height=
"100%"
width=
"100%"
/>
</a>
</van-swipe-item>
</van-swipe>
<template
v-if=
"getfileuploadbanner.length > 0"
>
<van-swipe
:autoplay=
"3000"
:height=
"bannerHeight"
>
<van-swipe-item
v-for=
"(item, index) in getfileuploadbanner"
:key=
"index"
>
<a
:href=
"item.url"
:target=
"item.window_open > 0 ?'_blank':'_self'"
>
<img
:src=
"item.images"
height=
"100%"
width=
"100%"
/>
</a>
</van-swipe-item>
</van-swipe>
</
template
>
<div
class=
"down-list"
>
<ul
class=
"boxsiz"
>
<li
class=
"boxsiz"
v-for=
"(item, index) in articleShowData"
:key=
"index"
>
...
...
view/14.js
View file @
fffbb6ad
This diff is collapsed.
Click to expand it.
view/app.js
View file @
fffbb6ad
...
...
@@ -3857,7 +3857,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.1@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util/index */ \"./src/util/index.js\");\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false,\n getfileuploadbanner: [],\n articleShowData: []\n};\nvar mutations = {\n getfileuploadbanner: function getfileuploadbanner(state, payload) {\n state.getfileuploadbanner = payload.data;\n },\n articleShowData: function articleShowData(state, payload) {\n state.articleShowData = payload.data;\n }\n};\nvar actions = {\n getfileuploadbanner: function getfileuploadbanner(_ref, payload) {\n var commit = _ref.commit;\n var params = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getParams();\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].getfileuploadbanner(params).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n commit({\n type: 'getfileuploadbanner',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n downloadFile: function downloadFile(_ref2, payload) {\n var commit = _ref2.commit;\n var param = {\n data_id: payload.id\n };\n var params = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getParams(param);\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].downloadFile(params).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n window.location.href = data.data[0].file_url;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n }\n }).catch(function (err) {});\n },\n articleShowData: function articleShowData(_ref3, payload) {\n var commit = _ref3.commit;\n var params = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getParams();\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].articleShowData(params).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n commit({\n type: 'articleShowData',\n data: data.data\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n }\n }).catch(function (err) {});\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/download/index.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.1@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util/index */ \"./src/util/index.js\");\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false,\n getfileuploadbanner: [],\n articleShowData: []\n};\nvar mutations = {\n getfileuploadbanner: function getfileuploadbanner(state, payload) {\n state.getfileuploadbanner = payload.data;\n },\n articleShowData: function articleShowData(state, payload) {\n state.articleShowData = payload.data;\n }\n};\nvar actions = {\n getfileuploadbanner: function getfileuploadbanner(_ref, payload) {\n var commit = _ref.commit;\n var params = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getParams();\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].getfileuploadbanner(params).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n commit({\n type: 'getfileuploadbanner',\n data: data.data
.data
\n });\n }\n }).catch(function (err) {});\n },\n downloadFile: function downloadFile(_ref2, payload) {\n var commit = _ref2.commit;\n var param = {\n data_id: payload.id\n };\n var params = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getParams(param);\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].downloadFile(params).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n window.location.href = data.data[0].file_url;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n }\n }).catch(function (err) {});\n },\n articleShowData: function articleShowData(_ref3, payload) {\n var commit = _ref3.commit;\n var params = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getParams();\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].articleShowData(params).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n commit({\n type: 'articleShowData',\n data: data.data\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n }\n }).catch(function (err) {});\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/download/index.js?"
);
/***/
}),
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment