notice-cell.vue 2.7 KB

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