index.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Page({
  2. data: {
  3. value: [
  4. {
  5. name: "张三",
  6. tel: "15793329457",
  7. vmodel: "福田奥铃捷运冷藏",
  8. invioce: 19000,
  9. lamount: 15000,
  10. laompany: "sp-等额本息-LcV12.99%-个人-36msp-等额本息-LcV12.99%-个人-36msp-等额本息-LcV12.99%-个人-36msp-等额本息-LcV12.99%-个人-36m",
  11. type: "草稿"
  12. },
  13. {
  14. name: "张三",
  15. tel: "15793329457",
  16. vmodel: "福田奥铃捷运冷藏",
  17. invioce: 19000,
  18. lamount: 15000,
  19. laompany: "sp-等额本息-LcV12.99%-个人-36m",
  20. type: "审核中"
  21. },
  22. {
  23. name: "张三",
  24. tel: "15793329457",
  25. vmodel: "福田奥铃捷运冷藏",
  26. invioce: 19000,
  27. lamount: 15000,
  28. laompany: "sp-等额本息-LcV12.99%-个人-36m",
  29. type: "待审核"
  30. },
  31. {
  32. name: "张三",
  33. tel: "15793329457",
  34. vmodel: "福田奥铃捷运冷藏",
  35. invioce: 19000,
  36. lamount: 15000,
  37. laompany: "sp-等额本息-LcV12.99%-个人-36m",
  38. type: "审核通过"
  39. }
  40. ],
  41. btns: [
  42. { name: "修改", type: "drafts", success () { } },
  43. { name: "查看", type: "provided", success () { } },
  44. { name: "修改", type: "provided", success () { } },
  45. { name: "上传资料", type: "provided", success () { } }
  46. ]
  47. },
  48. onLoad: function (options) {
  49. let titleArr = [{ name: "草稿箱", value: "drafts", category: 0 }, { name: "已填报", value: "provided", category: 1 }];
  50. let filter_title = titleArr.filter(item => item.value == options.data);
  51. this.setData({
  52. title: filter_title.length != 0 ? filter_title[0]['name'] : '草稿箱',
  53. type: options.data || 'drafts'
  54. })
  55. },
  56. onReady: function () {
  57. },
  58. onShow: function () {
  59. },
  60. onHide: function () {
  61. },
  62. onUnload: function () {
  63. },
  64. onPullDownRefresh: function () {
  65. },
  66. onReachBottom: function () {
  67. }
  68. })