uni-events-helper-wx
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.

104 lines
1.9 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <view class="content flex_col flex_start bg-white">
  3. <!-- title -->
  4. <view class="title_item flex_col flex_start_y bg-white padding " >
  5. <view class="title flex_row flex_start">
  6. <view class="text-m text-left">{{data.msg_title}}</view>
  7. <view class="bandage"></view>
  8. </view>
  9. <view class="time">{{data.updated_at}}</view>
  10. </view>
  11. <!-- <rich-text class="txt" :nodes="data.msg_content"></rich-text> -->
  12. <u-parse class="txt" :content="data.msg_content" space @navigate="navigate"></u-parse>
  13. </view>
  14. </template>
  15. <script>
  16. import {msgGet} from "../../nxTemp/apis/userAPI.js"
  17. import uParse from "@/components/feng-parse/parse.vue"
  18. export default {
  19. components:{
  20. uParse
  21. },
  22. data() {
  23. return {
  24. txt:"",
  25. login:true,
  26. opts:"",
  27. data:""
  28. };
  29. },
  30. onLoad(opts) {
  31. this.setOnloadOpts(opts)
  32. this.updatePage()
  33. },
  34. onUnload() {
  35. },
  36. methods: {
  37. //更新页面列表
  38. updatePage() {
  39. msgGet(this.opts).then(res => {
  40. // res.msg_content = res.msg_content.replace(/&nbsp;/g, '\xa0');
  41. this.data = res
  42. }).catch(e=>{
  43. this.$tools.showNone(e.errMsg)
  44. })
  45. },
  46. setOnloadOpts(opts){
  47. console.log("onLoad:",opts);
  48. this.opts = opts
  49. },
  50. navigate(e){
  51. console.log(e)
  52. },
  53. jumpPage(){
  54. this.$Router.push({name:"login"})
  55. },
  56. }
  57. }
  58. </script>
  59. <style lang="less" >
  60. page{
  61. background-color: white;
  62. background: #FFFFFF;
  63. }
  64. .content{
  65. .title_item{
  66. color: #333333;
  67. position: relative;
  68. margin-top: 24rpx;
  69. border-radius: 10rpx;
  70. width: 100%;
  71. margin-bottom: 60rpx;
  72. // height: 124rpx;
  73. .title{
  74. margin-bottom: 16rpx;
  75. font-weight: 700;
  76. font-size: 40rpx;
  77. color: #1A1A1A
  78. }
  79. .time{
  80. font-size: 24rpx;
  81. color: #B2B2B2;
  82. }
  83. }
  84. .txt{
  85. width: 662rpx;
  86. padding-bottom:10rpx ;
  87. font-size: 32rpx;
  88. color: #1A1A1A;
  89. font-weight: 400;
  90. text-indent: 64rpx;
  91. line-height: 60rpx;
  92. p{
  93. text-indent: 1rem;
  94. }
  95. }
  96. }
  97. </style>