uni-app: Implementation of click event (click information, realize page jump)

style:

Start page:

Page after clicking:

 

 Path display:

 Core code:

Front-end click event:

@tap='test'

 The page jump method writes:

test(){
                uni.navigateTo({
                    url:'../start_detail/start_detail?order_number=' + this.result
                })
            },

Full code:

<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>

 

Guess you like

Origin blog.csdn.net/weixin_46001736/article/details/131834575