courseExpiration.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="container-body">
  3. <text class="user" v-if="userId">#{{userId}}</text>
  4. <image src="https://cdn.his.cdwjyyh.com/minapp/course/course_expiration_img.png" mode="aspectFill"></image>
  5. <u-parse class="title" :content="msg"></u-parse>
  6. <view style="margin-bottom: 10vh;" v-show="code">状态码:{{code}}</view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. pageUrl:"",
  14. msg: '加载中...',
  15. userInfo: {},
  16. code: '',
  17. userId: ''
  18. }
  19. },
  20. onLoad(option) {
  21. this.code = option.code ||''
  22. this.msg = option.msg ? decodeURIComponent(option.msg) : '';
  23. if(uni.getStorageSync('auto_userInfo') && JSON.stringify(uni.getStorageSync('auto_userInfo'))!='{}') {
  24. let user = JSON.parse(uni.getStorageSync('auto_userInfo'))
  25. this.userId = user.userId
  26. } else {
  27. this.user = {}
  28. this.userId = ''
  29. }
  30. },
  31. }
  32. </script>
  33. <style scoped lang="scss">
  34. .container-body {
  35. background-color: #fff;
  36. position: relative;
  37. justify-content: center;
  38. font-family: PingFang SC, PingFang SC;
  39. font-weight: 400;
  40. font-size: 32rpx;
  41. color: #757575;
  42. line-height: 48rpx;
  43. text-align: center;
  44. height: 100vh;
  45. width: 100vw;
  46. display: flex;
  47. flex-direction: column;
  48. align-items: center;
  49. justify-content: center;
  50. .title {
  51. font-weight: bold;
  52. font-size: 40rpx;
  53. color: #1E2F67;
  54. margin-bottom: 24rpx;
  55. padding: 0 60rpx;
  56. }
  57. image {
  58. width: 428rpx;
  59. height: 360rpx;
  60. margin-bottom: 30rpx;
  61. }
  62. .user {
  63. position: absolute;
  64. right: 24rpx;
  65. top: 24rpx;
  66. }
  67. }
  68. </style>