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