详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

  1. <template>
  2. <view>
  3. <view v-if="ifpaySuccess==1" class="lf-flex lf-flex-column lf-row-round" style="margin-top: 100px;">
  4. <view>
  5. <image src="@/static/pay-success.png" mode="widthFix" style="height: 100px;width: 100px;"></image>
  6. </view>
  7. <view class="lf-m-t-40 lf-font-bold lf-font-42 lf-color-primary">订单支付成功</view>
  8. </view>
  9. <view v-else class="lf-flex lf-flex-column lf-row-round" style="margin-top: 100px;">
  10. <view>
  11. <image src="@/static/pay-fail.png" mode="widthFix" style="height: 100px;width: 100px;"></image>
  12. </view>
  13. <view class="lf-m-t-40 lf-font-bold lf-color-black lf-font-42 lf-color-333">订单支付失败</view>
  14. </view>
  15. <view class="margin-self flex flex-direction justify-around">
  16. <view class="lf-p-r-32 lf-p-l-32 lf-m-t-40">
  17. <button class="cu-btn lf-bg-white" style="border: 1px solid #E21196;" @tap="$url('/pages/index/index',{type: 'switch'})">
  18. <text class="lf-font-32 lf-color-primary">返回首页</text>
  19. </button>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. ifpaySuccess: -1
  29. }
  30. },
  31. onLoad(e) {
  32. this.ifpaySuccess = e.ifSuccess
  33. }
  34. }
  35. </script>
  36. <style scoped>
  37. .margin-self {
  38. margin-top: 100rpx;
  39. }
  40. .cu-btn {
  41. border-radius: 10rpx;
  42. background-color: #E21196;
  43. height: 82rpx;
  44. line-height: 82rpx;
  45. text-align: center;
  46. }
  47. </style>