| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- // pages/voyageManage/myDaily/examine/examine.js
- const {
- postApi
- } = require("../../../../apis/api")
- const app = getApp()
- Page({
- data: {
- media: {},
- voyageId: 0,
- markers: [],
- longitude: '',
- latitude: '',
- trans: ''
- },
- previewImage(e) {
- let {
- src
- } = e.currentTarget.dataset
- wx.previewImage({
- current: src, // 当前显示图片的http链接
- urls: [src] // 需要预览的图片http链接列表
- })
- },
- async checkMedia(e) {
- let res = await postApi('/dayReport/backstage/audit', {
- audit: e.currentTarget.dataset.audit,
- mediaId: this.data.media.id
- })
- wx.showToast({
- title: res.data.msg,
- })
- wx.switchTab({
- url: '/pages/voyageManage/voyageManage',
- })
- },
- onLoad(options) {
- this.setData({
- voyageId: options.id,
- trans: options.trans,
- })
- },
- onReady() {
- let media = app.globalData.currentExamineMedia
- let {
- latitude,
- longitude
- } = media
- let markers = [{
- id: "map",
- latitude,
- longitude,
- iconPath: "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/red-circle.png?sign=6d208881376358fb4111aa6d7f1a7846&t=1647934972",
- height: 20,
- width: 20
- }]
- this.setData({
- media,
- markers,
- latitude,
- longitude,
- })
- },
- onShareAppMessage() {
- }
- })
|