|
|
@ -1,4 +1,5 @@ |
|
|
const util = require('../../../utils/util') |
|
|
const util = require('../../../utils/util') |
|
|
|
|
|
const event = require('../../../utils/event') |
|
|
import { userPushFollowMill } from "../../../api/ztb" |
|
|
import { userPushFollowMill } from "../../../api/ztb" |
|
|
import { getMillPaperList } from "../../../api/moment" |
|
|
import { getMillPaperList } from "../../../api/moment" |
|
|
const app = getApp() |
|
|
const app = getApp() |
|
|
@ -20,6 +21,12 @@ Component({ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
onFlodTap: function(){ |
|
|
onFlodTap: function(){ |
|
|
|
|
|
if(this.data.item.isCooperate === 1) { |
|
|
|
|
|
if(!app.globalData.userInfo || !app.globalData.userInfo.isVIP){ |
|
|
|
|
|
event.emit('EventMessage', {what: 223, desc: 'Logout'}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
this.setData({ unflod: !this.data.unflod }) |
|
|
this.setData({ unflod: !this.data.unflod }) |
|
|
if(!this.data.itemList.length && this.data.unflod){ |
|
|
if(!this.data.itemList.length && this.data.unflod){ |
|
|
this.fetchItemList() |
|
|
this.fetchItemList() |
|
|
@ -41,12 +48,6 @@ Component({ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
lookItem: function(e){ |
|
|
lookItem: function(e){ |
|
|
if(!this.data.item.isCooperate) { |
|
|
|
|
|
if(!app.globalData.userInfo){ |
|
|
|
|
|
util.navigateTo('/pages/login/index') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
util.navigateTo('/pages/agent/factory/index?id=' + this.data.item.paperMillId) |
|
|
util.navigateTo('/pages/agent/factory/index?id=' + this.data.item.paperMillId) |
|
|
}, |
|
|
}, |
|
|
fetchItemList: function(){ |
|
|
fetchItemList: function(){ |
|
|
|