| <template> | 
|     <view class="success"> | 
|         <image src="/static/icon/ic_success@2x.png" mode="widthFix"></image> | 
|         <text class="success-a">发单成功</text> | 
|         <text class="success-b">请等待接单</text> | 
|         <view class="success-footer"> | 
|             <view class="success-footer-btn" @click="toIndex">回到首页</view> | 
|             <view style="width: 20rpx; height: 100%;"></view> | 
|             <view class="success-footer-btn1" @click="toDesc">查看详情</view> | 
|         </view> | 
|     </view> | 
| </template> | 
|   | 
| <script> | 
|     export default { | 
|         data() { | 
|             return { | 
|                 orderId: null | 
|             }; | 
|         }, | 
|         onLoad(option) { | 
|             this.orderId = option.orderId | 
|         }, | 
|         methods: { | 
|             toIndex() { | 
|                 uni.switchTab({ | 
|                     url: '/pages/index/index' | 
|                 }); | 
|             }, | 
|             toDesc() { | 
|                 uni.navigateTo({ | 
|                     url: `/pages/order-details/order-details?id=${this.orderId}` | 
|                 }) | 
|             } | 
|         } | 
|     } | 
| </script> | 
|   | 
| <style lang="scss" scoped> | 
|     .success { | 
|         width: 100%; | 
|         display: flex; | 
|         flex-direction: column; | 
|         align-items: center; | 
|         justify-content: center; | 
|         image { | 
|             width: 180rpx; | 
|             height: 180rpx; | 
|             margin-top: 180rpx; | 
|             margin-bottom: 40rpx; | 
|         } | 
|         .success-a { | 
|             font-weight: 500; | 
|             font-size: 36rpx; | 
|             color: #111111; | 
|             margin-bottom: 20rpx; | 
|         } | 
|         .success-b { | 
|             font-weight: 400; | 
|             font-size: 26rpx; | 
|             color: #999999; | 
|             margin-bottom: 94rpx; | 
|         } | 
|         .success-footer { | 
|             display: flex; | 
|             align-items: center; | 
|             .success-footer-btn { | 
|                 width: 200rpx; | 
|                 height: 72rpx; | 
|                 line-height: 72rpx; | 
|                 text-align: center; | 
|                 border-radius: 36rpx; | 
|                 border: 1rpx solid #00BC12; | 
|                 font-weight: 400; | 
|                 font-size: 28rpx; | 
|                 color: #00BC12; | 
|             } | 
|             .success-footer-btn1 { | 
|                 width: 200rpx; | 
|                 height: 72rpx; | 
|                 line-height: 72rpx; | 
|                 text-align: center; | 
|                 background: #00BC12; | 
|                 border-radius: 36rpx; | 
|                 font-weight: 400; | 
|                 font-size: 28rpx; | 
|                 color: #FFFFFF; | 
|             } | 
|         } | 
|     } | 
| </style> |