secondReward.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <div class="second-reward">
  3. <van-nav-bar
  4. title="0元购机,尽情享受"
  5. left-arrow
  6. @click-left="goBackFun"
  7. fixed
  8. />
  9. <div class="second-reward-container">
  10. <div>
  11. <div class="second-reward-container_title">
  12. 请搜素您希望在云机内运行的应用为您安装至云机
  13. </div>
  14. <div class="second-reward-container_main">
  15. <template v-if="!isSelectBool">
  16. <div class="application">
  17. <div v-for="item in applicationList" :key="item">应用宝</div>
  18. </div>
  19. </template>
  20. <template v-else>
  21. <div
  22. v-for="item in adaptedModels"
  23. :key="item"
  24. class="adapted-models"
  25. >
  26. <div>
  27. <img
  28. src="@/assets/image/claimCloudPhone/second-reward-img.png"
  29. alt=""
  30. />
  31. 梦幻西游
  32. </div>
  33. <div>推荐机型:星动安卓7/星曜安卓7/星曜/唔即/星空/唔即PRO</div>
  34. </div>
  35. <img src="@/assets/image/claimCloudPhone/claim-mobile-phone-btn.png" />
  36. </template>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. export default {
  44. auth: false,
  45. name: 'secondReward',
  46. head: {
  47. title: '0元购机,尽情享受',
  48. },
  49. data() {
  50. return {
  51. applicationList: [1, 2, 3, 4, 5, 6, 10, 11, 12, 50], // 应用数组
  52. adaptedModels: [1], // 适配机型
  53. isSelectBool: true,
  54. };
  55. },
  56. components: {},
  57. };
  58. </script>
  59. <style lang="less" scoped>
  60. .second-reward {
  61. height: 100%;
  62. box-sizing: border-box;
  63. background: #f64d5d;
  64. .second-reward-container {
  65. padding: 12.2666666667vw 0 16px;
  66. height: 100%;
  67. box-sizing: border-box;
  68. background: url('~/assets/image/claimCloudPhone/second-reward-img.png')
  69. no-repeat;
  70. background-size: 100% 210px;
  71. background-position: 0px 12.2666666667vw;
  72. & > div {
  73. padding-top: 224px;
  74. .second-reward-container_title {
  75. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  76. font-weight: bold;
  77. font-size: 16px;
  78. color: #fefefe;
  79. line-height: 18px;
  80. text-align: center;
  81. font-style: normal;
  82. }
  83. .second-reward-container_main {
  84. padding: 0 16px;
  85. .application {
  86. margin-top: 24px;
  87. display: grid;
  88. grid-gap: 16px;
  89. grid-template-columns: repeat(3, 1fr);
  90. & > div {
  91. font-family: PingFangSC, PingFang SC;
  92. font-weight: 400;
  93. font-size: 14px;
  94. color: #742428;
  95. line-height: 20px;
  96. text-align: center;
  97. font-style: normal;
  98. background: #fff1e1;
  99. border-radius: 14px;
  100. padding: 11px 0;
  101. }
  102. }
  103. .adapted-models {
  104. margin-top: 16px;
  105. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  106. font-size: 14px;
  107. color: #891c04;
  108. & > div {
  109. height: 64px;
  110. padding: 16px;
  111. box-sizing: border-box;
  112. &:first-of-type {
  113. background: #fff1e1;
  114. border-radius: 12px 12px 0 0;
  115. font-weight: bold;
  116. line-height: 32px;
  117. display: flex;
  118. align-items: center;
  119. & > img {
  120. height: 32px;
  121. width: 32px;
  122. margin-right: 8px;
  123. }
  124. }
  125. &:last-of-type {
  126. background: #fedec0;
  127. border-radius: 0 0 12px 12px;
  128. font-weight: 400;
  129. font-size: 14px;
  130. font-style: normal;
  131. line-height: 15px;
  132. }
  133. }
  134. }
  135. &>img{
  136. height: 56px;
  137. width: 281px;
  138. display: block;
  139. margin: 0 auto;
  140. margin-top: 32px;
  141. }
  142. }
  143. }
  144. }
  145. }
  146. ::v-deep .van-nav-bar__arrow {
  147. color: #000000;
  148. font-size: 24px;
  149. }
  150. ::v-deep .van-nav-bar__title {
  151. font-weight: bold !important;
  152. font-size: 17px !important;
  153. color: #0a132b !important;
  154. line-height: 24px !important;
  155. }
  156. </style>