xiaoe_mp_npm 0.5.17 → 0.5.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -588,8 +588,12 @@ Component({
588
588
  }
589
589
  wx.navigateToMiniProgram(params)
590
590
  },
591
- sendGoodsCard(){
592
- this.triggerEvent('sendGoodsCard',this.data.goodsItem)
591
+ sendGoodsCard(e) {
592
+ let dataset = e.currentTarget.dataset;
593
+ // 触发父组件的send
594
+ this.triggerEvent('sendGoodsCard', {
595
+ datas: dataset
596
+ });
593
597
  },
594
598
  changeShowType(){
595
599
  this.setData({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -588,8 +588,12 @@ Component({
588
588
  }
589
589
  wx.navigateToMiniProgram(params)
590
590
  },
591
- sendGoodsCard(){
592
- this.triggerEvent('sendGoodsCard',this.data.goodsItem)
591
+ sendGoodsCard(e) {
592
+ let dataset = e.currentTarget.dataset;
593
+ // 触发父组件的send
594
+ this.triggerEvent('sendGoodsCard', {
595
+ datas: dataset
596
+ });
593
597
  },
594
598
  changeShowType(){
595
599
  this.setData({