赞
踩
<van-nav-bar title="ALIPAY"> <van-icon name="search" slot="left"></van-icon> <van-icon name="setting-o" slot="right"></van-icon> </van-nav-bar> <van-tabbar v-model="active" @change="tabChange" active-color="#07c160" style="bottom:20px"> <van-tabbar-item icon="home-o">XX</van-tabbar-item> <van-tabbar-item icon="search">XX</van-tabbar-item> <van-tabbar-item icon="friends-o">XX</van-tabbar-item> <van-tabbar-item icon="setting-o">XX</van-tabbar-item> </van-tabbar> view: [{ name: "home", url: "view/home.html" }, { name: "search", url: "view/search.html" }, { name: "friends", url: "view/friends.html" }, { name: "setting", url: "view/setting.html" } ] }, methods: { tabChange: function() { plus.webview.show(this.view[this.active].name); } }, mounted() { plus.screen.lockOrientation("portrait-primary"); var saveWebView = plus.webview.currentWebview(); for (var i = 0; i < this.view.length; i++) { var tempWebView = plus.webview.create(this.view[i].url, this.view[i].name, { top: "46px", bottom: "70px", scrollIndicator: "none", zindex: 1 }); saveWebView.append(tempWebView); }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。