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.handleHeader(); this.$nextTick(()=>{
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,32 +126,37 @@ ...@@ -126,32 +126,37 @@
}, },
mounted: function() { mounted: function() {
this.$root.loading = true; this.$root.loading = true;
this.getChannerBanner();
var obj = this.$root.copyParams({ channelUserId: "", itemCode: "sbfu" }, "getProductListByTypeOneCode", "/action/tmOrder/springBoard"); this.$nextTick(() => {
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => { this.getChannerBanner();
this.$root.loading = false; var obj = this.$root.copyParams({ channelUserId: "", itemCode: "sbfu" }, "getProductListByTypeOneCode", "/action/tmOrder/springBoard");
console.log(d, "cccccccccccccccccc"); this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
if (d.status == 0) { this.$root.loading = false;
this.dataList = d.data; console.log(d, "cccccccccccccccccc");
this.dataList.map((item, index) => { if (d.status == 0) {
console.log(item.productDesc); this.dataList = d.data;
item.productDesc = JSON.parse(item.productDesc); this.dataList.map((item, index) => {
}); console.log(item.productDesc);
} item.productDesc = JSON.parse(item.productDesc);
}); });
var swiper = new Swiper('.swiper-container', { }
slidesPerView: 3, });
spaceBetween: 0, var swiper = new Swiper('.swiper-container', {
pagination: { slidesPerView: 3,
el: '.swiper-pagination', spaceBetween: 0,
clickable: true, pagination: {
}, el: '.swiper-pagination',
navigation: { clickable: true,
nextEl: '.swiper-button-next', },
prevEl: '.swiper-button-prev', navigation: {
}, nextEl: '.swiper-button-next',
centeredSlides: false, prevEl: '.swiper-button-prev',
}); },
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