店铺详情修改
This commit is contained in:
@@ -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
76
http/yskApi/shop.js
Normal 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
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user