迁移版本

This commit is contained in:
李琦
2026-10-13 14:04:22 +08:00
parent 6da262b134
commit cfb128d2f0
11 changed files with 1244 additions and 63 deletions

View File

@@ -27,4 +27,9 @@ export const toCartApi = async (listId, productId) => {
product_id: productId
})
}
export const submitHighIntentApi = async (list_id, intent_remark = '') => {
return await post(`${prefix}submit-high-intent`, { list_id, intent_remark })
}
export const savePreferSkuApi = async (params) => {
return await post(`${prefix}save-prefer-sku`, params)
}

View File

@@ -1,5 +1,5 @@
import {get} from '../request';
import {get, post} from '../request';
const prefix = 'product/'
@@ -12,3 +12,6 @@ export const getCategoryListByPidApi = async (pid = 0) => {
export const getProductDetailApi = async (id = 0, p_user_id = 0) => {
return await get(`${prefix}detail`, {id, p_user_id})
}
export const productViewApi = async (id) => {
return await post(`${prefix}view`, { id })
}

View File

@@ -15,3 +15,6 @@ export const updateNickNameApi = async (nick_name) => {
nick_name
})
}
export const updateProfileApi = async (nick_name, avatar) => {
return await post(`${prefix}update-profile`, { nick_name, avatar })
}