fixed 修改立刻购买的参数传递
This commit is contained in:
parent
2b509e4273
commit
6ddc103f0c
@ -323,6 +323,7 @@ Page({
|
|||||||
const {
|
const {
|
||||||
isAllSelectedSku,
|
isAllSelectedSku,
|
||||||
buyNum,
|
buyNum,
|
||||||
|
selectedSkuId
|
||||||
} = this.data;
|
} = this.data;
|
||||||
const {
|
const {
|
||||||
specList
|
specList
|
||||||
@ -346,7 +347,7 @@ Page({
|
|||||||
storeId: '1',
|
storeId: '1',
|
||||||
spuId: this.data.spuId,
|
spuId: this.data.spuId,
|
||||||
goodsName: this.data.details.title,
|
goodsName: this.data.details.title,
|
||||||
skuId: type === 1 ? null : this.data.selectItem.skuId,
|
skuId: type === 1 ? 0 : selectedSkuId,
|
||||||
available: this.data.details.available,
|
available: this.data.details.available,
|
||||||
price: this.data.details.minSalePrice,
|
price: this.data.details.minSalePrice,
|
||||||
specInfo: this.data.details.specList?.map((item) => ({
|
specInfo: this.data.details.specList?.map((item) => ({
|
||||||
@ -358,6 +359,7 @@ Page({
|
|||||||
thumb: this.data.details.primaryImage,
|
thumb: this.data.details.primaryImage,
|
||||||
title: this.data.details.title,
|
title: this.data.details.title,
|
||||||
};
|
};
|
||||||
|
console.log(query,'从立刻购买来的');
|
||||||
let urlQueryStr = obj2Params({
|
let urlQueryStr = obj2Params({
|
||||||
goodsRequestList: JSON.stringify([query]),
|
goodsRequestList: JSON.stringify([query]),
|
||||||
});
|
});
|
||||||
|
@ -29,6 +29,7 @@ Page({
|
|||||||
swiperImageProps: {
|
swiperImageProps: {
|
||||||
mode: 'scaleToFill',
|
mode: 'scaleToFill',
|
||||||
},
|
},
|
||||||
|
categoryGuid: 0
|
||||||
},
|
},
|
||||||
|
|
||||||
goodListPagination: {
|
goodListPagination: {
|
||||||
@ -98,15 +99,17 @@ Page({
|
|||||||
|
|
||||||
tabChangeHandle(e) {
|
tabChangeHandle(e) {
|
||||||
this.privateData.tabIndex = e.detail;
|
this.privateData.tabIndex = e.detail;
|
||||||
console.log(e.detail.value, 'tab的看看');
|
this.setData({
|
||||||
this.loadGoodsList(true, e.detail.value);
|
categoryGuid: e.detail.value,
|
||||||
|
});
|
||||||
|
this.loadGoodsList(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
onReTry() {
|
onReTry() {
|
||||||
this.loadGoodsList();
|
this.loadGoodsList();
|
||||||
},
|
},
|
||||||
|
|
||||||
async loadGoodsList(fresh = false, categoryGuid = 0) {
|
async loadGoodsList(fresh = false) {
|
||||||
if (fresh) {
|
if (fresh) {
|
||||||
wx.pageScrollTo({
|
wx.pageScrollTo({
|
||||||
scrollTop: 0,
|
scrollTop: 0,
|
||||||
@ -126,7 +129,7 @@ Page({
|
|||||||
let params = {
|
let params = {
|
||||||
pageNum: pageIndex,
|
pageNum: pageIndex,
|
||||||
pageSize: pageSize,
|
pageSize: pageSize,
|
||||||
goodsCategoryGuid: categoryGuid
|
goodsCategoryGuid: this.data.categoryGuid
|
||||||
}
|
}
|
||||||
console.log(params, '看看参数');
|
console.log(params, '看看参数');
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user