Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
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
7d6be5b7
authored
Jul 17, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
11111
parent
9920d8c0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
153 additions
and
57 deletions
Application/Home/View/GoodManage/index.html
Application/Home/View/public/indexfoot.html
dist/css/goodmanage.css
dist/css/goodmanage.less
dist/js/chat/index.js
dist/js/global/api.js
dist/js/goodmanage/index.js
dist/js/quoteprice/inquiry.js
Application/Home/View/GoodManage/index.html
View file @
7d6be5b7
...
...
@@ -119,7 +119,7 @@
<script
type=
"text/html"
id=
"listHtml"
>
<
div
class
=
"data_list"
>
{{
#
layui
.
each
(
d
,
function
(
index
,
item
){
}}
<
div
class
=
"data_item"
>
<
div
class
=
"data_item"
goodid
=
"{{item.goods_id}}"
>
<
div
class
=
"data_detail"
>
<
div
class
=
"type fl ellipsis boxsiz"
>
<
span
class
=
"bold"
>
{{
item
.
goods_name
}}
<
/span
>
...
...
@@ -132,14 +132,41 @@
<
span
>
{{
item
.
stock
}}
<
/span
>
<
/div
>
<
div
class
=
"price fl ellipsis boxsiz bold"
>
¥
{{
item
.
price
}}
<
/div
>
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
{{
#
if
(
item
[
'status'
]
==
1
){
}}
<
div
class
=
"data_status fl boxsiz zs"
>
<
span
class
=
"mark lineBlock"
><
/span
>
<
span
class
=
"text"
>
展示中
<
/span
>
<
span
class
=
"mark lineBlock"
><
/span><span class="text">展示中</
span
>
<
/div
>
{{
#
}
else
{
}}
<
div
class
=
"data_status fl boxsiz xj"
>
<
span
class
=
"mark lineBlock"
><
/span><span class="text">已下架</
span
>
<
/div
>
{{
#
}
}}
{{
#
}
else
{
}}
<
div
class
=
"data_status fl boxsiz jy"
>
<
span
class
=
"mark lineBlock"
><
/span><span class="text">禁用中</
span
>
<
/div
>
{{
#
}
}}
<
div
class
=
"time fr ellipsis boxsiz"
>
{{
layui
.
util
.
toDateString
(
item
.
update_time
*
1000
)}}
<
/div
>
<
/div
>
<
a
class
=
"xj fr"
>
下架
<
/a
>
{{
#
if
(
item
[
'status'
]
==
1
){
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
<
a
class
=
"xj xj_status fr"
>
下架
<
/a
>
{{
#
}
else
{
}}
<
a
class
=
"xj xj_status fr disabled"
>
下架
<
/a
>
{{
#
}
}}
{{
#
}
else
{
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
<
a
class
=
"fb xj_status fr"
>
发布
<
/a
>
{{
#
}
else
{
}}
<
a
class
=
"fb xj_status fr disabled"
>
发布
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
<
a
class
=
"edit fr"
>
编辑
<
/a
>
{{
#
}
else
{
}}
<
a
class
=
"edit fr disabled"
>
编辑
<
/a
>
{{
#
}
}}
<
/div
>
{{
#
});
}}
{{
#
if
(
d
.
length
===
0
){
}}
...
...
Application/Home/View/public/indexfoot.html
View file @
7d6be5b7
...
...
@@ -13,7 +13,7 @@
<span>
服务时间
<i>
9:00-22:00
</i></span>
<span>
联系电话:
<i>
400-888-1688
</i></span>
</p>
<h5>
copyright
&
#169 2019 www.ICsales.com
</h5>
<h5>
copyright
©
;
2019 www.ICsales.com
</h5>
</div>
<div
class=
"fl qrcode"
>
...
...
dist/css/goodmanage.css
View file @
7d6be5b7
...
...
@@ -196,6 +196,9 @@
.good_manage_content
.good_data
.data_list
.data_item
.data_status.xj
.mark
{
background-color
:
#D8DFE6
;
}
.good_manage_content
.good_data
.data_list
.data_item
.data_status.jy
.mark
{
background-color
:
#EA1717
;
}
.good_manage_content
.good_data
.data_list
.data_item
.data_status
.text
{
color
:
#686E73
;
}
...
...
@@ -224,12 +227,17 @@
color
:
#686E73
;
cursor
:
pointer
;
}
.good_manage_content
.good_data
.data_list
.data_item
.xj
{
.good_manage_content
.good_data
.data_list
.data_item
.edit.disabled
{
cursor
:
not-allowed
;
}
.good_manage_content
.good_data
.data_list
.data_item
.xj_status
{
color
:
#686E73
;
cursor
:
pointer
;
margin-left
:
20px
;
}
.good_manage_content
.good_data
.data_list
.data_item
.xj.fb
{
.good_manage_content
.good_data
.data_list
.data_item
.xj_status.disabled
{
cursor
:
not-allowed
;
}
.good_manage_content
.good_data
.data_list
.data_item
.xj_status.fb
{
color
:
#0D84D1
;
}
/*# sourceMappingURL=goodmanage.css.map */
\ No newline at end of file
dist/css/goodmanage.less
View file @
7d6be5b7
...
...
@@ -252,6 +252,11 @@
background-color: #D8DFE6;
}
}
&.jy{
.mark {
background-color: #EA1717;
}
}
.text {
color: #686E73;
...
...
@@ -291,13 +296,18 @@
.edit {
color: #686E73;
cursor: pointer;
&.disabled{
cursor: not-allowed;
}
}
.xj
{
.xj
_status
{
color: #686E73;
cursor: pointer;
margin-left: 20px;
&.disabled{
cursor: not-allowed;
}
&.fb {
color: #0D84D1;
}
...
...
dist/js/chat/index.js
View file @
7d6be5b7
...
...
@@ -461,9 +461,7 @@ $(function () {
msg
:
'template'
,
to
:
userId
,
action
:
"template"
,
ext
:
$
.
extend
({},
templateObj
,
{
time
:
self
.
curentTime
()
}),
ext
:
templateObj
,
success
:
function
()
{
self
.
addChatMember
(
userId
)
$
(
'#'
+
userId
).
find
(
'.notice_item_content'
).
append
(
self
.
messageHtml
(
1
,
...
...
dist/js/global/api.js
View file @
7d6be5b7
...
...
@@ -89,6 +89,10 @@
* 商品修改
*/
goodsSave
:
goods_url
+
'/goods/save'
,
/***
* 商品上下架
*/
goodsStatus
:
goods_url
+
"/goods/status"
,
/****
* 询价搜索 不需要token
*/
...
...
@@ -108,7 +112,7 @@
/***
* 询价上下架
*/
inquir
statusy
save
:
offer_url
+
"/inquiry/status/save"
,
inquir
ystatus
save
:
offer_url
+
"/inquiry/status/save"
,
/***
* 询价统计
*/
...
...
dist/js/goodmanage/index.js
View file @
7d6be5b7
!
function
()
{
!
function
()
{
window
.
GoodManageController
=
{
token
:
Util
.
getCookie
(
'token'
)
||
''
,
init
:
function
()
{
this
.
created
(
this
).
mounted
(
this
).
render
(
this
,
{
offset
:
10
,
p
:
1
,
token
:
this
.
token
},
1
).
handleBind
(
this
);
this
.
created
(
this
).
mounted
(
this
).
render
(
this
,
{
offset
:
10
,
p
:
1
,
token
:
this
.
token
},
1
).
handleBind
(
this
);
},
created
:
function
(
opt
)
{
//日期控件初始化
layui
.
laydate
.
render
({
elem
:
'#start_time'
,
theme
:
'#0D84D1'
});
layui
.
laydate
.
render
({
elem
:
'#end_time'
,
theme
:
'#0D84D1'
});
return
this
;
},
mounted
:
function
(
opt
)
{
//商品数量获取
IcController
.
getData
(
apis
.
goodsCount
,
'GET'
,
{
token
:
opt
.
token
},
function
(
res
)
{
IcController
.
getData
(
apis
.
goodsCount
,
'GET'
,
{
token
:
opt
.
token
},
function
(
res
)
{
if
(
res
.
errcode
===
0
)
{
var
getTpl
=
countHtml
.
innerHTML
;
layui
.
laytpl
(
getTpl
).
render
(
res
.
count
,
function
(
html
)
{
$
(
".good_total"
).
empty
().
html
(
html
);
});
}
});
return
this
;
},
render
:
function
(
opt
,
params
,
curr
)
{
//商品列表初始化
IcController
.
getData
(
apis
.
goodsInfo
,
'GET'
,
params
,
function
(
res
)
{
var
getTpl
=
listHtml
.
innerHTML
;
if
(
res
.
errcode
===
0
)
{
layui
.
laytpl
(
getTpl
).
render
(
res
.
goods_list
,
function
(
html
)
{
$
(
"#listData"
).
empty
().
html
(
html
);
layui
.
laypage
.
render
({
elem
:
'pagination'
,
theme
:
'#1080d0'
,
count
:
res
.
total
,
limit
:
10
,
curr
:
curr
,
layout
:
[
'prev'
,
'page'
,
'next'
,
'refresh'
],
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
//分页回调调用
var
json
=
{
p
:
obj
.
curr
}
var
param
=
$
.
extend
({},
params
,
json
);
GoodManageController
.
render
(
opt
,
param
,
obj
.
curr
);
}
}
});
});
}
else
if
(
res
.
errcode
===
110001
||
res
.
errcode
===
103001
)
{
layui
.
laytpl
(
getTpl
).
render
([],
function
(
html
)
{
$
(
"#listData"
).
empty
().
html
(
html
);
});
}
});
return
this
;
},
sxj
:
function
(
id
,
type
)
{
//上下架 1上架 2下架
var
self
=
this
;
IcController
.
getData
(
apis
.
goodsStatus
,
'GET'
,
{
"token"
:
Util
.
getCookie
(
'token'
)
||
""
,
"goods_id"
:
id
,
"status"
:
type
},
function
(
res
)
{
if
(
res
.
errcode
===
0
)
{
layer
.
msg
(
'操作成功'
,
{
time
:
600
},
function
()
{
self
.
mounted
(
self
);
$
(
'.layui-icon-refresh'
).
click
();
});
}
else
{
layer
.
msg
(
'操作失败'
)
}
})
},
handleBind
:
function
(
opt
)
{
//搜索
layui
.
form
.
on
(
'submit(search)'
,
function
(
data
)
{
var
param
=
{
token
:
opt
.
token
,
offset
:
10
,
p
:
1
};
var
params
=
$
.
extend
({},
data
.
field
,
param
);
opt
.
render
(
this
,
params
,
1
)
});
//上架
$
(
'#listData'
).
on
(
'click'
,
'.fb'
,
function
(
e
)
{
e
.
stopPropagation
();
var
goodId
=
$
(
this
).
parent
(
'.data_item'
).
attr
(
'goodid'
);
if
(
$
(
this
).
hasClass
(
'disabled'
))
{
return
}
else
{
opt
.
sxj
(
goodId
,
1
)
}
});
//下架
$
(
'#listData'
).
on
(
'click'
,
'.xj'
,
function
(
e
)
{
e
.
stopPropagation
();
var
goodId
=
$
(
this
).
parent
(
'.data_item'
).
attr
(
'goodid'
);
if
(
$
(
this
).
hasClass
(
'disabled'
))
{
return
}
else
{
opt
.
sxj
(
goodId
,
2
)
}
});
return
this
;
},
},
$
(
function
()
{
...
...
dist/js/quoteprice/inquiry.js
View file @
7d6be5b7
...
...
@@ -99,7 +99,7 @@ $(function () {
sxj
:
function
(
id
,
type
)
{
//上下架 1上架 2下架
var
self
=
this
;
IcController
.
getData
(
apis
.
inquir
statusy
save
,
'GET'
,
{
IcController
.
getData
(
apis
.
inquir
ystatus
save
,
'GET'
,
{
"token"
:
Util
.
getCookie
(
'token'
)
||
""
,
"inquiry_items_id"
:
id
,
"status"
:
type
...
...
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