Commit 2eeb1b51 by 梁建民

js

parent cdd9727e
Showing with 3 additions and 3 deletions
......@@ -100,12 +100,12 @@
toUrl() {
Toast({
message: "请登录后下载",
duration: 2000
duration: 1000
});
setTimeout(() => {
window.location.href = '/v3/login?referer=%2fh5%2fview%2f%23%2fdownoad&from=download'
}, 2000)
}, 1000)
},
scrollFns() {
......
......@@ -8,7 +8,7 @@
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"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//\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 loginCheck: function loginCheck(state) {\n return state.common.loginCheck;\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 this.$store.dispatch({\n type: \"loginCheck\",\n is_jump: false\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?referer=%2fh5%2fview%2f%23%2fdownoad&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//\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 loginCheck: function loginCheck(state) {\n return state.common.loginCheck;\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 this.$store.dispatch({\n type: \"loginCheck\",\n is_jump: false\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: 1000\n });\n setTimeout(function () {\n window.location.href = '/v3/login?referer=%2fh5%2fview%2f%23%2fdownoad&from=download';\n }, 1000);\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");
/***/ }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment