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.

75 lines
1.4 KiB

  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(3)">用户支付页面</button>
  8. <button @click="goPage(3)">用户支付页面2</button>
  9. <text>代理商相关</text>
  10. <button @click="goPage(1)">代理商登录</button>
  11. <button @click="goPage(2)">代理商主页</button>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. };
  19. },
  20. methods: {
  21. goPage(num) {
  22. switch(num) {
  23. case 1:
  24. uni.navigateTo({
  25. url: '/pages/login/index'
  26. });
  27. break;
  28. case 2:
  29. uni.navigateTo({
  30. url: '/pages/index/index'
  31. });
  32. break;
  33. case 3:
  34. uni.navigateTo({
  35. url: '/pages/payment/payment'
  36. });
  37. break;
  38. case 4:
  39. uni.navigateTo({
  40. url: '/pages/merchant-login/index'
  41. });
  42. break;
  43. case 5:
  44. uni.navigateTo({
  45. url: '/pages/merchant-index/index'
  46. });
  47. break;
  48. default:
  49. uni.navigateTo({
  50. url: '/pages/login/index'
  51. });
  52. break;
  53. }
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss">
  59. .page{
  60. display: flex;
  61. flex-direction: column;
  62. justify-content: center;
  63. align-items: center;
  64. text{
  65. font-size: 38rpx;
  66. margin-top: 28rpx;
  67. margin-bottom: 10rpx;
  68. }
  69. button{
  70. margin-top: 10rpx;
  71. }
  72. }
  73. </style>