mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 14:17:54 +08:00
优化代码
This commit is contained in:
parent
36b4f516d6
commit
829dd823b8
@ -55,7 +55,7 @@
|
||||
<th class="text-center">结束时间</th>
|
||||
<th class="text-center">当前批次</th>
|
||||
<th class="text-center">创建时间</th>
|
||||
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -66,6 +66,10 @@
|
||||
<td class="text-center">{{product.batchEndTime}}</td>
|
||||
<td class="text-center">{{product.curBatch == 'Y'?'是':'否'}}</td>
|
||||
<td class="text-center">{{product.createTime}}</td>
|
||||
<th class="text-center">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_toGroupBuy(product)">拼团列表</button>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
|
||||
@ -68,9 +68,10 @@
|
||||
} else {
|
||||
vc.component.groupBuyBatchManageInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_toGroupBuy:function(product){
|
||||
vc.jumpToPage('/admin.html#/pages/goods/groupBuyManage?batchId='+product.batchId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
|
||||
@ -20,6 +20,10 @@
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
let batchId = vc.getParam('batchId');
|
||||
if(batchId){
|
||||
$that.groupBuyManageInfo.conditions.batchId = batchId;
|
||||
}
|
||||
vc.component._listProducts(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
@ -57,6 +57,7 @@
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">当前批次</th>
|
||||
<th class="text-center">商品ID</th>
|
||||
<th class="text-center">商品图片</th>
|
||||
<th class="text-center">拼团名称</th>
|
||||
@ -70,6 +71,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="product in groupBuyProductManageInfo.products">
|
||||
<td class="text-center">{{product.batchId}}</td>
|
||||
<td class="text-center">{{product.productId}}</td>
|
||||
<td class="text-center">
|
||||
<img style="width: 60px; height: 60px; border-radius: 5px;"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user