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.

101 lines
1.9 KiB

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(20)">用户订单/主页</button>
  8. <button @click="goPage(21)">用户排队信息</button>
  9. <text>代理商相关</text>
  10. <button @click="goPage(1)">代理商登录</button>
  11. <button @click="goPage(2)">代理商主页</button>
  12. <button @click="goPage(6)">代理商提现</button>
  13. <button @click="goPage(17)">代理商提现历史</button>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. };
  21. },
  22. methods: {
  23. goPage(num) {
  24. switch(num) {
  25. case 1:
  26. uni.navigateTo({
  27. url: '/pages/login/index'
  28. });
  29. break;
  30. case 2:
  31. uni.navigateTo({
  32. url: '/pages/index/index'
  33. });
  34. break;
  35. case 3:
  36. uni.navigateTo({
  37. url: '/pages/payment/payment'
  38. });
  39. break;
  40. case 4:
  41. uni.navigateTo({
  42. url: '/pages/merchant-login/index'
  43. });
  44. break;
  45. case 5:
  46. uni.navigateTo({
  47. url: '/pages/merchant-index/index'
  48. });
  49. break;
  50. case 6:
  51. uni.navigateTo({
  52. url: '/pages/cash/cash'
  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/queuing-information/queuing-information'
  68. });
  69. break;
  70. default:
  71. uni.navigateTo({
  72. url: '/pages/login/index'
  73. });
  74. break;
  75. }
  76. }
  77. }
  78. }
  79. </script>
  80. <style lang="scss">
  81. .page{
  82. display: flex;
  83. flex-direction: column;
  84. justify-content: center;
  85. align-items: center;
  86. text{
  87. font-size: 38rpx;
  88. margin-top: 28rpx;
  89. margin-bottom: 10rpx;
  90. }
  91. button{
  92. margin-top: 10rpx;
  93. }
  94. }
  95. </style>