景徳镇旅游微信小程序
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.

66 lines
1.1 KiB

8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <!-- 达人和讲述 -->
  3. <view class="tell">
  4. <navbar :title="titles[type]" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="tell-top" v-if="type == 0 ">
  6. <view>级别</view>
  7. <view>遗产点</view>
  8. </view>
  9. <cardList :type="type" ref="cardList" :showRoleLevel="type == 1"/>
  10. <tabber/>
  11. </view>
  12. </template>
  13. <script>
  14. import cardList from '../components/list/cardList.vue'
  15. export default {
  16. components: {
  17. cardList
  18. },
  19. data() {
  20. return {
  21. titles: ['遗产讲述', '达人同游'],
  22. type: 0,
  23. }
  24. },
  25. onLoad(args) {
  26. this.type = args.type || 0
  27. },
  28. onShow() {
  29. this.$nextTick(() => {
  30. this.$refs.cardList.getList()
  31. })
  32. },
  33. onPullDownRefresh(){
  34. this.$refs.cardList.getList()
  35. },
  36. //滚动到屏幕底部
  37. onReachBottom() {
  38. this.$refs.cardList.loadMoreList()
  39. },
  40. methods: {
  41. }
  42. }
  43. </script>
  44. <style scoped lang="scss">
  45. .tell {
  46. .tell-top {
  47. display: flex;
  48. justify-content: left;
  49. align-items: center;
  50. height: 80rpx;
  51. background-color: #fff;
  52. border-top: 2rpx solid #D0D0D0;
  53. border-bottom: 2rpx solid #D0D0D0;
  54. view {
  55. flex: 1;
  56. margin-left: 5%;
  57. }
  58. }
  59. }
  60. </style>