拉取叶代码

This commit is contained in:
duan
2024-09-26 11:00:57 +08:00
50 changed files with 9527 additions and 1095 deletions

View File

@@ -621,4 +621,4 @@ export function $uploadImg(data) {
/* 获取上传form信息 */
export function $NewOssFilesForm(data) {
return http.req("/api/ossFiles/form", data, "POST")
}
}

View File

@@ -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响应码不正确

View File

@@ -128,4 +128,9 @@ export function $tbProductV2(data) {
export function $tbProskuConV2(data) {
return http.req('/api/tbProskuCon/V2', data, 'POST')
}
/* 修改商品相关(快捷接口) */
export function $updateProductData(data) {
return http.req('/api/stock/updateProductData', data, 'POST')
}
// v2 api end

View File

@@ -0,0 +1,29 @@
import http from './http.js'
const request = http.request
/**
* 查询交班记录
* @returns
*/
export function tbHandover(data) {
return request({
url: '/api/tbHandover?' + data,
method: 'get'
})
}
/**
* 提交交班
* @returns
*/
export function handoverData(data) {
return request({
url: '/api/tbHandover/handoverData',
method: 'post',
data: {
shopId: uni.getStorageSync('shopId'),
...data
}
})
}

View File

@@ -1,6 +1,79 @@
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
}
})
}
/**
* 商品列表
* @returns

25
http/yskApi/user.js Normal file
View File

@@ -0,0 +1,25 @@
import http from './http.js'
const request=http.request
/**
* 用户详情
* @returns
*/
export function tbShopInfo(shopId) {
const _shopId=uni.getStorageSync('shopId')
return request({
url: `/api/tbShopInfo/${shopId||_shopId}`,
method: 'get'
})
}
/**
* 修改店铺信息
* @returns
*/
export function tbShopInfoPut(data) {
return request({
url: `/api/tbShopInfo`,
method: 'put',
data
})
}