闫增涛
4 天以前 6227519a1bd9007aedae11b77b0b3b1851837c38
src/assets/js/middleGround/api/store.js
@@ -180,7 +180,7 @@
        Icon: [],
        TypeId: [],
        RefCode: [],
        Description: [],
        Description:[],
        ChildrenCount: [],
        ChildrenFolderCount: [],
        CreateDate: [],
@@ -210,7 +210,7 @@
        Icon: [],
        TypeId: [],
        RefCode: [],
        Description: [],
        Description:[],
        ChildrenCount: [],
        ChildrenFolderCount: [],
        CreateDate: [],
@@ -235,7 +235,7 @@
          Icon: [],
          TypeId: [],
          RefCode: [],
          Description: [],
          Description:[],
          LinkTypes: [linkType.linkType],
          PageQuery: {
            Start: 0,
@@ -276,7 +276,7 @@
      Name: [],
      Icon: [],
      RefCode: [],
      Description: [],
      Description:[],
      TypeId: [],
      SysType: [],
      State: [],
@@ -312,43 +312,44 @@
      method: 'post',
      data: body,
      cancelToken: source?.token
    }).then((resp) => {
      if (resp.length > 0) {
        const data = resp[0]
        if (data.datas.length) {
          data.datas[0].subDatas = data.datas[0].cmsDatas
          const datas = handleDetailQueryRequestData({
            productId,
            item: data.datas[0],
            fields,
            itemFields: {
              ...itemFields,
              ...linkFields
            },
            path,
            coverSize,
            handelEBooK
          })
          return {
            datas,
            total: data.totalCount
          }
        } else {
          return {
            datas: [],
            total: 0
    })
      .then((resp) => {
        if (resp.length > 0) {
          const data = resp[0]
          if (data.datas.length) {
            data.datas[0].subDatas = data.datas[0].cmsDatas
            const datas = handleDetailQueryRequestData({
              item: data.datas[0],
              fields,
              itemFields: {
                ...itemFields,
                ...linkFields
              },
              path,
              coverSize,
              handelEBooK,
            })
            return {
              datas,
              total: data.totalCount
            }
          } else {
            return {
              datas: [],
              total: 0
            }
          }
        }
      }
      return {
        datas: [],
        total: 0
      }
    })
        return {
          datas: [],
          total: 0
        }
      })
  },
  // 获取商品详情,不返回 ChildrenCount,ChildrenFolderCount
  // 获取商品详情,不返回 ChildrenCount,ChildrenFolderCount
  // (此接口为了满足不返回 ChildrenCount,ChildrenFolderCount而后续添加的) 不是中台原有的
  getProductDetailNoChildren: ({
  getProductDetailNoChildren:({
    path = '',
    storeInfo = goodsStore,
    channelInfo = '',
@@ -379,7 +380,7 @@
        Icon: [],
        TypeId: [],
        RefCode: [],
        Description: [],
        Description:[],
        // ChildrenCount: [],
        // ChildrenFolderCount: [],
        CreateDate: [],
@@ -409,7 +410,7 @@
        Icon: [],
        TypeId: [],
        RefCode: [],
        Description: [],
        Description:[],
        ChildrenCount: [],
        ChildrenFolderCount: [],
        CreateDate: [],
@@ -434,7 +435,7 @@
          Icon: [],
          TypeId: [],
          RefCode: [],
          Description: [],
          Description:[],
          LinkTypes: [linkType.linkType],
          PageQuery: {
            Start: 0,
@@ -475,7 +476,7 @@
      Name: [],
      Icon: [],
      RefCode: [],
      Description: [],
      Description:[],
      TypeId: [],
      SysType: [],
      State: [],
@@ -511,39 +512,40 @@
      method: 'post',
      data: body,
      cancelToken: source?.token
    }).then((resp) => {
      if (resp.length > 0) {
        const data = resp[0]
        if (data.datas.length) {
          data.datas[0].subDatas = data.datas[0].cmsDatas
          const datas = handleDetailQueryRequestData({
            productId,
            item: data.datas[0],
            fields,
            itemFields: {
              ...itemFields,
              ...linkFields
            },
            path,
            coverSize,
            handelEBooK
          })
          return {
            datas,
            total: data.totalCount
          }
        } else {
          return {
            datas: [],
            total: 0
    })
      .then((resp) => {
        if (resp.length > 0) {
          const data = resp[0]
          if (data.datas.length) {
            data.datas[0].subDatas = data.datas[0].cmsDatas
            const datas = handleDetailQueryRequestData({
              item: data.datas[0],
              fields,
              itemFields: {
                ...itemFields,
                ...linkFields
              },
              path,
              coverSize,
              handelEBooK,
            })
            return {
              datas,
              total: data.totalCount
            }
          } else {
            return {
              datas: [],
              total: 0
            }
          }
        }
      }
      return {
        datas: [],
        total: 0
      }
    })
        return {
          datas: [],
          total: 0
        }
      })
  },
  // 获取优惠券列表
  getChannelPromoteCodeList(data) {
@@ -868,32 +870,6 @@
  getProductBySaleMethod(data) {
    return request({
      url: '/store/api/ApiGetProductBySaleMethod',
      method: 'post',
      data
    })
  },
  // 积分兑换
  newOrderPay(data) {
    return request({
      url: '/store/api/NewOrderPay',
      method: 'post',
      data
    })
  },
  // 删除积分订单
  delOrderPay(data) {
    return request({
      url: '/store/api/DelOrderPay',
      method: 'post',
      data
    })
  },
  // 更新积分订单
  UpdateOrderPay(data) {
    return request({
      url: '/store/api/UpdateOrderPay',
      method: 'post',
      data
    })