作者 anyv
1 个管道 的构建 通过 耗费 0 秒

5

... ... @@ -142,6 +142,19 @@ class OrderpageController extends WeChatBaseController{
}
/**
* 业务员快递去支付
*/
public function salesman_go_pay(){
$data_update = Db::name('indent') -> update($_POST);
if($data_update){
return true;
}else{
return false;
}
}
... ...
... ... @@ -25,6 +25,9 @@ class PayController extends HomeBaseController
];
}
public function text(){
dump(cache('a'));
}
/**
* 微信支付
... ... @@ -238,6 +241,10 @@ class PayController extends HomeBaseController
}
}else{
if($order['indent_type'] == 2 && $order['is_courier'] == 2){
cache('a','11111');
}
}
return true; // 返回处理完成
... ...
... ... @@ -110,14 +110,14 @@
</div>
<div class="order_Etc2">
<p class="order_EtcTxt">买家留言</p>
<textarea placeholder="在此填写您的留言"></textarea>
<textarea placeholder="在此填写您的留言" id="liuyan"></textarea>
</div>
</div>
<!-- 底部 -->
<div class="order_bottom">
<div class="order_bottom1">
<p class="order_bottomHe">合计金额:</p>
<p class="de_topTxt1_1 zoji"><span>{$money}</span></p>
<p class="de_topTxt1_1 zoji"><span id="money">{$money}</span></p>
</div>
<div class="order_bottom2" onclick="go_pay()">立即支付</div>
</div>
... ... @@ -147,7 +147,16 @@
}else if(detailed == ''){
alert('地址不能为空');
}else{
liuyan = $('#liuyan').val();
indet_id = {$indet_id};
money = $('#money').text();
$.post("{:url('Orderpage/salesman_go_pay')}",{leave_word:liuyan,id:indet_id,money:money},function(data){
if(data){
window.location.href = "{:url('Pay/index',array('id'=>$indent_id))}";
}else{
alert('更新订单失败');
}
});
}
}
... ...