helpInfo.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="container">
  3. <view class="help-container" v-for="(item, index) in helpList" :key="index">
  4. <view class="help-box">
  5. <view class="help-title">{{item.question||''}}</view>
  6. <view class="help-content">{{item.answer||''}}</view>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. const util = require("@/utils/util.js");
  13. const api = require('@/utils/api.js');
  14. export default {
  15. data() {
  16. return {
  17. helpList: []
  18. }
  19. },
  20. methods: {
  21. getHelpList(id) {
  22. let that = this;
  23. util.request(api.HelpIssueList, {
  24. type_id: id
  25. }).then(function(res) {
  26. if (res.errno === 0) {
  27. that.helpList = res.data
  28. }
  29. });
  30. }
  31. },
  32. onLoad: function(options) {
  33. this.getHelpList(options.id)
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. .container {
  39. width: 750rpx;
  40. height: 100%;
  41. overflow-x: hidden;
  42. overflow-y: auto;
  43. background: #f4f4f4;
  44. position: relative;
  45. }
  46. .help-container {
  47. background-color: #fff;
  48. padding: 0 30rpx;
  49. }
  50. .help-box {
  51. position: relative;
  52. }
  53. .help-box::after {
  54. content: " ";
  55. position: absolute;
  56. left: 0;
  57. bottom: 0;
  58. right: 0;
  59. height: 1px;
  60. border-bottom: 1px solid #d9d9d9;
  61. color: #d9d9d9;
  62. -webkit-transform-origin: 0 100%;
  63. transform-origin: 0 100%;
  64. -webkit-transform: scaleY(0.5);
  65. transform: scaleY(0.5);
  66. }
  67. .help-box .help-title {
  68. padding-top: 30rpx;
  69. font-weight: bold;
  70. }
  71. .help-box .help-content {
  72. padding: 30rpx 0;
  73. }
  74. </style>