邓洁 : 详情界面及接口对接

This commit is contained in:
dengj
2023-11-17 17:51:22 +08:00
parent 1259f1a4c8
commit 789dc3c1fb
4 changed files with 146 additions and 116 deletions

View File

@@ -1,4 +1,4 @@
const serverHost = 'https://spsp.feashow.com/api/' //http://xx.xxx.xx
const serverHost = 'https://spsp.feashow.com/api' //http://xx.xxx.xx
const service = {
get(url, data) {
@@ -160,10 +160,10 @@ const apiService = {
})
},
// 获取详情
getProductDetail(id) {
const url = `/home/pdetail/?productId=${id}`
getShopDetail(type,id) {
const url = `/home/adetail/?type=${type}&id=${id}`
return new Promise((resolve, reject) => {
resolve(service.get(url, id))
resolve(service.get(url))
})
},
//修改
@@ -220,7 +220,7 @@ const apiService = {
},
//修改个人信息
editPersonInfo(data) {
const url = `center/userupdate`
const url = `/center/userupdate`
return new Promise((resolve, reject) => {
resolve(service.post(url, data))
})