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.

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