This commit is contained in:
zdx
2020-12-28 17:25:45 +08:00
parent 092f0bad14
commit e93ee1ed17
21 changed files with 703 additions and 145 deletions

View File

@@ -7,10 +7,9 @@ Page({
selectMenuId: 0, //默认是企业信息0 视频1 活动2 项目筹集3
company_id: wx.getStorageSync('company_id'), //企业Id,
info: '', //企业信息
loaded:false
},
onLoad(e) {
loaded: false
},
onLoad(e) {},
onShow() {
this.company(wx.getStorageSync('company_id'))
},
@@ -57,12 +56,20 @@ Page({
* 请求项目筹集分类接口
*/
company() {
wx.showLoading({
title: 'title',
mask: 'true'
})
wx.$api.companyModule.company(this.data.company_id, this.data.page).then(res => {
console.log(res)
this.setData({
info: res,
loaded:true,
loaded: true,
})
wx.hideLoading({})
}).catch(res => {
if(res.status_code=='404'){
// this.company(wx.getStorageSync('company_id'))
}
})
},
@@ -77,7 +84,7 @@ Page({
/**
* 进入商城
*/
goMall(e){
goMall(e) {
console.log('1111')
wx.navigateTo({
url: '/pages/mall/index',