|
|
@@ -49,7 +49,7 @@ Page({
|
|
|
processingData.imageType(res.data, 'cover');
|
|
|
let list = [];
|
|
|
if (res.data.length > 3) {
|
|
|
- list=res.data.slice(0,3)
|
|
|
+ list = res.data.slice(0, 3)
|
|
|
} else {
|
|
|
list = res.data;
|
|
|
}
|
|
|
@@ -236,16 +236,14 @@ Page({
|
|
|
},
|
|
|
//新发布商品
|
|
|
getHotProductsList() {
|
|
|
- let arr = ["窗帘布", "沙发布"];
|
|
|
+ let arr = ["窗帘", "沙发布"];
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
_Http.basic({
|
|
|
"classname": "publicmethod.homepage.homepage",
|
|
|
- "method": "getHotProductsList",
|
|
|
+ "method": "getNewProduct",
|
|
|
"content": {
|
|
|
"getdatafromdbanyway": true,
|
|
|
- "pageNumber": 1,
|
|
|
- "pageSize": 5,
|
|
|
- "ftype": arr[i]
|
|
|
+ "fprodclassname": arr[i],
|
|
|
}
|
|
|
}).then(res => {
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
@@ -336,7 +334,7 @@ Page({
|
|
|
"ftype": type
|
|
|
}
|
|
|
}
|
|
|
- }).then(res => {
|
|
|
+ }, false).then(res => {
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
title: res.data,
|
|
|
icon: "none"
|
|
|
@@ -362,6 +360,7 @@ Page({
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/login/index',
|
|
|
})
|
|
|
+ // getApp().getUserProfile();
|
|
|
},
|
|
|
/**
|
|
|
* 生命周期函数--监听页面初次渲染完成
|