luck 2 rokov pred
rodič
commit
8e1e6b635b

+ 12 - 1
pages/tabber/builds/index.js

@@ -78,7 +78,18 @@ Page({
     
           console.log(222);
         })
-      }
+      },
+      gourl(e){
+        if(e.currentTarget.dataset.sta<=0){
+          wx.showModal({
+            title: '提示',
+            content: "空挂架"
+          })
+        }else{
+        wx.navigateTo({
+          url: '/pages/tabber/builds/hand_desc/handDesc?pylon_no='+ e.currentTarget.dataset.id
+        })
+      }}
 
 
 })

+ 2 - 2
pages/tabber/builds/index.wxml

@@ -34,9 +34,9 @@
     <view class="list flex ">
  
         <view class="item flex ju-c" wx:for="{{data.hans}}" wx:key="index">
-            <navigator url="/pages/tabber/builds/hand_desc/handDesc?pylon_no={{item.hand_no}}">
+            <view bindtap="gourl" data-id="{{item.hand_no}}" data-sta="{{item.hand_count}}">
             <view class="top">{{item.hand_no}}</view>
-        </navigator>
+            </view>
             <view class="foot m-top-20 {{item.hand_count == 0 ? '': (item.limit_count == item.hand_count ? 'green' : 'blue')}}">{{item.hand_count}}/{{item.limit_count}}</view>
         </view>