Browse Source

购买按钮bindtab 替换成 catchtap

wangxin 6 years ago
parent
commit
c40ddbe162
1 changed files with 1 additions and 1 deletions
  1. 1 1
      template/home/index.wxml

+ 1 - 1
template/home/index.wxml

@@ -4,7 +4,7 @@
         <view class="page__title">{{item.name}}</view>
         <view class="page__desc">
           <text class="price">¥ {{item.price}}</text>
-          <view class="button" bindtap="addCarts" data-id="{{item.id}}" data-name="{{item.name}}"><button class="nxh__button" type="primary" size="mini">购买</button></view>
+          <view class="button" catchtap='addCarts' data-id="{{item.id}}" data-name="{{item.name}}"><button class="nxh__button" type="primary" size="mini">购买</button></view>
         </view>
     </view>
 </view>