index.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view>
  3. <view class="result">
  4. <view class="image-wrap"><image class="image" src="../static/offline-result.png"></image></view>
  5. <view class="text">{{$t(`支付成功`)}}</view>
  6. </view>
  7. <navigator class="link" url="/pages/index/index" open-type="switchTab">{{$t(`进入商城`)}}</navigator>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. onLoad(options) {
  13. let site_name = options.site_name || '';
  14. if (site_name) {
  15. uni.setNavigationBarTitle({
  16. title: site_name
  17. });
  18. }
  19. }
  20. };
  21. </script>
  22. <style>
  23. page {
  24. background-color: #fff;
  25. }
  26. </style>
  27. <style lang="scss" scoped>
  28. .result {
  29. margin-top: 200rpx;
  30. .image-wrap {
  31. width: 267rpx;
  32. height: 223rpx;
  33. margin: 0 auto;
  34. }
  35. .image {
  36. width: 100%;
  37. height: 100%;
  38. }
  39. .text {
  40. margin-top: 46rpx;
  41. font-size: 34rpx;
  42. text-align: center;
  43. color: #282828;
  44. }
  45. }
  46. .link {
  47. width: 560rpx;
  48. height: 86rpx;
  49. border: 1rpx solid #F19D2F;
  50. border-radius: 43rpx;
  51. margin: 90rpx auto 0;
  52. font-size: 30rpx;
  53. line-height: 86rpx;
  54. text-align: center;
  55. color: #F19D2F;
  56. }
  57. </style>