uniapp 当前页面传参和导航传参

点击事件正常写就行
<
view v-for="(item,index) in industry" class="fast-nav-list-title u-line-1" @click="goContent(item.catid)">

2. 导航要这样写 es6规定的

<navigator v-if="indexChild>=3" :url="`../prolist/prolist?catid=${itemChild.catid}`" class="cate-list-li no-image">

3.:class加参数要这样写

<view class="list-wrap" :class="'jumpcontent'+item.catid" v-for="(item,index) in material" :key="item.catid">

4.option接收参数可以给对象里的值赋值

data(){

    param:{
    limit:20,
    catid:-1,
    skip:0
    }

}
onLoad(options) {
this.param.catid = options.catid; // console.log(this.catid); this.getCateList(); },

例如这样

原文地址:https://www.cnblogs.com/xm666/p/15573872.html