examine.js 664 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // pages/voyageManage/myDaily/examine/examine.js
  2. const {
  3. postApi
  4. } = require("../../../../apis/api")
  5. const app = getApp()
  6. Page({
  7. data: {
  8. voyageId: 0,
  9. currentBillItem: {},
  10. tab: 0,
  11. },
  12. previewImage(e) {
  13. let {
  14. src
  15. } = e.currentTarget.dataset
  16. wx.previewImage({
  17. current: src, // 当前显示图片的http链接
  18. urls: [src] // 需要预览的图片http链接列表
  19. })
  20. },
  21. changeTab(e) {
  22. this.setData({
  23. tab: e.currentTarget.dataset.tab
  24. })
  25. },
  26. reject() {
  27. },
  28. onLoad(options) {
  29. this.setData({
  30. voyageId: options.id,
  31. currentBillItem: app.globalData.currentBillItem
  32. })
  33. },
  34. })