| | |
| | | import http from '@/http/api.js' |
| | | import { |
| | | devUrl, |
| | | prodUrl, |
| | | contentType |
| | | } from '@/common/setting' |
| | | |
| | | import { |
| | | clientId, |
| | | clientSecret |
| | | import http from '@/http/api.js'
|
| | | import {
|
| | | devUrl,
|
| | | prodUrl,
|
| | | contentType
|
| | | } from '@/common/setting'
|
| | |
|
| | | import {
|
| | | clientId,
|
| | | clientSecret
|
| | | } from '@/common/setting'
|
| | |
|
| | | // 获取楼栋集合数据
|
| | |
| | |
|
| | | // 获取当前房屋/出租屋信息
|
| | | export const getHouseRentInfo = (code) => {
|
| | | return http.request({
|
| | | url: 'blade-doorplateAddress/doorplateAddress/getHouseRentInfo',
|
| | | method: 'GET',
|
| | | params: {
|
| | | code
|
| | | }
|
| | | })
|
| | | if (typeof(code) == 'string') {
|
| | | return http.request({
|
| | | url: 'blade-doorplateAddress/doorplateAddress/getHouseRentInfo',
|
| | | method: 'GET',
|
| | | params: {
|
| | | code
|
| | | }
|
| | | })
|
| | | } else {
|
| | | return http.request({
|
| | | url: 'blade-doorplateAddress/doorplateAddress/getHouseRentInfo',
|
| | | method: 'GET',
|
| | | params: code
|
| | | })
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | export const uploadFile = (file) => {
|
| | | return uni.uploadFile({
|
| | | url: (process.env.NODE_ENV === 'development' ? devUrl : prodUrl ) + '/blade-resource/oss/endpoint/put-file', |
| | | url: (process.env.NODE_ENV === 'development' ? devUrl : prodUrl) +
|
| | | '/blade-resource/oss/endpoint/put-file',
|
| | | filePath: file,
|
| | | name: 'file', |
| | | header: { |
| | | Authorization: uni.getStorageSync('accessToken') |
| | | name: 'file',
|
| | | header: {
|
| | | Authorization: uni.getStorageSync('accessToken')
|
| | | }
|
| | | })
|
| | | }
|
| | |
| | | ...params
|
| | | }
|
| | | })
|
| | | }
|
| | |
|
| | |
|
| | | } |