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
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
11 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 @@
...
@@ -142,6 +142,7 @@
flex-direction
:
row
;
flex-direction
:
row
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-top
:
0.387rem
;
margin-top
:
0.387rem
;
align-items
:
flex-end
;
}
}
.news
.down-list
ul
li
.bar
.t2
{
.news
.down-list
ul
li
.bar
.t2
{
font-size
:
14px
;
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;;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,uBAAA;EACA,oBAAA;EACA,qBAAA;EACA,4BAAA;EACA,WAAA;EACA,kBAAA;EACA,iBAAA;EACA,YAAA;EACA,iBAAA;;AA5EV,KA8CE,SACE,GAcE,QAkBE;EACE,eAAA;EACA,WAAA;EACA,eAAA;;AAlFV,KAwFE;EACE,YAAA;EACA,mBAAA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;;AA9FJ,KAwFE,UAOE;EACE,WAAA;EACA,YAAA;EACA,cAAA;;AAlGN,KAwFE,UAOE,MAIE;EACE,WAAA;EACA,YAAA;EACA,cAAA;;AAtGR,KAwFE,UAkBE;EACE,eAAA;EACA,cAAA;EACA,gBAAA;EACA,qBAAA;;AA9GN,KAkHE;EACE,kBAAA;;AAnHJ,KAkHE,WAGE;EACE,iBAAA;;AAtHN,KAkHE,WAGE,GAGE;EACE,iBAAA;EACA,gCAAA;;AAEA,KAVN,WAGE,GAGE,GAIG;EACC,mBAAA;;AA7HV,KAkHE,WAGE,GAGE,GAQE;EACE,eAAA;EACA,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;EACA,oBAAA;EACA,qBAAA;EACA,4BAAA;;AAzIV,KAkHE,WAGE,GAGE,GAoBE;EACE,aAAA;EACA,mBAAA;EACA,8BAAA;EACA,oBAAA;;AAhJV,KAkHE,WAGE,GAGE,GAoBE,KAME;EACE,eAAA;EACA,cAAA;;AApJZ,KAkHE,WAGE,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"}
{"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,uBAAA;EACA,oBAAA;EACA,qBAAA;EACA,4BAAA;EACA,WAAA;EACA,kBAAA;EACA,iBAAA;EACA,YAAA;EACA,iBAAA;;AA5EV,KA8CE,SACE,GAcE,QAkBE;EACE,eAAA;EACA,WAAA;EACA,eAAA;;AAlFV,KAwFE;EACE,YAAA;EACA,mBAAA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;;AA9FJ,KAwFE,UAOE;EACE,WAAA;EACA,YAAA;EACA,cAAA;;AAlGN,KAwFE,UAOE,MAIE;EACE,WAAA;EACA,YAAA;EACA,cAAA;;AAtGR,KAwFE,UAkBE;EACE,eAAA;EACA,cAAA;EACA,gBAAA;EACA,qBAAA;;AA9GN,KAkHE;EACE,kBAAA;;AAnHJ,KAkHE,WAGE;EACE,iBAAA;;AAtHN,KAkHE,WAGE,GAGE;EACE,iBAAA;EACA,gCAAA;;AAEA,KAVN,WAGE,GAGE,GAIG;EACC,mBAAA;;AA7HV,KAkHE,WAGE,GAGE,GAQE;EACE,eAAA;EACA,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;EACA,oBAAA;EACA,qBAAA;EACA,4BAAA;;AAzIV,KAkHE,WAGE,GAGE,GAoBE;EACE,aAAA;EACA,mBAAA;EACA,8BAAA;EACA,oBAAA;EACA,qBAAA;;AAjJV,KAkHE,WAGE,GAGE,GAoBE,KAOE;EACE,eAAA;EACA,cAAA;;AArJZ,KAkHE,WAGE,GAGE,GAoBE,KAYE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,yBAAA;EACA,cAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,iBAAA;;AAjKZ,KAwKE;EACE,YAAA;EACA,mBAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,uBAAA;;AA9KJ,KAwKE,SAOE;EACE,WAAA;EACA,YAAA;;AAjLN,KAwKE,SAWE;EACE,oBAAA;EACA,eAAA;EACA,cAAA","file":"down.css"}
\ No newline at end of file
\ 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; } } }
.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
\ No newline at end of file
...
...
src/store/modules/download/index.js
View file @
fffbb6ad
...
@@ -31,7 +31,7 @@ const actions = {
...
@@ -31,7 +31,7 @@ const actions = {
if
(
data
.
err_code
==
0
)
{
if
(
data
.
err_code
==
0
)
{
commit
({
commit
({
type
:
'getfileuploadbanner'
,
type
:
'getfileuploadbanner'
,
data
:
data
.
data
data
:
data
.
data
.
data
});
});
}
}
...
...
src/views/download/Index.vue
View file @
fffbb6ad
...
@@ -7,13 +7,15 @@
...
@@ -7,13 +7,15 @@
</a>
</a>
<span
class=
"t1"
>
猎芯网
</span>
<span
class=
"t1"
>
猎芯网
</span>
</div>
</div>
<van-swipe
:autoplay=
"3000"
:height=
"bannerHeight"
v-if=
"getfileuploadbanner.data"
>
<template
v-if=
"getfileuploadbanner.length > 0"
>
<van-swipe-item
v-for=
"(item, index) in getfileuploadbanner.data"
:key=
"index"
>
<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'"
>
<a
:href=
"item.url"
:target=
"item.window_open > 0 ?'_blank':'_self'"
>
<img
:src=
"item.images"
height=
"100%"
width=
"100%"
/>
<img
:src=
"item.images"
height=
"100%"
width=
"100%"
/>
</a>
</a>
</van-swipe-item>
</van-swipe-item>
</van-swipe>
</van-swipe>
</
template
>
<div
class=
"down-list"
>
<div
class=
"down-list"
>
<ul
class=
"boxsiz"
>
<ul
class=
"boxsiz"
>
<li
class=
"boxsiz"
v-for=
"(item, index) in articleShowData"
:key=
"index"
>
<li
class=
"boxsiz"
v-for=
"(item, index) in articleShowData"
:key=
"index"
>
...
...
view/14.js
View file @
fffbb6ad
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.1@vant/es/index.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"news\",\n data: function data() {\n return {\n title: \"资料下载\",\n p: 1,\n meaushow: true,\n bannerHeight: 200,\n navListfixed: false\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n getfileuploadbanner: function getfileuploadbanner(state) {\n return state.download.getfileuploadbanner;\n },\n articleShowData: function articleShowData(state) {\n return state.download.articleShowData;\n }\n })),\n created: function created() {\n this.getData();\n },\n mounted: function mounted() {\n this.scrollFns();\n },\n methods: {\n getData: function getData() {\n this.$store.dispatch({\n type: \"getfileuploadbanner\"\n });\n this.$store.dispatch({\n type: \"articleShowData\"\n });\n },\n download: function download(id) {\n this.$store.dispatch({\n type: \"downloadFile\",\n id: id\n });\n },\n toUrl: function toUrl() {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: \"请登录后下载\",\n duration: 2000\n });\n setTimeout(function () {\n window.location.href = '/v3/login?from=download';\n }, 2000);\n },\n scrollFns: function scrollFns() {\n var self = this;\n\n window.onscroll = function () {\n var t = document.documentElement.scrollTop || document.body.scrollTop;\n\n if (t >= 300) {\n self.navListfixed = true;\n } else {\n self.navListfixed = false;\n }\n };\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/download/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.0.1@vant/es/index.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n
//\n//\n
\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Swipe\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"SwipeItem\"]).use(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"news\",\n data: function data() {\n return {\n title: \"资料下载\",\n p: 1,\n meaushow: true,\n bannerHeight: 200,\n navListfixed: false\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n getfileuploadbanner: function getfileuploadbanner(state) {\n return state.download.getfileuploadbanner;\n },\n articleShowData: function articleShowData(state) {\n return state.download.articleShowData;\n }\n })),\n created: function created() {\n this.getData();\n },\n mounted: function mounted() {\n this.scrollFns();\n },\n methods: {\n getData: function getData() {\n this.$store.dispatch({\n type: \"getfileuploadbanner\"\n });\n this.$store.dispatch({\n type: \"articleShowData\"\n });\n },\n download: function download(id) {\n this.$store.dispatch({\n type: \"downloadFile\",\n id: id\n });\n },\n toUrl: function toUrl() {\n Object(vant__WEBPACK_IMPORTED_MODULE_3__[\"Toast\"])({\n message: \"请登录后下载\",\n duration: 2000\n });\n setTimeout(function () {\n window.location.href = '/v3/login?from=download';\n }, 2000);\n },\n scrollFns: function scrollFns() {\n var self = this;\n\n window.onscroll = function () {\n var t = document.documentElement.scrollTop || document.body.scrollTop;\n\n if (t >= 300) {\n self.navListfixed = true;\n } else {\n self.navListfixed = false;\n }\n };\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/download/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"news\" },\n [\n _c(\"Header\", {\n attrs: { bgcolor: \"#fff\", title: _vm.title, meaushow: _vm.meaushow }\n }),\n _vm._m(0),\n _vm.getfileuploadbanner.
data\n ? _c(\n \"van-swipe\",\n { attrs: { autoplay: 3000, height: _vm.bannerHeight } },\n _vm._l(_vm.getfileuploadbanner.data, function(item, index) {\n return _c(\"van-swipe-item\", { key: index }, [\n _c(\n \"a\",\n {\n attrs: {\n href: item.url,\n target: item.window_open > 0 ? \"_blank\" : \"_self\"\n }\n },\n [\n _c(\"img\", {\n attrs: { src: item.images, height: \"100%\", width: \"100%\" }\n })\n ]\n )\n ])\n }),\n 1\n )
\n : _vm._e(),\n _c(\"div\", { staticClass: \"down-list\" }, [\n _c(\n \"ul\",\n { staticClass: \"boxsiz\" },\n _vm._l(_vm.articleShowData, function(item, index) {\n return _c(\"li\", { key: index, staticClass: \"boxsiz\" }, [\n _c(\"p\", { staticClass: \"t1\" }, [_vm._v(_vm._s(item.title))]),\n _c(\"div\", { staticClass: \"bar\" }, [\n _c(\"p\", { staticClass: \"t2\" }, [\n _vm._v(\"已下载\" + _vm._s(item.download_num) + \"次\")\n ]),\n _c(\n \"a\",\n {\n staticClass: \"btn\",\n on: {\n click: function($event) {\n return _vm.download(item.data_id)\n }\n }\n },\n [_vm._v(\"下载\")]\n )\n ])\n ])\n }),\n 0\n )\n ]),\n _vm.articleShowData.length <= 3\n ? [\n _c(\"div\", { staticClass: \"islogin\", on: { click: _vm.toUrl } }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/download/loading.png */ \"./src/assets/images/download/loading.png\"),\n alt: \"\"\n }\n }),\n _c(\"a\", { attrs: { href: \"javascript:;\" } }, [\n _vm._v(\"点击登录查看更多 >\")\n ])\n ])\n ]\n : _vm._e(),\n _c(\n \"div\",\n {\n directives: [{ name: \"backTopWindow\", rawName: \"v-backTopWindow\" }],\n staticClass: \"slide-bar\",\n staticStyle: { cursor: \"pointer\" }\n },\n [\n _vm.navListfixed\n ? _c(\"div\", { staticClass: \"backtop\" }, [\n _c(\"i\", { staticClass: \"iconfont icon-xiangshang1\" })\n ])\n : _vm._e()\n ]\n )\n ],\n 2\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"new-head boxsiz\" }, [\n _c(\"a\", { staticClass: \"logo\", attrs: { href: \"/\" } }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/download/logo.png */ \"./src/assets/images/download/logo.png\"),\n alt: \"猎芯网\"\n }\n })\n ]),\n _c(\"span\", { staticClass: \"t1\" }, [_vm._v(\"猎芯网\")])\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/download/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%223fdc9e70-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"news\" },\n [\n _c(\"Header\", {\n attrs: { bgcolor: \"#fff\", title: _vm.title, meaushow: _vm.meaushow }\n }),\n _vm._m(0),\n _vm.getfileuploadbanner.
length > 0\n ? [\n _c(\n \"van-swipe\",\n { attrs: { autoplay: 3000, height: _vm.bannerHeight } },\n _vm._l(_vm.getfileuploadbanner, function(item, index) {\n return _c(\"van-swipe-item\", { key: index }, [\n _c(\n \"a\",\n {\n attrs: {\n href: item.url,\n target: item.window_open > 0 ? \"_blank\" : \"_self\"\n }\n },\n [\n _c(\"img\", {\n attrs: {\n src: item.images,\n height: \"100%\",\n width: \"100%\"\n }\n })\n ]\n )\n ])\n }),\n 1\n )\n ]
\n : _vm._e(),\n _c(\"div\", { staticClass: \"down-list\" }, [\n _c(\n \"ul\",\n { staticClass: \"boxsiz\" },\n _vm._l(_vm.articleShowData, function(item, index) {\n return _c(\"li\", { key: index, staticClass: \"boxsiz\" }, [\n _c(\"p\", { staticClass: \"t1\" }, [_vm._v(_vm._s(item.title))]),\n _c(\"div\", { staticClass: \"bar\" }, [\n _c(\"p\", { staticClass: \"t2\" }, [\n _vm._v(\"已下载\" + _vm._s(item.download_num) + \"次\")\n ]),\n _c(\n \"a\",\n {\n staticClass: \"btn\",\n on: {\n click: function($event) {\n return _vm.download(item.data_id)\n }\n }\n },\n [_vm._v(\"下载\")]\n )\n ])\n ])\n }),\n 0\n )\n ]),\n _vm.articleShowData.length <= 3\n ? [\n _c(\"div\", { staticClass: \"islogin\", on: { click: _vm.toUrl } }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/download/loading.png */ \"./src/assets/images/download/loading.png\"),\n alt: \"\"\n }\n }),\n _c(\"a\", { attrs: { href: \"javascript:;\" } }, [\n _vm._v(\"点击登录查看更多 >\")\n ])\n ])\n ]\n : _vm._e(),\n _c(\n \"div\",\n {\n directives: [{ name: \"backTopWindow\", rawName: \"v-backTopWindow\" }],\n staticClass: \"slide-bar\",\n staticStyle: { cursor: \"pointer\" }\n },\n [\n _vm.navListfixed\n ? _c(\"div\", { staticClass: \"backtop\" }, [\n _c(\"i\", { staticClass: \"iconfont icon-xiangshang1\" })\n ])\n : _vm._e()\n ]\n )\n ],\n 2\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"new-head boxsiz\" }, [\n _c(\"a\", { staticClass: \"logo\", attrs: { href: \"/\" } }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/download/logo.png */ \"./src/assets/images/download/logo.png\"),\n alt: \"猎芯网\"\n }\n })\n ]),\n _c(\"span\", { staticClass: \"t1\" }, [_vm._v(\"猎芯网\")])\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/download/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%223fdc9e70-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
@@ -42,7 +42,7 @@ eval("exports = module.exports = __webpack_require__(/*! ../../../node_modules/_
...
@@ -42,7 +42,7 @@ eval("exports = module.exports = __webpack_require__(/*! ../../../node_modules/_
/*! no static exports found */
/*! no static exports found */
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
eval
(
"exports = module.exports = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \".news .borderBottom {\\n border-bottom: 1px solid #e5e5e5;\\n}\\n.news .navList {\\n border-bottom: 1px solid #e5e5e5;\\n padding: 0 10px;\\n clear: both;\\n height: 40px;\\n line-height: 40px;\\n font-size: 14px;\\n background: #fff;\\n overflow: hidden;\\n}\\n.news .navList p {\\n text-align: center;\\n width: 33.33%;\\n color: #333;\\n float: left;\\n cursor: pointer;\\n height: 40px;\\n line-height: 40px;\\n}\\n.news .navList p.act {\\n color: #e10601;\\n border-bottom: 2px solid #e10601;\\n}\\n.news .navListfixed {\\n border-bottom: 1px solid #e5e5e5;\\n padding: 0 10px;\\n clear: both;\\n height: 40px;\\n line-height: 40px;\\n font-size: 14px;\\n background: #fff;\\n overflow: hidden;\\n position: fixed;\\n top: 39px;\\n left: 0;\\n right: 0px;\\n}\\n.news .navListfixed p {\\n text-align: center;\\n width: 33.33%;\\n color: #333;\\n float: left;\\n cursor: pointer;\\n height: 40px;\\n line-height: 40px;\\n}\\n.news .navListfixed p.act {\\n color: #e10601;\\n border-bottom: 2px solid #e10601;\\n}\\n.news .navList44 p {\\n width: 25%;\\n}\\n.news .listBox li {\\n padding: 10px;\\n height: 100px;\\n border-bottom: 1px solid #e5e5e5;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n}\\n.news .listBox li img {\\n height: 75px;\\n width: 27%;\\n float: left;\\n border: 0px;\\n outline: none;\\n}\\n.news .listBox li .boxgrt {\\n height: 75px;\\n width: 66%;\\n float: right;\\n}\\n.news .listBox li .boxgrt .title {\\n overflow: hidden;\\n text-overflow: ellipsis;\\n display: -webkit-box;\\n -webkit-line-clamp: 2;\\n -webkit-box-orient: vertical;\\n color: #333;\\n font-size: 0.32rem;\\n font-weight: bold;\\n height: 50px;\\n line-height: 25px;\\n}\\n.news .listBox li .boxgrt .titleLook {\\n font-size: 14px;\\n color: #999;\\n margin-top: 5px;\\n}\\n.news .new-head {\\n height: 49px;\\n background: #f3f3f3;\\n padding: 0 0.4rem;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -webkit-box-orient: horizontal;\\n -webkit-box-direction: normal;\\n -ms-flex-direction: row;\\n flex-direction: row;\\n -webkit-box-align: center;\\n -ms-flex-align: center;\\n align-items: center;\\n}\\n.news .new-head .logo {\\n width: 30px;\\n height: 30px;\\n display: block;\\n}\\n.news .new-head .logo img {\\n width: 30px;\\n height: 30px;\\n display: block;\\n}\\n.news .new-head .t1 {\\n font-size: 16px;\\n color: #1080d0;\\n font-weight: 500;\\n margin-left: 0.267rem;\\n}\\n.news .down-list {\\n margin-top: 0.5rem;\\n}\\n.news .down-list ul {\\n padding: 0 0.4rem;\\n}\\n.news .down-list ul li {\\n padding: 0.4rem 0;\\n border-bottom: 1px solid #e5e5e5;\\n}\\n.news .down-list ul li:last-child {\\n border-bottom: none;\\n}\\n.news .down-list ul li .t1 {\\n font-size: 16px;\\n color: #333333;\\n line-height: 24px;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: normal;\\n display: -webkit-box;\\n -webkit-line-clamp: 2;\\n -webkit-box-orient: vertical;\\n}\\n.news .down-list ul li .bar {\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -webkit-box-orient: horizontal;\\n -webkit-box-direction: normal;\\n -ms-flex-direction: row;\\n flex-direction: row;\\n -webkit-box-pack: justify;\\n -ms-flex-pack: justify;\\n justify-content: space-between;\\n margin-top: 0.387rem;\\n}\\n.news .down-list ul li .bar .t2 {\\n font-size: 14px;\\n color: #999999;\\n}\\n.news .down-list ul li .bar .btn {\\n width: 85px;\\n height: 30px;\\n border-radius: 3px;\\n border: solid 1px #1080d0;\\n display: block;\\n font-size: 14px;\\n color: #1080d0;\\n text-align: center;\\n line-height: 30px;\\n}\\n.news .islogin {\\n height: 50px;\\n background: #f3f3f3;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -webkit-box-orient: horizontal;\\n -webkit-box-direction: normal;\\n -ms-flex-direction: row;\\n flex-direction: row;\\n -webkit-box-align: center;\\n -ms-flex-align: center;\\n align-items: center;\\n -webkit-box-pack: center;\\n -ms-flex-pack: center;\\n justify-content: center;\\n}\\n.news .islogin img {\\n width: 20px;\\n height: 20px;\\n}\\n.news .islogin a {\\n margin-left: 0.28rem;\\n font-size: 12px;\\n color: #333333;\\n}\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/assets/css/news/down.css?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2"
);
eval
(
"exports = module.exports = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \".news .borderBottom {\\n border-bottom: 1px solid #e5e5e5;\\n}\\n.news .navList {\\n border-bottom: 1px solid #e5e5e5;\\n padding: 0 10px;\\n clear: both;\\n height: 40px;\\n line-height: 40px;\\n font-size: 14px;\\n background: #fff;\\n overflow: hidden;\\n}\\n.news .navList p {\\n text-align: center;\\n width: 33.33%;\\n color: #333;\\n float: left;\\n cursor: pointer;\\n height: 40px;\\n line-height: 40px;\\n}\\n.news .navList p.act {\\n color: #e10601;\\n border-bottom: 2px solid #e10601;\\n}\\n.news .navListfixed {\\n border-bottom: 1px solid #e5e5e5;\\n padding: 0 10px;\\n clear: both;\\n height: 40px;\\n line-height: 40px;\\n font-size: 14px;\\n background: #fff;\\n overflow: hidden;\\n position: fixed;\\n top: 39px;\\n left: 0;\\n right: 0px;\\n}\\n.news .navListfixed p {\\n text-align: center;\\n width: 33.33%;\\n color: #333;\\n float: left;\\n cursor: pointer;\\n height: 40px;\\n line-height: 40px;\\n}\\n.news .navListfixed p.act {\\n color: #e10601;\\n border-bottom: 2px solid #e10601;\\n}\\n.news .navList44 p {\\n width: 25%;\\n}\\n.news .listBox li {\\n padding: 10px;\\n height: 100px;\\n border-bottom: 1px solid #e5e5e5;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n}\\n.news .listBox li img {\\n height: 75px;\\n width: 27%;\\n float: left;\\n border: 0px;\\n outline: none;\\n}\\n.news .listBox li .boxgrt {\\n height: 75px;\\n width: 66%;\\n float: right;\\n}\\n.news .listBox li .boxgrt .title {\\n overflow: hidden;\\n text-overflow: ellipsis;\\n display: -webkit-box;\\n -webkit-line-clamp: 2;\\n -webkit-box-orient: vertical;\\n color: #333;\\n font-size: 0.32rem;\\n font-weight: bold;\\n height: 50px;\\n line-height: 25px;\\n}\\n.news .listBox li .boxgrt .titleLook {\\n font-size: 14px;\\n color: #999;\\n margin-top: 5px;\\n}\\n.news .new-head {\\n height: 49px;\\n background: #f3f3f3;\\n padding: 0 0.4rem;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -webkit-box-orient: horizontal;\\n -webkit-box-direction: normal;\\n -ms-flex-direction: row;\\n flex-direction: row;\\n -webkit-box-align: center;\\n -ms-flex-align: center;\\n align-items: center;\\n}\\n.news .new-head .logo {\\n width: 30px;\\n height: 30px;\\n display: block;\\n}\\n.news .new-head .logo img {\\n width: 30px;\\n height: 30px;\\n display: block;\\n}\\n.news .new-head .t1 {\\n font-size: 16px;\\n color: #1080d0;\\n font-weight: 500;\\n margin-left: 0.267rem;\\n}\\n.news .down-list {\\n margin-top: 0.5rem;\\n}\\n.news .down-list ul {\\n padding: 0 0.4rem;\\n}\\n.news .down-list ul li {\\n padding: 0.4rem 0;\\n border-bottom: 1px solid #e5e5e5;\\n}\\n.news .down-list ul li:last-child {\\n border-bottom: none;\\n}\\n.news .down-list ul li .t1 {\\n font-size: 16px;\\n color: #333333;\\n line-height: 24px;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: normal;\\n display: -webkit-box;\\n -webkit-line-clamp: 2;\\n -webkit-box-orient: vertical;\\n}\\n.news .down-list ul li .bar {\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -webkit-box-orient: horizontal;\\n -webkit-box-direction: normal;\\n -ms-flex-direction: row;\\n flex-direction: row;\\n -webkit-box-pack: justify;\\n -ms-flex-pack: justify;\\n justify-content: space-between;\\n margin-top: 0.387rem;\\n
-webkit-box-align: end;\\n -ms-flex-align: end;\\n align-items: flex-end;\\n
}\\n.news .down-list ul li .bar .t2 {\\n font-size: 14px;\\n color: #999999;\\n}\\n.news .down-list ul li .bar .btn {\\n width: 85px;\\n height: 30px;\\n border-radius: 3px;\\n border: solid 1px #1080d0;\\n display: block;\\n font-size: 14px;\\n color: #1080d0;\\n text-align: center;\\n line-height: 30px;\\n}\\n.news .islogin {\\n height: 50px;\\n background: #f3f3f3;\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -webkit-box-orient: horizontal;\\n -webkit-box-direction: normal;\\n -ms-flex-direction: row;\\n flex-direction: row;\\n -webkit-box-align: center;\\n -ms-flex-align: center;\\n align-items: center;\\n -webkit-box-pack: center;\\n -ms-flex-pack: center;\\n justify-content: center;\\n}\\n.news .islogin img {\\n width: 20px;\\n height: 20px;\\n}\\n.news .islogin a {\\n margin-left: 0.28rem;\\n font-size: 12px;\\n color: #333333;\\n}\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/assets/css/news/down.css?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2"
);
/***/
}),
/***/
}),
...
...
view/app.js
View file @
fffbb6ad
...
@@ -3857,7 +3857,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
...
@@ -3857,7 +3857,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"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