Преглед изворни кода

购买按钮bindtab 替换成 catchtap

wangxin пре 7 година
родитељ
комит
c40ddbe162
1 измењених фајлова са 1 додато и 1 уклоњено
  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>