error.vue 774 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="error-box">
  3. <view class="error-box-info">
  4. <image src="@/static/ts-icon.png" mode="scaleToFill" class="success-icon" />
  5. <view class="">{{message}}</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data(){
  12. return{
  13. message:"",
  14. }
  15. },
  16. onLoad(res) {
  17. if (res.message) {
  18. this.message = res.message
  19. }else{
  20. this.message = '网络错误!请重新扫码!'
  21. }
  22. },
  23. }
  24. </script>
  25. <style scoped lang="scss">
  26. .error-box {
  27. width: 100%;
  28. height: 100vh;
  29. .success-icon {
  30. width: 98rpx;
  31. height: 98rpx;
  32. }
  33. .error-box-info {
  34. box-sizing: border-box;
  35. padding-top: 20vh;
  36. font-size: 28rpx;
  37. font-weight: 600;
  38. text-align: center;
  39. view {
  40. margin-top: 30rpx;
  41. }
  42. }
  43. }
  44. </style>