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
| // pages/autograph/index.js
| const $$ = require('../../utils/util');
|
| Page({
| /**
| * 页面的初始数据
| */
| data: {
| imgUrl: $$.url.img,
| cardData: [
| {
| icon: `${$$.url.img}toBeSigned.png`,
| iconActive: `${$$.url.img}toBeSigned-active.png`,
| title: '待签名',
| files: [],
| },
| {
| icon: `${$$.url.img}signed.png`,
| iconActive: `${$$.url.img}signed-active.png`,
| title: '已签名',
| files: [],
| },
| ],
| activeIndex: 0, // 当前选中的材料下标
| },
|
| handleChangeTab(e) {
| this.setData({
| activeIndex: e.detail,
| });
| },
|
| /**
| * 生命周期函数--监听页面加载
| */
| onLoad(options) {},
| });
|
|