item.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view>
  3. <view class="liwarp" @click="toDetail(item)" v-for="(item,index) in list" :key="index">
  4. <view class="litop">
  5. <view class="li_name">{{item.title}}</view>
  6. <view class="li_status" v-if="item.status == 3">{{i18n['已完成']}}</view>
  7. <view class="li_status" v-if="item.status == 9">{{i18n['已终止']}}</view>
  8. <view class="li_status" v-if="item.status != 3 && item.status != 9">{{i18n['处理中']}}</view>
  9. </view>
  10. <view class="litext">{{i18n['情况说明']}}:{{item.desc}}</view>
  11. <view class="litime">{{i18n['提交时间']}}:{{item.createtime}}</view>
  12. </view>
  13. <view class="noData" v-if="list.length == 0">{{i18n['暂无更多']}}</view>
  14. </view>
  15. </template>
  16. <script>
  17. export default{
  18. props:{
  19. list:{
  20. type:Array,
  21. default:[]
  22. }
  23. },
  24. data(){
  25. return{
  26. }
  27. },
  28. computed:{
  29. i18n() {
  30. return this.$t("progress")
  31. }
  32. },
  33. methods:{
  34. toDetail(item) {
  35. uni.navigateTo({
  36. url:'/pages/see_progress/progress_detail?id='+item.id
  37. })
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .liwarp{
  44. background:#fff;
  45. border-radius: 20rpx;
  46. box-sizing: border-box;
  47. padding:30rpx;
  48. margin-bottom:24rpx;
  49. .litop{
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. padding-bottom:15rpx;
  54. border-bottom:1rpx solid #EDEDED;
  55. .li_name{
  56. flex:1;
  57. font-size:26rpx;
  58. color:#666666;
  59. margin-right:24rpx;
  60. overflow: hidden;
  61. text-overflow:ellipsis;
  62. white-space: nowrap;
  63. }
  64. .li_status{
  65. flex-shrink: 0;
  66. font-size:22rpx;
  67. color:#65ABF6;
  68. background:rgba(101,171,246,0.3);
  69. padding:8rpx 20rpx;
  70. border-radius: 20rpx;
  71. }
  72. }
  73. .litext{
  74. font-size:24rpx;
  75. color:#999999;
  76. margin:24rpx 0;
  77. }
  78. .litime{
  79. font-size:24rpx;
  80. color:#999999;
  81. }
  82. }
  83. </style>