successReminder.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. // pages/successReminder/successReminder.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. description:'为保证申诉顺利性,请先下架被投诉产品链接',
  8. type:'申诉'
  9. },
  10. /**
  11. * 生命周期函数--监听页面加载
  12. */
  13. onLoad(options) {
  14. const types = [
  15. {
  16. id:3,
  17. type:'申诉',
  18. description:'为保证申诉顺利性,请先下架被投诉产品链接'
  19. },
  20. {
  21. id:2,
  22. type:'维权',
  23. description:'为保证您的知识产品,请继续留意侵权方向'
  24. },
  25. {
  26. id:1,//查风险
  27. type:'',
  28. description:''
  29. },
  30. {
  31. id:4,//申请
  32. type:'',
  33. description:''
  34. },
  35. ]
  36. console.log(options)
  37. if(options.id){
  38. var obj = types.find(item=>{
  39. return item.id == options.id
  40. })
  41. if(obj){
  42. this.setData(
  43. {
  44. description:obj.description,
  45. type:obj.type
  46. }
  47. )
  48. }
  49. }
  50. if(options.type){
  51. this.setData(
  52. {
  53. type:options.type
  54. }
  55. )
  56. }
  57. if(options.description){
  58. this.setData(
  59. {
  60. description:options.description
  61. }
  62. )
  63. }
  64. },
  65. /**
  66. * 生命周期函数--监听页面初次渲染完成
  67. */
  68. onReady() {
  69. },
  70. /**
  71. * 生命周期函数--监听页面显示
  72. */
  73. onShow() {
  74. },
  75. /**
  76. * 生命周期函数--监听页面隐藏
  77. */
  78. onHide() {
  79. },
  80. /**
  81. * 生命周期函数--监听页面卸载
  82. */
  83. onUnload() {
  84. },
  85. /**
  86. * 页面相关事件处理函数--监听用户下拉动作
  87. */
  88. onPullDownRefresh() {
  89. },
  90. /**
  91. * 页面上拉触底事件的处理函数
  92. */
  93. onReachBottom() {
  94. },
  95. /**
  96. * 用户点击右上角分享
  97. */
  98. onShareAppMessage() {
  99. }
  100. })