酒店桌布为微信小程序
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.

86 lines
1.7 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="running-water">
  3. <navbar :title="title[status]" leftClick @leftClick="leftClick" />
  4. <view class="tab-box">
  5. <view class="tab-box1" v-if="agentFlow && agentFlow.total">
  6. <uv-cell center border :title="item.title" v-for="(item, index) in agentFlow.records"
  7. :value="x[item.type] + item.money" :label="item.createTime" />
  8. </view>
  9. <view style="padding: 100rpx 0;" v-else>
  10. <uv-empty mode="history" textSize="28rpx" iconSize="100rpx" />
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. title: ['余额记录', '提现记录', '佣金记录'],
  20. agentFlow: {
  21. total: 1,
  22. records: [{
  23. type: 0,
  24. money: 100,
  25. createTime: '2024-04-02 20:00',
  26. title: "佣金提现",
  27. },
  28. {
  29. type: 0,
  30. money: 100,
  31. createTime: '2024-04-02 20:00',
  32. title: "佣金提现",
  33. },
  34. {
  35. type: 0,
  36. money: 100,
  37. createTime: '2024-04-02 20:00',
  38. title: "佣金提现",
  39. },
  40. ]
  41. },
  42. x: ['+', '-', '-', '+'],
  43. status: 0,
  44. }
  45. },
  46. onLoad(e) {
  47. this.status = e.status
  48. },
  49. onShow() {
  50. this.getAgentFlow()
  51. },
  52. methods: {
  53. leftClick() { //返回钱包
  54. uni.navigateBack(-1)
  55. },
  56. getAgentFlow() { //获取流水记录(余额记录 提现记录 佣金记录)
  57. let type = this.status;
  58. this.$api('withdrawalLog', {
  59. type
  60. }, res => {
  61. if (res.code == 200) {
  62. this.agentFlow = res.result
  63. }
  64. })
  65. },
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .running-water {
  71. width: 750rpx;
  72. background: #F5F5F5;
  73. margin: 0 auto;
  74. min-height: 100vh;
  75. .tab-box {
  76. margin: 20rpx;
  77. background-color: #fff;
  78. border-radius: 20rpx;
  79. overflow: hidden;
  80. }
  81. }
  82. </style>