unit.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view class='my-unit' @click="childClick">
  3. <view class="unit-head">
  4. <text style="font-weight: bold;font-size: 26upx;">{{info.title}}</text>
  5. </view>
  6. <view class="unit-body">
  7. <view style="display: flex;justify-content: center;align-items:center;">
  8. <uni-icons type="settings" size="20"></uni-icons>
  9. <text style="margin-left: 10upx;" >{{info.status}}</text>
  10. </view>
  11. <text style="color: gray;">{{parseTime(info.time)}}</text>
  12. </view>
  13. <view class="unit-foot">
  14. <text style="color: gray;">{{ initIndex==2?'当前处理人':'发起人' }}</text>
  15. <text style="font-weight: bold;">{{info.nickname}}</text>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default{
  21. props: {
  22. info: {
  23. type: Object
  24. },
  25. initIndex:{
  26. type: Number
  27. }
  28. },
  29. data() {
  30. return {
  31. unitModel1:[
  32. {prop:"",label:"匹配商铺数"},
  33. {prop:"",label:"已报价商铺数"},
  34. {prop:"",label:"最新报价",class:"color-red",isMoney:true},
  35. {prop:"",label:"商品报价",class:"color-999",isMoney:true},
  36. {prop:"",label:"税点",class:"color-999"},
  37. {prop:"",label:"税费",class:"color-999",isMoney:true},
  38. {prop:"",label:"运费",class:"color-999",isMoney:true},
  39. ]
  40. }
  41. },
  42. methods:{
  43. doDel(){
  44. this.$store.commit("switch_loading")
  45. },
  46. childClick(){
  47. this.$emit('faClick', this.info)
  48. }
  49. },
  50. computed:{
  51. },
  52. created() {
  53. },
  54. }
  55. </script>
  56. <style lang='scss'>
  57. .my-unit{
  58. margin: 20upx 10upx;
  59. background-color: #ffffff;
  60. font-size: 28upx;
  61. transform: all 1s;
  62. border-radius: 10upx;
  63. box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 3;
  64. .unit-head{
  65. padding: 20upx 20upx 10upx 20upx;
  66. /* height: 80upx; */
  67. box-sizing: border-box;
  68. /* border-bottom: 2upx solid #f5f5f5; */
  69. }
  70. .unit-body{
  71. padding: 0 20upx;
  72. display: flex;
  73. flex-wrap: wrap;
  74. justify-content: space-between;
  75. align-items: center;
  76. text{
  77. font-size: 20upx;
  78. line-height: 55upx;
  79. }
  80. }
  81. .unit-foot{
  82. height: 88upx;
  83. padding: 0 20upx;
  84. border-top: 2upx solid #f5f5f5;
  85. border-bottom: none;
  86. line-height: 88upx;
  87. display: flex;
  88. flex-wrap: wrap;
  89. text{
  90. width: 30%;
  91. }
  92. }
  93. }
  94. </style>