fixed 修改商品详情细节
This commit is contained in:
parent
63a2299a13
commit
8f5533ef66
@ -135,7 +135,7 @@
|
||||
specList="{{details.specList || []}}"
|
||||
skuList="{{skuArray}}"
|
||||
limitBuyInfo="{{details.limitInfo[0].text || ''}}"
|
||||
limitMaxCount="{{ selectSkuQuantity }}"
|
||||
limitMaxCount="{{ selectSkuQuantity || details.spuStockQuantity }}"
|
||||
quantity="{{ details.spuStockQuantity }}"
|
||||
bind:closeSpecsPopup="handlePopupHide"
|
||||
bind:change="chooseSpecItem"
|
||||
|
@ -40,11 +40,11 @@ Page({
|
||||
},
|
||||
|
||||
generalQueryData(reset = false) {
|
||||
const { filter, keywords, minVal, maxVal , goodsCategoryGuid} = this.data;
|
||||
const { filter, keywords, minVal, maxVal , goodsCategoryGuid,sorts, overall} = this.data;
|
||||
const { pageNum, pageSize } = this;
|
||||
const { sorts, overall } = filter;
|
||||
// const { sorts, overall } = filter;
|
||||
const params = {
|
||||
// sort: 0, // 0 综合,1 价格
|
||||
goodsSort: 0, // 0 综合,1 价格
|
||||
pageNum: 1,
|
||||
pageSize: 6,
|
||||
goodsCategoryGuid: goodsCategoryGuid
|
||||
@ -52,15 +52,15 @@ Page({
|
||||
};
|
||||
|
||||
if (sorts) {
|
||||
params.sort = 1;
|
||||
params.sortType = sorts === 'desc' ? 1 : 0;
|
||||
params.goodsSort = 1;
|
||||
params.goodsSortType = sorts === 'desc' ? 1 : 0;
|
||||
}
|
||||
|
||||
// if (overall) {
|
||||
// params.sort = 0;
|
||||
// } else {
|
||||
// params.sort = 1;
|
||||
// }
|
||||
if (overall) {
|
||||
params.goodsSort = 0;
|
||||
} else {
|
||||
params.goodsSort = 1;
|
||||
}
|
||||
// params.minPrice = minVal ? minVal * 100 : 0;
|
||||
// params.maxPrice = maxVal ? maxVal * 100 : undefined;
|
||||
if (reset) return params;
|
||||
|
@ -4,6 +4,7 @@ import {
|
||||
} from '~/utils/storage'
|
||||
|
||||
export const ServerBasePath = 'http://localhost:8888/api/';
|
||||
// export const ServerBasePath = 'http://192.168.1.102:8888/api/';
|
||||
|
||||
// 网络请求封装
|
||||
export function request(option) {
|
||||
|
@ -18,7 +18,6 @@ export function fetchGoodsList(params) {
|
||||
if (item.images) {
|
||||
item.thumb = item.images.split(',')[0];
|
||||
}
|
||||
console.log(item.thumb);
|
||||
|
||||
// 标签
|
||||
// if (item.spuTagList) {
|
||||
|
Loading…
Reference in New Issue
Block a user