LDY.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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
  19. src="http://gips3.baidu.com/it/u=3886271102,3123389489&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960"
  20. class="img1s"></image>
  21. </view>
  22. <view class="tobBox">
  23. <image src="@/static/LDY/bj2.png" class="img1"></image>
  24. </view>
  25. </view>
  26. <!-- 下段 -->
  27. <view class="bottomImgBox">
  28. <image src="@/static/LDY/bj3.png" class="img2"></image>
  29. <view class="bottomBox">
  30. <!-- 新人信息 -->
  31. <view class="box1">
  32. <view class="XianT">
  33. <!-- 模拟上边框 -->
  34. </view>
  35. <view class="box1s">
  36. </view>
  37. <view class="XianB">
  38. <!-- 模拟下边框 -->
  39. </view>
  40. </view>
  41. <!-- 领取红包 -->
  42. <!-- 新人信息 -->
  43. <view class="box2">
  44. <view class="XianT">
  45. <!-- 模拟上边框 -->
  46. </view>
  47. <view class="box1s">
  48. <view class="tex1">
  49. 新郎“杨光志” 新娘“张可”
  50. </view>
  51. <view class="tex1" style="margin-top: 20rpx;">
  52. 送您一个花神红包,请点击领取
  53. </view>
  54. <view class="" style="font-size: 0;">
  55. <image class="imgs" src="@/static/LDY/hongBao1.gif" mode="" @click="show=true"></image>
  56. </view>
  57. </view>
  58. <view class="XianB">
  59. <!-- 模拟下边框 -->
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 迎接花神弹窗 -->
  65. <up-popup :show="show" mode="center" bgColor='transparent'>
  66. <view class="pop">
  67. <view class="flexa" style="font-size: 0;width: 200rpx;margin: 0 auto;">
  68. <image class="img" src="@/static/jieqi/1.png" mode=""></image>
  69. <image class="img" src="@/static/jieqi/1.png" mode=""></image>
  70. </view>
  71. <view class="btnBox" >
  72. <image class="btnImg" src="@/static/LDY/btn.png"></image>
  73. <view class="btnTex" @click="btnFn">
  74. 迎接
  75. </view>
  76. </view>
  77. </view>
  78. </up-popup>
  79. </view>
  80. </template>
  81. <script setup>
  82. import {
  83. ref,
  84. reactive
  85. } from 'vue'
  86. import {
  87. HTTP
  88. } from '@/api/http.js'
  89. import {
  90. onShow,
  91. onLoad,
  92. onReachBottom
  93. } from '@dcloudio/uni-app'
  94. import {
  95. jieqiFn
  96. } from '@/config' //返回节气样式(a,b),a是节气名称,b是类型,1是返回背景颜色,2是返回边框颜色,3是返回字体颜色
  97. const show=ref(false)
  98. // 点击迎接按钮
  99. const btnFn=()=>{
  100. uni.navigateTo({
  101. url:'/pages/LDY/LDYtianXie'
  102. })
  103. }
  104. </script>
  105. <style lang="scss" scoped>
  106. page {
  107. background: #f6f6f6;
  108. }
  109. // 上半段
  110. .topImgBox {
  111. position: relative;
  112. font-size: 0;
  113. .img1 {
  114. width: 750rpx;
  115. height: 360rpx;
  116. }
  117. .tobBox {
  118. position: absolute;
  119. top: 0;
  120. left: 0;
  121. width: 750rpx;
  122. height: 360rpx;
  123. // background: rgba(0, 0, 0, 0.6);
  124. padding-top: 218rpx;
  125. .tex1 {
  126. font-weight: 600;
  127. font-size: 32rpx;
  128. color: #FFBB46;
  129. text-align: center;
  130. }
  131. }
  132. }
  133. // 中段
  134. .topImgBox1 {
  135. position: relative;
  136. font-size: 0;
  137. width: 750rpx;
  138. height: 680rpx;
  139. .img1s {
  140. width: 640rpx;
  141. height: 666rpx;
  142. }
  143. .tobBox {
  144. position: absolute;
  145. top: 0;
  146. left: 0;
  147. .img1 {
  148. width: 750rpx;
  149. height: 680rpx;
  150. }
  151. }
  152. }
  153. // 下半段
  154. .bottomImgBox {
  155. position: relative;
  156. font-size: 0;
  157. .img2 {
  158. width: 750rpx;
  159. height: 1254rpx;
  160. }
  161. .bottomBox {
  162. position: absolute;
  163. top: 0;
  164. left: 0;
  165. width: 750rpx;
  166. height: 1254rpx;
  167. // background: rgba(0, 0, 0, 0.6);
  168. padding-top: 38rpx;
  169. }
  170. }
  171. // 新人信息框
  172. .box1 {
  173. width: 686rpx;
  174. height: 294rpx;
  175. background: #F09455;
  176. border-radius: 8rpx;
  177. margin: 0 auto;
  178. padding-top: 8rpx;
  179. .XianT {
  180. width: 654rpx;
  181. height: 10rpx;
  182. background: #FFEFC2;
  183. margin: 0 auto;
  184. border-radius: 4rpx 4rpx 0 0;
  185. }
  186. .box1s {
  187. width: 670rpx;
  188. height: 256rpx;
  189. background: #FFEFC2;
  190. margin: 0 auto;
  191. border-radius: 4rpx;
  192. }
  193. .XianB {
  194. width: 654rpx;
  195. height: 10rpx;
  196. background: #FFEFC2;
  197. margin: 0 auto;
  198. border-radius: 0 0 4rpx 4rpx;
  199. }
  200. }
  201. // 领取红包
  202. .box2 {
  203. width: 686rpx;
  204. height: 804rpx;
  205. background: #F09455;
  206. border-radius: 8rpx;
  207. margin: 0 auto;
  208. padding-top: 8rpx;
  209. margin-top: 32rpx;
  210. .XianT {
  211. width: 654rpx;
  212. height: 10rpx;
  213. background: #FFEFC2;
  214. margin: 0 auto;
  215. border-radius: 4rpx 4rpx 0 0;
  216. }
  217. .box1s {
  218. width: 670rpx;
  219. height: 766rpx;
  220. background: #FFEFC2;
  221. margin: 0 auto;
  222. border-radius: 4rpx;
  223. text-align: center;
  224. padding-top: 42rpx;
  225. .tex1 {
  226. font-weight: 600;
  227. font-size: 36rpx;
  228. color: #E60000;
  229. }
  230. .imgs {
  231. width: 622rpx;
  232. height: 622rpx;
  233. }
  234. }
  235. .XianB {
  236. width: 654rpx;
  237. height: 10rpx;
  238. background: #FFEFC2;
  239. margin: 0 auto;
  240. border-radius: 0 0 4rpx 4rpx;
  241. }
  242. }
  243. // 弹窗
  244. .pop{
  245. text-align: center;
  246. .img{
  247. width: 80rpx;
  248. height: 80rpx;
  249. border-radius: 50%;
  250. margin: 10rpx;
  251. }
  252. .btnBox{
  253. position: relative;
  254. margin-top: 20rpx;
  255. .btnImg{
  256. width: 398rpx;
  257. height: 108rpx;
  258. }
  259. .btnTex{
  260. position: absolute;
  261. top: 0;
  262. left: 50%;
  263. transform: translateX(-50%);
  264. width: 398rpx;
  265. height: 108rpx;
  266. line-height: 108rpx;
  267. font-weight: 600;
  268. font-size: 36rpx;
  269. color: #FFEFD0;
  270. }
  271. }
  272. }
  273. </style>