secondReward.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <template>
  2. <layout
  3. bgImgName="second-reward-img"
  4. bgColor="#f64d5d"
  5. bgHeight="188"
  6. @goBack="goBack"
  7. >
  8. <div class="second-reward">
  9. <div class="second-reward-title">
  10. 请搜索您希望在云机内运行的应用为您安装至云机
  11. </div>
  12. <div v-if="!isSelectBool">
  13. <div class="application">
  14. <div
  15. v-for="item in applicationList"
  16. :key="item"
  17. @click="toDetails(item)"
  18. >
  19. {{ item }}
  20. </div>
  21. </div>
  22. </div>
  23. <div v-else class="details">
  24. <img
  25. :src="`${IMG_URL}/installApps_${+this.imgName + 1}.png`"
  26. alt=""
  27. class="details-img"
  28. />
  29. <img
  30. src="@/assets/image/claimCloudPhone/claim-mobile-phone-btn.png"
  31. class="details-btn"
  32. @click="$router.push('/claimCloudPhone/purchase')"
  33. />
  34. </div>
  35. </div>
  36. </layout>
  37. </template>
  38. <script>
  39. import layout from './components/layout';
  40. export default {
  41. auth: false,
  42. name: 'secondReward',
  43. head: {
  44. title: '0元购机,尽情享受',
  45. },
  46. data() {
  47. return {
  48. applicationList: [
  49. '飞书',
  50. '钉钉',
  51. '企业微信',
  52. '梦幻西游',
  53. '闲鱼之王',
  54. '寻道大千',
  55. '部落冲突',
  56. '传奇',
  57. '倩女幽魂',
  58. ], // 应用数组
  59. adaptedModels: [1], // 适配机型
  60. isSelectBool: false,
  61. imgName: '',
  62. IMG_URL: process.env.IMG_URL
  63. };
  64. },
  65. components: { layout },
  66. methods: {
  67. toDetails(applicationName) {
  68. // 埋点
  69. this.$axios
  70. .$post('public/v5/User/selects/addApplication', { applicationName })
  71. .then((res) => {});
  72. this.imgName = this.applicationList.indexOf(applicationName);
  73. console.log(this.imgName);
  74. this.isSelectBool = true;
  75. },
  76. goBack() {
  77. if (this.isSelectBool) return (this.isSelectBool = false);
  78. this.$router.go(-1);
  79. },
  80. },
  81. };
  82. </script>
  83. <style lang="less" scoped>
  84. .second-reward {
  85. height: 100%;
  86. box-sizing: border-box;
  87. padding-top: 188px;
  88. .second-reward-title {
  89. font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  90. font-weight: bold;
  91. font-size: 15px;
  92. color: #fefefe;
  93. line-height: 18px;
  94. text-align: center;
  95. font-style: normal;
  96. }
  97. .application {
  98. padding: 0 16px;
  99. margin-top: 24px;
  100. display: grid;
  101. grid-gap: 16px;
  102. grid-template-columns: repeat(3, 1fr);
  103. & > div {
  104. font-family: PingFangSC, PingFang SC;
  105. font-weight: 400;
  106. font-size: 14px;
  107. color: #742428;
  108. line-height: 20px;
  109. text-align: center;
  110. font-style: normal;
  111. background: #fff1e1;
  112. border-radius: 14px;
  113. padding: 11px 0;
  114. }
  115. }
  116. .details {
  117. margin-top: 24px;
  118. display: flex;
  119. flex-direction: column;
  120. align-items: center;
  121. .details-img {
  122. height: 130px;
  123. width: 100%;
  124. }
  125. .details-btn {
  126. margin-top: 32px;
  127. height: 56px;
  128. }
  129. }
  130. }
  131. // height: 100%;
  132. // box-sizing: border-box;
  133. // background: #f64d5d;
  134. // .second-reward-container {
  135. // padding: 12.2666666667vw 0 16px;
  136. // height: 100%;
  137. // box-sizing: border-box;
  138. // background: url('~/assets/image/claimCloudPhone/second-reward-img.png')
  139. // no-repeat;
  140. // background-size: 100% 210px;
  141. // background-position: 0px 12.2666666667vw;
  142. // & > div {
  143. // padding-top: 224px;
  144. // .second-reward-container_title {
  145. // font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  146. // font-weight: bold;
  147. // font-size: 16px;
  148. // color: #fefefe;
  149. // line-height: 18px;
  150. // text-align: center;
  151. // font-style: normal;
  152. // }
  153. // .second-reward-container_main {
  154. // padding: 0 16px;
  155. // .application {
  156. // margin-top: 24px;
  157. // display: grid;
  158. // grid-gap: 16px;
  159. // grid-template-columns: repeat(3, 1fr);
  160. // & > div {
  161. // font-family: PingFangSC, PingFang SC;
  162. // font-weight: 400;
  163. // font-size: 14px;
  164. // color: #742428;
  165. // line-height: 20px;
  166. // text-align: center;
  167. // font-style: normal;
  168. // background: #fff1e1;
  169. // border-radius: 14px;
  170. // padding: 11px 0;
  171. // }
  172. // }
  173. // .adapted-models {
  174. // margin-top: 16px;
  175. // font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
  176. // font-size: 14px;
  177. // color: #891c04;
  178. // & > div {
  179. // height: 64px;
  180. // padding: 16px;
  181. // box-sizing: border-box;
  182. // &:first-of-type {
  183. // background: #fff1e1;
  184. // border-radius: 12px 12px 0 0;
  185. // font-weight: bold;
  186. // line-height: 32px;
  187. // display: flex;
  188. // align-items: center;
  189. // & > img {
  190. // height: 32px;
  191. // width: 32px;
  192. // margin-right: 8px;
  193. // }
  194. // }
  195. // &:last-of-type {
  196. // background: #fedec0;
  197. // border-radius: 0 0 12px 12px;
  198. // font-weight: 400;
  199. // font-size: 14px;
  200. // font-style: normal;
  201. // line-height: 15px;
  202. // }
  203. // }
  204. // }
  205. // &>img{
  206. // height: 56px;
  207. // width: 281px;
  208. // display: block;
  209. // margin: 0 auto;
  210. // margin-top: 32px;
  211. // }
  212. // }
  213. // }
  214. // }
  215. // }
  216. // ::v-deep .van-nav-bar__arrow {
  217. // color: #000000;
  218. // font-size: 24px;
  219. // }
  220. // ::v-deep .van-nav-bar__title {
  221. // font-weight: bold !important;
  222. // font-size: 17px !important;
  223. // color: #0a132b !important;
  224. // line-height: 24px !important;
  225. // }
  226. </style>