add.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. <template>
  2. <div class="center">
  3. <div class="title">Create NFTs</div>
  4. <div class="content">
  5. <div class="l">
  6. <div class="name">Preview</div>
  7. <template v-if="configList.length">
  8. <div class="show">
  9. <div class="card" :class="selectItem.modelName">
  10. <div class="logo">
  11. <img v-if="tempUrl" :src="tempUrl" alt="">
  12. </div>
  13. <div class="member">{{ projectName === '' ? 'xxxx' : projectName }}</div>
  14. <div class="number">{{ projectNo === '' ? '0000' : projectNo }}</div>
  15. </div>
  16. <img class="bg" :src="selectItem.mainImagePath" />
  17. </div>
  18. <div class="list">
  19. <div
  20. class="item"
  21. :class="{ on: item.modelName === selectItem.modelName }"
  22. @click="select(item, index)"
  23. v-for="(item, index) in configList"
  24. :key="index">
  25. <img :src="item.mainImagePath" alt="" />
  26. </div>
  27. </div>
  28. </template>
  29. <div class="wait" v-else>
  30. <img width="30" src="../../static/img/icon-loading-gray.png" alt="" />
  31. </div>
  32. </div>
  33. <div class="r">
  34. <div class="name">Card face</div>
  35. <div class="face">
  36. <input type="file" class="file" @change="uploadImg" accept="image/png,image/jpg,image/jpeg" />
  37. <div class="on" v-if="tempUrl">
  38. <img src="../../static/img/icon-add-cover-on.svg" alt="" />
  39. <img class="img" :src="tempUrl" alt="" />
  40. </div>
  41. <div class="off" v-else>
  42. <img src="../../static/img/icon-add-cover-off.svg" alt="" />
  43. </div>
  44. </div>
  45. <div class="desc">Recommended size 500*500 or more</div>
  46. <div class="name">Project Name</div>
  47. <div class="input"><input type="text" maxlength="30" v-model="projectName" placeholder="Your NFT Project Name" /></div>
  48. <div class="name">Project Description</div>
  49. <div class="textarea"><textarea placeholder="Your NFT Project Description" maxlength="250" v-model="projectDesc"></textarea></div>
  50. <div class="name">Collection Size</div>
  51. <div class="input"><input type="text" v-model="projectSize" placeholder="0" /></div>
  52. <div class="showNo" v-if="showNoStr">No.{{ projectNo === '' ? '0000' : projectNo }}~{{projectSize}}</div>
  53. <div class="name">NFTs Price</div>
  54. <div class="price">
  55. <div class="currency" @click="showCurrencyDialog" v-if="currencyItem">
  56. <img class="head" :src="currencyItem.iconPath" alt="" />
  57. <div class="font">{{currencyItem.tokenSymbol}}</div>
  58. <img class="arrow" src="../../static/img/icon-add-arrow.svg" alt="" />
  59. </div>
  60. <div class="no-select" @click="showCurrencyDialog" v-else>
  61. <div class="font">Select a reward</div>
  62. <img class="arrow" src="../../static/img/icon-add-arrow-white.svg" alt="" />
  63. </div>
  64. <div class="input">
  65. <div class="tips" v-if="showMinPrice">the price of each NFT must be above $0.1 USD</div>
  66. <input type="text" v-model="projectPrice" @input="changePrice" placeholder="0" />
  67. </div>
  68. <!-- 货币列表 -->
  69. <div class="currency-pop" v-if="currencyDialog">
  70. <currency-list @selectCurrencyItem="selectCurrencyItem"></currency-list>
  71. </div>
  72. </div>
  73. <div class="explain">
  74. <ul>
  75. <li class="special">The NFT colection is minted on BNB Smart Chain (BEP20)</li>
  76. <li>NFT will be released in blind box mode</li>
  77. <li>Users need to pay service fees when transferring NFTs</li>
  78. </ul>
  79. </div>
  80. <div class="footer"></div>
  81. </div>
  82. </div>
  83. <div class="create">
  84. <button class="on" v-if="isNext" @click="next">Create</button>
  85. <button class="off" v-else>Create</button>
  86. </div>
  87. </div>
  88. <div class="feedBack" @click="feedback">
  89. <a href="mailto:service@cybertogether.net">
  90. <div class="mail">
  91. <img src="../../static/img/icon-feedback.svg" alt="" />
  92. </div>
  93. <div class="font">Feedback</div>
  94. </a>
  95. </div>
  96. <div class="loading" v-if="showLoading">
  97. <img src="../../static/img/icon-add-loading.svg" alt="" />
  98. </div>
  99. <div class="succ" v-if="showSuccess">
  100. <img class="icon" src="../../static/img/icon-notice-succ.svg" alt="" />
  101. <div class="notic">We have created your NFT collection</div>
  102. <button class="btn" @click="jumpList">Done</button>
  103. </div>
  104. <div class="succ-bg" v-if="showSuccess"></div>
  105. <div class="mask-bg" v-if="currencyDialog" @click="hideCurrencyDialog"></div>
  106. </template>
  107. <script lang="ts" setup>
  108. import { ref, onMounted, watchEffect } from 'vue';
  109. import Api from '../../static/http/api';
  110. import { postRequest } from '../../static/http';
  111. import { uploadFile } from '../../static/utils/upload'
  112. import { Report } from '../../static/report'
  113. import { debounce } from '../../static/utils'
  114. import { businessType, pageSource, objectType } from '../../static/report/enum'
  115. import currencyList from '../../components/currency-list.vue';
  116. const isNext = ref(false);
  117. const showLoading = ref(false);
  118. const showSuccess = ref(false);
  119. const maxSize = ref(100000);
  120. const minUsdAmount = ref(0)
  121. const configList = ref([]);
  122. const selectItem = ref(null);
  123. const uploadItem = ref({});
  124. const currencyDialog = ref(false);
  125. const currencyItem = ref(null);
  126. const projectName = ref('');
  127. const projectDesc = ref('');
  128. const projectSize = ref('');
  129. const projectNo = ref('');
  130. const projectPrice = ref('');
  131. const showNoStr = ref(false);
  132. const showMinPrice = ref(false);
  133. const tempFile = ref('');
  134. const tempUrl = ref('');
  135. const buttonType = {
  136. feedback: 'feedback-button',
  137. create: 'create-button',
  138. }
  139. const getConfig = () => {
  140. postRequest(Api.createConfig).then(res => {
  141. let { code, data } = res;
  142. if ( code === 0 ) {
  143. configList.value = data.itemModels;
  144. maxSize.value = data.maxCollectionSize;
  145. selectItem.value = data.itemModels[0];
  146. minUsdAmount.value = data.sellMinUsdAmount;
  147. // 预加载图片
  148. if (data.itemModels) {
  149. data.itemModels.forEach(item => {
  150. let img = new Image()
  151. img.src = item.previewImagePath;
  152. })
  153. }
  154. }
  155. })
  156. }
  157. const next = () => {
  158. // show loading
  159. showLoading.value = true;
  160. uploadFile(tempFile.value).then(res => {
  161. // @ts-ignore
  162. uploadItem.value = res;
  163. // post
  164. postRequest(Api.userNftAdd, {
  165. params: {
  166. // 项目图标
  167. cardFaceImagePath: uploadItem.value && uploadItem.value.objectKey || '',
  168. // 发行数量
  169. nftCollectionSize: projectSize.value || '',
  170. // 选中的模版id
  171. nftItemImageModel: selectItem.value && selectItem.value.modelName || '',
  172. // 项目描述
  173. nftProjectDescription: projectDesc.value.trim() || '',
  174. // 项目名称
  175. nftProjectName: projectName.value.trim() || '',
  176. // 销售价格
  177. saleCurrencyAmount: projectPrice.value || '',
  178. // 销售的货币code
  179. saleCurrencyCode: currencyItem.value && currencyItem.value.currencyCode || '',
  180. }
  181. }).then(res => {
  182. if (res.code === 0) {
  183. showSuccess.value = true;
  184. }
  185. }).finally(() => {
  186. showLoading.value = false;
  187. })
  188. // Report
  189. Report({
  190. baseInfo: {
  191. pageSource: pageSource.creatorPage,
  192. },
  193. params: {
  194. eventData: {
  195. businessType: businessType.buttonClick,
  196. objectType: buttonType.create,
  197. }
  198. }
  199. })
  200. }).catch(() => {
  201. showLoading.value = false;
  202. })
  203. }
  204. const select = (item: any, index: number) => {
  205. selectItem.value = item;
  206. let objectType;
  207. switch(index) {
  208. case 0:
  209. objectType = `first-NFT-selection-button`;
  210. break;
  211. case 1:
  212. objectType = `second-NFT-selection-button`;
  213. break;
  214. case 2:
  215. objectType = `third-NFT-selection-button`;
  216. break;
  217. case 3:
  218. objectType = `forth-NFT-selection-button`;
  219. break;
  220. }
  221. // Report
  222. Report({
  223. baseInfo: {
  224. pageSource: pageSource.creatorPage,
  225. },
  226. params: {
  227. eventData: {
  228. businessType: businessType.buttonClick,
  229. objectType: objectType,
  230. }
  231. }
  232. })
  233. }
  234. const showCurrencyDialog = () => {
  235. currencyDialog.value = true;
  236. }
  237. const hideCurrencyDialog = () => {
  238. currencyDialog.value = false;
  239. }
  240. const selectCurrencyItem = (data: any) => {
  241. currencyItem.value = data;
  242. hideCurrencyDialog();
  243. }
  244. const uploadImg = (e: any) => {
  245. let file = e.target.files[0];
  246. // 清空file
  247. e.target.value = '';
  248. // 预览
  249. tempFile.value = file;
  250. tempUrl.value = URL.createObjectURL(file);
  251. }
  252. const hideSuccess = () => {
  253. showSuccess.value = false;
  254. }
  255. const jumpList = () => {
  256. location.href = `/nft/list`
  257. }
  258. const changePrice = (e: any) => {
  259. let val = projectPrice.value;
  260. val = val.replace(/^\D*(\d*(?:\.\d{0,18})?).*$/g, '$1');
  261. if (val == '00') {
  262. val = '0'
  263. }
  264. if (val.indexOf('.') > -1){
  265. let arr = val.split('.');
  266. if(arr[0].startsWith('0')) {
  267. let num = +arr[0];
  268. val = num + '.' + arr[1];
  269. }
  270. }
  271. if (val !== '') {
  272. projectPrice.value = val
  273. } else {
  274. projectPrice.value = ''
  275. }
  276. }
  277. const feedback = () => {
  278. // Report
  279. Report({
  280. baseInfo: {
  281. pageSource: pageSource.creatorPage,
  282. },
  283. params: {
  284. eventData: {
  285. businessType: businessType.buttonClick,
  286. objectType: buttonType.feedback,
  287. }
  288. }
  289. })
  290. }
  291. let timer = ref(0);
  292. watchEffect(() => {
  293. let emojiReg = /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi;
  294. // 数量
  295. let num = projectSize.value;
  296. num = num.replace(/\D/g, '');
  297. if (Number(num) > maxSize.value) {
  298. num = String(maxSize.value);
  299. }
  300. if (num) {
  301. projectSize.value = String(Number(num));
  302. } else {
  303. projectSize.value = '';
  304. }
  305. // 编号
  306. if (projectSize.value !== '') {
  307. projectNo.value = String(1).padStart(String(projectSize.value).length, '0')
  308. } else {
  309. projectNo.value = ''
  310. }
  311. showNoStr.value = projectNo.value != '' && Number(projectSize.value) > 0;
  312. // 是否可以创建
  313. let ifUpload = tempUrl.value != '' || false;
  314. let ifName = projectName.value !== '';
  315. let ifDesc = projectDesc.value !== '';
  316. let ifSize = projectSize.value !== '' && Number(projectSize.value) > 0;
  317. let ifCurrency = currencyItem.value && currencyItem.value.currencyCode;
  318. let ifPrice = projectPrice.value && projectPrice.value !== '' && Number(projectPrice.value) > 0;
  319. // setTimeout
  320. clearTimeout(timer.value);
  321. timer.value = setTimeout(() => {
  322. projectName.value = projectName.value.replace(emojiReg, '');
  323. // 最低金额
  324. if (ifCurrency && ifPrice) {
  325. let usdPrice = currencyItem.value && currencyItem.value.usdPrice;
  326. if (Number(usdPrice) * Number(projectPrice.value) < Number(minUsdAmount.value)) {
  327. showMinPrice.value = true;
  328. } else {
  329. showMinPrice.value = false;
  330. }
  331. }
  332. // show next
  333. isNext.value = ifUpload && ifName && ifDesc && ifSize && ifCurrency && ifPrice && !showMinPrice.value;
  334. }, 400)
  335. })
  336. onMounted(() => {
  337. // config
  338. getConfig()
  339. // Report
  340. Report({
  341. baseInfo: {
  342. pageSource: pageSource.creatorPage,
  343. },
  344. params: {
  345. eventData: {
  346. businessType: businessType.pageView,
  347. }
  348. }
  349. })
  350. })
  351. </script>
  352. <style lang="less" scoped>
  353. .center {
  354. overflow-y: auto;
  355. padding: 0 50px;
  356. width: 1100px;
  357. margin: 10px auto 0;
  358. box-sizing: border-box;
  359. height: calc(100% - 10px);
  360. background-color: #fff;
  361. border-radius: 20px 20px 0 0;
  362. &::-webkit-scrollbar {
  363. width: 0 !important;
  364. }
  365. .title {
  366. padding: 22px 0;
  367. font-size: 20px;
  368. font-weight: 600;
  369. line-height: 24px;
  370. }
  371. .content {
  372. width: 100%;
  373. clear: both;
  374. display: flex;
  375. justify-content: space-between;
  376. .name {
  377. height: 24px;
  378. font-size: 12px;
  379. color: #939393;
  380. }
  381. .showNo {
  382. color: #939393;
  383. font-size: 12px;
  384. margin-top: -10px;
  385. margin-bottom: 24px;
  386. }
  387. .l {
  388. width: 400px;
  389. .wait {
  390. padding: 200px 0;
  391. text-align: center;
  392. img {
  393. opacity: .6;
  394. animation: rotate 1s infinite linear;
  395. }
  396. }
  397. .show {
  398. position: relative;
  399. overflow: hidden;
  400. width: 400px;
  401. height: 400px;
  402. border-radius: 10px;
  403. .card {
  404. position: absolute;
  405. left: 53px;
  406. top: 103px;
  407. width: 294px;
  408. height: 186px;
  409. .logo {
  410. position: absolute;
  411. top: 50%;
  412. left: 50%;
  413. transform: translate(-50%, -50%);
  414. width: 100px;
  415. height: 100px;
  416. border-radius: 50%;
  417. background-color: #fff;
  418. img {
  419. width: 100%;
  420. height: 100%;
  421. border-radius: 50%;
  422. object-fit: cover;
  423. }
  424. }
  425. .member {
  426. position: absolute;
  427. top: 11px;
  428. left: 11px;
  429. width: 228px;
  430. font-size: 12px;
  431. text-align: left;
  432. font-weight: 800;
  433. line-height: 13px;
  434. }
  435. .number {
  436. position: absolute;
  437. top: 11px;
  438. right: 10px;
  439. font-size: 12px;
  440. font-weight: 800;
  441. line-height: 13px;
  442. letter-spacing: 1px;
  443. }
  444. &.s1 {
  445. .member, .number {
  446. color: #ffffff;
  447. }
  448. }
  449. &.s2 {
  450. .member, .number {
  451. color: #4AC3E1;
  452. }
  453. }
  454. &.s3 {
  455. .member, .number {
  456. color: #606C94;
  457. }
  458. }
  459. &.s4 {
  460. .member, .number {
  461. color: #504215;
  462. }
  463. }
  464. }
  465. .bg {
  466. width: 100%;
  467. height: 100%;
  468. }
  469. }
  470. .list {
  471. margin-top: 20px;
  472. display: flex;
  473. .item {
  474. width: calc(100% / 4);
  475. cursor: pointer;
  476. overflow: hidden;
  477. margin-right: 13px;
  478. border-radius: 5px;
  479. img {
  480. width: 100%;
  481. border-radius: 5px;
  482. }
  483. &:last-child {
  484. margin: 0;
  485. }
  486. &.on {
  487. position: relative;
  488. &::before {
  489. position: absolute;
  490. display: block;
  491. top: 0;
  492. right: 0;
  493. content: '';
  494. width: 44px;
  495. height: 44px;
  496. background-size: 100%;
  497. background-image: url('../../static/img/icon-add-select.svg');
  498. }
  499. }
  500. }
  501. }
  502. }
  503. .r {
  504. width: 520px;
  505. .face {
  506. position: relative;
  507. width: 80px;
  508. margin-bottom: 10px;
  509. .file {
  510. position: absolute;
  511. z-index: 2;
  512. width: 100%;
  513. height: 100%;
  514. opacity: 0;
  515. cursor: pointer;
  516. }
  517. .off {
  518. display: flex;
  519. align-items: center;
  520. justify-content: center;
  521. cursor: pointer;
  522. width: 80px;
  523. height: 80px;
  524. border-radius: 100px;
  525. border: 1px dashed #D0D0D0;
  526. background: rgba(0, 0, 0, 0.02);
  527. }
  528. .on {
  529. position: relative;
  530. display: flex;
  531. align-items: center;
  532. justify-content: center;
  533. cursor: pointer;
  534. width: 80px;
  535. height: 80px;
  536. overflow: hidden;
  537. border-radius: 100px;
  538. background: #353535;
  539. .img {
  540. position: absolute;
  541. opacity: .4;
  542. width: 100%;
  543. height: 100%;
  544. border-radius: 100px;
  545. }
  546. }
  547. }
  548. .desc {
  549. color: #B4B4B4;
  550. font-size: 12px;
  551. font-weight: 400;
  552. line-height: 16px;
  553. margin-bottom: 22px;
  554. }
  555. .input {
  556. position: relative;
  557. display: flex;
  558. align-items: center;
  559. justify-content: center;
  560. height: 41px;
  561. margin-bottom: 22px;
  562. border-radius: 5px;
  563. background: #FFFFFF;
  564. border: 1px solid #E0E0E0;
  565. input {
  566. border: 0;
  567. outline: none;
  568. padding: 3px 0;
  569. color: #777;
  570. font-size: 16px;
  571. font-weight: 500;
  572. letter-spacing: 0.3px;
  573. width: calc(100% - 24px);
  574. &::placeholder {
  575. color: rgba(0, 0, 0, .3);
  576. }
  577. }
  578. .tips {
  579. position: absolute;
  580. left: 0;
  581. top: -22px;
  582. font-size: 12px;
  583. color: #E29015;
  584. }
  585. }
  586. .textarea {
  587. display: flex;
  588. align-items: center;
  589. justify-content: center;
  590. height: 72px;
  591. margin-bottom: 22px;
  592. border-radius: 5px;
  593. background: #FFFFFF;
  594. border: 1px solid #E0E0E0;
  595. textarea {
  596. resize: none;
  597. border: 0;
  598. height: 52px;
  599. outline: none;
  600. color: #777;
  601. font-size: 16px;
  602. font-weight: 500;
  603. letter-spacing: 0.3px;
  604. width: calc(100% - 24px);
  605. font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  606. &::placeholder {
  607. color: rgba(0, 0, 0, .3);
  608. }
  609. }
  610. }
  611. .price {
  612. position: relative;
  613. display: flex;
  614. justify-content: space-between;
  615. .currency {
  616. display: flex;
  617. align-items: center;
  618. justify-content: center;
  619. flex-direction: row;
  620. cursor: pointer;
  621. height: 43px;
  622. padding: 0 14px;
  623. margin-right: 13px;
  624. border-radius: 25px;
  625. background: #F4F4F4;
  626. .head {
  627. overflow: hidden;
  628. width: 20px;
  629. height: 20px;
  630. margin-right: 8px;
  631. border-radius: 50%;
  632. background-color: #999;
  633. }
  634. .font {
  635. max-width: 250px;
  636. font-size: 15px;
  637. font-weight: 500;
  638. white-space: nowrap;
  639. overflow: hidden;
  640. text-overflow: ellipsis;
  641. }
  642. .arrow {
  643. margin-left: 8px
  644. }
  645. }
  646. .no-select {
  647. display: flex;
  648. align-items: center;
  649. justify-content: center;
  650. flex-direction: row;
  651. cursor: pointer;
  652. height: 43px;
  653. padding: 0 14px;
  654. margin-right: 13px;
  655. border-radius: 25px;
  656. background: #1d9bf0;
  657. .font {
  658. max-width: 250px;
  659. color: #fff;
  660. font-size: 15px;
  661. font-weight: 500;
  662. white-space: nowrap;
  663. overflow: hidden;
  664. text-overflow: ellipsis;
  665. }
  666. .arrow {
  667. margin-left: 8px
  668. }
  669. }
  670. .input {
  671. flex: 1;
  672. margin-bottom: 0;
  673. }
  674. .currency-pop {
  675. position: absolute;
  676. overflow: hidden;
  677. z-index: 3;
  678. left: 0;
  679. bottom: 50px;
  680. width: 375px;
  681. max-height: 420px;
  682. border-radius: 20px;
  683. background-color: #fff;
  684. box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
  685. }
  686. }
  687. .explain {
  688. color: #B4B4B4;
  689. font-size: 12px;
  690. font-weight: 400;
  691. line-height: 18px;
  692. ul {
  693. padding: 0;
  694. margin-left: 14px;
  695. }
  696. .special {
  697. color: #E29015;
  698. }
  699. }
  700. .footer {
  701. height: 80px;
  702. }
  703. }
  704. }
  705. .create {
  706. position: fixed;
  707. left: 50%;
  708. bottom: 0;
  709. width: 1100px;
  710. text-align: right;
  711. padding: 15px 30px;
  712. transform: translateX(-50%);
  713. box-sizing: border-box;
  714. background-color: #fff;
  715. border-top: solid 1px #ECECEC;
  716. .on {
  717. border: 0;
  718. height: 50px;
  719. color: #FFFFFF;
  720. cursor: pointer;
  721. padding: 0 50px;
  722. font-size: 18px;
  723. font-weight: 700;
  724. letter-spacing: 0.3px;
  725. border-radius: 25px;
  726. background: #1D9BF0;
  727. }
  728. .off {
  729. border: 0;
  730. height: 50px;
  731. color: #FFFFFF;
  732. cursor: pointer;
  733. padding: 0 50px;
  734. font-size: 18px;
  735. font-weight: 700;
  736. letter-spacing: 0.3px;
  737. border-radius: 25px;
  738. background: #E4E4E4;
  739. }
  740. }
  741. }
  742. .feedBack {
  743. position: absolute;
  744. right: 44px;
  745. bottom: 88px;
  746. cursor: pointer;
  747. font-size: 12px;
  748. text-align: center;
  749. a:link, a:visited {
  750. color: #A8A8A8;
  751. text-decoration: none;
  752. }
  753. .mail {
  754. display: flex;
  755. align-items: center;
  756. justify-content: center;
  757. margin: auto;
  758. width: 50px;
  759. height: 50px;
  760. margin-bottom: 10px;
  761. border-radius: 50%;
  762. background-color: #fff;
  763. }
  764. .font {
  765. opacity: 0.7;
  766. color: #A8A8A8;
  767. letter-spacing: 0.3px;
  768. }
  769. }
  770. .loading {
  771. display: flex;
  772. align-items: center;
  773. justify-content: center;
  774. position: absolute;
  775. top: 0;
  776. left: 0;
  777. z-index: 2;
  778. width: 100%;
  779. height: 100%;
  780. background: rgba(255, 255, 255, .8);
  781. img {
  782. width: 100px;
  783. animation: rotate 1s linear infinite;
  784. }
  785. }
  786. @keyframes rotate {
  787. 0% {
  788. transform: rotate(0);
  789. }
  790. 100% {
  791. transform: rotate(360deg);
  792. }
  793. }
  794. .succ {
  795. position: absolute;
  796. z-index: 2;
  797. top: 50%;
  798. left: 50%;
  799. width: 500px;
  800. height: 400px;
  801. border-radius: 20px;
  802. background-color: #fff;
  803. transform: translate(-50%, -50%);
  804. .icon {
  805. display: block;
  806. width: 120px;
  807. height: 120px;
  808. margin: 78px auto 27px auto;
  809. }
  810. .notic {
  811. font-size: 20px;
  812. font-weight: 700;
  813. text-align: center;
  814. line-height: 24px;
  815. }
  816. .btn {
  817. display: block;
  818. border: 0;
  819. cursor: pointer;
  820. width: 440px;
  821. height: 50px;
  822. color: #fff;
  823. font-size: 18px;
  824. font-weight: 700;
  825. margin: 70px auto 0;
  826. border-radius: 50px;
  827. background: #1D9BF0;
  828. }
  829. }
  830. .succ-bg {
  831. position: absolute;
  832. top: 0;
  833. left: 0;
  834. width: 100%;
  835. height: 100%;
  836. background: rgba(0, 0, 0, .8);
  837. }
  838. .mask-bg {
  839. position: absolute;
  840. top: 0;
  841. left: 0;
  842. z-index: 2;
  843. width: 100%;
  844. height: 100%;
  845. }
  846. </style>