result.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="detail-page-box">
  3. <view class="detailBox">
  4. <image :src="type==1?urlDomain+'crmebimage/presets/adminImg/result2.png':urlDomain+'crmebimage/presets/adminImg/result1.png'" mode=""></image>
  5. <view class="text">
  6. {{type==1?'订单已全部核销':'暂无待核销订单'}}
  7. </view>
  8. <view class="btn-box">
  9. <view class="btn xq" @click="toDetail">
  10. {{type==1?'订单详情':'返回重新核销'}}
  11. </view>
  12. <view class="btn gzt" @click="toWork">
  13. 返回工作台
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default{
  21. data(){
  22. return{
  23. urlDomain: this.$Cache.get("imgHost"),
  24. type:'',
  25. orderNo:''
  26. }
  27. },
  28. onLoad(options) {
  29. this.type=options.type
  30. this.orderNo=options.orderNo
  31. },
  32. methods:{
  33. toWork(){
  34. uni.reLaunch({
  35. url:'/pages/admin/work/index'
  36. })
  37. },
  38. toDetail(){
  39. if(this.type==1){
  40. uni.navigateTo({
  41. url:`/pages/admin/order/detail?orderNo=${this.orderNo}`
  42. })
  43. }else{
  44. uni.navigateTo({
  45. url:`/pages/admin/cancel/index`
  46. })
  47. }
  48. }
  49. }
  50. }
  51. </script>
  52. <style scoped lang="scss">
  53. .detail-page-box{
  54. padding: 40rpx 20rpx;
  55. .detailBox{
  56. padding: 40rpx 20rpx;
  57. width: 710rpx;
  58. height: 660rpx;
  59. background: #FFFFFF;
  60. text-align: center;
  61. padding-top: 64rpx;
  62. border-radius: 14rpx;
  63. image{
  64. width: 170rpx;
  65. height: 150rpx;
  66. }
  67. .text{
  68. font-size: 36rpx;
  69. color: #333333;
  70. margin-top: 34rpx;
  71. }
  72. .btn-box{
  73. margin-top: 60rpx;
  74. .btn{
  75. width: 500rpx;
  76. height: 88rpx;
  77. border-radius: 50rpx;
  78. line-height: 88rpx;
  79. font-weight: 500;
  80. font-size: 28rpx;
  81. margin: 0 auto;
  82. }
  83. .xq{
  84. background: #2A7EFB;
  85. color: #FFFFFF;
  86. }
  87. .gzt{
  88. border: 1px solid #2A7EFB;
  89. color: #2A7EFB;
  90. margin-top: 24rpx;
  91. }
  92. }
  93. }
  94. }
  95. </style>