123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- const baseUrl = "https://www.cqna.gov.cn/data/"
- // const baseUrl = "https://www.cqna.gov.cn/mnazw/"
- 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 {
- baseUrl
- }
|