ソースを参照

change sell over

junyuanz 5 年 前
コミット
eb954ab875
共有2 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 1 1
      pages/projects/project-detail/project-detail.wxml
  2. 2 2
      utils/request.js

+ 1 - 1
pages/projects/project-detail/project-detail.wxml

@@ -127,7 +127,7 @@
         <image src="../../../images/footer/shoppingcart.png" class="detail-footer-icon"></image>
         <text class="detail-footer-text">购物车</text>
       </view> -->
-      <button class="detail-footer-item detail-yellow" bindtap="toCart" wx:if="{{project.seckill_show_price <= 0}}">
+      <button class="detail-footer-item detail-yellow" bindtap="toCart" wx:if="{{project.seckill_show_price <= 0 && project.left_count > 0}}">
         <text>加入购物车</text>
       </button>
       <form bindsubmit="toPay" report-submit="{{true}}" wx:if="{{project.left_count > 0 && project.seckill_state !='end'}}" class="detail-footer-item">

+ 2 - 2
utils/request.js

@@ -1,7 +1,7 @@
 // // 新正式(未审批)
-//const apiHost = 'https://fohowapi.hiwavo.com/' 
+const apiHost = 'https://fohowapi.hiwavo.com/' 
 // 测试
-   const apiHost = 'https://tfohowapi.hiwavo.com/'
+// const apiHost = 'https://tfohowapi.hiwavo.com/'
 
 function $get (url, params, success, fail) {
   wx.showNavigationBarLoading()