index.vue 1.1 KB

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