notice-cell.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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.messageType | noticeUsersFilters }} </view>
  9. <view class="cell-time"> {{ cell.time }} </view>
  10. </view>
  11. <view class="cell-info" v-if="false">
  12. <view class="club-cell">
  13. 机构名称:<text>西安聚美汇医疗美容</text>
  14. </view>
  15. <view class="club-cell">
  16. 联系人:<text>西安聚美汇医疗美容</text>
  17. </view>
  18. <view class="club-cell">
  19. 手机号:<text>西安聚美汇医疗美容</text>
  20. </view>
  21. <view class="club-cell">
  22. 上一任销售:<text></text>
  23. </view>
  24. </view>
  25. <view class="cell-info" v-else>
  26. 昨日【广州市美洋阳医疗美容...】等5家机构客户访问
  27. 了采美商城
  28. </view>
  29. <view class="tui-cell-content">
  30. {{ noticeUsersText(cell)}}
  31. </view>
  32. <view class="tui-cell-button">
  33. <button @click="$emit('trampInfo', cell.id)">立即查看</button>
  34. </view>
  35. </view>
  36. </template>
  37. </view>
  38. </template>
  39. <script>
  40. import { mapState, mapMutations } from 'vuex'
  41. import noticeMixins from '../mixins/notice.mixins.js'
  42. export default {
  43. mixins: [noticeMixins],
  44. name: 'notice-cell',
  45. props: {
  46. cellType:{
  47. type:Number
  48. },
  49. cell: {
  50. type: Object
  51. }
  52. },
  53. data() {
  54. return {
  55. }
  56. },
  57. created() {
  58. },
  59. methods: {
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .cell-info {
  65. padding: 33rpx 0;
  66. line-height: 48rpx;
  67. color: #666666;
  68. }
  69. .club-cell {
  70. font-size: 28rpx;
  71. color: #333333;
  72. font-weight: bold;
  73. text {
  74. color: #666666;
  75. font-weight: 400;
  76. }
  77. }
  78. .tui-cell-button {
  79. padding: 15rpx 0;
  80. height: 95rpx;
  81. box-sizing: border-box;
  82. button {
  83. width: 160rpx;
  84. height: 64rpx;
  85. border: 1rpx solid #999999;
  86. line-height: 64rpx;
  87. text-align: center;
  88. border-radius: 32rpx;
  89. float: right;
  90. }
  91. }
  92. </style>