解决缓存无法正常访问

This commit is contained in:
zdx
2020-12-29 17:42:12 +08:00
parent c2309ff53d
commit 29f807609f
2 changed files with 4 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ Component({
* 请求项目筹集分类接口
*/
crowdfundcategory(company_id){
wx.$api.companyModule.crowdfundcategory(company_id).then(res=>{
wx.$api.companyModule.crowdfundcategory(wx.getStorageSync('company_id')).then(res=>{
console.log(res)
this.setData({
categoryList:res,
@@ -67,7 +67,7 @@ Component({
*/
crowdfunds(){
if(this.data.has_more){
wx.$api.companyModule.crowdfunds(this.data.company_id,this.data.category_id,this.data.page).then(res=>{
wx.$api.companyModule.crowdfunds(wx.getStorageSync('company_id'),this.data.category_id,this.data.page).then(res=>{
console.log(res)
if(res.page.has_more){
this.setData({