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.

144 lines
3.1 KiB

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