projectInfo.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="content">
  3. <fxyk-navbar :isSearch="false" :title="title"/>
  4. <view style="height:10rpx"></view>
  5. <fxyk-card class="u-margin-10" :showHead="false" :projectTime="projectTime" :bodyInfo="2" />
  6. <fxyk-button v-if="status === 2" content="项目终止" width="321" height="83" bgColor="#40349C" @click.native="jump_project_end"/>
  7. <view style="height:10rpx"></view>
  8. <fxyk-card class="u-margin-10" :projectInfo="projectInfo"/>
  9. <fxyk-gap />
  10. <u-time-line class="u-margin-bottom-20" style="margin-left:17rpx;padding:0;">
  11. <fxyk-timeline-newest v-for="i in 9" :key="i" projectStatus="1" :projectIndex="i" />
  12. </u-time-line>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. status: '',
  20. projectInfo: {
  21. 'name':'放大镜结果呢人哪里哪里就那几个那经历过那就南大街了',
  22. 'code':11111,
  23. 'text':'放大镜结果呢人哪里哪里就那几个那经历过那就南大街了',
  24. 'large':11111,
  25. 'space':11111,
  26. 'invest':11111,
  27. 'people':11111,
  28. 'phone':11111
  29. },
  30. projectTime: {
  31. edTime: 30,
  32. wcTime: 15,
  33. start: 1591494571,
  34. end: 1594000171
  35. }
  36. }
  37. },
  38. onLoad(option) {
  39. let status = parseInt(option.status)
  40. this.status = 2
  41. },
  42. computed: {
  43. // 导航栏标题
  44. title() {
  45. if (this.status === 1) {
  46. return '已完成'
  47. } else if (this.status === 2) {
  48. return '进行中'
  49. } else {
  50. return '已终止'
  51. }
  52. }
  53. },
  54. methods: {
  55. // 跳到节点管理页 不跳
  56. // jump_project_info_point() {
  57. // uni.navigateTo({
  58. // url: '/pages/index/projectInfoPoint'
  59. // })
  60. // },
  61. // 跳到项目终止页
  62. jump_project_end() {
  63. uni.navigateTo({
  64. url: '/pages/index/projectEnd'
  65. })
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. page {
  72. width: 100%;
  73. height: 100%;
  74. }
  75. .content {
  76. width: 100%;
  77. height: 100%;
  78. min-height: 100vh;
  79. background-color: $yk-bg-color;
  80. }
  81. .project-end {
  82. width: 321rpx;
  83. height: 83rpx;
  84. background: #40349C;
  85. box-shadow: 0rpx 4rpx 2rpx #1B0E81;
  86. border-radius: 17rpx;
  87. font-size: 33rpx;
  88. font-family: SimSun;
  89. font-weight: 400;
  90. line-height: 44rpx;
  91. color: #FFFFFF;
  92. margin-left: 215rpx;
  93. }
  94. </style>