notice-cell.vue 2.6 KB

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