import * as requestAPI from '../../models/dataModel' import baseURL from '../../api/baseUrlConfig.js' Page({ data: { // qcDetail: {}, // mark: '', // tempMark: '', scCode: '', scpCode: '', poCode: '', picture: '', ids: '', imageList: [], showAllPic: false, showDeleteBtn: true, allImgList: [] }, onLoad: function (options) { this.setData({ ids: options.ids, picture: options.picture, poCode: options.poCode, scCode: options.scCode, scpCode: options.scpCode }) this.getImages() }, // 获取图片 getImages() { let allImgList = [] // 全部图片 let lessImgList = [] // 部分图片 if(this.data.picture) { allImgList = this.data.picture.split(',') for(let i = 0;i{ // this.getImages() // }) }, // 图片预览 openPreview: function (event) { wx.previewImage({ urls: this.data.imageList, current: event.currentTarget.dataset.current }) } })