From 8c44dbb1d1aec37d321ed7b84b1747f4b3cb1200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Fri, 5 Jul 2024 23:55:57 +0800 Subject: [PATCH] 31 --- home/controllers/h5/market/sylive2/Act.php | 3 +++ home/views/h5/market/sylive2/act/item.php | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/home/controllers/h5/market/sylive2/Act.php b/home/controllers/h5/market/sylive2/Act.php index bc9a6241..c0e049d8 100644 --- a/home/controllers/h5/market/sylive2/Act.php +++ b/home/controllers/h5/market/sylive2/Act.php @@ -356,6 +356,7 @@ class Act extends Wx $validity = "有效期 {$useTimeStart} - {$useTimeEnd}"; } $info = [ + 'a_id' => $a_id, 'title' => $item['title'] ? $item['title'] : '', 'e_time' => $e_time, 'price' => $item['price'] ? $item['price'] : '', @@ -383,6 +384,7 @@ class Act extends Wx $skey = $this->input->post('skey'); $name = $this->input->post('name'); $mobile = $this->input->post('telPhone'); + $remark = $this->input->post('remark'); $param = $this->myencryption->base64url_decode($skey); $a_id = intval($param['a_id']);//活动id $row = $this->market_sylive_activity_model->get(['activityId' => $a_id]); @@ -436,6 +438,7 @@ class Act extends Wx ]; $name && $unpay['uname'] = $name; $mobile && $unpay['mobile'] = $mobile; + $remark && $unpay['jsondata'] = json_encode(array('remark' => $remark), JSON_UNESCAPED_UNICODE); $p_user['teamId'] && $unpay['cfrom'] = 1; $oid = $this->market_sylive_order_model->add($unpay); if (!is_numeric($oid)) { diff --git a/home/views/h5/market/sylive2/act/item.php b/home/views/h5/market/sylive2/act/item.php index e1bf9283..8051acee 100644 --- a/home/views/h5/market/sylive2/act/item.php +++ b/home/views/h5/market/sylive2/act/item.php @@ -55,6 +55,11 @@
+ +
+ +
+
确认支付 @@ -87,6 +92,7 @@ isShowReg: false, name: '', telPhone: '', + remark: '', isSubmiting: false, }, created(){ @@ -177,7 +183,7 @@ return '' } that.isSubmiting = true - $.post('/h5/market/sylive/act/post_pay',{'skey':'','name':that.name,'telPhone':that.telPhone},function (res){ + $.post('/h5/market/sylive/act/post_pay',{'skey':'','name':that.name,'telPhone':that.telPhone,'remark':that.remark},function (res){ that.isSubmiting = false this.isShowReg = false if(res.code==200){