1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| // pages/test2/test2.js
| Page({
|
| /**
| * 页面的初始数据
| */
| data: {
| imgFiles: [
| '/res/icons/ass_1.png',
| '/res/icons/ass_2.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| '/res/icons/ass_3.png',
| ],
| ledgerRemark: '台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注台账备注',
| previewImageUrls:[],
| previewCurrent: 0,
| showPreview: false,
| },
|
| /**
| * 生命周期函数--监听页面加载
| */
| onLoad(options) {
|
| },
|
| /**
| * 生命周期函数--监听页面初次渲染完成
| */
| onReady() {
|
| },
|
| previewImage(e) {
| const {
| index
| } = e.currentTarget.dataset;
| const previewImageUrls = this.data.imgFiles;
| this.setData({
| previewImageUrls,
| previewCurrent: index,
| showPreview: true
| });
| },
| })
|
|