[新增]企业广场,浏览记录,企业广场搜索

This commit is contained in:
唐明明
2020-12-27 15:20:23 +08:00
parent 49275bc648
commit 7e52b7bc22
19 changed files with 507 additions and 49 deletions

View File

@@ -4,6 +4,8 @@
*/
import {req} from "../request"
const lists = (data, name) => req({url: "company/square?name=" + name, data: data})
export default({
lists
})

View File

@@ -3,7 +3,7 @@ import {errInfo} from './err'
import {updToken} from './updateToken'
// 请求方式配置
const api = "https://new-web-test.cnskl.com/api/"
const api = "https://new-web-test.cnskl.com/api/"
// const api = "https://mi-org.cnskl.com/api/"
const header = {
"Accept": "application/json"
@@ -15,8 +15,9 @@ const header = {
*/
const req = (obj) => {
// header
header.Authorization = wx.getStorageSync("token") || ""
header["store-id"] = wx.getStorageSync("storeId") || ""
// 处理请求信息
return new Promise((resolve, reject) => {
wx.showLoading({