suecss.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div class="img">
  3. <div style="width: 100%;height: 200px;"></div>
  4. <div style="text-align: center;">
  5. <image src="../../static/cg.png" style=" height: 150px; width: 150px; background-size: 100%,100%;"></image>
  6. </div>
  7. <br>
  8. <br>
  9. <br>
  10. <div style="text-align: center;">
  11. <h2 style="color: #FFFFFF;">成功 !</h2>
  12. </div>
  13. <br>
  14. <div style="text-align: center;">
  15. <span style="color: #FFFFFF;">您已成功更改密码,&nbsp;登录时请用新密码</span>
  16. </div>
  17. <br>
  18. <br>
  19. <br>
  20. <br>
  21. <button style="background-color: #FFFFFF; width: 50%;" @click="log()">马上登录</button>
  22. <div style="width: 100%;height: 150px;"></div>
  23. </div>
  24. </template>
  25. <script>
  26. import api from "@/api/api";
  27. export default {
  28. data() {
  29. return {
  30. }
  31. },
  32. created() {
  33. api.logout().then(res=>{
  34. uni.clearStorageSync()
  35. })
  36. },
  37. methods:{
  38. log:function(){
  39. window.location.reload();
  40. }
  41. }
  42. }
  43. </script>
  44. <style>
  45. .img{
  46. background-color: #0077AA;
  47. /* background: url(../../static/suc.jpeg) no-repeat;
  48. background-size:100% 100%; */
  49. }
  50. </style>