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.

65 lines
1.2 KiB

  1. <template>
  2. <view class="page">
  3. <text>商户相关</text>
  4. <button @click="goPage(0)">商户登录</button>
  5. <button @click="goPage(0)">商户主页</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. default:
  39. uni.navigateTo({
  40. url: '/pages/login/index'
  41. });
  42. break;
  43. }
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss">
  49. .page{
  50. display: flex;
  51. flex-direction: column;
  52. justify-content: center;
  53. align-items: center;
  54. text{
  55. font-size: 38rpx;
  56. margin-top: 28rpx;
  57. margin-bottom: 10rpx;
  58. }
  59. button{
  60. margin-top: 10rpx;
  61. }
  62. }
  63. </style>