|
@@ -46,15 +46,17 @@ var dashboard = new Vue({
|
|
|
opentitle:function () {
|
|
|
var _this = this;
|
|
|
_this.titleSshow =!this.titleSshow;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
+ },
|
|
|
+ perfect:function () {
|
|
|
+ window.location.href='/supplier/setting/information.html';
|
|
|
+ },
|
|
|
},
|
|
|
mounted:function () {
|
|
|
var _this = this;
|
|
|
- var userInfo = CAIMEI.Storage.getItem('userInfo');
|
|
|
- _this.userId =JSON.parse(userInfo).userId
|
|
|
- console.log(_this.userId)
|
|
|
+ if(globalUserData) {
|
|
|
+ _this.userId = globalUserData.userId;
|
|
|
+ };
|
|
|
+ console.log( _this.userId)
|
|
|
SupplierApi.homePageData({userId:_this.userId},function (res) {
|
|
|
if(res.code==0){
|
|
|
_this.homeData = res.data;
|