paySuccess.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view class="content">
  3. <text class="success-icon iconfont iconroundcheck"></text>
  4. <text class="tit">支付成功</text>
  5. <view class="btn-group">
  6. <navigator :url="'/pages/order/orderDetail?id='+orderId" open-type="redirect" class="mix-btn" v-if="type == 0">查看订单</navigator>
  7. <navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. orderId:'',
  16. type:0,
  17. }
  18. },
  19. onLoad(opt) {
  20. if(opt.type) {
  21. this.type = opt.type
  22. }
  23. // 保存订单号
  24. this.orderId = opt.orderid;
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style lang='scss'>
  31. .content{
  32. display: flex;
  33. flex-direction: column;
  34. justify-content: center;
  35. align-items: center;
  36. }
  37. .success-icon{
  38. font-size: 160upx;
  39. color: #5dbc7c;
  40. margin-top: 100upx;
  41. }
  42. .tit{
  43. font-size: 38upx;
  44. color: #303133;
  45. }
  46. .btn-group{
  47. padding-top: 100upx;
  48. }
  49. .mix-btn {
  50. margin-top: 30upx;
  51. display: flex;
  52. align-items: center;
  53. justify-content: center;
  54. width: 600upx;
  55. height: 80upx;
  56. font-size: $font-lg;
  57. color: #fff;
  58. background-color: $base-color;
  59. border-radius: 10upx;
  60. &.hollow{
  61. background: #fff;
  62. color: #303133;
  63. border: 1px solid #ccc;
  64. }
  65. }
  66. </style>