Mini Program list sharing button to share with friends, whether or not you choose friends to share, you have to jump to the details page, manually close the prompt box, and jump to the details page.

Click on the friend in the picture to help you cut the knife and share it with your friend. No matter whether you have selected a friend or not, jump to the corresponding details page
onShareAppMessage: function (res) {

.
if (res.from == "menu") {
  return {
    title: "",
    path: ""
  }
}
const that = this;
if (res.target.id == "2") {//
  wx.navigateTo({
    url: "/pages/bargain/bargaindetails/bargaindetails?shelveId=" + that.selectObj.shelveId + "&geoId=" + that.data.geoId
  })
}

var productName = ""
var imageUrl = ""
var shelveId = 0
var detailId = 0

if (JSON.stringify(res.target.dataset) != "{}") {
  productName = res.target.dataset.proname
  imageUrl = res.target.dataset.icon
  shelveId = res.target.dataset.shelveid
  detailId = res.target.dataset.detailid
  var app = getApp();
  app.aldstat.sendEvent("-", {
    "": shelveId,
    "": productName
  });
} else if (JSON.stringify(this.selectObj) != undefined || JSON.stringify(this.selectObj) != null) {
  productName = that.selectObj.productName
  imageUrl = that.selectObj.icon
  shelveId = that.selectObj.shelveId
  detailId = that.selectObj.shareId
  this.selectObj = null
}

return {
  title: "",
  path: "",
  imageUrl: imageUrl,
  success: function (res) {
    var app = getApp();
    app.aldstat.sendEvent("--", {
     "": shelveId, 
     "": productName
     });
  }
}

},

Apr.11,2021

if (res.target.id = ='2') {/ / Click on a friend to help cut
wx.navigateTo ({

)
url: '/pages/bargain/bargaindetails/bargaindetails?shelveId=' + that.selectObj.shelveId + '&geoId=' + that.data.geoId

})
}
put this sentence in success, and if you don't execute it, you can also put it in complete

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47c86-4c368.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47c86-4c368.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?