success.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="page" :style="{'min-height':(h)+'px','padding-top':mt+'px'}">
  3. <c-nav-bar title="核销结果"></c-nav-bar>
  4. <image src="../../static/heSuccess.png"></image>
  5. <view class="tip"><text>{{boatNo}}</text> 发船成功</view>
  6. <view class="price">
  7. <text>¥</text>
  8. <text>{{price}}</text>
  9. </view>
  10. <view class="btn" @tap="goHome()">返回首页</view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. boatNo:'',
  18. price:''
  19. //merchantType:uni.getStorageSync('merchantType');
  20. }
  21. },
  22. onLoad(opt) {
  23. this.boatNo=opt.boatNo;
  24. this.price=opt.price;
  25. },
  26. methods: {
  27. goHome(){
  28. uni.navigateTo({
  29. url: '/pagesHouse/home/index'
  30. })
  31. }
  32. }
  33. }
  34. </script>
  35. <style scoped lang="less">
  36. .page{
  37. text-align: center;
  38. box-sizing: border-box;
  39. }
  40. image{
  41. width: 320rpx;
  42. height: 200rpx;
  43. margin: 80rpx 0 24rpx;
  44. }
  45. .tip{
  46. font-size: 32rpx;
  47. color: #111;
  48. text{
  49. margin-right:12rpx;
  50. }
  51. }
  52. .price{
  53. margin: 28rpx 0 110rpx;
  54. text{
  55. &:first-child{
  56. font-size: 36rpx;
  57. }
  58. &:last-child{
  59. font-size: 48rpx;
  60. font-weight: bold;
  61. }
  62. }
  63. }
  64. .btn{
  65. width: 610rpx;
  66. height: 88rpx;
  67. line-height: 88rpx;
  68. background-color: #007A69;
  69. color: #fff;
  70. font-size: 32rpx;
  71. border-radius: 46rpx;
  72. margin: 0 auto;
  73. }
  74. </style>