logout_words.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="page">
  3. <view v-if="words">
  4. <view class="words">
  5. <view class="word" v-for="(m,index) in words" :key='index' >
  6. <view class="title">{{m.title}}</view>
  7. </view>
  8. </view>
  9. </view>
  10. <view v-else class="nodata">
  11. 该用户还有群印象!
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. userinfo:{},
  20. words:""
  21. }
  22. },
  23. methods: {
  24. },
  25. onLoad(opts) {
  26. this.userinfo=uni.getStorageSync('members_'+opts.id);
  27. this.words=this.userinfo.logout_words;
  28. uni.setNavigationBarTitle({
  29. title:this.userinfo.nickname+"的群印象"
  30. })
  31. }
  32. }
  33. </script>
  34. <style lang="scss">
  35. .page{
  36. font-size: 12px;
  37. }
  38. .nodata{
  39. height: 40px;
  40. line-height: 40px;
  41. text-align: center;
  42. color:#666;
  43. }
  44. .words{
  45. overflow-y: scroll;
  46. width: 100%;
  47. text-align: center;
  48. }
  49. .words .word{
  50. display: inline-block;
  51. margin: 5px 8px;
  52. }
  53. .words .word .title{
  54. height: 25px; line-height:25px;
  55. padding: 0px 5px;
  56. min-width: 70px;
  57. border-radius: 5px;
  58. border: 1px #2319dc solid;
  59. color: #fff;
  60. background-color: #2319dc;
  61. }
  62. </style>