<script>
export default {
onLaunch: function (options) {
console.log('app onLoad');
console.log(options);
var logs = uni.getStorageSync('logs') || [];
logs.unshift(Date.now());
uni.setStorageSync('logs', logs);
},
onShow:function(options){
console.log('app onShow');
console.log(options);
const {path,query,scene} = options;
console.log(scene);
//query
let sceneurl = decodeURIComponent(query.scene);
console.log('sceneurl ' + sceneurl);
//let sceneurl = decodeURIComponent(tempscene);
if(sceneurl && sceneurl.toString().indexOf("?") != -1){
console.log('inner');
uni.navigateTo({
url: path + sceneurl
});
}
},
globalData: {},
methods: {}
};
</script>
<style>
@import "./app.css";
</style>
小程序通过场景值跳转到相应的界面Vue
微信公众号

手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_2383.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
