店铺详情修改

This commit is contained in:
GaoHao
2024-09-18 16:17:19 +08:00
parent 14cb314a5a
commit 8e1f036e6b
9 changed files with 978 additions and 9 deletions

View File

@@ -20,13 +20,9 @@ let baseUrl = 'https://admintestpapi.sxczgkj.cn'
const loadingShowTime = 200
function getHeader(){
function getHeader( type ){
const headerObject={}
headerObject["Authorization"] = storageManage.token()
headerObject["Content-Type"] = 'application/json'
headerObject["loginname"] = 'admin'
headerObject["token"] = 'eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyVHlwZSI6Ik1HIiwiZXhwIjoxNjkwMTgwNzE2LCJ1c2VySWQiOiIyNDQiLCJpYXQiOjE2ODg3MDk0ODcsImxvZ2luTmFtZSI6ImFkbWluIn0.lqxxvv2-FcecQngMBorz4MpkB3mIJQDG-IUULQyV-KQ'
headerObject["userId"] = '244'
return headerObject
}

76
http/yskApi/shop.js Normal file
View File

@@ -0,0 +1,76 @@
import http from './http.js'
const request=http.request
/**
* 获取店铺列表
* @returns
*/
export function getShopList(params) {
return request({
url: `/api/tbShopInfo`,
method: 'get',
params: {
}
})
}
/**
* 获取店铺数据
* @returns
*/
export function getShopInfo(params) {
return request({
url: `/api/tbShopInfo/${params}`,
method: 'get',
params: {
}
})
}
/**
* 更改店铺信息
* @returns
*/
export function editShopInfo(data) {
return request({
url: `/api/tbShopInfo`,
method: 'put',
data:{
// shopId: uni.getStorageSync('shopId'),
...data
}
})
}
/**
* 获取店铺图片
* @returns
*/
export function getShopExtend(params) {
return request({
url: `/tbShopExtend`,
method: 'get',
params:{
shopId: uni.getStorageSync('shopId'),
}
})
}
/**
* 获取店铺图片
* @returns
*/
export function editShopExtend(data) {
return request({
url: `/tbShopExtend`,
method: 'put',
data:{
shopId: uni.getStorageSync('shopId'),
...data
}
})
}