thirdpayment
elf 11 months ago
parent 48e30dba57
commit 7d7c9571ce

@ -245,7 +245,7 @@ class AccountController extends AbstractController
$query->where('last_card_no', $request->input('bankCardNo'));
}
if (!empty($request->input('cardUserName'))) {
$query->where('card_user_name', 'like', Db::raw('%' . $request->input('cardUserName')));
$query->where('card_user_name', 'like', '%' . $request->input('cardUserName'));
}
$status = $request->input('status');
if (!empty($status)) {
@ -296,7 +296,7 @@ class AccountController extends AbstractController
}
$records[] = [
'out_order_no' => $order->out_order_no,
'created_at' => $order->created_at,
'created_at' => $order->created_at->format('Y-m-d H:i:s'),
'status' => $order->status,
'amount' => number_format($order->amount / 100, 2, '.', ''),
'card_user_name' => $order->card_user_name,

@ -142,7 +142,7 @@
},
created() {
if (!window.sessionStorage.getItem('token')) {
// window.location.href = '/login.html'
window.location.href = '/login.html'
return;
} else {
this.getUserInfo();
@ -160,8 +160,8 @@
let result = response.data
if (result.code != 1000) {
this.$message.error(response.data.message);
// window.sessionStorage.removeItem('token');
// window.location.href = '/login.html';
window.sessionStorage.removeItem('token');
window.location.href = '/login.html';
return;
}
this.username = result.data.username;

@ -107,7 +107,7 @@
return this.$message.error(response.data.message);
}
window.sessionStorage.setItem('token', result.data.token)
// window.location.href = '/account.html';
window.location.href = '/account.html';
})
.catch((error) => {
this.$message.error('请求错误');

Loading…
Cancel
Save