订单
This commit is contained in:
@@ -5,14 +5,16 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
index:0
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
this.setData({
|
||||
index: options.index == undefined ? 0:options.index
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<view class="box">
|
||||
<tab style="width:100%"></tab>
|
||||
<tab style="width:100%" index="{{index}}"></tab>
|
||||
</view>
|
||||
Reference in New Issue
Block a user