index.vue 759 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="box">
  3. <view class="box-top">
  4. {{ info.name }}
  5. </view>
  6. <view class="box-main"></view>
  7. <view class="box-bottom"></view>
  8. </view>
  9. </template>
  10. <script setup>
  11. import { ref } from 'vue'
  12. import { onLoad } from '@dcloudio/uni-app'
  13. const info = ref({})
  14. onLoad((options) => {
  15. console.log(options.id)
  16. info.value = {
  17. name: options.name
  18. }
  19. })
  20. </script>
  21. <style lang="scss" scoped>
  22. .box {
  23. width: 100%;
  24. height: calc(100vh - 88rpx);
  25. .box-top {
  26. padding: 0 60rpx;
  27. box-sizing: border-box;
  28. width: 100%;
  29. height: 80rpx;
  30. line-height: 80rpx;
  31. // text-align: center;
  32. border-bottom: 2rpx solid #EEE;
  33. overflow: hidden;
  34. white-space: nowrap;
  35. text-overflow: ellipsis;
  36. }
  37. }
  38. </style>