index.js 443 B

123456789101112131415161718192021222324
  1. var app = getApp();
  2. Component({
  3. properties: {
  4. reply:{
  5. type:Object,
  6. value:[],
  7. }
  8. },
  9. data: {
  10. },
  11. attached: function () {
  12. },
  13. methods: {
  14. getpreviewImage:function(e){
  15. var dataset=e.currentTarget.dataset;
  16. wx.previewImage({
  17. urls: this.data.reply[dataset.index].pics,
  18. current: this.data.reply[dataset.index].pics[dataset.pic_index],
  19. });
  20. },
  21. }
  22. })