Commit 291b6430 by 程默

fix bug

parent 932d328e
...@@ -239,13 +239,16 @@ export default { ...@@ -239,13 +239,16 @@ export default {
}else { }else {
app.globalData.spokesmanInfo = {}; app.globalData.spokesmanInfo = {};
let footerVal = {...app.globalData.footerVal}; let footerVal = {...app.globalData.footerVal};
footerVal.componentData.list.forEach(res=>{ console.log('"分销员中心"',footerVal)
if(res.link.name=="分销员中心"||res.link.name=="分销商中心") { if (footerVal.componentData) {
res.show = false footerVal.componentData.list.forEach(res=>{
} if(res.link.name=="分销员中心"||res.link.name=="分销商中心") {
}) res.show = false
app.globalData.footerVal = footerVal; }
this.$mp.page.selectComponent(".custom-tab-bar").init(); })
app.globalData.footerVal = footerVal;
this.$mp.page.selectComponent(".custom-tab-bar").init();
}
} }
// 来源 // 来源
if (options.from == "logout") { if (options.from == "logout") {
...@@ -399,7 +402,7 @@ export default { ...@@ -399,7 +402,7 @@ export default {
}) })
}, },
scrolls(el){ scrolls(el){
this.setFooterShow(el); // this.setFooterShow(el);
if (this.pageData) { if (this.pageData) {
for (let i = 0; i < this.pageData.length; i++) { for (let i = 0; i < this.pageData.length; i++) {
const element = this.pageData[i] const element = this.pageData[i]
......
...@@ -315,17 +315,6 @@ export default { ...@@ -315,17 +315,6 @@ export default {
this.init(); this.init();
}, },
onShow(){ onShow(){
let ss=wx.getStorageSync("sessionid");
if (ss && !this.params.includes("sessionid")) {
this.params +=`&sessionid=${ss}`
}
console.log(this.getTabBar,'312')
if (typeof this.getTabBar === 'function' &&
this.getTabBar()) {
this.getTabBar().setData({
selected: this.index
})
}
}, },
methods: { methods: {
init() { init() {
......
...@@ -59,12 +59,10 @@ const componentOptions = { ...@@ -59,12 +59,10 @@ const componentOptions = {
}, },
showPopup() { showPopup() {
this.setData({ showPop: true }); this.setData({ showPop: true });
this.getTabBar().setData({ show: false });
}, },
onClose() { onClose() {
this.setData({ showPop: false }); this.setData({ showPop: false });
this.getTabBar().setData({ show: true });
}, },
cancel() { cancel() {
this.onClose(); this.onClose();
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
{{datas.singleItemActivityName}} {{datas.singleItemActivityName}}
</view> </view>
<view class="cover"> <view class="cover">
<image mode="center" src="{{datas.singleItemActivityCoverImage}}"></image> <image mode="aspectFit" src="{{datas.singleItemActivityCoverImage}}"></image>
</view> </view>
<view class="countDown flex" wx:if="{{countDownShow}}"> <view class="countDown flex" wx:if="{{countDownShow}}">
<van-count-down <van-count-down
use-slot use-slot
......
...@@ -232,7 +232,7 @@ const componentOptions = { ...@@ -232,7 +232,7 @@ const componentOptions = {
new Date(item.endTime.replace(/-/g, "/")).getTime() - new Date(item.endTime.replace(/-/g, "/")).getTime() -
new Date().getTime(); new Date().getTime();
item.singleItemActivityCoverImage = DFSImg( item.singleItemActivityCoverImage = DFSImg(
item.singleItemActivityCoverImage,400,400 item.singleItemActivityCoverImage,400,400,1
); );
item.isStart = item.isStart =
new Date(item.startTime.replace(/-/g, "/")).getTime() > new Date(item.startTime.replace(/-/g, "/")).getTime() >
......
...@@ -32,9 +32,9 @@ Component({ ...@@ -32,9 +32,9 @@ Component({
}); });
}; };
} }
this.setData({ // this.setData({
mmm: Math.ceil(app.globalData.footerVal.componentData.list.length / 2 - 1) // mmm: Math.ceil(app.globalData.footerVal.componentData.list.length / 2 - 1)
}); // });
}, },
attached() { attached() {
this.init() this.init()
......
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