msg.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view>
  3. <navbar :iSimmersive="false" title-color="#ffffff" background="#1b43c4" :placeholder="true" title="订单提示"></navbar>
  4. <view class="wrap">
  5. <view class="top c">
  6. <image v-if="static" :src="static+'app/empty.png'"></image>
  7. </view>
  8. <view class="title c">抱歉,页面发生错误</view>
  9. <view class="intro c">{{msg}}</view>
  10. <view class="btn c">
  11. <text @click="$utils.switchTab('cart/index')">返回购物车</text>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import navbar from "@/components/navbar/navbar";
  18. export default {
  19. components: {
  20. navbar
  21. },
  22. data(){
  23. return {
  24. static: "",
  25. msg: ""
  26. };
  27. },
  28. onLoad() {
  29. this.static = this.$static;
  30. this.msg = this.$storage.get("order_msg");
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .wrap{
  36. background-color: #fff;
  37. height: 100vh;
  38. .c{
  39. width: 100%;
  40. float: left;
  41. text-align: center;
  42. }
  43. .top{
  44. margin-top: 100rpx;
  45. image {
  46. width: 300rpx;
  47. height: 300rpx;
  48. }
  49. }
  50. .title{
  51. font-size: 46rpx;
  52. color: #333;
  53. margin-top: 70rpx;
  54. }
  55. .intro{
  56. margin-top: 60rpx;
  57. color: #666;
  58. }
  59. .btn{
  60. margin-top: 90rpx;
  61. text{
  62. width: 100px;
  63. height: 60rpx;
  64. line-height: 60rpx;
  65. text-align: center;
  66. color: #fff;
  67. background-color: #1b43c4;
  68. font-size: 30rpx;
  69. display: inline-block;
  70. border-radius: 10rpx;
  71. }
  72. }
  73. }
  74. </style>