修改 app
This commit is contained in:
13
common/api/accessBoot.js
Normal file
13
common/api/accessBoot.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import request from '../js/request'
|
||||
import config from '../js/config'
|
||||
|
||||
export function manualAccess(params) {
|
||||
return request({
|
||||
url: '/access-boot/device/manualAccess',
|
||||
method: 'post',
|
||||
params: params,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -27,7 +27,7 @@ export default (options = {}) => {
|
||||
}
|
||||
uni.request({
|
||||
url,
|
||||
timeout: 5000,
|
||||
timeout: 1000 *10,
|
||||
data: {
|
||||
...options.data,
|
||||
},
|
||||
|
||||
@@ -132,7 +132,7 @@ const getUserLocation = (call) => {
|
||||
success: function (address) {
|
||||
call(address)
|
||||
},
|
||||
fail: (err) => {
|
||||
fail: (err) => {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '定位失败,请打开定位权限',
|
||||
|
||||
Reference in New Issue
Block a user