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
周奇琪
9 years ago
Commit
01728fa0d7848d37744e756443b1b9201eb102ea
2 parents
33d1bf6f
43fc3e11
Merge branch 'develop' of git.dev.yoho.cn:platform/yohobuy-portal-fe into develop
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
14 deletions
client/js/common/util.js
client/js/goods/brand-cooperation.js
client/js/goods/index.js
client/js/market/limitcode-edit.js
client/js/product/limit-add.js
client/js/store/adminindex.js
server/interface/goods.js
server/interface/market.js
server/views/pages/goods/index.html
server/views/pages/market/limitcode-edit.html
server/views/pages/searchWords/index.html
client/js/common/util.js
View file @
01728fa
...
...
@@ -3,6 +3,7 @@ var util={
__ajax
:
function
(
options
,
callback
,
notip
){
if
(
typeof
options
.
data
==
"string"
){
util
.
__tip
(
options
.
data
,
"warning"
);
return
false
;
}
else
{
$
.
ajax
({
type
:
'POST'
,
...
...
@@ -13,11 +14,11 @@ var util={
success
:
function
(
res
)
{
res
=
res
.
data
;
if
((
""
+
res
.
code
)
===
"200"
)
{
notip
?
callback
.
bind
(
this
,
res
)():
util
.
__tip
(
res
.
message
,
"success"
,
callback
.
bind
(
this
,
res
));
return
true
;
}
else
{
(
!
notip
)
&&
util
.
__tip
(
res
.
message
,
"danger"
);
return
false
;
}
}
});
...
...
client/js/goods/brand-cooperation.js
View file @
01728fa
...
...
@@ -88,7 +88,7 @@ $('#import-btn').on('click', function() {
$
(
'#basicTable, .bulk-import'
).
toggle
();
});
$
(
'
.excel-model,
#sure-change, .priceTable-wrap'
).
hide
();
$
(
' #sure-change, .priceTable-wrap'
).
hide
();
common
.
edit
.
ajaxfileupload
(
"#upload-input"
,{
params
:{
type
:
"brandCooperation"
,
__type
:
"batch-import"
},
onStart
:
function
()
{
...
...
client/js/goods/index.js
View file @
01728fa
...
...
@@ -103,6 +103,7 @@ $('#basicTable').on('click', '.modify-btn', function() {
}).
then
(
function
(
res
)
{
var
data
=
res
.
data
.
data
;
$
(
that
).
data
(
'detail'
,
true
).
parents
(
'tr'
)
.
after
(
$
(
common
.
util
.
__template
(
$
(
"#template"
).
html
(),
data
)))
.
next
(
'.product-detail'
).
find
(
'.skn-value'
).
text
(
skn
);
...
...
@@ -116,6 +117,8 @@ $('#basicTable').on('click', '.modify-btn', function() {
$vip1Price
=
$wrap
.
find
(
'.vip1-price'
),
$submitBtn
=
$wrap
.
find
(
'.sure-modify'
);
$select
.
val
(
data
.
vip_discount_type
);
function
vipPrice
()
{
var
price
=
$price
.
val
(),
vipPrice
=
{
...
...
client/js/market/limitcode-edit.js
View file @
01728fa
...
...
@@ -2,8 +2,13 @@ var $ = require('jquery');
var
edit
=
require
(
'../common/edit'
);
var
e
=
new
edit
(
"#basicForm"
);
var
type
=
$
(
"#basicForm"
).
attr
(
"role"
);
var
e
=
new
edit
(
"#basicForm"
);
var
type
=
$
(
"#basicForm"
).
attr
(
"role"
);
if
(
type
==
'edit'
)
{
$
(
'#name, #limitTimes, #userUseLimit, #department1, #department2, #limitDateFrom, #limitDateTo, #describe, #UID'
).
prop
(
'disabled'
,
true
);
$
(
'input[name="userTypeLimit"]'
).
prop
(
'disabled'
,
true
);
}
e
.
on
(
"render"
,
function
(){
...
...
client/js/product/limit-add.js
View file @
01728fa
...
...
@@ -69,6 +69,7 @@ $('body').on('click', '#videoDialog', function() {
var
limitAddForm
=
new
common
.
edit
(
"#limit-add-form"
);
limitAddForm
.
init
();
limitAddForm
.
on
(
"validate"
,
function
(){
var
param
=
{
batchNo
:
$
(
'#batchNo'
).
val
()
...
...
client/js/store/adminindex.js
View file @
01728fa
...
...
@@ -77,8 +77,9 @@ var $ = require('jquery'),
}
return
obj
;
}
common
.
util
.
__ajax
({
return
common
.
util
.
__ajax
({
url
:
url
,
async
:
true
,
data
:
data
()
},
function
(){
g
.
reload
();
...
...
server/interface/goods.js
View file @
01728fa
...
...
@@ -62,7 +62,8 @@ exports.res = [
bulkImport
:
true
,
//批量导入
bottons
:
'{"edit":true,"columnsHidisFr":true}'
,
gridurl
:
'/goods/price/list'
,
domain
:
exports
.
domain
domain
:
exports
.
domain
,
download
:
'/common/batchUpdatePrice.xlsx'
}
},
{
//代销变价 -> 列表数据
...
...
@@ -167,7 +168,9 @@ exports.res = [
},
bulkImport
:
true
,
bottons
:
'{"edit":true,"columnsHidisFr":true}'
,
gridurl
:
'/goods/brandCooperation/list'
gridurl
:
'/goods/brandCooperation/list'
,
domain
:
exports
.
domain
,
download
:
'/common/brandCooperation.xlsx'
}
},
{
//品牌合作模式 -> 列表数据
...
...
server/interface/market.js
View file @
01728fa
exports
.
domain
=
require
(
'../config/common.js'
).
domain
;
//exports.domain = 'http://172.16.6.240:8088/platform';
//exports.domain = 'http://172.16.6.162:8088/platform';
//营销管理路由配置
...
...
@@ -266,7 +267,7 @@ exports.res = [
{
name
:
"limitDateTo"
,
type
:
"String"
},
{
name
:
"describe"
,
type
:
"String"
},
{
name
:
"userUseLimit"
,
type
:
"Number"
},
{
name
:
"userTypeLimit"
,
type
:
"
Number
"
},
{
name
:
"userTypeLimit"
,
type
:
"
String
"
},
{
name
:
"limitSkn"
,
type
:
"String"
},
{
name
:
"creatorName"
,
type
:
"String"
},
{
name
:
"creatorId"
,
type
:
"Number"
},
...
...
@@ -330,12 +331,13 @@ exports.res = [
{
name
:
"limitDateTo"
,
type
:
"String"
},
{
name
:
"describe"
,
type
:
"String"
},
{
name
:
"userUseLimit"
,
type
:
"Number"
},
{
name
:
"userTypeLimit"
,
type
:
"
Number
"
},
{
name
:
"userTypeLimit"
,
type
:
"
String
"
},
{
name
:
"limitSkn"
,
type
:
"String"
},
{
name
:
"creatorName"
,
type
:
"String"
},
{
name
:
"creatorId"
,
type
:
"Number"
},
{
name
:
"status"
,
type
:
"Number"
},
{
name
:
"id"
,
type
:
"Number"
}
{
name
:
"id"
,
type
:
"Number"
},
{
name
:
"batchNo"
,
type
:
"Number"
}
]
},
{
...
...
server/views/pages/goods/index.html
View file @
01728fa
...
...
@@ -168,7 +168,7 @@
<div
class=
"import-hd"
>
<label>
选择文件
</label>
<input
id=
"upload-input"
name=
"file"
class=
"btn btn-default"
type=
"file"
>
<a
class=
"excel-model"
href=
"{{domain}}
/common/batchUpdatePrice.xlsx
"
>
表头下载
</a>
<a
class=
"excel-model"
href=
"{{domain}}
{{download}}
"
>
表头下载
</a>
<input
id=
"sure-change"
class=
"btn btn-primary"
type=
"button"
value=
"确定变价"
>
</div>
...
...
server/views/pages/market/limitcode-edit.html
View file @
01728fa
...
...
@@ -141,7 +141,7 @@
</label>
</div>
<div
class=
"col-sm-2"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"UID"
>
<input
type=
"text"
class=
"form-control"
id=
"UID"
placeholder=
"UID"
>
</div>
<input
type=
"hidden"
value=
"{{userTypeLimit}}"
id=
"userTypeLimit"
for=
"checkbox"
required
placeholder=
"会员身份"
>
...
...
@@ -226,6 +226,7 @@
<input
type=
"hidden"
value=
"{{status}}"
id=
"status"
>
<input
type=
"hidden"
value=
"{{id}}"
id=
"id"
>
<input
type=
"hidden"
value=
"{{batchNo}}"
id=
"batchNo"
>
{{/ data}}
<div
class=
"form-group"
>
...
...
server/views/pages/searchWords/index.html
View file @
01728fa
...
...
@@ -118,7 +118,7 @@
<script
type=
"text/template"
id=
"template-endtime"
>
<
div
class
=
"form-group"
>
<
label
for
=
"end
t
ime"
class
=
"col-sm-2 control-label"
><
i
class
=
"red"
>*<
/i> 结束时间</
label
>
<
label
for
=
"end
T
ime"
class
=
"col-sm-2 control-label"
><
i
class
=
"red"
>*<
/i> 结束时间</
label
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
id
=
"endTime"
class
=
"form-control panel-input hasDatepicker"
jsaction
=
"time:start:startTime"
name
=
"start_time"
placeholder
=
"结束时间"
value
=
"{endTime}"
>
<
/div
>
...
...
Please
register
or
login
to post a comment