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.

80 lines
1.5 KiB

10 months ago
  1. <template>
  2. <view class="successTransaction">
  3. <u-navbar :safeAreaInsetTop="false" :placeholder="true" @leftClick="toHome">
  4. </u-navbar>
  5. <view class="success">
  6. <view class="text">
  7. <img src="/static/46660.png" alt="" style="margin-right: 10px;" />
  8. <text>{{ $t('page.successTransaction.successTransaction') }}</text>
  9. </view>
  10. <button class="btn" @click="toHome">{{ $t('toHome') }}</button>
  11. </view>
  12. <productList :list="list" />
  13. </view>
  14. </template>
  15. <script>
  16. import productList from '@/components/product/productList.vue'
  17. export default {
  18. components: {
  19. productList,
  20. },
  21. data() {
  22. return {
  23. list: [],
  24. }
  25. },
  26. onShow(){
  27. this.getProduct();
  28. },
  29. methods: {
  30. toHome() {
  31. uni.switchTab({
  32. url: '/pages/home/home'
  33. })
  34. },
  35. getProduct(){
  36. this.request('getShopPage', {},
  37. {
  38. "pageSize":20, 
  39. "currentPage": 0
  40. }
  41. )
  42. .then(res => {
  43. this.list = parseList(res.result.records);
  44. })
  45. },
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .successTransaction {
  51. .success {
  52. display: flex;
  53. flex-direction: column;
  54. background-color: #fff;
  55. margin: 10px;
  56. border-radius: 10px;
  57. justify-content: center;
  58. align-items: center;
  59. padding: 20px;
  60. .text {
  61. display: flex;
  62. justify-content: center;
  63. align-items: center;
  64. margin-bottom: 20px;
  65. font-size: 20px;
  66. }
  67. .btn {
  68. height: 30px;
  69. line-height: 30px;
  70. font-size: 25rpx;
  71. background-color: #fff;
  72. border-radius: 15px;
  73. border: 1px solid #00000033;
  74. }
  75. }
  76. }
  77. </style>