优化 配置文件

This commit is contained in:
吴学文 2019-11-17 19:38:56 +08:00
parent 99b240bbb5
commit 2785cde4d9
5 changed files with 1 additions and 10 deletions

8
app.js
View File

@ -42,14 +42,6 @@ App({
}
});
// wx.request({
// url: 'http://api.map.baidu.com/geocoder/v2/?ak=btsVVWf0TM1zUBEbzFz6QqWF&coordtype=gcj02ll&location=' + latitude + ',' + longitude + '&output=json&pois=0',
// method: "get",
// success: function (res) {
// console.log(res.data.result.formatted_address)
// wx.setStorageSync('location', res.data.result.formatted_address.substr(res.data.result.formatted_address.indexOf('市') + 1, 10))
// }
// })
}
})
//调用API从本地缓存中获取数据

View File

@ -1,5 +1,5 @@
// 服务器域名
const baseUrl = 'http://127.0.0.1:[your port]/';
const baseUrl = 'https://api.demo.winqi.cn/';
// 获取书籍信息接口地址(可选择全部或单个书籍)
const getBooksUrl = baseUrl + 'api/book/getBooks';
// 写评论接口
@ -13,7 +13,6 @@ const getBoughtBooksUrl = baseUrl + 'api/user/getBoughtBooks';
// 兑换书籍接口
const buyBookUrl = baseUrl + 'api/order/buy';
const appInfo = {
baseUrl: "https://api.demo.winqi.cn",
appId: "992019111758490006",
appSecurity: "",
};

BIN
images/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB