index.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <auth-wrap class="usr-regist-info-container" ref="authWrap">
  3. <template slot="content">
  4. <view class="u-page" v-if="indexList&&indexList.length>0">
  5. <view class="apply-item" v-for="item in indexList" @click="()=>onContentClick(item)">
  6. <view class="apply-item-header">
  7. <view>{{ item.applyTypeName }}</view>
  8. <view>
  9. <u-tag
  10. plain
  11. :text="REVIEW_STATUS[item.reviewState].name"
  12. :type="REVIEW_STATUS[item.reviewState].tag">
  13. </u-tag>
  14. </view>
  15. </view>
  16. <view class="apply-item-title overflow-hidden" style="height: 50px;line-height: 25px" v-if="item.contentTitle">{{ item.contentTitle }}</view>
  17. <view class="apply-item-footer">
  18. <view>参会人:{{ item.usrName }}</view>
  19. <view>{{ $u.timeFormat(item.createTime, 'yyyy-MM-dd hh:mm') }}</view>
  20. </view>
  21. </view>
  22. </view>
  23. <u-empty
  24. v-else
  25. mode="data"
  26. text="还没有报名,赶紧去报名吧!"
  27. >
  28. </u-empty>
  29. </template>
  30. </auth-wrap>
  31. </template>
  32. <script>
  33. import { getUsrApplyInfo } from '@/common/api';
  34. import { REVIEW_STATUS } from '@/common/EnumConst';
  35. import AuthWrap from '@/components/AuthComp/index.vue';
  36. export default {
  37. computed: {
  38. REVIEW_STATUS() {
  39. return REVIEW_STATUS;
  40. },
  41. },
  42. components: {
  43. AuthWrap,
  44. },
  45. data() {
  46. return {
  47. keyword: '',
  48. indexList: [],
  49. };
  50. },
  51. onLoad() {
  52. this.$refs.authWrap.reloadPage();
  53. this.loadmore();
  54. },
  55. methods: {
  56. onContentClick(item) {
  57. uni.navigateTo({
  58. url: `/pasbrg/pages/regmeeting/index?id=${item.id}`,
  59. });
  60. },
  61. async loadmore() {
  62. const { data } = await getUsrApplyInfo();
  63. if (data) {
  64. this.indexList = data;
  65. }
  66. },
  67. },
  68. onShareAppMessage() {
  69. return {
  70. title: 'First UI组件库',
  71. };
  72. },
  73. };
  74. </script>
  75. <style lang="scss" src="./index.scss" />