This commit is contained in:
小鱼开发
2024-07-06 00:05:51 +08:00
parent 8c44dbb1d1
commit 078ee4649b
4 changed files with 10 additions and 9 deletions
@@ -384,7 +384,6 @@ 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]);
@@ -438,7 +437,6 @@ 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)) {
@@ -113,6 +113,7 @@ class Item extends Wx{
$skey = $this->input->post('skey');
$name = $this->input->post('name');
$mobile = $this->input->post('telPhone');
$remark = $this->input->post('remark');
$code = $this->input->post('code');
$province = $this->input->post('province');
$city = $this->input->post('city');
@@ -194,6 +195,7 @@ class Item extends Wx{
];
$name && $unpay['uname'] = $name;
$mobile && $unpay['mobile'] = $mobile;
$remark && $unpay['jsondata'] = json_encode(array('remark' => $remark), JSON_UNESCAPED_UNICODE);
$p_user['bizId'] && $unpay['bizId'] = $p_user['bizId'];
$p_user['levelId1'] && $unpay['levelId1'] = $p_user['levelId1'];
$p_user['levelId2'] && $unpay['levelId2'] = $p_user['levelId2'];
+1 -7
View File
@@ -55,11 +55,6 @@
<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>
@@ -92,7 +87,6 @@
isShowReg: false,
name: '',
telPhone: '',
remark: '',
isSubmiting: false,
},
created(){
@@ -183,7 +177,7 @@
return ''
}
that.isSubmiting = true
$.post('/h5/market/sylive/act/post_pay',{'skey':'<?=$info['skey']?>','name':that.name,'telPhone':that.telPhone,'remark':that.remark},function (res){
$.post('/h5/market/sylive/act/post_pay',{'skey':'<?=$info['skey']?>','name':that.name,'telPhone':that.telPhone},function (res){
that.isSubmiting = false
this.isShowReg = false
if(res.code==200){
@@ -79,6 +79,11 @@
<div class="mt30 relative bg-f6 ulib-r10">
<input class="wp100 inner30 font-30 bg-f6 border-none ulib-r10" type="tel" oninput="if(value.length>11)value=value.slice(0,11)" 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 class="mt30 relative bg-f6 ulib-r10 pr200">
<div><input class="wp100 inner30 font-30 bg-f6 border-none ulib-r10" type="number" oninput="if(value.length>4)value=value.slice(0,4)" v-model="vCode" placeholder="请输入验证码" /></div>
<a :class="[codeState ?'color-333':'color-999','absolute right-0 mr20 box-middle font-30']" @click="getcode()">{{codeTx}}</a>
@@ -158,6 +163,7 @@
isShowReg: false,
name: '',
telPhone: '',
remark: '',
isSubmiting: false,
vCode:'',
codeState:true,
@@ -369,6 +375,7 @@
'itemId':'<?=$info['itemId']?>',
'name':that.name,
'telPhone':that.telPhone,
'remark':that.remark,
'code' : that.vCode,
'province' : that.province,
'city' : that.city,