detail.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view style="padding: 20rpx;">
  3. <view class="item">
  4. <view class="title">这是一个标题过长换行过长换行过长换行过长换行过长换行</view>
  5. <view class="time">2021/10/26 10:30:26</view>
  6. <view class="content">
  7. 这是一段通知的文本内容,这是一段通知的文本内容,这是一段通知的文本内容,
  8. 这是一段通知的文本内容,这是一段通知的文本内容,这是一段通知的文本内容,
  9. 这是一段通知的文本内容,这是一段通知的文本内容,这是一段通知的文本内容,这是一段通知的文本内容,这是一段通知的文本内容,这是一段通知的文本内容,这是一段通知的文本内容,这是一段通知的文本内容。
  10. </view>
  11. </view>
  12. <view class="btn1">
  13. 我已阅读
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import { mapGetters } from 'vuex';
  19. export default {
  20. components: {
  21. },
  22. data() {
  23. return {
  24. img1:'/static/icon/msg_icon1.png',
  25. img2:'/static/icon/msg_icon2.png'
  26. };
  27. },
  28. onPullDownRefresh(){
  29. },
  30. onLoad(option) {
  31. },
  32. onShow() {
  33. /* if(this.current === 2 && this.$method.isLogin()){
  34. this.$refs.refMy.init();
  35. } */
  36. },
  37. onShareAppMessage(res) {
  38. var self = this;
  39. return {
  40. title: '中正',
  41. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  42. };
  43. },
  44. methods: {
  45. change(index){
  46. this.current = index;
  47. }
  48. },
  49. onReachBottom() {},
  50. computed: { ...mapGetters(['userInfo']) }
  51. };
  52. </script>
  53. <style >
  54. page {
  55. background: #EAEEF1;
  56. }
  57. </style>
  58. <style scoped>
  59. .content{
  60. font-size: 28rpx;
  61. color: #666666;
  62. line-height: 36rpx;
  63. }
  64. .time{
  65. font-size: 24rpx;
  66. color: #999999;
  67. margin: 15rpx 0;
  68. }
  69. .btn1{
  70. width: 526rpx;
  71. height: 80rpx;
  72. background: #007AFF;
  73. border-radius: 40rpx;
  74. color: #FFFFFF;
  75. font-size: 30rpx;
  76. font-weight: bold;
  77. text-align: center;
  78. line-height: 80rpx;
  79. margin: 30rpx auto;
  80. }
  81. .item{
  82. width: 100%;
  83. background: #FFFFFF;
  84. border-radius: 16rpx;
  85. padding: 15rpx;
  86. }
  87. .title{
  88. font-size: 30rpx;
  89. font-weight: bold;
  90. color: #333333;
  91. }
  92. </style>