success.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="container">
  3. <view class="re-succ-box">
  4. <image class="re-succ-img" src="https://zhibo.liuniu946.com/img/success.png"></image>
  5. <view class="re-succ-tit">申请成功</view>
  6. <view class="re-succ-btn" @click="goBack()">返回首页</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. import { userinfo } from '@/api/user.js';
  12. export default {
  13. data () {
  14. return {
  15. // userInfo
  16. }
  17. },
  18. onLoad() {
  19. this.loadDate()
  20. // uni.setStorageSync('mystore',this.userInfo.store_info.id);
  21. },
  22. methods: {
  23. loadDate(){
  24. userinfo({}).then(res=>{
  25. console.log(123,res.data.store_info.id)
  26. uni.setStorageSync('mystore',res.data.store_info.id);
  27. })
  28. },
  29. goBack() {
  30. uni.switchTab({
  31. url: '/pages/index/index'
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. page {
  39. height: 100%;
  40. }
  41. .container {
  42. height: 100%;
  43. background: #FFFFFF;
  44. .line-top {
  45. width: 750rpx;
  46. height: 20rpx;
  47. background: #F5F5F5;
  48. }
  49. .re-succ-box {
  50. padding-top: 170rpx;
  51. display: flex;
  52. flex-direction: column;
  53. align-items: center;
  54. .re-succ-img {
  55. width: 362rpx;
  56. height: 267rpx;
  57. display: block;
  58. }
  59. .re-succ-tit {
  60. font-size: 36rpx;
  61. font-family: PingFang SC;
  62. font-weight: 500;
  63. color: #333333;
  64. margin-left: 22rpx;
  65. }
  66. .re-succ-btn {
  67. margin-top: 80rpx;
  68. width: 464rpx;
  69. height: 77rpx;
  70. background: linear-gradient(180deg, #FD4646, #FF3535);
  71. border-radius: 38rpx;
  72. font-size: 34rpx;
  73. font-family: PingFang SC;
  74. font-weight: bold;
  75. color: #FFFFFF;
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. }
  80. }
  81. }
  82. </style>