|
|
@@ -15,7 +15,7 @@ class Seat extends MobileBaseController
|
|
|
if (empty($id)) {
|
|
|
$id = session('mobile.seat.id');
|
|
|
if (empty($id)) {
|
|
|
- jump('该活动不存在或已结束');
|
|
|
+ tip('提示','该活动不存在或已结束');
|
|
|
}
|
|
|
} else {
|
|
|
session('mobile.seat.id', $id);
|
|
|
@@ -23,7 +23,7 @@ class Seat extends MobileBaseController
|
|
|
|
|
|
$seat = SeatModel::where('id', $id)->find();
|
|
|
if (empty($seat)) {
|
|
|
- jump('该活动不存在或已结束');
|
|
|
+ tip('提示','该活动不存在或已结束');
|
|
|
}
|
|
|
|
|
|
session('mobile.seat.id', $id);
|
|
|
@@ -32,12 +32,13 @@ class Seat extends MobileBaseController
|
|
|
$apply = SeatApplyModel::where('open_id', $open_id)->where('seat_id', $id)->find();
|
|
|
if (empty($apply)) {
|
|
|
if ($seat['apply'] >= $seat['total']) {
|
|
|
- jump('提示', '座位已被选完');
|
|
|
+ tip('提示', '座位已满');
|
|
|
} else {
|
|
|
return redirect(url('seat/fillInfo'));
|
|
|
}
|
|
|
} else {
|
|
|
- tip('选座成功', $apply['seat']);
|
|
|
+ tip('提示', '座位已满');
|
|
|
+ return redirect(url('seat/showSeat'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -45,7 +46,7 @@ class Seat extends MobileBaseController
|
|
|
{
|
|
|
$id = session('mobile.seat.id');
|
|
|
if (empty($id)) {
|
|
|
- jump('该活动不存在或已结束');
|
|
|
+ tip('提示','该活动不存在或已结束');
|
|
|
}
|
|
|
|
|
|
get_open_id();
|
|
|
@@ -105,7 +106,7 @@ class Seat extends MobileBaseController
|
|
|
} catch (\Exception $e) {
|
|
|
// 回滚事务
|
|
|
Db::rollback();
|
|
|
- ajax_error('座位已被选完');
|
|
|
+ ajax_error('座位已满');
|
|
|
}
|
|
|
|
|
|
ajax_success();
|
|
|
@@ -118,7 +119,7 @@ class Seat extends MobileBaseController
|
|
|
|
|
|
$seat = SeatApplyModel::where('seat_id', $id)->where('open_id',$open_id)->find();
|
|
|
|
|
|
- tip('座位信息',$seat['seat']);
|
|
|
+ return view('',['msg'=>$seat['seat']]);
|
|
|
}
|
|
|
|
|
|
public function login()
|