index.vue 861 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view class="page">
  3. <image :src="imgUrl" mode="widthFix" />
  4. <view v-if="!imagePage">即将开放,敬请期待</view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. imagePage: false,
  12. imgUrl: '',
  13. };
  14. },
  15. onLoad(param) {
  16. this.imgUrl = `https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/index/banner_${param.id}.png`;
  17. this.imagePage = ['3', '11'].includes(param.id);
  18. uni.setNavigationBarTitle({
  19. title: param.name,
  20. });
  21. },
  22. };
  23. </script>
  24. <style lang="less" scoped>
  25. .page {
  26. width: 100vw;
  27. height: 100vh;
  28. display: flex;
  29. flex-direction: column;
  30. overflow: hidden;
  31. > image {
  32. height: 300rpx;
  33. width: 100%;
  34. }
  35. > view {
  36. flex: 1;
  37. font-size: 30rpx;
  38. color: #999;
  39. display: flex;
  40. justify-content: center;
  41. align-items: center;
  42. }
  43. }
  44. </style>