熱門服務
眾多企業的選擇

<template>
<view>
<u-swiper :list="banner" title="true" :title-style="abc">u-swiper>
view>
template>
<script>
export default {
data() {
return {
abc:{
'background-color':'rgba(0, 0, 0, 0)',
},
}
}
}
script>
<style>
style>
let routes = getCurrentPages(); // 獲取當前打開過的頁面路由數組
let curRoute = routes[routes.length - 1].route //獲取當前頁面路由 // pages/webview/webviewlet curParam = routes[routes.length - 1].options; //獲取路由參數 // {"userId":"1000007"}let prevRoute = routes[routes.length - 2].route //獲取上一頁頁面路由 // pages/index/index// 拼接參數let param = ''for (let key in curParam) {param += '&' + key + '=' + curParam[key]}注意:prevRoute上一頁獲取到的路由是:pages/index/index,如果要跳轉到這個頁面,一定要在前面加一個‘/’,即:/pages/index/index【版權聲明】:本站內容來自于與互聯網(注明原創稿件除外),供訪客免費學習需要。如文章或圖像侵犯到您的權益,請及時告知,我們第一時間刪除處理!謝謝!