view.vm
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<script src="/assets/js/jquery.js"></script>
<form name="videoListForm" action="/titan/video/view" method="GET">
<input type="hidden" name="id" value="${id}"/>
</form>
<!-- 表格数据 -->
<table class="table table-striped table-bordered table-condensed grid">
<thead>
<tr>
<th #sorting($!{video} "name")>商品名称</th>
<th #sorting($!{video} "pid")>商品编号</th>
<th #sorting($!{video} "productStatus")>状态</th>
</tr>
</thead>
<tbody>
#foreach(${item} in ${page.result})
<tr>
<td style="width:45%"><a onclick="window.open('/titan/productB2b/view/$!{item.pid}')" href="javascript:void(0);">$!{item.name}</a></td>
<td style="width:30%;text-align:center;vertical-align:middle;">$!{item.pid}</td>
<td style="width:25%;text-align:center;vertical-align:middle;">
#if($!{item.productStatus}==3)
在售
#elseif($!{item.productStatus}==4)
仓库中
#elseif($!{item.productStatus}==5)
待上架
#elseif($!{item.productStatus}==6)
过期下架
#elseif($!{item.productStatus}==7)
手动下架
#end
</td>
</tr>
#end
</tbody>
</table>
<!-- 分页栏 -->
#showPage($!{page})
<script>
$(document).ready(function(){
XUI.Video.init();
var conf = {
url: "/titan/category/nextOfflineCategroy?parentId={pid}",
};
$("#productCategory").productCategory(conf);
});
</script>