message.vue 847 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="center">
  3. <view class="massage" v-for="(item, index) in 20" :key="index" @click="nav('/pages/index/messageInfo')">
  4. <view class="title">携百大社群引爆启动的趣豆,究竟是个什么样的项目?</view>
  5. <view class="time">2019-08-31 12:10:00</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. }
  14. },
  15. onLoad() {
  16. },
  17. methods:{
  18. nav(url){
  19. uni.navigateTo({
  20. url
  21. })
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="less">
  27. .center {
  28. background: #f3f3f3;
  29. }
  30. .massage {
  31. background: #FFFFFF;
  32. padding: 30rpx;
  33. border-bottom: 1px solid #E9E9E9;
  34. .title {
  35. font-size: 28rpx;
  36. font-family: PingFang SC;
  37. font-weight: 500;
  38. color: #333333;
  39. }
  40. .time{
  41. margin-top: 18rpx;
  42. font-size: 20rpx;
  43. font-family: PingFang SC;
  44. font-weight: 500;
  45. color: #999999;
  46. }
  47. }
  48. </style>