successToast.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <div :class="{connectUs: !mobile, connectUsMobile: mobile}">
  3. <div class="toastBox" v-if="isShowToast">
  4. <div class="toastArea">
  5. <div class="title">提现成功</div>
  6. <div class="tips">提现成功,项目款将在3-5个工作日内到账 可通过了解开发者会员服务,更快获取更多收益</div>
  7. <div class="btnList">
  8. <div class="btnItem cancleBtn" @click="close">
  9. <p>下次再说</p>
  10. </div>
  11. <div class="btnItem submitBtn" @click="handleSubmit">
  12. <p>立即了解</p>
  13. </div>
  14. </div>
  15. <div class="closeIcon" @click="close"/>
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. props: ["isShowToast"],
  23. components: {},
  24. data() {
  25. return {
  26. name: "",
  27. phone: "",
  28. mobile: this.$deviceType.isMobile()
  29. };
  30. },
  31. computed: {},
  32. mounted() {
  33. },
  34. methods: {
  35. close() {
  36. this.$emit('close')
  37. },
  38. handleSubmit() {
  39. location.href = "/type/vip/developer"
  40. }
  41. }
  42. };
  43. </script>
  44. <style lang="scss">
  45. @import "~@/assets/css/scssCommon.scss";
  46. .connectUs {
  47. .toastBox {
  48. position: fixed;
  49. width: 100vw;
  50. height: 100vh;
  51. background-color: rgba(0, 0, 0, 0.8);
  52. z-index: 888;
  53. left: 0;
  54. top: 0;
  55. display: flex;
  56. justify-content: center;
  57. align-items: center;
  58. .toastArea {
  59. position: relative;
  60. width: 446px;
  61. height: 267px;
  62. background: rgba(255, 255, 255, 1);
  63. border-radius: 3px;
  64. padding: 34px 34px;
  65. .title {
  66. font-size: 19px;
  67. font-weight: 500;
  68. color: rgba(34, 34, 34, 1);
  69. line-height: 26px;
  70. text-align: center;
  71. }
  72. .tips {
  73. margin-top: 35px;
  74. font-size:14px;
  75. font-weight:400;
  76. color:rgba(51,51,51,1);
  77. line-height:20px;
  78. }
  79. .btnList {
  80. margin-top: 40px;
  81. display: flex;
  82. width: 100%;
  83. justify-content: space-around;
  84. .btnItem {
  85. width: 170px;
  86. height: 44px;
  87. background: rgba(48, 142, 255, 1);
  88. box-shadow: 0 2px 6px 0 rgba(48, 142, 255, 0.3);
  89. border-radius: 2px;
  90. display: flex;
  91. justify-content: center;
  92. align-items: center;
  93. cursor: pointer;
  94. p {
  95. font-size: 14px;
  96. font-weight: 500;
  97. color: rgba(255, 255, 255, 1);
  98. line-height: 20px;
  99. }
  100. }
  101. .submitBtn {
  102. }
  103. .cancleBtn {
  104. background:rgba(236,236,236,1);
  105. border-radius:2px;
  106. box-shadow: none;
  107. p {
  108. color:rgba(102,102,102,1);
  109. }
  110. }
  111. }
  112. .closeIcon {
  113. position: absolute;
  114. right: 20px;
  115. top: 34px;
  116. width: 16px;
  117. height: 16px;
  118. background: url('~@/assets/img/credit/closeIcon.png') no-repeat;
  119. background-size: cover;
  120. cursor: pointer;
  121. }
  122. }
  123. }
  124. }
  125. .connectUsMobile {
  126. .toastBox {
  127. position: fixed;
  128. width: 100vw;
  129. height: 100vh;
  130. background-color: rgba(0, 0, 0, 0.8);
  131. z-index: 888;
  132. left: 0;
  133. top: 0;
  134. display: flex;
  135. justify-content: center;
  136. align-items: center;
  137. .toastArea {
  138. position: relative;
  139. width: pxtovw(355);
  140. height: pxtovw(403);
  141. background: rgba(255, 255, 255, 1);
  142. border-radius: pxtovw(3);
  143. padding: pxtovw(30) pxtovw(30);
  144. .title {
  145. font-size: pxtovw(19);
  146. font-weight: 500;
  147. color: rgba(34, 34, 34, 1);
  148. line-height: pxtovw(26);
  149. text-align: center;
  150. }
  151. .tips {
  152. margin-top: pxtovw(8);
  153. margin-bottom: pxtovw(14);
  154. font-size: pxtovw(12);
  155. font-weight: 400;
  156. color: rgba(153, 153, 153, 1);
  157. line-height: pxtovw(17);
  158. text-align: center;
  159. }
  160. .nameCell, .phoneCell {
  161. margin-top: pxtovw(25);
  162. .label {
  163. font-size: pxtovw(14);
  164. font-weight: 500;
  165. color: rgba(25, 34, 46, 1);
  166. line-height: pxtovw(20);
  167. }
  168. input {
  169. margin-top: pxtovw(5);
  170. padding: pxtovw(10);
  171. width: pxtovw(295);
  172. height: pxtovw(48);
  173. background: rgba(255, 255, 255, 1);
  174. border-radius: pxtovw(3);
  175. border: pxtovw(1) solid rgba(221, 225, 230, 1);
  176. }
  177. }
  178. .nameCell {
  179. margin-top: pxtovw(39);
  180. }
  181. .submitBtn {
  182. margin-top: pxtovw(18);
  183. width: pxtovw(295);
  184. height: pxtovw(48);
  185. background: rgba(48, 142, 255, 1);
  186. box-shadow: 0 pxtovw(2) pxtovw(6) 0 rgba(48, 142, 255, 0.3);
  187. border-radius: pxtovw(2);
  188. display: flex;
  189. justify-content: center;
  190. align-items: center;
  191. cursor: pointer;
  192. p {
  193. font-size: pxtovw(14);
  194. font-weight: 500;
  195. color: rgba(255, 255, 255, 1);
  196. line-height: pxtovw(20);
  197. }
  198. }
  199. .closeIcon {
  200. position: absolute;
  201. right: pxtovw(20);
  202. top: pxtovw(34);
  203. width: pxtovw(16);
  204. height: pxtovw(16);
  205. background: url('~@/assets/img/credit/closeIcon.png') no-repeat;
  206. background-size: cover;
  207. cursor: pointer;
  208. }
  209. }
  210. }
  211. }
  212. </style>