success.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view class="success">
  3. <image src="../../static/images/success.png" mode=""></image>
  4. <view class="tip">
  5. 发布成功!
  6. </view>
  7. <view class="text">
  8. 恭喜您创建活动并发布完成,后期您将收到发布
  9. 内容是否通过审核。
  10. </view>
  11. <view class="back" @click="back">
  12. 返回首页
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. }
  21. },
  22. onLoad() {
  23. if(this.is_weixin()){
  24. this.navTitle()
  25. }
  26. },
  27. methods: {
  28. //判断是否是微信
  29. is_weixin() {
  30. let ua = navigator.userAgent.toLowerCase();
  31. return ua.indexOf('micromessenger') != -1;
  32. },
  33. navTitle() {
  34. let navTitle = document.getElementsByTagName('uni-page-head');
  35. navTitle[0].style.display = 'none'
  36. },
  37. back() {
  38. uni.reLaunch({
  39. url: '../index/index'
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .success {
  47. text-align: center;
  48. image {
  49. width: 90px;
  50. height: 90px;
  51. margin: 0 auto;
  52. margin-top: 30%;
  53. }
  54. .tip {
  55. font-size: 12px;
  56. font-family: PingFang SC;
  57. font-weight: 400;
  58. line-height: 20px;
  59. color: #282828;
  60. margin-top: 5px;
  61. opacity: 1;
  62. }
  63. .text {
  64. font-size: 14px;
  65. font-family: PingFang SC;
  66. font-weight: 400;
  67. line-height: 20px;
  68. margin: 0 40px;
  69. margin-top: 22px;
  70. color: #6C6C6C;
  71. opacity: 1;
  72. text-align: left;
  73. }
  74. .back {
  75. width: 108px;
  76. height: 35px;
  77. line-height: 35px;
  78. margin: 0 auto;
  79. margin-top: 50px;
  80. border: 1px solid #707070;
  81. opacity: 1;
  82. border-radius: 21px;
  83. }
  84. }
  85. </style>