notice-cell.vue 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. "
  44. >
  45. <button @click="$emit('trampInfo', cell)">立即查看</button>
  46. </view>
  47. </view>
  48. </template>
  49. </view>
  50. </template>
  51. <script>
  52. import { mapState, mapMutations } from 'vuex'
  53. import noticeMixins from '../mixins/notice.mixins.js'
  54. export default {
  55. mixins: [noticeMixins],
  56. name: 'notice-cell',
  57. props: {
  58. cellType: {
  59. type: Number
  60. },
  61. cell: {
  62. type: Object
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .cell-info {
  69. padding: 0 0 33rpx 0;
  70. line-height: 48rpx;
  71. color: #666666;
  72. }
  73. .club-cell {
  74. font-size: 28rpx;
  75. color: #333333;
  76. font-weight: bold;
  77. text {
  78. color: #666666;
  79. font-weight: 400;
  80. }
  81. }
  82. .tui-cell-button {
  83. padding: 15rpx 0 0 0;
  84. height: 70rpx;
  85. box-sizing: border-box;
  86. button {
  87. width: 160rpx;
  88. height: 64rpx;
  89. border: 1rpx solid #999999;
  90. line-height: 64rpx;
  91. text-align: center;
  92. border-radius: 32rpx;
  93. float: right;
  94. }
  95. }
  96. </style>