12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- const baseUrl = "https://www.cqna.gov.cn/data/"
- // const baseUrl = "http://192.168.1.253:7777/"
- const request = (options) => {
- return new Promise((resolve,reject) => {
- options.url = baseUrl + options.url
- wx.request({
- // 配置 "wx.request" 请求参数
- ...options,
- header: {
- 'content-type': 'application/json;charset=UTF-8'
- },
- success: function (res) {
- // console.log("network-res=>", res);
- // 返回成功信息
- resolve(res.data)
- },
- fail: function (error) {
- // console.log("network-err=>", error);
- // 返回错误信息
- reject(error)
- }
- })
- })
- }
- export function getAlbumList(data) {
- return request({
- url: `/yxna/getAlbumList`,
- method: 'GET',
- data: data
- })
- }
- export function getDocumentPageFront(data) {
- return request({
- url: `yxna/getDocumentPageFront`,
- method: 'GET',
- data: data
- })
- }
- export function getMapDataType(data) {
- return request({
- url: `mapdata/getMapDataType`,
- method: 'GET',
- data: data
- })
- }
- export function getHandMatterPage(data) {
- return request({
- url: `mapdata/getHandMatterPage`,
- method: 'GET',
- data: data
- })
- }
- export function getHandMatterBySearch(data) {
- return request({
- url: `mapdata/getHandMatterBySearch`,
- method: 'GET',
- data: {
- queryVal: data
- }
- })
- }
- export function getMapDataAll() {
- return request({
- url: `mapdata/getMapDataAll`,
- method: 'GET',
- })
- }
- export function searchHandMatterByVal(queryVal) {
- return request({
- url: `mapdata/searchHandMatterByVal`,
- method: 'GET',
- data: {
- queryVal: queryVal
- }
- })
- }
|