Commit 5510be0f by 施宇

111

parent 752ba09b
......@@ -3,8 +3,9 @@ import Util from "../util";
export default {
bind(el, binding) {
el.addEventListener('click', function () {
var loginpta = Util.isLogin() ? true : false;
if (!loginpta) {
// var loginpta = Util.isLogin() ? true : false;
let loginpta = Util.isLogin() //1强登入态
if (loginpta!=1) {
window.location.href = '/v3/login?referer=' + encodeURIComponent(window.location.href);
return;
}
......
......@@ -198,19 +198,21 @@ export default {
.catch(function(err) {});
},
yaoqing(id) {
let loginpta = util.isLogin() ? true : false;
if (!loginpta) {
let loginpta = util.isLogin() //1强登入态
if (loginpta!=1) {
window.location.href =
"/v3/login?referer=" + encodeURIComponent(window.location.href);
return;
} else {
if (this.applyCount) {
me.$router.push({
if (this.applyCount!=0) {
this.$router.push({
path: "/sampleapply",
query: {
id: id
}
});
}else{
this.getPop = true;
}
}
}
......
......@@ -3990,7 +3990,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 _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ \"./src/util/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n bind: function bind(el, binding) {\n el.addEventListener('click', function () {\n var loginpta = _util__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isLogin() ? true : false;\n\n if (!loginpta) {\n window.location.href = '/v3/login?referer=' + encodeURIComponent(window.location.href);\n return;\n }\n\n var rootElement = document.body;\n var newElement = document.createElement(\"div\");\n newElement.setAttribute(\"class\", \"share-mask\");\n var img = document.createElement(\"img\");\n img.src = \"http://img.ichunt.com/test/images/ichunt/201904/10/b6dac89d8e471cc6cb499e1023373e0a.png\";\n rootElement.appendChild(newElement);\n newElement.appendChild(img);\n newElement.addEventListener('click', function () {\n newElement.remove();\n }, false);\n }, false);\n }\n});\n\n//# sourceURL=webpack:///./src/directive/shareMask.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ \"./src/util/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n bind: function bind(el, binding) {\n el.addEventListener('click', function () {\n // var loginpta = Util.isLogin() ? true : false;\n var loginpta = _util__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isLogin(); //1强登入态\n\n if (loginpta != 1) {\n window.location.href = '/v3/login?referer=' + encodeURIComponent(window.location.href);\n return;\n }\n\n var rootElement = document.body;\n var newElement = document.createElement(\"div\");\n newElement.setAttribute(\"class\", \"share-mask\");\n var img = document.createElement(\"img\");\n img.src = \"http://img.ichunt.com/test/images/ichunt/201904/10/b6dac89d8e471cc6cb499e1023373e0a.png\";\n rootElement.appendChild(newElement);\n newElement.appendChild(img);\n newElement.addEventListener('click', function () {\n newElement.remove();\n }, false);\n }, false);\n }\n});\n\n//# sourceURL=webpack:///./src/directive/shareMask.js?");
/***/ }),
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