[新增]企业广场,浏览记录,企业广场搜索
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
*/
|
||||
import {req} from "../request"
|
||||
|
||||
const lists = (data, name) => req({url: "company/square?name=" + name, data: data})
|
||||
|
||||
export default({
|
||||
|
||||
lists
|
||||
})
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user