合并前备份

This commit is contained in:
zdx
2020-12-29 17:16:53 +08:00
parent 3e69a05d93
commit 8ea2db50f9
35 changed files with 2658 additions and 459 deletions

View File

@@ -5,13 +5,21 @@ Page({
*/
data: {
selectMenuId: 0, //默认是企业信息0 视频1 活动2 项目筹集3
company_id: wx.getStorageSync('company_id'), //企业Id,
company_id: '', //企业Id,
info: '', //企业信息
loaded: false
},
onLoad(e) {},
onShow() {
this.company(wx.getStorageSync('company_id'))
onLoad(e) {
var that = this
wx.getStorage({
key: 'company_id',
success(res) {
that.company(e.companyId)
that.setData({
company_id:res.data
})
}
})
},
onUnload: function () {
wx.removeStorageSync('company_id')
@@ -55,19 +63,19 @@ Page({
/**
* 请求项目筹集分类接口
*/
company() {
company(id) {
wx.showLoading({
title: 'title',
mask: 'true'
})
wx.$api.companyModule.company(this.data.company_id, this.data.page).then(res => {
wx.$api.companyModule.company(id, this.data.page).then(res => {
this.setData({
info: res,
loaded: true,
})
wx.hideLoading({})
}).catch(res => {
if(res.status_code=='404'){
if (res.status_code == '404') {
// this.company(wx.getStorageSync('company_id'))
}
})
@@ -86,7 +94,7 @@ Page({
*/
goMall(e) {
console.log('1111')
wx.navigateTo({
wx.switchTab({
url: '/pages/mall/index',
})
}