index.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="content">
  3. <!-- <fxyk-navbar :isSearch="false" :isNeedReturn="false" title="消息提醒"/> -->
  4. <template v-if="info.length">
  5. <view v-for="(item,index) in info" :key="index">
  6. <fxyk-card-news :info="item" @click.native="show = true" />
  7. </view>
  8. <fxyk-modal :show="show" :data="data" @cancle="cancle"/>
  9. </template>
  10. <template v-else>
  11. <view style="margin:240rpx 186.5rpx 0">
  12. <u-image width="378rpx" height="287rpx" src="/static/images/empty.png" :fade="false"></u-image>
  13. <view class="u-m-t-60 text-center word">空空如也......</view>
  14. </view>
  15. </template>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. show: false,
  23. time: 1604884971,
  24. info: [
  25. {
  26. title: '批示',
  27. data: '您有一个节点待批示',
  28. level: '初级评审'
  29. },
  30. {
  31. title: '更新',
  32. data: '检测到一个新版本',
  33. level: ''
  34. }
  35. ],
  36. data: {
  37. title: '现场施工',
  38. department: '营销部',
  39. start: '2019.6.22',
  40. end: '2019.6.26',
  41. edDay: 5,
  42. yyDay: 6,
  43. status: 3,
  44. ifYq: 0
  45. }
  46. }
  47. },
  48. onLoad() {},
  49. methods: {
  50. cancle() {
  51. this.show = false
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang='scss' scoped>
  57. page {
  58. width: 100%;
  59. height: 100%;
  60. }
  61. .content {
  62. width: 100%;
  63. height: 100%;
  64. min-height: 100vh;
  65. background-color: $yk-bg-color;
  66. }
  67. .word {
  68. font-size: 25rpx;
  69. font-family: SimSun;
  70. font-weight: 400;
  71. line-height: 33rpx;
  72. color: #CDD2D9;
  73. }
  74. </style>