view.vm 1.36 KB
<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>