店铺详情修改
This commit is contained in:
@@ -621,4 +621,4 @@ export function $uploadImg(data) {
|
||||
/* 获取上传form信息 */
|
||||
export function $NewOssFilesForm(data) {
|
||||
return http.req("/api/ossFiles/form", data, "POST")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,9 +70,9 @@ function commonsProcess(showLoading, httpReqCallback){
|
||||
|
||||
// 提示信息
|
||||
isShowErrorToast = true
|
||||
infoBox.showErrorToast('请登录').then(() => {
|
||||
go.to("PAGES_LOGIN", {}, go.GO_TYPE_RELAUNCH)
|
||||
})
|
||||
// infoBox.showErrorToast('请登录').then(() => {
|
||||
// go.to("PAGES_LOGIN", {}, go.GO_TYPE_RELAUNCH)
|
||||
// })
|
||||
return Promise.reject(bodyData) // 跳转到catch函数
|
||||
}
|
||||
// http响应码不正确
|
||||
|
||||
@@ -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