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')); $query->where('last_card_no', $request->input('bankCardNo'));
} }
if (!empty($request->input('cardUserName'))) { 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'); $status = $request->input('status');
if (!empty($status)) { if (!empty($status)) {
@ -296,7 +296,7 @@ class AccountController extends AbstractController
} }
$records[] = [ $records[] = [
'out_order_no' => $order->out_order_no, '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, 'status' => $order->status,
'amount' => number_format($order->amount / 100, 2, '.', ''), 'amount' => number_format($order->amount / 100, 2, '.', ''),
'card_user_name' => $order->card_user_name, 'card_user_name' => $order->card_user_name,

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

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

Loading…
Cancel
Save