detail.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="content">
  3. <view class="top hflex acenter jcenter">
  4. <view class="time">{{time}}</view>
  5. </view>
  6. <view class="box">
  7. <view class="hflex acenter">
  8. <view class="dian" v-if="is_read"></view>
  9. <view class="title">{{title}}</view>
  10. </view>
  11. <u-parse :content="text"></u-parse>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. import $api from '@/static/js/api.js'
  17. var that = ''
  18. export default {
  19. data() {
  20. return {
  21. id: '',
  22. time: '08-12 23:19:34',
  23. title: '第一批00后,已经被找工作难哭了?',
  24. text: '大厂CEO+北大教授+职场培训师教你求职拿offer!还有好礼送不停!大厂CEO+北大教授+职场培训师教你求职拿offer!还有好礼送不停!大厂CEO+北大教授+职场培训师教你求职拿offer!还有好礼送不停!',
  25. is_read: 1
  26. }
  27. },
  28. onLoad(options) {
  29. that = this
  30. that.id = options.id
  31. },
  32. methods: {
  33. },
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .content {
  38. background-color: #F4f4f4;
  39. padding: 0 30rpx 0;
  40. .top {
  41. width: 100%;
  42. padding: 24rpx 0;
  43. .time {
  44. height: 32rpx;
  45. background: #D8D8D8;
  46. border-radius: 20rpx;
  47. box-sizing: border-box;
  48. padding: 0 20rpx;
  49. font-size: 24rpx;
  50. font-weight: 300;
  51. color: #FFFFFF;
  52. line-height: 32rpx;
  53. }
  54. }
  55. .box {
  56. width: 100%;
  57. box-sizing: border-box;
  58. padding: 48rpx 20rpx;
  59. background-color: #fff;
  60. border-radius: 24rpx;
  61. .dian {
  62. width: 12rpx;
  63. height: 12rpx;
  64. border-radius: 50%;
  65. background-color: #ff4646;
  66. margin-right: 8rpx;
  67. }
  68. .title {
  69. font-size: 32rpx;
  70. color: #222;
  71. }
  72. }
  73. }
  74. </style>