Browse Source

福利购图片统一调整

kk.shi 3 years ago
parent
commit
a96db81cc9

+ 3 - 3
pages/welfareMall/feedback/feedback.js

@@ -1,7 +1,7 @@
 // pages/welfareMall/feedback/feedback.js
 import WelfareMall from '../../../api/welfareMall'
 import Upload from '../../../api/upload'
-import {getMobileCache, getPhoneNumber as getPhoneNumberSync} from '../../../utils/user'
+import {getMobileCache, getPhoneNumber as getPhoneNumberSync, getColor} from '../../../utils/user'
 Page({
 
   /**
@@ -183,9 +183,9 @@ Page({
   },
 
   async getIndexList(){
-    let res =  await WelfareMall.getIndexList();
+    let res =  await getColor();
     this.setData({
-      config:res.data.config
+      config:res.config
     })
   },
   goToRefund (){

+ 1 - 1
pages/welfareMall/historical/historical.js

@@ -25,7 +25,7 @@ Page({
     this.getOrderList();
     let info =  await getColor();
     this.setData({
-      config:info
+      config:info.config
     })
     console.log(info)
   },