样式:
开始页面:
点击后的页面:
路径展示:
核心代码:
前端点击事件:
@tap='test'
页面跳转方法写入:
test(){
uni.navigateTo({
url:'../start_detail/start_detail?order_number=' + this.result
})
},
完整代码:
<template>
<view>
<view @tap='test'>点我</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
test(){
uni.navigateTo({
url:'../start_detail/start_detail?order_number=' + this.result
})
},
}
}
</script>
<style lang="scss">
</style>