Authored by ccbikai(👎🏻🍜)

下载条增加描述文字

... ... @@ -34,13 +34,30 @@
.top-downloadbar .download-text {
position: absolute;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
-webkit-transform: translateY(-60%);
transform: translateY(-60%);
left: 3.5rem;
color: #fff;
font-size: .6rem;
}
.top-downloadbar-wechat .download-text {
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.top-downloadbar .download-text-desc {
position: absolute;
top: 50%;
-webkit-transform: translateY(10%) scale(0.4);
transform: translateY(10%) scale(0.4);
-webkit-transform-origin: left center;
transform-origin: left center;
left: 3.5rem;
color: #c7c7c7;
font-size: 1rem;
}
.top-downloadbar .download-go {
right: .375rem;
background: red;
... ...
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node4-lts/4.6.2/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--register',
1 verbose cli 'http://spm.alipay.im',
1 verbose cli 'import-style' ]
2 info using npm@2.15.9
3 info using node@v4.6.2
4 verbose install initial load of /Users/ccbikai/yoho/YAS-jssdk/package.json
5 warn package.json yas-jssdk@2.2.3 Normalized value of bugs field is an empty object. Deleted.
6 warn package.json yas-jssdk@2.2.3 No license field.
7 verbose installManyTop reading scoped package data from /Users/ccbikai/yoho/YAS-jssdk/node_modules/express/package.json
8 verbose installManyTop reading scoped package data from /Users/ccbikai/yoho/YAS-jssdk/node_modules/gulp/package.json
9 verbose installManyTop reading scoped package data from /Users/ccbikai/yoho/YAS-jssdk/node_modules/gulp-ftp/package.json
10 verbose installManyTop reading scoped package data from /Users/ccbikai/yoho/YAS-jssdk/node_modules/gulp-jshint/package.json
11 verbose installManyTop reading scoped package data from /Users/ccbikai/yoho/YAS-jssdk/node_modules/gulp-util/package.json
12 verbose installManyTop reading scoped package data from /Users/ccbikai/yoho/YAS-jssdk/node_modules/jshint-stylish/package.json
13 verbose installManyTop reading scoped package data from /Users/ccbikai/yoho/YAS-jssdk/node_modules/log4js/package.json
14 verbose installManyTop reading scoped package data from /Users/ccbikai/yoho/YAS-jssdk/node_modules/spm/package.json
15 info package.json spm@3.6.12 No license field.
16 verbose readDependencies loading dependencies from /Users/ccbikai/yoho/YAS-jssdk/package.json
17 silly cache add args [ 'http://spm.alipay.im', null ]
18 verbose cache add spec http://spm.alipay.im
19 silly cache add args [ 'import-style', null ]
20 verbose cache add spec import-style
21 silly cache add parsed spec Result {
21 silly cache add raw: 'http://spm.alipay.im',
21 silly cache add scope: null,
21 silly cache add name: null,
21 silly cache add rawSpec: 'http://spm.alipay.im',
21 silly cache add spec: 'http://spm.alipay.im',
21 silly cache add type: 'remote' }
22 silly mapToRegistry name http://spm.alipay.im
23 silly mapToRegistry using default registry
24 silly mapToRegistry registry https://registry.npm.taobao.org/
25 silly mapToRegistry data Result {
25 silly mapToRegistry raw: 'http://spm.alipay.im',
25 silly mapToRegistry scope: null,
25 silly mapToRegistry name: null,
25 silly mapToRegistry rawSpec: 'http://spm.alipay.im',
25 silly mapToRegistry spec: 'http://spm.alipay.im',
25 silly mapToRegistry type: 'remote' }
26 silly mapToRegistry uri http://spm.alipay.im
27 silly scopeAuth http://spm.alipay.im doesn't share host with registry https://registry.npm.taobao.org/
28 verbose addRemoteTarball http://spm.alipay.im not in flight; adding
29 verbose addRemoteTarball [ 'http://spm.alipay.im', null ]
30 silly cache add parsed spec Result {
30 silly cache add raw: 'import-style',
30 silly cache add scope: null,
30 silly cache add name: 'import-style',
30 silly cache add rawSpec: '',
30 silly cache add spec: 'latest',
30 silly cache add type: 'tag' }
31 silly addNamed import-style@latest
32 verbose addNamed "latest" is being treated as a dist-tag for import-style
33 info addNameTag [ 'import-style', 'latest' ]
34 silly mapToRegistry name import-style
35 silly mapToRegistry using default registry
36 silly mapToRegistry registry https://registry.npm.taobao.org/
37 silly mapToRegistry data Result {
37 silly mapToRegistry raw: 'import-style',
37 silly mapToRegistry scope: null,
37 silly mapToRegistry name: 'import-style',
37 silly mapToRegistry rawSpec: '',
37 silly mapToRegistry spec: 'latest',
37 silly mapToRegistry type: 'tag' }
38 silly mapToRegistry uri https://registry.npm.taobao.org/import-style
39 verbose addNameTag registry:https://registry.npm.taobao.org/import-style not in flight; fetching
40 info retry fetch attempt 1 at 13:29:35
41 info attempt registry request try #1 at 13:29:35
42 http fetch GET http://spm.alipay.im/
43 verbose request id 6ee9f413b7ca8913
44 verbose request uri https://registry.npm.taobao.org/import-style
45 verbose request no auth needed
46 info attempt registry request try #1 at 13:29:35
47 http request GET https://registry.npm.taobao.org/import-style
48 http fetch 502 http://spm.alipay.im
49 info retry will retry, error on last attempt: Error: server error 502
50 http 200 https://registry.npm.taobao.org/import-style
51 verbose headers { date: 'Sat, 04 Feb 2017 05:29:34 GMT',
51 verbose headers 'content-type': 'application/json; charset=utf-8',
51 verbose headers 'content-length': '2279',
51 verbose headers connection: 'keep-alive',
51 verbose headers 'x-current-requests': '1',
51 verbose headers etag: '"8e7-AuzvhqvVkFysgbr4LT4MgQ"',
51 verbose headers 'x-readtime': '13' }
52 silly get cb [ 200,
52 silly get { date: 'Sat, 04 Feb 2017 05:29:34 GMT',
52 silly get 'content-type': 'application/json; charset=utf-8',
52 silly get 'content-length': '2279',
52 silly get connection: 'keep-alive',
52 silly get 'x-current-requests': '1',
52 silly get etag: '"8e7-AuzvhqvVkFysgbr4LT4MgQ"',
52 silly get 'x-readtime': '13' } ]
53 verbose get saving import-style to /Users/ccbikai/.npm/registry.npm.taobao.org/import-style/.cache.json
54 verbose correctMkdir /Users/ccbikai/.npm correctMkdir not in flight; initializing
55 silly addNameTag next cb for import-style with tag latest
56 silly addNamed import-style@1.0.0
57 verbose addNamed "1.0.0" is a plain semver version for import-style
58 silly mapToRegistry name import-style
59 silly mapToRegistry using default registry
60 silly mapToRegistry registry https://registry.npm.taobao.org/
61 silly mapToRegistry data Result {
61 silly mapToRegistry raw: 'import-style',
61 silly mapToRegistry scope: null,
61 silly mapToRegistry name: 'import-style',
61 silly mapToRegistry rawSpec: '',
61 silly mapToRegistry spec: 'latest',
61 silly mapToRegistry type: 'tag' }
62 silly mapToRegistry uri https://registry.npm.taobao.org/import-style
63 verbose addRemoteTarball https://registry.npm.taobao.org/import-style/download/import-style-1.0.0.tgz not in flight; adding
64 verbose addRemoteTarball [ 'https://registry.npm.taobao.org/import-style/download/import-style-1.0.0.tgz',
64 verbose addRemoteTarball '7bba3101d9b2bcc12cb42a57461c3f090590f36c' ]
65 info retry fetch attempt 1 at 13:29:36
66 info attempt registry request try #1 at 13:29:36
67 http fetch GET https://registry.npm.taobao.org/import-style/download/import-style-1.0.0.tgz
68 http fetch 200 https://registry.npm.taobao.org/import-style/download/import-style-1.0.0.tgz
69 silly fetchAndShaCheck shasum 7bba3101d9b2bcc12cb42a57461c3f090590f36c
70 verbose addTmpTarball /var/folders/j4/v0bqzhls057drq8fy22_vx680000gn/T/npm-50067-a99f5dd9/registry.npm.taobao.org/import-style/download/import-style-1.0.0.tgz not in flight; adding
71 verbose addTmpTarball already have metadata; skipping unpack for import-style@1.0.0
72 verbose correctMkdir /Users/ccbikai/.npm correctMkdir not in flight; initializing
73 silly cache afterAdd import-style@1.0.0
74 verbose afterAdd /Users/ccbikai/.npm/import-style/1.0.0/package/package.json not in flight; writing
75 verbose correctMkdir /Users/ccbikai/.npm correctMkdir not in flight; initializing
76 verbose afterAdd /Users/ccbikai/.npm/import-style/1.0.0/package/package.json written
77 info attempt registry request try #2 at 13:29:46
78 http fetch GET http://spm.alipay.im/
79 http fetch 502 http://spm.alipay.im
80 info retry will retry, error on last attempt: Error: server error 502
81 info attempt registry request try #3 at 13:30:46
82 http fetch GET http://spm.alipay.im/
83 http fetch 502 http://spm.alipay.im
84 error fetch failed http://spm.alipay.im
85 warn retry will retry, error on last attempt: Error: fetch failed with status code 502
86 info retry fetch attempt 2 at 13:30:56
87 info attempt registry request try #1 at 13:30:56
88 http fetch GET http://spm.alipay.im/
89 http fetch 502 http://spm.alipay.im
90 info retry will retry, error on last attempt: Error: server error 502
91 info attempt registry request try #2 at 13:31:06
92 http fetch GET http://spm.alipay.im/
93 http fetch 502 http://spm.alipay.im
94 info retry will retry, error on last attempt: Error: server error 502
95 info attempt registry request try #3 at 13:32:06
96 http fetch GET http://spm.alipay.im/
97 http fetch 502 http://spm.alipay.im
98 error fetch failed http://spm.alipay.im
99 warn retry will retry, error on last attempt: Error: fetch failed with status code 502
100 info retry fetch attempt 3 at 13:33:06
101 info attempt registry request try #1 at 13:33:06
102 http fetch GET http://spm.alipay.im/
103 http fetch 502 http://spm.alipay.im
104 info retry will retry, error on last attempt: Error: server error 502
105 info attempt registry request try #2 at 13:33:16
106 http fetch GET http://spm.alipay.im/
107 http fetch 502 http://spm.alipay.im
108 info retry will retry, error on last attempt: Error: server error 502
109 info attempt registry request try #3 at 13:34:16
110 http fetch GET http://spm.alipay.im/
111 http fetch 502 http://spm.alipay.im
112 error fetch failed http://spm.alipay.im
113 verbose stack Error: fetch failed with status code 502
113 verbose stack at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/fetch.js:51:14)
113 verbose stack at emitOne (events.js:77:13)
113 verbose stack at Request.emit (events.js:169:7)
113 verbose stack at Request.onRequestResponse (/usr/local/lib/node_modules/npm/node_modules/request/request.js:977:10)
113 verbose stack at emitOne (events.js:77:13)
113 verbose stack at ClientRequest.emit (events.js:169:7)
113 verbose stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:433:21)
113 verbose stack at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
113 verbose stack at Socket.socketOnData (_http_client.js:322:20)
113 verbose stack at emitOne (events.js:77:13)
114 verbose cwd /Users/ccbikai/yoho/YAS-jssdk
115 error Darwin 16.3.0
116 error argv "/usr/local/Cellar/node4-lts/4.6.2/bin/node" "/usr/local/bin/npm" "install" "--register" "http://spm.alipay.im" "import-style"
117 error node v4.6.2
118 error npm v2.15.9
119 error fetch failed with status code 502
120 error If you need help, you may report this error at:
120 error <https://github.com/npm/npm/issues>
121 verbose exit [ 1, true ]
... ...
... ... @@ -237,12 +237,17 @@ exports.setFontSize = function() {
}
exports.getDownloadStr = function(isWechat, mktc) {
var str = '<div class="top-downloadbar" id="top-downloadbar"><a href="javascript:void(0);" class="download-close" id="download-close"></a>\
var str = '<div class="top-downloadbar';
if (isWechat) {
str += ' top-downloadbar-wechat';
}
str += '" id="top-downloadbar"><a href="javascript:void(0);" class="download-close" id="download-close"></a>\
<span class="download-icon"></span><span class="download-text">Yoho!Buy有货</span>';
if (isWechat) {
str += '<a class="download-go-wechat" id="download-go" href="http://union.yoho.cn/union/downapp.html' + (mktc ? '?union_type=' + mktc : '') +'">立即打开</a>';
str += '<a class="download-wechat" id="download-wechat" href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MjM5MzI3MDkwNg==&scene=110#wechat_redirect">加关注</a></div>';
} else {
str += '<p class="download-text-desc">新用户送惊喜礼包</p>';
str += '<a class="download-go" id="download-go" href="//m.yohobuy.com/activity/app-downloads' + (mktc ? '?union_type=' + mktc : '') + '">立即打开</a></div>';
}
return str;
... ...