success.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="container cashier">
  3. <cu-custom :navbar-data='nvabarData'></cu-custom>
  4. <view class="container-cash clearfix" :style="{marginTop:CustomBar+'px'}">
  5. <view class="container-wrapper">
  6. <view class="cash-icon">
  7. <image src="https://admin-b.caimei365.com/userfiles/1/images/photo/2020/05/%E8%AE%A2%E5%8D%95%E6%94%AF%E4%BB%98%E6%88%90%E5%8A%9F%402x.png" mode=""></image>
  8. </view>
  9. <view class="cash-text">
  10. <text>订单提交并支付成功</text>
  11. </view>
  12. <view class="cash-btn">
  13. <view class="btn btn-open" @click="this.$api.navigateTo('/pages/user/order/order-details?type=confim&orderID='+orderID)">查看订单</view>
  14. <view class="btn btn-home" @click="this.$api.switchTabTo('/pages/tabBar/home/home')">继续采购</view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default{
  22. data(){
  23. return{
  24. orderID:'',
  25. nvabarData: { //顶部自定义导航
  26. haveBack:false,
  27. showCapsule:1, // 是否显示左上角图标 1表示显示 0表示不显示,
  28. showSearch: 0,
  29. title: '收银台', // 导航栏 中间的标题
  30. textLeft:this.$store.state.isIphone
  31. },
  32. isIphoneX:this.$store.state.isIphoneX,
  33. CustomBar:this.CustomBar,// 顶部导航栏高度
  34. }
  35. },
  36. onLoad(option) {
  37. this.initData(option)
  38. },
  39. methods:{
  40. initData(e){
  41. let data = JSON.parse(e.data);
  42. this.orderID = data.data.orderID
  43. }
  44. },
  45. onShow() {
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. page{
  51. height: auto !important;
  52. }
  53. .container-cash{
  54. width: 100%;
  55. .container-wrapper{
  56. width:662rpx;
  57. margin: 0 auto;
  58. margin-top: 120rpx;
  59. display: flex;
  60. flex-direction: column;
  61. align-items: center;
  62. .cash-icon{
  63. width: 348rpx;
  64. height: 348rpx;
  65. margin-top: 120rpx;
  66. image{
  67. width: 348rpx;
  68. height: 348rpx;
  69. }
  70. }
  71. .cash-text{
  72. font-size: $font-size-40;
  73. color: $color-system;
  74. line-height: 104rpx;
  75. }
  76. .cash-btn{
  77. margin-top: 120rpx;
  78. .btn{
  79. width: 256rpx;
  80. height: 80rpx;
  81. border-radius: 40rpx;
  82. line-height: 80rpx;
  83. text-align: center;
  84. font-size: $font-size-26;
  85. color: #FFFFFF;
  86. margin: 12rpx 0;
  87. &.btn-open{
  88. background:linear-gradient(315deg,rgba(0,212,150,1) 0%,rgba(126,243,174,1) 100%);
  89. }
  90. &.btn-home{
  91. background:$btn-confirm;
  92. }
  93. }
  94. }
  95. }
  96. }
  97. </style>