trainingCenter.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view>
  3. <view style="line-height: 26px;padding: 32upx;" class="home1" >
  4. <u-parse :html="content"></u-parse>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. list: [],
  13. content: '',
  14. id:''
  15. }
  16. },
  17. onLoad(e) {
  18. this.id = e.id
  19. this.taskData(e.id)
  20. },
  21. methods: {
  22. // 获取任务数据
  23. taskData(e) {
  24. this.$Request.getT('/app/trainingCenter/TrainingCenter?id='+e).then(res => {
  25. if(res.code==0){
  26. this.content = res.data.message
  27. }
  28. });
  29. },
  30. }
  31. }
  32. </script>
  33. <style>
  34. page {
  35. background: #FFFFFF;
  36. }
  37. .content {
  38. width: 100%;
  39. background: #FFFFFF;
  40. margin-top: 20rpx;
  41. padding-bottom: 50rpx;
  42. padding-top: 20rpx;
  43. }
  44. .list_box {
  45. width: 90%;
  46. margin: 0 auto;
  47. display: flex;
  48. line-height: 45rpx;
  49. padding-top: 20rpx;
  50. }
  51. .list_left {
  52. flex: 2;
  53. }
  54. .name {
  55. font-size: 26rpx;
  56. color: #333333;
  57. font-weight: bold;
  58. letter-spacing: 2rpx;
  59. }
  60. .data {
  61. color: #999999;
  62. font-size: 24rpx;
  63. }
  64. /* .list_right {
  65. flex: 1;
  66. display: flex;
  67. justify-content: flex-end;
  68. align-items: center;
  69. font-size: 31rpx;
  70. } */
  71. </style>