index.wxss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. .common {
  2. height: 100vh;
  3. width: 100vw;
  4. background-image:
  5. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/bgi.png");
  6. /* 使用绝对路径 */
  7. background-size: cover;
  8. /* 确保背景图片自适应填充整个容器 */
  9. background-position: center;
  10. /* 背景图片居中显示 */
  11. background-repeat: no-repeat;
  12. /* 防止背景图重复 */
  13. overflow: auto;
  14. }
  15. .top-class {
  16. height: 6vh;
  17. }
  18. .head {
  19. height: 4vh;
  20. line-height: 4vh;
  21. }
  22. .body {
  23. height: calc(100vh - 160rpx);
  24. }
  25. .title {
  26. font-weight: bold;
  27. font-size: 40rpx;
  28. color: #FFFFFF;
  29. text-align: center;
  30. height: 7vh;
  31. line-height: 7vh;
  32. }
  33. .footer-btn {
  34. position: fixed;
  35. /* 固定位置 */
  36. left: 0;
  37. /* 距离页面左侧为0 */
  38. bottom: 30rpx;
  39. /* 距离页面底部为0 */
  40. width: 100%;
  41. /* 宽度为100%,确保按钮横跨整个底部 */
  42. display: flex;
  43. /* 启用 Flexbox 布局 */
  44. justify-content: center;
  45. /* 水平居中 */
  46. align-items: center;
  47. /* 垂直居中 */
  48. z-index: 999;
  49. /* 确保按钮在最上层 */
  50. }
  51. .return-button {
  52. width: 120rpx;
  53. background-color: #9A1712;
  54. border: none;
  55. color: #F9D395;
  56. font-size: 26rpx;
  57. text-align: center;
  58. letter-spacing: 4rpx;
  59. /* 设置文字间距为2px */
  60. font-weight: 600;
  61. height: 50rpx;
  62. line-height: 50rpx;
  63. border-radius: 8rpx;
  64. cursor: pointer;
  65. /* 鼠标指针效果 */
  66. }
  67. .common {
  68. background-image:
  69. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgi-two.png");
  70. }
  71. .head {
  72. background-image:
  73. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/zhanshi.png");
  74. background-size: cover;
  75. background-position: center;
  76. background-repeat: no-repeat;
  77. height: 23vh;
  78. margin: 0px 40rpx;
  79. display: flex;
  80. justify-content: center;
  81. /* 水平居中 */
  82. align-items: center;
  83. /* 垂直居中 */
  84. }
  85. .text {
  86. height: 10vh;
  87. text-align: center;
  88. line-height: 13vh;
  89. margin-bottom: 10rpx;
  90. }
  91. .textImage {
  92. height: 80rpx;
  93. width: 400rpx;
  94. }
  95. .content {
  96. height: 42vh;
  97. background: rgba(131, 100, 71, 0.5);
  98. border-radius: 10rpx;
  99. margin: 0rpx 40rpx;
  100. padding: 10rpx 24rpx;
  101. overflow: auto;
  102. display: flex;
  103. align-items: center;
  104. justify-content: center;
  105. }
  106. .text-1 {
  107. text-align: center;
  108. font-size: 24rpx;
  109. font-weight: 600;
  110. color: white;
  111. background-color: #9A1712;
  112. width: 160rpx;
  113. border-radius: 4rpx;
  114. height: 40rpx;
  115. line-height: 40rpx;
  116. }
  117. .text-2 {
  118. text-align: center;
  119. font-size: 24rpx;
  120. font-weight: 600;
  121. color: #F9D395;
  122. background-color: #9A1712;
  123. width: 120rpx;
  124. border-radius: 4rpx;
  125. height: 40rpx;
  126. line-height: 40rpx;
  127. margin-left: 80rpx;
  128. }
  129. .cards {
  130. display: grid;
  131. grid-template-columns: repeat(3, 1fr);
  132. gap: 30rpx;
  133. width: 100%;
  134. }
  135. .card {
  136. width: 100%;
  137. height: 250rpx;
  138. position: relative;
  139. background: none;
  140. border-radius: 16rpx;
  141. margin: 0;
  142. -webkit-perspective: 1000px;
  143. perspective: 1000px;
  144. }
  145. .card-inner {
  146. position: relative;
  147. width: 100%;
  148. height: 100%;
  149. transition: -webkit-transform 0.8s cubic-bezier(0.5, 1.5, 0.5, 1);
  150. transition: transform 0.8s cubic-bezier(0.5, 1.5, 0.5, 1);
  151. transition: transform 0.8s cubic-bezier(0.5, 1.5, 0.5, 1), -webkit-transform 0.8s cubic-bezier(0.5, 1.5, 0.5, 1);
  152. -webkit-transform-style: preserve-3d;
  153. transform-style: preserve-3d;
  154. }
  155. .card.flipping .card-inner {
  156. -webkit-transform: rotateY(180deg);
  157. transform: rotateY(180deg);
  158. }
  159. .card.flipped .card-inner {
  160. -webkit-transform: rotateY(180deg);
  161. transform: rotateY(180deg);
  162. }
  163. .card-front, .card-back {
  164. position: absolute;
  165. width: 100%;
  166. height: 100%;
  167. -webkit-backface-visibility: hidden;
  168. backface-visibility: hidden;
  169. }
  170. .card-back {
  171. -webkit-transform: rotateY(180deg);
  172. transform: rotateY(180deg);
  173. }
  174. .card-back-text {
  175. position: absolute;
  176. top: 50%;
  177. left: 0;
  178. width: 100%;
  179. text-align: center;
  180. color: #9A1712;
  181. font-weight: bold;
  182. font-size: 28rpx;
  183. -webkit-transform: translateY(-50%);
  184. transform: translateY(-50%);
  185. z-index: 2;
  186. pointer-events: none;
  187. }
  188. .card-img {
  189. width: 100%;
  190. height: 100%;
  191. display: block;
  192. }
  193. .u-popup__content {
  194. height: 720rpx;
  195. width: 600rpx;
  196. background-color: rgba(0, 0, 0, 0) !important;
  197. background-image:
  198. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiPopup.png");
  199. background-size: cover;
  200. background-position: center;
  201. background-repeat: no-repeat;
  202. }
  203. .u-popup__content__close--top-right {
  204. top: 720rpx !important;
  205. right: 288rpx !important;
  206. }
  207. .winImgClss {
  208. height: 60rpx;
  209. width: 320rpx;
  210. }
  211. .popup-view {
  212. text-align: center;
  213. margin-top: 100rpx;
  214. }
  215. .popup-content {
  216. margin: 15px 54px;
  217. overflow: auto;
  218. }
  219. .popup-text {
  220. font-weight: 400;
  221. font-size: 20rpx;
  222. color: #9B0000;
  223. }
  224. .prize {
  225. height: 130rpx;
  226. width: 130rpx;
  227. }
  228. .u-form-item__body {
  229. padding: 8rpx;
  230. }
  231. uni-view.u-form-item__body__left {
  232. background: #AD7F55;
  233. border-radius: 5px 0px 0px 5px;
  234. border: 2px solid #63462B;
  235. border-right: none;
  236. }
  237. .u-form-item__body__right {
  238. background-color: #fff;
  239. border-radius: 0px 5px 5px 0px;
  240. border: 2px solid #63462B;
  241. }
  242. uni-text.u-form-item__body__left__content__label {
  243. color: #fff !important;
  244. padding-left: 4px;
  245. letter-spacing: 2px;
  246. }
  247. .popup-flex {
  248. display: flex;
  249. flex-direction: column;
  250. height: 100%;
  251. /* 或具体高度如340px,确保撑满弹窗 */
  252. min-width: 600rpx;
  253. }
  254. .popup-content-scroll {
  255. flex: 1;
  256. }
  257. .popup-footer {
  258. flex-shrink: 0;
  259. padding: 0rpx 0 60rpx 0px;
  260. text-align: center;
  261. background: transparent;
  262. /* 可选,确保无背景遮挡 */
  263. }
  264. .save-button {
  265. width: 90rpx;
  266. margin: 0 auto;
  267. background: #b22222;
  268. color: #F9D395;
  269. border-radius: 12rpx;
  270. padding: 18rpx 0;
  271. font-size: 24rpx;
  272. font-weight: bold;
  273. height: 16rpx;
  274. line-height: 16rpx;
  275. letter-spacing: 4rpx;
  276. }
  277. .unWin {
  278. width: 130rpx !important;
  279. }
  280. .productImg {
  281. width: 400rpx;
  282. }
  283. .u-swiper {
  284. background-color: rgba(0, 0, 0, 0) !important;
  285. padding: 0px 20rpx !important;
  286. width: 90%;
  287. }
  288. .u-col-4 {
  289. display: flex !important;
  290. justify-content: center !important;
  291. /* 水平居中 */
  292. align-items: center !important;
  293. /* 垂直居中 */
  294. }
  295. .right-col .u-col-4 {
  296. display: flex !important;
  297. justify-content: flex-end !important;
  298. /* 水平居中 */
  299. align-items: center !important;
  300. /* 垂直居中 */
  301. }
  302. .card-img-f{
  303. height: 100rpx;
  304. width: 100rpx;
  305. }
  306. .card-text{
  307. font-size: 26rpx;
  308. }
  309. .select-tag{
  310. position: absolute;
  311. right: 0px;
  312. font-weight: 400;
  313. font-size: 20rpx;
  314. color: #FFFFFF;
  315. width: 40px;
  316. text-align: center;
  317. background-color: #11BC64;
  318. height: 15px;
  319. border-radius: 3px;
  320. line-height: 15px;
  321. z-index: 5;
  322. }