兼兼街公众号代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
892 B

2 years ago
  1. <template>
  2. <view class="new-detail">
  3. <view class="title">{{informData.title}}</view>
  4. <view class="time">{{informData.createTime}}</view>
  5. <u-parse :content="informData.context"></u-parse>
  6. </view>
  7. </template>
  8. <script>
  9. export default{
  10. data(){
  11. return{
  12. informData: {}
  13. }
  14. },
  15. // 隐藏微信h5的标题栏
  16. onReady() {
  17. this.$com.displayNav()
  18. },
  19. onLoad(e) {
  20. this.getinformFindById(e.id)
  21. },
  22. methods:{
  23. getinformFindById(id){
  24. uni.showLoading()
  25. this.$api('informFindById',{id})
  26. .then(res=>{
  27. uni.hideLoading()
  28. if(res.code == 200){
  29. this.informData = res.result;
  30. }
  31. })
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .new-detail {
  38. padding: 38rpx 40rpx 50rpx;
  39. .title {
  40. font-size: 34rpx;
  41. color: #000000;
  42. font-weight: 700;
  43. }
  44. .time {
  45. font-size: 22rpx;
  46. color: #C8C8C8;
  47. margin: 40rpx 0;
  48. }
  49. }
  50. </style>