@@ -41,6 +41,13 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
+ const { tabvalue = '' } = options
+ if (tabvalue && this.data.tabs.findIndex(item => item.value === tabvalue) > -1) {
+ this.setData({
+ active: tabvalue,
+ current: tabvalue * 1
+ })
+ }
this.setOriginScrollViewData()
},