help.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import * as API from '@/apis/my.js'
  2. export default {
  3. data() {
  4. return {
  5. noback:false,
  6. itemStyle: {
  7. },
  8. headStyle: {
  9. marginLeft: '20px',
  10. marginBottom:'10px',
  11. paddingRight:'15px',
  12. paddingBottom:'20px',
  13. borderBottom:'1px solid #eee',
  14. },
  15. bodyStyle: {
  16. marginLeft: '25px',
  17. },
  18. id:"",
  19. itemList: [{
  20. titleName: "上车如何购票",
  21. desc: "帮助说明内容……",
  22. },{
  23. titleName: "下车注意事项",
  24. desc: "帮助说明内容……",
  25. },{
  26. titleName: "如何查询车辆位置",
  27. desc: "帮助说明内容……",
  28. },{
  29. titleName: "如何查询站点信息",
  30. desc: "帮助说明内容……",
  31. },{
  32. titleName: "如何设置提醒",
  33. desc: "帮助说明内容……",
  34. },{
  35. titleName: "纸质车票、现金购票应该怎么操作",
  36. desc: "帮助说明内容……",
  37. },{
  38. titleName: "坐过站了怎么办",
  39. desc: "帮助说明内容……",
  40. },{
  41. titleName: "如何退票",
  42. desc: "帮助说明内容……",
  43. },{
  44. titleName: "如何为他人购票",
  45. desc: "帮助说明内容……",
  46. },],
  47. }
  48. },
  49. methods: {
  50. helpCenterList(){
  51. this.$refs.common.showLoading();
  52. API.helpCenterList().then((res) => {
  53. this.itemList=res.data
  54. this.$refs.common.showLoading(false);
  55. this.$nextTick(()=>{
  56. this.$refs.collapseView.init();
  57. })
  58. }).catch(error => {
  59. this.$refs.common.showLoading(false,error);
  60. })
  61. }
  62. },onLoad(op){
  63. this.id=op.id;
  64. if(op.back){
  65. this.noback=op.back;
  66. }
  67. this.itemList=[]
  68. },onReady() {
  69. this.helpCenterList();
  70. }
  71. }