ios也可以获得参数
This commit is contained in:
11
App.vue
11
App.vue
@@ -193,17 +193,20 @@
|
|||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// setTimeout(function(){
|
setTimeout(function(){
|
||||||
var args = plus.runtime.arguments;
|
var args = plus.runtime.arguments;
|
||||||
if (args) {
|
if (args) {
|
||||||
// 处理args参数,如直达到某新页面等
|
// 处理args参数,如直达到某新页面等
|
||||||
console.log(plus.runtime.arguments)
|
console.log(args)
|
||||||
}
|
}
|
||||||
// },3000)
|
},300)
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
onHide: function(){},
|
onHide: function(){
|
||||||
|
plus.runtime.arguments = ''
|
||||||
|
console.log('清空')
|
||||||
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
store.commit('setUserInfo', {
|
store.commit('setUserInfo', {
|
||||||
'playFlag': true
|
'playFlag': true
|
||||||
|
|||||||
16
pages.json
16
pages.json
@@ -561,13 +561,13 @@
|
|||||||
"text": "我"
|
"text": "我"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"condition": { //模式配置,仅开发期间生效
|
|
||||||
"current": 0, //当前激活的模式(list 的索引项)
|
|
||||||
"list": [{
|
|
||||||
"name": "", //模式名称
|
|
||||||
"path": "", //启动页面,必选
|
|
||||||
"query": "" //启动参数,在页面的onLoad函数里面得到
|
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
|
// "condition": { //模式配置,仅开发期间生效
|
||||||
|
// "current": 0, //当前激活的模式(list 的索引项)
|
||||||
|
// "list": [{
|
||||||
|
// "name": "", //模式名称
|
||||||
|
// "path": "", //启动页面,必选
|
||||||
|
// "query": "" //启动参数,在页面的onLoad函数里面得到
|
||||||
|
// }]
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user