购物车按钮点击添加弹窗:暂未实现~
This commit is contained in:
		@@ -139,6 +139,16 @@ Page({
 | 
			
		||||
    })();
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  btnAddCartTap() {
 | 
			
		||||
    wx.showModal({
 | 
			
		||||
      title: '暂未实现',
 | 
			
		||||
      content: '时间有限,该功能暂未实现~',
 | 
			
		||||
      showCancel: false,
 | 
			
		||||
      complete: (res) => {
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  loadPageData() {
 | 
			
		||||
    (async () => {
 | 
			
		||||
      let goodDetail = await goodService.getGoodDetail(this.data.goodId)
 | 
			
		||||
 
 | 
			
		||||
@@ -43,7 +43,7 @@
 | 
			
		||||
    <button class="buy-count-btn" bindtap="btnAddCount" size="mini">+</button>
 | 
			
		||||
  </view>
 | 
			
		||||
  <view class="bottom-buttons">
 | 
			
		||||
    <view class="btn" id="btn-addcart">加入购物车</view>
 | 
			
		||||
    <view class="btn" id="btn-addcart" bindtap="btnAddCartTap" style="filter: grayscale(1);">加入购物车</view>
 | 
			
		||||
    <view class="btn" id="btn-buy" bindtap="btnBuyTap">立即下单</view>
 | 
			
		||||
  </view>
 | 
			
		||||
</view>
 | 
			
		||||
		Reference in New Issue
	
	Block a user