优化就餐

This commit is contained in:
Your Name 2023-05-30 02:28:42 +08:00
parent 2e5cc197b9
commit 7fe8f1a8a0
2 changed files with 5 additions and 3 deletions

View File

@ -77,7 +77,7 @@
</tr>
</thead>
<tbody>
<tr v-for="reserveDining in doDiningInfo.orders">
<tr v-for="item in doDiningInfo.orders">
<td class="text-center">{{item.orderId}}</td>
<th class="text-center">
{{item.goodsName}}

View File

@ -17,7 +17,7 @@
conditions: {
goodsId: '',
goodsName: '',
type: '1001',
state: '',
catalogId: '',
communityId: vc.getCurrentCommunity().communityId
@ -32,7 +32,7 @@
setInterval(function(){
document.getElementById("qrCode").focus();
},5000);
vc.component._listReserveConfirms(_currentPage, DEFAULT_ROWS);
vc.component._listReserveConfirms(DEFAULT_PAGE, DEFAULT_ROWS);
},
_initEvent: function() {
vc.on('pagination', 'page_event', function(_currentPage) {
@ -80,6 +80,7 @@
},
function(json, res) {
let _data = JSON.parse(json);
$that.doDiningInfo.qrCode = '';
if (_data.code != 0) {
vc.toast(_data.msg);
return;
@ -89,6 +90,7 @@
function(errInfo, error) {
console.log('请求失败处理');
vc.toast(errInfo);
$that.doDiningInfo.qrCode = '';
}
);
},