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

4

@@ -23,6 +23,7 @@ class OrderpageController extends WeChatBaseController{ @@ -23,6 +23,7 @@ class OrderpageController extends WeChatBaseController{
23 if(!empty($indet_id['address_id'])){ 23 if(!empty($indet_id['address_id'])){
24 $address = Db::name('address') -> where('id',$indet_id['address_id']) -> find(); 24 $address = Db::name('address') -> where('id',$indet_id['address_id']) -> find();
25 $this -> assign('address',$address); 25 $this -> assign('address',$address);
  26 + $this -> assign('address_id',$indet_id['address_id']);
26 }else{ 27 }else{
27 $address = Db::name('address') -> where("uid=".$uid." and default_address=1 and delete_time = 0") -> find(); 28 $address = Db::name('address') -> where("uid=".$uid." and default_address=1 and delete_time = 0") -> find();
28 if(empty($address)){ 29 if(empty($address)){
@@ -123,7 +123,7 @@ @@ -123,7 +123,7 @@
123 */ 123 */
124 function go_pay(){ 124 function go_pay(){
125 indnet_id = "{$indent_id}"; 125 indnet_id = "{$indent_id}";
126 - indent_address = "{$address}"; 126 + indent_address = "{$address_id}";
127 $.post("{:url('Order/is_my_salesman')}",{indent_id:indnet_id},function(data){ 127 $.post("{:url('Order/is_my_salesman')}",{indent_id:indnet_id},function(data){
128 if(data){ 128 if(data){
129 name = $('#name').text(); 129 name = $('#name').text();