您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

card-result.vue 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="oderPage">
  3. <view class="content">
  4. <image :src="`${$imgUrl}ETCcancellation/bg1.png`" mode=""></image>
  5. <view class="title">
  6. 办理成功
  7. </view>
  8. <view class="">
  9. 您办理的{{state.successTip}}业务已完成
  10. </view>
  11. </view>
  12. </view>
  13. <button class="submit" @click="submit">返回</button>
  14. </template>
  15. <script setup lang="ts">
  16. import { reactive } from "vue"
  17. import {
  18. onLoad
  19. } from "@dcloudio/uni-app";
  20. const state = reactive({
  21. successTip: "" //成功提示
  22. });
  23. onLoad((option) => {
  24. console.log("option.successTip", option.successTip)
  25. state.successTip = option.successTip
  26. })
  27. const submit = () => {
  28. let routes = getCurrentPages();
  29. uni.navigateBack({
  30. delta: routes.length - 2
  31. });
  32. }
  33. </script>
  34. <style>
  35. page {
  36. width: 100%;
  37. height: 100%;
  38. display: flex;
  39. flex-direction: column;
  40. }
  41. </style>
  42. <style lang="scss" scoped>
  43. .oderPage {
  44. flex: 1;
  45. width: 100%;
  46. .content {
  47. display: flex;
  48. flex-direction: column;
  49. justify-content: center;
  50. align-items: center;
  51. padding: 130rpx;
  52. image {
  53. width: 390rpx;
  54. height: 307rpx;
  55. margin-bottom: 20rpx;
  56. }
  57. .title {
  58. font-size: 38rpx;
  59. font-weight: 600;
  60. font-size: 40rpx;
  61. font-family: Microsoft YaHei UI;
  62. color: #2A2A2A;
  63. }
  64. view {
  65. margin: 15rpx 0;
  66. font-size: 28rpx;
  67. font-family: Microsoft YaHei UI;
  68. font-weight: 400;
  69. color: #717171;
  70. }
  71. }
  72. }
  73. .submit {
  74. background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
  75. width: 670rpx;
  76. height: 80rpx;
  77. line-height: 80rpx;
  78. font-size: 32rpx;
  79. color: #fff;
  80. border-radius: 100rpx;
  81. position: fixed;
  82. bottom: 60rpx;
  83. left: 50%;
  84. transform: translate(-50%);
  85. }
  86. </style>