Page({ data: { value: [ { name: "张三", tel: "15793329457", vmodel: "福田奥铃捷运冷藏", invioce: 19000, lamount: 15000, laompany: "sp-等额本息-LcV12.99%-个人-36msp-等额本息-LcV12.99%-个人-36msp-等额本息-LcV12.99%-个人-36msp-等额本息-LcV12.99%-个人-36m", type: "草稿" }, { name: "张三", tel: "15793329457", vmodel: "福田奥铃捷运冷藏", invioce: 19000, lamount: 15000, laompany: "sp-等额本息-LcV12.99%-个人-36m", type: "审核中" }, { name: "张三", tel: "15793329457", vmodel: "福田奥铃捷运冷藏", invioce: 19000, lamount: 15000, laompany: "sp-等额本息-LcV12.99%-个人-36m", type: "待审核" }, { name: "张三", tel: "15793329457", vmodel: "福田奥铃捷运冷藏", invioce: 19000, lamount: 15000, laompany: "sp-等额本息-LcV12.99%-个人-36m", type: "审核通过" } ], btns: [ { name: "修改", type: "drafts", success () { } }, { name: "查看", type: "provided", success () { } }, { name: "修改", type: "provided", success () { } }, { name: "上传资料", type: "provided", success () { } } ] }, onLoad: function (options) { let titleArr = [{ name: "草稿箱", value: "drafts", category: 0 }, { name: "已填报", value: "provided", category: 1 }]; let filter_title = titleArr.filter(item => item.value == options.data); this.setData({ title: filter_title.length != 0 ? filter_title[0]['name'] : '草稿箱', type: options.data || 'drafts' }) }, onReady: function () { }, onShow: function () { }, onHide: function () { }, onUnload: function () { }, onPullDownRefresh: function () { }, onReachBottom: function () { } })