my.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view>
  3. <!-- 个人信息 -->
  4. <view class="userBox flexe">
  5. <view class="" style="font-size: 0;">
  6. <image class="userImg"
  7. src="https://img2.baidu.com/it/u=223726554,3148772466&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800"
  8. mode=""></image>
  9. </view>
  10. <view class="" style="flex: 1;">
  11. <view class="name">
  12. <view class="el1" style="max-width: 150rpx;">
  13. 张三
  14. </view>
  15. <view class="jieqi" :style="jieqiFn('大暑',1)">
  16. 甲辰•大暑
  17. </view>
  18. </view>
  19. <view class="phone">
  20. 19965276296
  21. </view>
  22. </view>
  23. <view class="">
  24. <uni-icons type="right" size="36rpx"></uni-icons>
  25. </view>
  26. </view>
  27. <!-- 顶部大图 -->
  28. <view class="top">
  29. <image class="topImg"
  30. src="http://gips3.baidu.com/it/u=3886271102,3123389489&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960"
  31. mode=""></image>
  32. <view class="danMu" v-if="DanMuBoon">
  33. <DanMu></DanMu>
  34. </view>
  35. </view>
  36. <!-- 会员信息 -->
  37. <view class="">
  38. <VIPVue></VIPVue>
  39. </view>
  40. <view class="">
  41. <up-button @click="fn" type="primary" text="管理端临时入口"></up-button>
  42. </view>
  43. <view class="">
  44. <up-button @click="fn1" type="primary" text="落地页临时入口"></up-button>
  45. </view>
  46. </view>
  47. </template>
  48. <script setup>
  49. import {
  50. ref,
  51. reactive
  52. } from 'vue'
  53. import {
  54. HTTP
  55. } from '@/api/http.js'
  56. import {
  57. onShow,
  58. onLoad,
  59. onReachBottom
  60. } from '@dcloudio/uni-app'
  61. import {
  62. jieqiFn
  63. } from '@/config' //返回节气样式(a,b),a是节气名称,b是类型,1是返回背景颜色,2是返回边框颜色,3是返回字体颜色
  64. import DanMu from "@/components/DanMu/DanMu.vue" //弹幕
  65. import VIPVue from './componnts/VIP.vue'
  66. const DanMuBoon=ref(false)
  67. const fn=()=>{//去管理系统临时入口
  68. uni.navigateTo({
  69. url:"/pagesGL/index/index"
  70. })
  71. }
  72. const fn1=()=>{//去落地页的临时入口
  73. uni.navigateTo({
  74. url:"/pages/LDY/LDY"
  75. })
  76. }
  77. onShow(()=>{
  78. DanMuBoon.value=false
  79. let tm=setTimeout(()=>{
  80. DanMuBoon.value=true
  81. clearTimeout(tm)
  82. },200)
  83. })
  84. </script>
  85. <style lang="scss" scoped>
  86. page {
  87. background: #f6f6f6;
  88. }
  89. // 用户信息
  90. .userBox {
  91. padding: 20rpx;
  92. background: #fff;
  93. .userImg {
  94. width: 80rpx;
  95. height: 80rpx;
  96. border-radius: 50%;
  97. }
  98. .name {
  99. display: flex;
  100. .jieqi {
  101. margin-left: 16rpx;
  102. line-height: 40rpx;
  103. padding: 0 8rpx;
  104. border-radius: 8rpx;
  105. color: #fff;
  106. }
  107. }
  108. }
  109. // 顶部大图
  110. .top {
  111. position: relative;
  112. font-size: 0;
  113. .topImg {
  114. width: 750rpx;
  115. height: 400rpx;
  116. }
  117. .danMu {
  118. position: absolute;
  119. top: 0;
  120. left: 0;
  121. }
  122. }
  123. </style>