upgrade.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="flex">
  3. <image :src="image" mode="widthFix" style="width: 450rpx;margin-top: 103rpx"></image>
  4. <view class="flex_title">
  5. 系统升级中...
  6. </view>
  7. <view class="flex_name">
  8. 我们正在对平台进行升级,升级期间暂无法访问,带来不便,敬请谅解。 预计
  9. <text style="font-weight: bold;">{{ format(end_time * 1000) }}</text>恢复正常使用。</view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. image: 'https://api.admin.jiuweiyun.cn/uploads/images/rule/202205/06/rule_1651834063_mAcayDv42f.png',
  17. end_time: ''
  18. }
  19. },
  20. onLoad(option){
  21. this.end_time = option.end_time
  22. },
  23. methods: {
  24. add(m){
  25. return m<10?'0'+ m:m
  26. },
  27. format(end_time){
  28. var time = new Date(end_time);
  29. var y = time.getFullYear();
  30. var m = time.getMonth()+1;
  31. var d = time.getDate();
  32. var h = time.getHours();
  33. var mm = time.getMinutes();
  34. if (mm > 0) {h+=1}
  35. return m +'月'+ d +'日'+ h + '点'
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss">
  41. page {
  42. background-color: #fff;
  43. }
  44. .flex {
  45. display: flex;
  46. flex-direction: column;
  47. align-items: center;
  48. padding: 0 34rpx;
  49. &_title {
  50. font-size: 56rpx;
  51. font-weight: bold;
  52. color: #FB231F;
  53. margin: 76rpx 0 24rpx 0;
  54. }
  55. &_name {
  56. font-size: 28rpx;
  57. color: #333333;
  58. line-height: 48rpx;
  59. }
  60. }
  61. </style>