excessiveDce.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <!--时间相差过大-->
  3. <view class="excessive">
  4. <view class="top-exc">
  5. <image src="@/static/images/com/empty.png"></image>
  6. <view class="main-tips">
  7. <view>你的手机时间与本地标准时间相差过大</view>
  8. <view>本地标准时间为{{ serverTime }}</view>
  9. <view>你的手机时间为{{ localTime }}</view>
  10. </view>
  11. </view>
  12. <view class="secondary-tips">
  13. <view>你可以进行一下尝试:</view>
  14. <view>在手机系统设置-通用-日期与时间里设置为自动</view>
  15. <view>或手动调整时间与本地最新时间一致</view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'excessiveDce',
  22. props: {
  23. serverTime: String, //yyyy-mm-dd hh:MM:ss 服务器时间
  24. localTime: String, //yyyy-mm-dd hh:MM:ss 本地时间
  25. },
  26. };
  27. </script>
  28. <style scoped lang="scss">
  29. .excessive {
  30. background-color: #fff;
  31. padding: 20rpx;
  32. border-radius: 6px;
  33. .top-exc {
  34. display: flex;
  35. flex-direction: column;
  36. align-items: center;
  37. .main-tips {
  38. text-align: center;
  39. line-height: 22px;
  40. font-size: 15px;
  41. color: $u-main-color;
  42. margin: 20rpx 0;
  43. }
  44. }
  45. .secondary-tips {
  46. font-size: 14px;
  47. color: $u-tips-color;
  48. }
  49. }
  50. </style>