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

87 lines
1.8 KiB

5 months ago
5 months ago
5 months ago
5 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 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.balance" :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: 0,
  22. records: [
  23. // {
  24. // type: 0,
  25. // money: 100,
  26. // createTime: '2024-04-02 20:00',
  27. // title: "佣金提现",
  28. // },
  29. // {
  30. // type: 0,
  31. // money: 100,
  32. // createTime: '2024-04-02 20:00',
  33. // title: "佣金提现",
  34. // },
  35. // {
  36. // type: 0,
  37. // money: 100,
  38. // createTime: '2024-04-02 20:00',
  39. // title: "佣金提现",
  40. // },
  41. ]
  42. },
  43. x: ['+', '-', '+', '+'],
  44. status: 0,
  45. }
  46. },
  47. onLoad(e) {
  48. this.status = e.status
  49. },
  50. onShow() {
  51. this.getAgentFlow()
  52. },
  53. methods: {
  54. leftClick() { //返回钱包
  55. uni.navigateBack(-1)
  56. },
  57. getAgentFlow() { //获取流水记录(余额记录 提现记录 佣金记录)
  58. let type = this.status;
  59. this.$api('withdrawalLog', {
  60. type
  61. }, res => {
  62. if (res.code == 200) {
  63. this.agentFlow = res.result
  64. }
  65. })
  66. },
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. .running-water {
  72. width: 750rpx;
  73. background: #F5F5F5;
  74. margin: 0 auto;
  75. min-height: 100vh;
  76. .tab-box {
  77. margin: 20rpx;
  78. background-color: #fff;
  79. border-radius: 20rpx;
  80. overflow: hidden;
  81. }
  82. }
  83. </style>