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
5510be0f
authored
Oct 11, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
752ba09b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
src/directive/shareMask.js
src/views/sample/sample.vue
view/14.js
view/app.js
src/directive/shareMask.js
View file @
5510be0f
...
...
@@ -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
;
}
...
...
src/views/sample/sample.vue
View file @
5510be0f
...
...
@@ -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
;
}
}
}
...
...
view/14.js
View file @
5510be0f
This diff is collapsed.
Click to expand it.
view/app.js
View file @
5510be0f
...
...
@@ -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?"
);
/***/
}),
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