LDY.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <view>
  3. <!-- 上段 -->
  4. <view class="topImgBox">
  5. <image src="@/static/LDY/bj1.png" class="img1"></image>
  6. <view class="tobBox">
  7. <view class="tex1">
  8. 张家/李家婚宴
  9. </view>
  10. <view class="tex1" style="margin-top: 32rpx;">
  11. 2024年7月22日 甲辰年大暑节气第一天
  12. </view>
  13. </view>
  14. </view>
  15. <!-- 中段 -->
  16. <view class="topImgBox1">
  17. <view class="" style="text-align: center;">
  18. <image src="http://gips3.baidu.com/it/u=3886271102,3123389489&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960" class="img1s"></image>
  19. </view>
  20. <view class="tobBox">
  21. <image src="@/static/LDY/bj2.png" class="img1"></image>
  22. </view>
  23. </view>
  24. <!-- 下段 -->
  25. <view class="bottomImgBox">
  26. <image src="@/static/LDY/bj3.png" class="img2"></image>
  27. <view class="bottomBox">
  28. <!-- 新人信息 -->
  29. <view class="box1">
  30. <view class="XianT">
  31. <!-- 模拟上边框 -->
  32. </view>
  33. <view class="box1s">
  34. </view>
  35. <view class="XianB">
  36. <!-- 模拟下边框 -->
  37. </view>
  38. </view>
  39. <!-- 领取红包 -->
  40. <!-- 新人信息 -->
  41. <view class="box2">
  42. <view class="XianT">
  43. <!-- 模拟上边框 -->
  44. </view>
  45. <view class="box1s">
  46. <view class="tex1">
  47. 新郎“杨光志” 新娘“张可”
  48. </view>
  49. <view class="tex1" style="margin-top: 20rpx;">
  50. 送您一个花神红包,请点击领取
  51. </view>
  52. </view>
  53. <view class="XianB">
  54. <!-- 模拟下边框 -->
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script setup>
  62. import {
  63. ref,
  64. reactive
  65. } from 'vue'
  66. import {
  67. HTTP
  68. } from '@/api/http.js'
  69. import {
  70. onShow,
  71. onLoad,
  72. onReachBottom
  73. } from '@dcloudio/uni-app'
  74. import {
  75. jieqiFn
  76. } from '@/config' //返回节气样式(a,b),a是节气名称,b是类型,1是返回背景颜色,2是返回边框颜色,3是返回字体颜色
  77. </script>
  78. <style lang="scss" scoped>
  79. page {
  80. background: #f6f6f6;
  81. }
  82. // 上半段
  83. .topImgBox {
  84. position: relative;
  85. font-size: 0;
  86. .img1 {
  87. width: 750rpx;
  88. height: 360rpx;
  89. }
  90. .tobBox{
  91. position: absolute;
  92. top: 0;
  93. left: 0;
  94. width: 750rpx;
  95. height: 360rpx;
  96. // background: rgba(0, 0, 0, 0.6);
  97. padding-top: 218rpx;
  98. .tex1{
  99. font-weight: 600;
  100. font-size: 32rpx;
  101. color: #FFBB46;
  102. text-align: center;
  103. }
  104. }
  105. }
  106. // 中段
  107. .topImgBox1{
  108. position: relative;
  109. font-size: 0;
  110. width: 750rpx;
  111. height: 680rpx;
  112. .img1s{
  113. width: 640rpx;
  114. height: 666rpx;
  115. }
  116. .tobBox{
  117. position: absolute;
  118. top: 0;
  119. left: 0;
  120. .img1{
  121. width: 750rpx;
  122. height: 680rpx;
  123. }
  124. }
  125. }
  126. // 下半段
  127. .bottomImgBox {
  128. position: relative;
  129. font-size: 0;
  130. .img2 {
  131. width: 750rpx;
  132. height: 1254rpx;
  133. }
  134. .bottomBox{
  135. position: absolute;
  136. top: 0;
  137. left: 0;
  138. width: 750rpx;
  139. height: 1254rpx;
  140. background: rgba(0, 0, 0, 0.6);
  141. padding-top: 38rpx;
  142. }
  143. }
  144. // 新人信息框
  145. .box1{
  146. width: 686rpx;
  147. height: 294rpx;
  148. background: #F09455;
  149. border-radius: 8rpx;
  150. margin: 0 auto;
  151. padding-top: 8rpx;
  152. .XianT{
  153. width: 654rpx;
  154. height: 10rpx;
  155. background: #FFEFC2;
  156. margin: 0 auto;
  157. border-radius: 4rpx 4rpx 0 0;
  158. }
  159. .box1s{
  160. width: 670rpx;
  161. height: 256rpx;
  162. background: #FFEFC2;
  163. margin: 0 auto;
  164. border-radius: 4rpx;
  165. }
  166. .XianB{
  167. width: 654rpx;
  168. height: 10rpx;
  169. background: #FFEFC2;
  170. margin: 0 auto;
  171. border-radius: 0 0 4rpx 4rpx;
  172. }
  173. }
  174. // 领取红包
  175. .box2{
  176. width: 686rpx;
  177. height: 804rpx;
  178. background: #F09455;
  179. border-radius: 8rpx;
  180. margin: 0 auto;
  181. padding-top: 8rpx;
  182. margin-top: 32rpx;
  183. .XianT{
  184. width: 654rpx;
  185. height: 10rpx;
  186. background: #FFEFC2;
  187. margin: 0 auto;
  188. border-radius: 4rpx 4rpx 0 0;
  189. }
  190. .box1s{
  191. width: 670rpx;
  192. height: 766rpx;
  193. background: #FFEFC2;
  194. margin: 0 auto;
  195. border-radius: 4rpx;
  196. text-align: center;
  197. padding-top: 42rpx;
  198. .tex1{
  199. font-weight: 600;
  200. font-size: 36rpx;
  201. color: #E60000;
  202. }
  203. }
  204. .XianB{
  205. width: 654rpx;
  206. height: 10rpx;
  207. background: #FFEFC2;
  208. margin: 0 auto;
  209. border-radius: 0 0 4rpx 4rpx;
  210. }
  211. }
  212. </style>