fixed 修改商品详情细节

This commit is contained in:
lwh 2023-07-17 02:07:36 +08:00
parent 63a2299a13
commit 8f5533ef66
4 changed files with 12 additions and 12 deletions

View File

@ -135,7 +135,7 @@
specList="{{details.specList || []}}" specList="{{details.specList || []}}"
skuList="{{skuArray}}" skuList="{{skuArray}}"
limitBuyInfo="{{details.limitInfo[0].text || ''}}" limitBuyInfo="{{details.limitInfo[0].text || ''}}"
limitMaxCount="{{ selectSkuQuantity }}" limitMaxCount="{{ selectSkuQuantity || details.spuStockQuantity }}"
quantity="{{ details.spuStockQuantity }}" quantity="{{ details.spuStockQuantity }}"
bind:closeSpecsPopup="handlePopupHide" bind:closeSpecsPopup="handlePopupHide"
bind:change="chooseSpecItem" bind:change="chooseSpecItem"

View File

@ -40,11 +40,11 @@ Page({
}, },
generalQueryData(reset = false) { 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 { pageNum, pageSize } = this;
const { sorts, overall } = filter; // const { sorts, overall } = filter;
const params = { const params = {
// sort: 0, // 0 综合1 价格 goodsSort: 0, // 0 综合1 价格
pageNum: 1, pageNum: 1,
pageSize: 6, pageSize: 6,
goodsCategoryGuid: goodsCategoryGuid goodsCategoryGuid: goodsCategoryGuid
@ -52,15 +52,15 @@ Page({
}; };
if (sorts) { if (sorts) {
params.sort = 1; params.goodsSort = 1;
params.sortType = sorts === 'desc' ? 1 : 0; params.goodsSortType = sorts === 'desc' ? 1 : 0;
} }
// if (overall) { if (overall) {
// params.sort = 0; params.goodsSort = 0;
// } else { } else {
// params.sort = 1; params.goodsSort = 1;
// } }
// params.minPrice = minVal ? minVal * 100 : 0; // params.minPrice = minVal ? minVal * 100 : 0;
// params.maxPrice = maxVal ? maxVal * 100 : undefined; // params.maxPrice = maxVal ? maxVal * 100 : undefined;
if (reset) return params; if (reset) return params;

View File

@ -4,6 +4,7 @@ import {
} from '~/utils/storage' } from '~/utils/storage'
export const ServerBasePath = 'http://localhost:8888/api/'; export const ServerBasePath = 'http://localhost:8888/api/';
// export const ServerBasePath = 'http://192.168.1.102:8888/api/';
// 网络请求封装 // 网络请求封装
export function request(option) { export function request(option) {

View File

@ -18,7 +18,6 @@ export function fetchGoodsList(params) {
if (item.images) { if (item.images) {
item.thumb = item.images.split(',')[0]; item.thumb = item.images.split(',')[0];
} }
console.log(item.thumb);
// 标签 // 标签
// if (item.spuTagList) { // if (item.spuTagList) {