This commit is contained in:
小鱼开发
2024-07-05 23:55:57 +08:00
parent b215a257c7
commit 8c44dbb1d1
2 changed files with 10 additions and 1 deletions
@@ -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)) {
+7 -1
View File
@@ -55,6 +55,11 @@
<div class="mt30 relative bg-f6 ulib-r10">
<input class="wp100 inner30 font-30 bg-f6 border-none ulib-r10" type="tel" v-model="telPhone" placeholder="请输入手机号" />
</div>
<?php if($info['a_id'] == 31){ ?>
<div class="mt30 relative bg-f6 ulib-r10">
<input class="wp100 inner30 font-30 bg-f6 border-none ulib-r10" type="text" v-model="remark" placeholder="请输入意向车型" />
</div>
<?php }?>
</div>
<div class="mt20 opt pl40 pr40">
<a class="block pt25 pb25 bg-1a1a1a text-center font-32 color-fff ulib-r750" @click="toPay()">确认支付</a>
@@ -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':'<?=$info['skey']?>','name':that.name,'telPhone':that.telPhone},function (res){
$.post('/h5/market/sylive/act/post_pay',{'skey':'<?=$info['skey']?>','name':that.name,'telPhone':that.telPhone,'remark':that.remark},function (res){
that.isSubmiting = false
this.isShowReg = false
if(res.code==200){