|
@@ -132,29 +132,29 @@ Page({
|
|
|
getRecommend(this.data)
|
|
|
.then((res) => {
|
|
|
console.log(res);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ const { code, data, message } = res.data;
|
|
|
+ const d = data.data;
|
|
|
+ console.log(d);
|
|
|
+ var arr = [];
|
|
|
+ var owner = {data: {uid: []}};
|
|
|
+ for (let index = 0; index < d.length; index++) {
|
|
|
+ arr = [...arr, d[index].ownerId];
|
|
|
+ }
|
|
|
+ owner.data.uid = arr;
|
|
|
+ console.log(arr);
|
|
|
+ getUserInfoList(owner).then((res) => {
|
|
|
+ const {users} = res.data.data;
|
|
|
+ this.setData({
|
|
|
+ ownerMsg: [...users, ...this.data.ownerMsg]
|
|
|
+ })
|
|
|
+ console.log(this.data.ownerMsg);
|
|
|
+ }).catch((err) => {
|
|
|
+ console.log(err);
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ allGoods: [...this.data.allGoods, ...d],
|
|
|
+ isLoading: true
|
|
|
+ })
|
|
|
}).catch((err) => {
|
|
|
console.log(err);
|
|
|
})
|