Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
liuyue
9 years ago
Commit
f97233533c3e5c69662c44bfbaeaa5f8cd8ead95
2 parents
932aaf62
b5e37485
Merge branch 'develop' of git.dev.yoho.cn:platform/yohobuy-portal-fe into develop
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
8 deletions
client/gulpfile.js
client/js/brand/edit.js
client/webpack.config.js
server/staticConfig.js
server/views/pages/brand/edit.html
client/gulpfile.js
View file @
f972335
...
...
@@ -32,7 +32,7 @@ var dist_dir = {
};
var
cdn_domain
=
'http://cdn.yoho.cn/'
;
var
md5
=
crypto
.
createHash
(
'md5'
).
update
(
new
Date
().
toString
()).
digest
(
'hex'
);;
var
md5
=
"-"
+
crypto
.
createHash
(
'md5'
).
update
(
new
Date
().
toString
()).
digest
(
'hex'
);;
var
ftpConfig
=
{
host
:
'218.94.75.58'
,
...
...
client/js/brand/edit.js
View file @
f972335
...
...
@@ -4,10 +4,11 @@ var edit=require('../common/edit');
var
e
=
new
edit
(
"#basicForm"
);
//brandTonality
e
.
on
(
"validate"
,
function
(){
var
num
=+
$
(
"#brandTonality"
).
val
();
if
(
num
>
100
||
num
<
1
){
var
num
=
$
.
trim
(
$
(
"#brandTonality"
).
val
());
if
(
+
num
>
100
||+
num
<
1
){
return
"调性指数(范围:1-100)"
;
}
return
true
;
});
e
.
init
();
...
...
client/webpack.config.js
View file @
f972335
...
...
@@ -26,7 +26,6 @@ for (key in config.spm.dependencies) {
}
var
entry
=
{
index
:[],
libs
:[]};
console
.
log
(
commons
);
entry
.
libs
=
commons
;
...
...
@@ -38,7 +37,6 @@ var readfile=function(dir,callback){
if
(
fs
.
statSync
(
filePath
).
isFile
()
&&
/.*
\.
js$/i
.
test
(
file
))
{
callback
&&
callback
(
filePath
);
}
else
{
console
.
log
(
file
+
"***********************"
);
if
(
file
!=
"common"
&&
file
!=
"util"
){
readfile
(
filePath
,
callback
);
}
...
...
server/staticConfig.js
View file @
f972335
exports
.
staticDir
=
{
"test"
:{
"path"
:
"/dist"
},
"preview"
:
{
"path"
:
"http://cdn.yoho.cn/yohobuy-portal/0.1.0"
},
"production"
:
{
"path"
:
"http://cdn.yoho.cn/yohobuy-portal/0.1.0"
}}
\ No newline at end of file
exports
.
staticDir
=
{
"test"
:{
"path"
:
"/dist"
},
"preview"
:
{
"path"
:
"http://cdn.yoho.cn/yohobuy-portal/0.1.0"
,
"md5"
:
"-26113ff46bc61c952a8a18344e61b2c5"
},
"production"
:
{
"path"
:
"http://cdn.yoho.cn/yohobuy-portal/0.1.0"
,
"md5"
:
"-26113ff46bc61c952a8a18344e61b2c5"
}}
\ No newline at end of file
...
...
server/views/pages/brand/edit.html
View file @
f972335
...
...
@@ -208,9 +208,9 @@
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
调性指数
</label>
<label
class=
"col-sm-2 control-label"
>
调性指数
<
span
class=
"red"
>
*
</span><
/label>
<div
class=
"col-sm-2"
>
<input
type=
"number"
id=
"brandTonality"
name=
"brandTonality"
class=
"form-control"
pattern=
"^[0-100]$"
placeholder=
"调性指数(范围:1-100)"
value=
"{{brandTonality}}"
>
<input
type=
"number"
id=
"brandTonality"
name=
"brandTonality"
class=
"form-control"
placeholder=
"调性指数(范围:1-100)"
value=
"{{brandTonality}}"
>
</div>
</div>
...
...
Please
register
or
login
to post a comment