| @@ -117,7 +117,11 @@ Page({ | |||||
| }) | }) | ||||
| }; | }; | ||||
| if (app.globalData.token) { | if (app.globalData.token) { | ||||
| that.initUsrCarList(); | |||||
| // that.initUsrCarList(); | |||||
| that.initUsrCarList("flags"); | |||||
| that.setData({ | |||||
| current: 0 | |||||
| }) | |||||
| } | } | ||||
| if (that.data.addCar) { | if (that.data.addCar) { | ||||
| @@ -131,6 +135,7 @@ Page({ | |||||
| addCar: null | addCar: null | ||||
| }); | }); | ||||
| } | } | ||||
| }, | }, | ||||
| onLoad: function (options) { | onLoad: function (options) { | ||||
| var that = this; | var that = this; | ||||