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
09782492
authored
Oct 11, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
5510be0f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
src/assets/css/sample/sample.css
src/assets/css/sample/sample.less
src/directive/shareMask.js
view/14.js
view/app.js
src/assets/css/sample/sample.css
View file @
09782492
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
}
}
.sample
.fx_text
{
.sample
.fx_text
{
color
:
#999
;
color
:
#999
;
text-align
:
right
;
}
}
.sample
.fx_text
div
{
.sample
.fx_text
div
{
padding
:
0
15px
10px
;
padding
:
0
15px
10px
;
...
...
src/assets/css/sample/sample.less
View file @
09782492
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
}
}
.fx_text{
.fx_text{
color:#999;
color:#999;
text-align: right;
div{
div{
padding:0 15px 10px;
padding:0 15px 10px;
}
}
...
...
src/directive/shareMask.js
View file @
09782492
...
@@ -3,9 +3,8 @@ import Util from "../util";
...
@@ -3,9 +3,8 @@ import Util from "../util";
export
default
{
export
default
{
bind
(
el
,
binding
)
{
bind
(
el
,
binding
)
{
el
.
addEventListener
(
'click'
,
function
()
{
el
.
addEventListener
(
'click'
,
function
()
{
// var loginpta = Util.isLogin() ? true : false;
var
loginpta
=
Util
.
isLogin
()
?
true
:
false
;
let
loginpta
=
Util
.
isLogin
()
//1强登入态
if
(
!
loginpta
)
{
if
(
loginpta
!=
1
)
{
window
.
location
.
href
=
'/v3/login?referer='
+
encodeURIComponent
(
window
.
location
.
href
);
window
.
location
.
href
=
'/v3/login?referer='
+
encodeURIComponent
(
window
.
location
.
href
);
return
;
return
;
}
}
...
...
view/14.js
View file @
09782492
...
@@ -66,7 +66,7 @@ eval("exports = module.exports = __webpack_require__(/*! ../../../node_modules/_
...
@@ -66,7 +66,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
(
"var escape = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/url/escape.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/url/escape.js\");\nexports = 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, \".sample {\\n padding-bottom: 50px;\\n}\\n.sample .ele {\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n}\\n.sample .banner {\\n height: 173px;\\n width: 100%;\\n background: url(\" + escape(__webpack_require__(/*! ../../images/sample/samplebanner.png */ \"./src/assets/images/sample/samplebanner.png\")) + \") no-repeat;\\n background-size: 100% 100%;\\n}\\n.sample .zititle {\\n padding: 15px;\\n}\\n.sample .zititle span {\\n color: #333;\\n font-size: 16px;\\n}\\n.sample .zititle font {\\n font-size: 12px;\\n color: #999;\\n margin-left: 10px;\\n height: 20px;\\n line-height: 20px;\\n}\\n.sample .fx_text {\\n color: #999;\\n}\\n.sample .fx_text div {\\n padding: 0 15px 10px;\\n}\\n.sample .fx_text span {\\n color: #ffa200;\\n}\\n.sample .nav {\\n padding: 0 15px ;\\n}\\n.sample .nav .van-hairline--top-bottom::after {\\n border-width: 0 0 1px 0;\\n}\\n.sample .con .con-group {\\n padding: 15px;\\n padding-bottom: 0px;\\n}\\n.sample .con .con-group .img-box {\\n width: 2.933rem;\\n height: 2.933rem;\\n}\\n.sample .con .con-group .img-box img {\\n width: 100%;\\n height: 100%;\\n}\\n.sample .con .con-group .cb-box {\\n width: 6rem;\\n height: 2.933rem;\\n padding-bottom: 15px;\\n}\\n.sample .con .con-group .cb-box .title {\\n color: #333;\\n font-size: 16px;\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n margin-bottom: 0.15rem;\\n}\\n.sample .con .con-group .cb-box p {\\n color: #333;\\n font-size: 12px;\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n height: 0.45rem;\\n line-height: 0.45rem;\\n}\\n.sample .con .con-group .cb-box p span {\\n color: #666;\\n}\\n.sample .con .con-group .cb-box .btnx {\\n width: 3.5rem;\\n height: 0.7rem;\\n line-height: 0.7rem;\\n border-radius: 4px;\\n background: #1080d0;\\n color: #fff;\\n text-align: center;\\n cursor: pointer;\\n margin-top: 0.2rem;\\n}\\n@media screen and (max-width: 320px) {\\n.sample .con .con-group .cb-box {\\n width: 5.8rem;\\n height: 2.933rem;\\n}\\n.sample .con .con-group .cb-box .title {\\n margin-bottom: 0.05rem;\\n}\\n}\\n.sample .fix-btns {\\n position: fixed;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n height: 50px;\\n line-height: 50px;\\n color: #fff;\\n font-size: 16px;\\n text-align: center;\\n background: #1080d0;\\n -webkit-box-shadow: 0 0 10px #000;\\n box-shadow: 0 0 10px #000;\\n cursor: pointer;\\n}\\n.sample .get-user-pop .get-user-con {\\n background: #fff;\\n width: 8.667rem;\\n height: 5.52rem;\\n border-radius: 3px;\\n position: fixed;\\n top: 50%;\\n left: 50%;\\n margin-left: -4.3335rem;\\n margin-top: -2.76rem;\\n -webkit-box-shadow: 0 0 20px #e5e5e5;\\n box-shadow: 0 0 20px #e5e5e5;\\n z-index: 99999;\\n}\\n.sample .get-user-pop .get-user-con h3 {\\n color: #ffa200;\\n font-size: 16px;\\n height: 2.027rem;\\n line-height: 2.027rem;\\n text-align: center;\\n}\\n.sample .get-user-pop .get-user-con h3 i {\\n position: relative;\\n float: right;\\n top: -1.4rem;\\n color: #fff;\\n font-size: 20px;\\n}\\n.sample .get-user-pop .get-user-con h2 {\\n color: #000;\\n font-size: 14px;\\n text-align: center;\\n width: 60%;\\n margin: 0 auto;\\n}\\n.sample .get-user-pop .get-user-con span {\\n display: block;\\n cursor: pointer;\\n height: 30px;\\n line-height: 30px;\\n width: 150px;\\n text-align: center;\\n background: #1080d0;\\n color: #fff;\\n font-size: 14px;\\n border-radius: 30px;\\n margin: 0 auto;\\n margin-top: 50px;\\n}\\n.sample .get-user-pop .mask {\\n position: fixed;\\n bottom: 0;\\n top: 0;\\n left: 0;\\n right: 0;\\n background: rgba(0, 0, 0, 0.3);\\n z-index: 999;\\n}\\n\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/assets/css/sample/sample.css?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2"
);
eval
(
"var escape = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/url/escape.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/url/escape.js\");\nexports = 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, \".sample {\\n padding-bottom: 50px;\\n}\\n.sample .ele {\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n}\\n.sample .banner {\\n height: 173px;\\n width: 100%;\\n background: url(\" + escape(__webpack_require__(/*! ../../images/sample/samplebanner.png */ \"./src/assets/images/sample/samplebanner.png\")) + \") no-repeat;\\n background-size: 100% 100%;\\n}\\n.sample .zititle {\\n padding: 15px;\\n}\\n.sample .zititle span {\\n color: #333;\\n font-size: 16px;\\n}\\n.sample .zititle font {\\n font-size: 12px;\\n color: #999;\\n margin-left: 10px;\\n height: 20px;\\n line-height: 20px;\\n}\\n.sample .fx_text {\\n color: #999;\\n
text-align: right;\\n
}\\n.sample .fx_text div {\\n padding: 0 15px 10px;\\n}\\n.sample .fx_text span {\\n color: #ffa200;\\n}\\n.sample .nav {\\n padding: 0 15px ;\\n}\\n.sample .nav .van-hairline--top-bottom::after {\\n border-width: 0 0 1px 0;\\n}\\n.sample .con .con-group {\\n padding: 15px;\\n padding-bottom: 0px;\\n}\\n.sample .con .con-group .img-box {\\n width: 2.933rem;\\n height: 2.933rem;\\n}\\n.sample .con .con-group .img-box img {\\n width: 100%;\\n height: 100%;\\n}\\n.sample .con .con-group .cb-box {\\n width: 6rem;\\n height: 2.933rem;\\n padding-bottom: 15px;\\n}\\n.sample .con .con-group .cb-box .title {\\n color: #333;\\n font-size: 16px;\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n margin-bottom: 0.15rem;\\n}\\n.sample .con .con-group .cb-box p {\\n color: #333;\\n font-size: 12px;\\n text-overflow: ellipsis;\\n overflow: hidden;\\n white-space: nowrap;\\n height: 0.45rem;\\n line-height: 0.45rem;\\n}\\n.sample .con .con-group .cb-box p span {\\n color: #666;\\n}\\n.sample .con .con-group .cb-box .btnx {\\n width: 3.5rem;\\n height: 0.7rem;\\n line-height: 0.7rem;\\n border-radius: 4px;\\n background: #1080d0;\\n color: #fff;\\n text-align: center;\\n cursor: pointer;\\n margin-top: 0.2rem;\\n}\\n@media screen and (max-width: 320px) {\\n.sample .con .con-group .cb-box {\\n width: 5.8rem;\\n height: 2.933rem;\\n}\\n.sample .con .con-group .cb-box .title {\\n margin-bottom: 0.05rem;\\n}\\n}\\n.sample .fix-btns {\\n position: fixed;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n height: 50px;\\n line-height: 50px;\\n color: #fff;\\n font-size: 16px;\\n text-align: center;\\n background: #1080d0;\\n -webkit-box-shadow: 0 0 10px #000;\\n box-shadow: 0 0 10px #000;\\n cursor: pointer;\\n}\\n.sample .get-user-pop .get-user-con {\\n background: #fff;\\n width: 8.667rem;\\n height: 5.52rem;\\n border-radius: 3px;\\n position: fixed;\\n top: 50%;\\n left: 50%;\\n margin-left: -4.3335rem;\\n margin-top: -2.76rem;\\n -webkit-box-shadow: 0 0 20px #e5e5e5;\\n box-shadow: 0 0 20px #e5e5e5;\\n z-index: 99999;\\n}\\n.sample .get-user-pop .get-user-con h3 {\\n color: #ffa200;\\n font-size: 16px;\\n height: 2.027rem;\\n line-height: 2.027rem;\\n text-align: center;\\n}\\n.sample .get-user-pop .get-user-con h3 i {\\n position: relative;\\n float: right;\\n top: -1.4rem;\\n color: #fff;\\n font-size: 20px;\\n}\\n.sample .get-user-pop .get-user-con h2 {\\n color: #000;\\n font-size: 14px;\\n text-align: center;\\n width: 60%;\\n margin: 0 auto;\\n}\\n.sample .get-user-pop .get-user-con span {\\n display: block;\\n cursor: pointer;\\n height: 30px;\\n line-height: 30px;\\n width: 150px;\\n text-align: center;\\n background: #1080d0;\\n color: #fff;\\n font-size: 14px;\\n border-radius: 30px;\\n margin: 0 auto;\\n margin-top: 50px;\\n}\\n.sample .get-user-pop .mask {\\n position: fixed;\\n bottom: 0;\\n top: 0;\\n left: 0;\\n right: 0;\\n background: rgba(0, 0, 0, 0.3);\\n z-index: 999;\\n}\\n\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/assets/css/sample/sample.css?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@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 @
09782492
...
@@ -3990,7 +3990,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
...
@@ -3990,7 +3990,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 _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?"
);
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?"
);
/***/
}),
/***/
}),
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