|
|
|
@ -75,7 +75,7 @@ |
|
|
|
|
|
|
|
//解压缩 |
|
|
|
import pako from '@/core/pako' |
|
|
|
import { base64ToUint8Array} from '@/utils/util' |
|
|
|
import { base64ToUint8Array,numberWithCommas} from '@/utils/util' |
|
|
|
|
|
|
|
const pageSize = 15 |
|
|
|
const showViewKey = 'GoodsList-ShowView'; |
|
|
|
@ -171,6 +171,16 @@ |
|
|
|
.catch(reject) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 整理列表数据 |
|
|
|
initList(newList) { |
|
|
|
newList.data.forEach(item => { |
|
|
|
// 处理价格表现形式 |
|
|
|
item.price = numberWithCommas(item.price) |
|
|
|
item.gdimg = pako.inflateRaw(base64ToUint8Array(item.goods_image), {to: 'string'}) |
|
|
|
}) |
|
|
|
return newList |
|
|
|
}, |
|
|
|
|
|
|
|
// 切换排序方式 |
|
|
|
handleSortType(newSortType) { |
|
|
|
|