Browse Source

[即时抢购支付][修复]:支付问题修复

tags/2.2.4
Stormeye.Wu 7 years ago
parent
commit
0628cc216f
2 changed files with 8 additions and 6 deletions
  1. +7
    -5
      pages/index/rushToBuy/index.js
  2. +1
    -1
      pages/index/rushToBuy/index.wxml

+ 7
- 5
pages/index/rushToBuy/index.js View File

@@ -36,13 +36,15 @@ Component({
gotodetail: function(e) { gotodetail: function(e) {
console.log(e); console.log(e);
console.log("出错啦 大哥"); console.log("出错啦 大哥");
console.log(e.currentTarget.dataset.id);
console.log(e.currentTarget.dataset.targetad);
console.log(e.currentTarget.dataset);
wx.navigateTo({ wx.navigateTo({
url: `/pages/coupon/detail/index?couponChannelId=${ url: `/pages/coupon/detail/index?couponChannelId=${
e.currentTarget.dataset.id
}&couponId=${e.currentTarget.dataset.couponId}
}&targetAd=${e.currentTarget.dataset.targetad}`
e.currentTarget.dataset.couponchannelid
}&couponId=${
e.currentTarget.dataset.couponid
}&targetAd=${
e.currentTarget.dataset.targetad
}`
}); });
} }
}, },


+ 1
- 1
pages/index/rushToBuy/index.wxml View File

@@ -2,7 +2,7 @@
<view class="index-rushToBuy-title">限时抢购<text bindtap="gotomore">查看更多></text></view> <view class="index-rushToBuy-title">限时抢购<text bindtap="gotomore">查看更多></text></view>
<scroll-view scroll-x class="index-scroll-view"> <scroll-view scroll-x class="index-scroll-view">
<view class="commodity" wx:for="{{list}}" wx:key="unique"> <view class="commodity" wx:for="{{list}}" wx:key="unique">
<view bindtap="gotodetail" data-id="{{item.id}}" data-targetAd="{{item.targetAd}}">
<view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}">
<image class="commodity-img" src="{{item.coverImg}}" /> <image class="commodity-img" src="{{item.coverImg}}" />
<view class="commodity-info"> <view class="commodity-info">
<view class="commodity-info-name">{{item.title}}</view> <view class="commodity-info-name">{{item.title}}</view>


Loading…
Cancel
Save