trainingCenter.vue 1.2 KB

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