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.

141 lines
2.9 KiB

2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <view class="page">
  3. <text>商户相关</text>
  4. <button @click="goPage(4)">商户登录</button>
  5. <button @click="goPage(5)">商户主页</button>
  6. <text>用户相关</text>
  7. <button @click="goPage(21)">用户扫码</button>
  8. <button @click="goPage(20)">用户订单/主页</button>
  9. <button @click="goPage(7)">排队信息列表</button>
  10. <button @click="goPage(8)">提现管理</button>
  11. <button @click="goPage(9)">提现详情</button>
  12. <button @click="goPage(10)">提现历史</button>
  13. <text>代理商相关</text>
  14. <button @click="goPage(1)">代理商登录</button>
  15. <button @click="goPage(2)">代理商主页</button>
  16. <button @click="goPage(11)">代理商提现</button>
  17. <button @click="goPage(12)">代理商提现详情</button>
  18. <button @click="goPage(13)">代理商提现历史</button>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. };
  26. },
  27. methods: {
  28. goPage(num) {
  29. switch(num) {
  30. case 1:
  31. uni.navigateTo({
  32. url: '/pages/login/index'
  33. });
  34. break;
  35. case 2:
  36. uni.navigateTo({
  37. url: '/pages/index/index'
  38. });
  39. break;
  40. case 3:
  41. uni.navigateTo({
  42. url: '/pages/payment/payment'
  43. });
  44. break;
  45. case 4:
  46. uni.navigateTo({
  47. url: '/pages/merchant-login/index'
  48. });
  49. break;
  50. case 5:
  51. uni.navigateTo({
  52. url: '/pages/merchant-index/index'
  53. });
  54. break;
  55. case 17:
  56. uni.navigateTo({
  57. url: '/pages/history/history'
  58. });
  59. break;
  60. case 20:
  61. uni.navigateTo({
  62. url: '/pages/user-orders/user-orders'
  63. });
  64. break;
  65. case 21:
  66. uni.navigateTo({
  67. url: '/pages/payment/payment'
  68. });
  69. break;
  70. case 6:
  71. uni.navigateTo({
  72. url: '/pages/user-orders/user-orders'
  73. });
  74. break;
  75. case 7:
  76. uni.navigateTo({
  77. url: '/pages/queuing-information/queuing-information'
  78. });
  79. break;
  80. case 8:
  81. uni.navigateTo({
  82. url: '/pages/withdrawal-management/withdrawal-management'
  83. });
  84. break;
  85. case 9:
  86. uni.navigateTo({
  87. url: '/pages/account-opened/account-opened'
  88. });
  89. break;
  90. case 10:
  91. uni.navigateTo({
  92. url: '/pages/withdrawal-history/withdrawal-history'
  93. });
  94. break;
  95. case 11:
  96. uni.navigateTo({
  97. url: '/pages/cash/cash'
  98. });
  99. break;
  100. case 12:
  101. uni.navigateTo({
  102. url: '/pages/cashdetail/cashdetail'
  103. });
  104. break;
  105. case 13:
  106. uni.navigateTo({
  107. url: '/pages/history/history'
  108. });
  109. break;
  110. default:
  111. uni.navigateTo({
  112. url: '/pages/login/index'
  113. });
  114. break;
  115. }
  116. }
  117. }
  118. }
  119. </script>
  120. <style lang="scss">
  121. .page{
  122. display: flex;
  123. flex-direction: column;
  124. justify-content: center;
  125. align-items: center;
  126. text{
  127. font-size: 38rpx;
  128. margin-top: 28rpx;
  129. margin-bottom: 10rpx;
  130. }
  131. button{
  132. margin-top: 10rpx;
  133. }
  134. }
  135. </style>