商品详情接口优化

master
gongfuxiang 2021-10-24 13:20:37 +08:00
parent c07fbcfe28
commit be388723f6
1 changed files with 2 additions and 4 deletions

View File

@ -1158,8 +1158,7 @@
dataType: 'json',
success: (res) => {
if (res.data.code == 0) {
// spec_type
var spec_type = (res.data.data.spec_type || null) == null ? res.data.data : res.data.data.spec_type;
var spec_type = res.data.data.spec_type;
var spec_count = spec.length;
var index = spec_count > 0 ? spec_count : 0;
if (index < sku_count) {
@ -1257,8 +1256,7 @@
//
goods_spec_detail_back_handle(data) {
// spec_base
var spec_base = (data.spec_base || null) == null ? data : data.spec_base;
var spec_base = data.spec_base;
var data = {
goods_spec_base_price: spec_base.price,
goods_spec_base_original_price: spec_base.original_price,