Sfoglia il codice sorgente

根据商品id活动对应的奖品区域信息

lifanagju_citu 4 mesi fa
parent
commit
656621ea6d
2 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  1. 0 3
      components.d.ts
  2. 8 0
      src/api/mall/prize.js

+ 0 - 3
components.d.ts

@@ -72,7 +72,4 @@ declare module 'vue' {
     VerifySlide: typeof import('./src/components/Verifition/Verify/VerifySlide.vue')['default']
     WangEditor: typeof import('./src/components/FormUI/wangEditor/index.vue')['default']
   }
-  export interface ComponentCustomProperties {
-    vLoading: typeof import('element-plus/es')['ElLoadingDirective']
-  }
 }

+ 8 - 0
src/api/mall/prize.js

@@ -5,4 +5,12 @@ export const getPrizeByGoodsId = async (spuId) => {
   return await request.get({
 		url: `/app-api/promotion/luck-lottery/get/by-spu-id?spuId=${spuId}`
 	})
+}
+
+// 根据商品id活动对应的奖品区域信息
+export const getPrizeAreaByGoodsId = async (params) => {
+  return await request.get({
+		url: 'app-api/promotion/luck-prize/get/extend/area',
+		params
+	})
 }