extension.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <view class="extension">
  3. <view class="r-wrap">
  4. <view class="r-inner" v-for="(item,index) in tjlogList" :key="index">
  5. <view class="r-inner-t">
  6. <view class="r-gx">
  7. 贡献用户:{{item.xxnickname}}
  8. </view>
  9. <view class="r-gx" style="color: #747474;font-size: 28rpx;">
  10. {{$u.timeFormat(item.ctime,'yyyy.mm.dd:hh:MM')}}
  11. </view>
  12. </view>
  13. <view class="r-inner-b">
  14. <view class="r-gx">
  15. 内容:{{item.msg}}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <u-empty v-if="tjlogList.length==0" text="暂无记录" marginTop="0" mode="history"></u-empty>
  21. </view>
  22. </template>
  23. <script>
  24. import mineApi from '@/api/mine/index.js'
  25. export default {
  26. data() {
  27. return {
  28. primary:this.$theme.primary,
  29. settingFile:getApp().globalData.siteinfo,
  30. tjlogList:[]
  31. };
  32. },
  33. methods:{
  34. tjlog() {
  35. let that=this
  36. mineApi.tjlog().then(ret=>{
  37. if(ret.status==200){
  38. this.tjlogList=ret.data
  39. }else{
  40. this.$u.toast(ret.msg)
  41. }
  42. })
  43. },
  44. },
  45. onLoad(){
  46. this.tjlog()
  47. },
  48. onPullDownRefresh() {
  49. this.tjlog()
  50. setTimeout(()=>{
  51. uni.stopPullDownRefresh()
  52. },500)
  53. }
  54. }
  55. </script>
  56. <style lang="scss">
  57. page{
  58. background-color: #F1f1f1;
  59. }
  60. .extension{
  61. width: 100%;
  62. height: 100%;
  63. width: 100%;
  64. height: 100%;
  65. .r-wrap{
  66. width: 100%;
  67. padding: 15rpx 15rpx 40rpx 15rpx;
  68. box-sizing: border-box;
  69. .r-inner{
  70. width: 100%;
  71. margin-bottom: 15rpx;
  72. background-color: white;
  73. border-radius: 15rpx;
  74. padding: 20rpx 20rpx 25rpx 20rpx;
  75. position: relative;
  76. box-sizing: border-box;
  77. .r-inner-t{
  78. display: flex;
  79. justify-content: space-between;
  80. margin-bottom: 55rpx;
  81. view{
  82. }
  83. }
  84. .r-inner-b{
  85. display: flex;
  86. justify-content: space-between;
  87. font-size: 28rpx;
  88. color:#474747;
  89. }
  90. .r-sum{
  91. position: absolute;
  92. right: 10rpx;
  93. font-weight: bold;
  94. top: 34%;
  95. color: $tab-color-1;
  96. }
  97. }
  98. }
  99. }
  100. </style>