order-top.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="order-top">
  3. <view class="hflex acenter jbetween">
  4. <view class="title">客户信息</view>
  5. <view class="type1" v-if="type == 1">未报价</view>
  6. <view class="type1" v-if="type == 2 && amount == ''">未报价</view>
  7. <view class="type1 type2" v-if="type == 2 && amount !== ''">已报价</view>
  8. <view class="type1 type3" v-if="type == 3">已匹配</view>
  9. </view>
  10. <view class="hflex acenter cell">
  11. <view class="left">联系人:</view>
  12. <view class="right">{{name}}</view>
  13. </view>
  14. <view class="hflex acenter">
  15. <view class="left">手机号:</view>
  16. <view class="right">{{phone}}</view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. name:"order-top",
  23. props: {
  24. name: {
  25. type: String,
  26. value: ''
  27. },
  28. phone: {
  29. type: String,
  30. value: ''
  31. },
  32. type: {
  33. type: String,
  34. value: ''
  35. },
  36. amount: {
  37. type: String,
  38. value: ''
  39. },
  40. },
  41. data() {
  42. return {
  43. };
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .order-top {
  49. width: 690rpx;
  50. background: #FFFFFF;
  51. border-radius: 24rpx;
  52. box-sizing: border-box;
  53. padding: 24rpx 20rpx;
  54. .title {
  55. font-size: 30rpx;
  56. font-weight: 500;
  57. color: #222222;
  58. }
  59. .cell {
  60. margin: 16rpx 0 24rpx;
  61. }
  62. .type1 {
  63. width: 96rpx;
  64. height: 40rpx;
  65. background: #FFF4E8;
  66. border-radius: 4rpx;
  67. text-align: center;
  68. line-height: 40rpx;
  69. font-size: 22rpx;
  70. font-weight: 400;
  71. color: #FBA94E;
  72. }
  73. .type2 {
  74. background: #E7EBF7;
  75. color: #506DFF;
  76. }
  77. .type3 {
  78. background: #E6F7E8;
  79. color: #4AB256;
  80. }
  81. .left {
  82. font-size: 26rpx;
  83. font-weight: 400;
  84. color: #222222;
  85. }
  86. .right {
  87. font-size: 26rpx;
  88. font-weight: 400;
  89. color: #888888;
  90. }
  91. }
  92. </style>