Commit 995ce954 by 刘泽奇

123

parent b129e2fa
...@@ -184,21 +184,16 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => { ...@@ -184,21 +184,16 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
this.loading = false; this.loading = false;
this.channelName = location.hash.split('/')[1]; this.channelName = location.hash.split('/')[1];
this.accessTitle(); this.accessTitle();
}, },
updated() { updated() {
}, },
mounted() { mounted() {
this.$nextTick(()=>{
this.handleHeader(); this.handleHeader();
});
console.log($.fn.jquery, "vvvvvvvvvvvvvvvvv"); console.log($.fn.jquery, "vvvvvvvvvvvvvvvvv");
var self = this; var self = this;
if (!this.currentUser) {
this.logins.push({ "icon": "el-icon-location-outline", "title": "登录", "type": "text", key: "login", "isOnGrid": true });
this.logins.push({ "icon": "el-icon-edit-outline", "title": "注册", "type": "text", key: "register", "isOnGrid": true });
} else {
this.logins.push({ "icon": "el-icon-arrow-right", "title": "退出", "type": "text", key: "exit", "isOnGrid": true });
};
if ($.cookie('userpin')) { if ($.cookie('userpin')) {
this.user_Name = $.cookie('userName'); this.user_Name = $.cookie('userName');
this.channelUserId = $.cookie('channelUserId'); this.channelUserId = $.cookie('channelUserId');
......
...@@ -126,6 +126,8 @@ ...@@ -126,6 +126,8 @@
}, },
mounted: function() { mounted: function() {
this.$root.loading = true; this.$root.loading = true;
this.$nextTick(() => {
this.getChannerBanner(); this.getChannerBanner();
var obj = this.$root.copyParams({ channelUserId: "", itemCode: "sbfu" }, "getProductListByTypeOneCode", "/action/tmOrder/springBoard"); var obj = this.$root.copyParams({ channelUserId: "", itemCode: "sbfu" }, "getProductListByTypeOneCode", "/action/tmOrder/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => { this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
...@@ -152,6 +154,9 @@ ...@@ -152,6 +154,9 @@
}, },
centeredSlides: false, centeredSlides: false,
}); });
})
this.$forceUpdate();
}, },
created: function() { created: function() {
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
if (this.$route.query.reqUrl != "") { if (this.$route.query.reqUrl != "") {
this.reqUrl = this.$route.query.reqUrl; this.reqUrl = this.$route.query.reqUrl;
}; };
this.$root.isLogin = true; this.$root.isLogin = false;
}, },
created: function() { created: function() {
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
} }
}, },
mounted: function() { mounted: function() {
this.$root.isLogin = true; this.$root.isLogin = false;
}, },
created: function() { created: function() {
console.log(this.pfooterinfo); console.log(this.pfooterinfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment