31
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user