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

4

@@ -113,7 +113,12 @@ class WithdrawalController extends AdminBaseController{ @@ -113,7 +113,12 @@ class WithdrawalController extends AdminBaseController{
113 $money_expend = Db::name('money_expend') -> where('id',$_POST['id']) -> find(); 113 $money_expend = Db::name('money_expend') -> where('id',$_POST['id']) -> find();
114 $third_party = Db::name('third_party_user') -> where('user_id',$money_expend['uid']) -> find(); 114 $third_party = Db::name('third_party_user') -> where('user_id',$money_expend['uid']) -> find();
115 $result = $this -> merchantPay($third_party['openid'],'',$money_expend['money'],'企业付款'); 115 $result = $this -> merchantPay($third_party['openid'],'',$money_expend['money'],'企业付款');
116 - dump($result);die; 116 + if($result['result_code'] == 'SUCCESS'){
  117 +
  118 + }else{
  119 +
  120 + }
  121 +
117 } 122 }
118 123
119 /** 124 /**
@@ -52,6 +52,10 @@ @@ -52,6 +52,10 @@
52 </if> 52 </if>
53 </p> 53 </p>
54 </div> 54 </div>
  55 + <div class="pay_bannerRight">
  56 + <p>23时47分56秒后</p>
  57 + <p>订单自动关闭</p>
  58 + </div>
55 </div> 59 </div>
56 <!-- 地址 --> 60 <!-- 地址 -->
57 <div class="order_address"> 61 <div class="order_address">
@@ -168,5 +172,20 @@ @@ -168,5 +172,20 @@
168 }) 172 })
169 }) 173 })
170 }) 174 })
  175 +
  176 +</script>
  177 +<script>
  178 + var starttime = new Date("2019/6/9");
  179 + setInterval(function() {
  180 + var nowtime = new Date();
  181 + var time = starttime - nowtime;
  182 + var hour = parseInt(time / 1000 / 60 / 60 % 24);
  183 + var minute = parseInt(time / 1000 / 60 % 60);
  184 + var seconds = parseInt(time / 1000 % 60);
  185 + $('.timespan').html(hour + "时" + minute + "分" + seconds + "秒后");
  186 + console.log(hour);
  187 + console.log(minute);
  188 + console.log(seconds)
  189 + }, 1000);
171 </script> 190 </script>
172 </html> 191 </html>