notice-cell.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template name="notice-cell">
  2. <!-- 通知消息 -->
  3. <view>
  4. <!-- 服务通知 -->
  5. <template v-if="cellType === 1">
  6. <view class="tui-notice-cell clearfix">
  7. <view class="tui-cell-top">
  8. <view class="cell-title">{{ cell.shopTieredType | noticeUsersFilters }}</view>
  9. <view class="cell-time">{{ cell.time }}</view>
  10. </view>
  11. <view class="cell-info" v-if="cell.shopTieredType !== 7 && cell.shopTieredType !== 1">
  12. <view class="club-cell">
  13. 机构名称:
  14. <text>{{ cell.name }}</text>
  15. </view>
  16. <view class="club-cell" v-if="cell.shopTieredType <= 8">
  17. 联系人:
  18. <text>{{ cell.userName }}</text>
  19. </view>
  20. <view class="club-cell" v-if="cell.shopTieredType <= 8">
  21. 手机号:
  22. <text>{{ cell.mobile }}</text>
  23. </view>
  24. <view class="club-cell" v-if="cell.shopTieredType === 2">
  25. 上一任销售:
  26. <text>{{ cell.superUserName }}</text>
  27. </view>
  28. <view class="club-cell" v-if="cell.shopTieredType === 3">
  29. 下一任销售:
  30. <text>{{ cell.superUserName }}</text>
  31. </view>
  32. </view>
  33. <view class="cell-info" v-if="cell.shopTieredType === 7 || cell.shopTieredType === 10">{{ noticeSellerUserText(cell) }}</view>
  34. <view class="tui-cell-content" v-if="cell.shopTieredType === 7 || cell.shopTieredType === 10">关注点:{{ cell.content || '' }}</view>
  35. <view class="tui-cell-content" v-if="cell.shopTieredType !== 7">{{ noticeSellerUserText(cell) }}</view>
  36. <view
  37. class="tui-cell-button"
  38. v-if="
  39. cell.shopTieredType === 2 ||
  40. cell.shopTieredType === 4 ||
  41. cell.shopTieredType === 7 ||
  42. cell.shopTieredType === 10 ||
  43. cell.shopTieredType === 11
  44. "
  45. >
  46. <button @click="$emit('trampInfo', cell)">立即查看</button>
  47. </view>
  48. </view>
  49. </template>
  50. </view>
  51. </template>
  52. <script>
  53. import { mapState, mapMutations } from 'vuex'
  54. import noticeMixins from '../mixins/notice.mixins.js'
  55. export default {
  56. mixins: [noticeMixins],
  57. name: 'notice-cell',
  58. props: {
  59. cellType: {
  60. type: Number
  61. },
  62. cell: {
  63. type: Object
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .cell-info {
  70. padding: 0 0 33rpx 0;
  71. line-height: 48rpx;
  72. color: #666666;
  73. }
  74. .club-cell {
  75. font-size: 28rpx;
  76. color: #333333;
  77. font-weight: bold;
  78. text {
  79. color: #666666;
  80. font-weight: 400;
  81. }
  82. }
  83. .tui-cell-button {
  84. padding: 15rpx 0 0 0;
  85. height: 70rpx;
  86. box-sizing: border-box;
  87. button {
  88. width: 160rpx;
  89. height: 64rpx;
  90. border: 1rpx solid #999999;
  91. line-height: 64rpx;
  92. text-align: center;
  93. border-radius: 32rpx;
  94. float: right;
  95. }
  96. }
  97. </style>