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.
66 lines
1.2 KiB
66 lines
1.2 KiB
<template>
|
|
<view class="page">
|
|
<text>商户相关</text>
|
|
<button @click="goPage(0)">商户登录</button>
|
|
<button @click="goPage(0)">商户主页</button>
|
|
<text>用户相关</text>
|
|
<button @click="goPage(3)">用户支付页面</button>
|
|
<button @click="goPage(3)">用户支付页面2</button>
|
|
<text>代理商相关</text>
|
|
<button @click="goPage(1)">代理商登录</button>
|
|
<button @click="goPage(2)">代理商主页</button>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
},
|
|
methods: {
|
|
goPage(num) {
|
|
switch(num) {
|
|
case 1:
|
|
uni.navigateTo({
|
|
url: '/pages/login/index'
|
|
});
|
|
break;
|
|
case 2:
|
|
uni.navigateTo({
|
|
url: '/pages/index/index'
|
|
});
|
|
break;
|
|
case 3:
|
|
uni.navigateTo({
|
|
url: '/pages/payment/payment'
|
|
});
|
|
break;
|
|
default:
|
|
uni.navigateTo({
|
|
url: '/pages/login/index'
|
|
});
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.page{
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text{
|
|
font-size: 38rpx;
|
|
margin-top: 28rpx;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
button{
|
|
margin-top: 10rpx;
|
|
}
|
|
}
|
|
</style>
|