introduction.vue 6.7 KB

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