introduction.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <template>
  2. <view class="common">
  3. <view class="body">
  4. <view class="top-class"></view>
  5. <view class="title">
  6. 超级炫
  7. </view>
  8. <view class="head">
  9. <u-row class="row-class">
  10. <u-col span="4">
  11. <image class="logo-img" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/logo.png" mode="aspectFit" />
  12. </u-col>
  13. <u-col span="4">
  14. <image class="commodity-img" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/commodity.png" mode="aspectFit" />
  15. </u-col>
  16. <u-col span="4">
  17. <image class="logo-rules" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/rules.png" />
  18. </u-col>
  19. </u-row>
  20. </view>
  21. <view class="topImg">
  22. <image class="img_1" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/topImg.png" mode="heightFix" />
  23. </view>
  24. <view class="content">
  25. <view class="cardTop" >
  26. </view>
  27. <view class="content_text">
  28. </view>
  29. <view class="return_view">
  30. <view class="return-button" >返回</view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. }
  41. },
  42. onLoad() {
  43. },
  44. methods: {
  45. goBack() {
  46. uni.navigateBack();
  47. }
  48. }
  49. }
  50. </script>
  51. <style>
  52. @import url('../../../static/scss/common_cjx.css');
  53. .row-class {
  54. height: 80rpx;
  55. }
  56. .logo-rules{
  57. height: 124rpx;
  58. width: 80rpx;
  59. margin-left: 110rpx;
  60. }
  61. .logo-img {
  62. background-size: cover;
  63. /* 确保背景图片自适应填充整个容器 */
  64. background-position: center;
  65. /* 背景图片居中显示 */
  66. background-repeat: no-repeat;
  67. /* 防止背景图重复 */
  68. height: 100rpx;
  69. width: 62%;
  70. margin-right: 80rpx;
  71. }
  72. .commodity-img {
  73. background-size: cover;
  74. /* 确保背景图片自适应填充整个容器 */
  75. background-position: center;
  76. /* 背景图片居中显示 */
  77. background-repeat: no-repeat;
  78. /* 防止背景图重复 */
  79. height: 72rpx;
  80. width: 100%;
  81. }
  82. .text {
  83. height: 10vh;
  84. text-align: center;
  85. line-height: 13vh;
  86. margin-bottom: 10rpx;
  87. }
  88. .textImage {
  89. height: 80rpx;
  90. width: 400rpx;
  91. }
  92. .content {
  93. height: 68vh;
  94. border-radius: 10rpx;
  95. margin: 0rpx 40rpx;
  96. padding: 10rpx 24rpx;
  97. overflow: auto;
  98. align-items: center;
  99. justify-content: center;
  100. background-image:
  101. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/cardBgi.png");
  102. background-size: cover;
  103. background-position: center;
  104. background-repeat: no-repeat;
  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. perspective: 1000px;
  143. }
  144. .card-inner {
  145. position: relative;
  146. width: 100%;
  147. height: 100%;
  148. transition: transform 0.8s cubic-bezier(0.5, 1.5, 0.5, 1);
  149. transform-style: preserve-3d;
  150. }
  151. .card.flipping .card-inner {
  152. transform: rotateY(180deg);
  153. }
  154. .card.flipped .card-inner {
  155. transform: rotateY(180deg);
  156. }
  157. .card-front,
  158. .card-back {
  159. position: absolute;
  160. width: 100%;
  161. height: 100%;
  162. backface-visibility: hidden;
  163. }
  164. .card-back {
  165. transform: rotateY(180deg);
  166. }
  167. .card-back-text {
  168. position: absolute;
  169. top: 50%;
  170. left: 0;
  171. width: 100%;
  172. text-align: center;
  173. color: #9A1712;
  174. font-weight: bold;
  175. font-size: 28rpx;
  176. transform: translateY(-50%);
  177. z-index: 2;
  178. pointer-events: none;
  179. }
  180. .card-img {
  181. width: 100%;
  182. height: 100%;
  183. display: block;
  184. }
  185. ::v-deep .u-popup__content {
  186. height: 720rpx;
  187. width: 600rpx;
  188. background-color: rgba(0, 0, 0, 0) !important;
  189. background-image:
  190. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgiPopup.png");
  191. background-size: cover;
  192. background-position: center;
  193. background-repeat: no-repeat;
  194. }
  195. ::v-deep .u-popup__content__close--top-right {
  196. top: 720rpx !important;
  197. right: 288rpx !important;
  198. }
  199. .winImgClss {
  200. height: 60rpx;
  201. width: 320rpx;
  202. }
  203. .popup-view {
  204. text-align: center;
  205. margin-top: 100rpx;
  206. }
  207. .popup-content {
  208. margin: 15px 54px;
  209. overflow: auto;
  210. }
  211. .popup-text {
  212. font-weight: 400;
  213. font-size: 20rpx;
  214. color: #9B0000;
  215. }
  216. .prize {
  217. height: 130rpx;
  218. width: 130rpx;
  219. }
  220. ::v-deep .u-form-item__body {
  221. padding: 8rpx;
  222. }
  223. ::v-deep uni-view.u-form-item__body__left {
  224. background: #AD7F55;
  225. border-radius: 5px 0px 0px 5px;
  226. border: 2px solid #63462B;
  227. border-right: none;
  228. }
  229. ::v-deep .u-form-item__body__right {
  230. background-color: #fff;
  231. border-radius: 0px 5px 5px 0px;
  232. border: 2px solid #63462B;
  233. }
  234. ::v-deep uni-text.u-form-item__body__left__content__label {
  235. color: #fff !important;
  236. padding-left: 4px;
  237. letter-spacing: 2px;
  238. }
  239. .popup-flex {
  240. display: flex;
  241. flex-direction: column;
  242. height: 100%;
  243. /* 或具体高度如340px,确保撑满弹窗 */
  244. min-width: 600rpx;
  245. }
  246. .popup-content-scroll {
  247. flex: 1;
  248. }
  249. .popup-footer {
  250. flex-shrink: 0;
  251. padding: 0rpx 0 60rpx 0px;
  252. text-align: center;
  253. background: transparent;
  254. /* 可选,确保无背景遮挡 */
  255. }
  256. .save-button {
  257. width: 90rpx;
  258. margin: 0 auto;
  259. background: #b22222;
  260. color: #F9D395;
  261. border-radius: 12rpx;
  262. padding: 18rpx 0;
  263. font-size: 24rpx;
  264. font-weight: bold;
  265. height: 16rpx;
  266. line-height: 16rpx;
  267. letter-spacing: 4rpx;
  268. }
  269. .unWin {
  270. width: 130rpx !important;
  271. }
  272. .productImg {
  273. width: 400rpx;
  274. }
  275. ::v-deep .u-swiper {
  276. background-color: rgba(0, 0, 0, 0) !important;
  277. padding: 0px 20rpx !important;
  278. width: 90%;
  279. }
  280. ::v-deep .u-col-4 {
  281. display: flex !important;
  282. justify-content: center !important;
  283. /* 水平居中 */
  284. align-items: center !important;
  285. /* 垂直居中 */
  286. }
  287. ::v-deep .right-col .u-col-4 {
  288. display: flex !important;
  289. justify-content: flex-end !important;
  290. /* 水平居中 */
  291. align-items: center !important;
  292. /* 垂直居中 */
  293. }
  294. .card-img-f {
  295. height: 100rpx;
  296. width: 100rpx;
  297. }
  298. .card-text {
  299. font-size: 26rpx;
  300. }
  301. .select-tag {
  302. position: absolute;
  303. right: 0px;
  304. font-weight: 400;
  305. font-size: 20rpx;
  306. color: #FFFFFF;
  307. width: 40px;
  308. text-align: center;
  309. background-color: #11BC64;
  310. height: 15px;
  311. border-radius: 3px;
  312. line-height: 15px;
  313. z-index: 5;
  314. }
  315. </style>