mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化 配置文件
This commit is contained in:
parent
99b240bbb5
commit
2785cde4d9
8
app.js
8
app.js
@ -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从本地缓存中获取数据
|
//调用API从本地缓存中获取数据
|
||||||
|
|||||||
@ -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';
|
const getBooksUrl = baseUrl + 'api/book/getBooks';
|
||||||
// 写评论接口
|
// 写评论接口
|
||||||
@ -13,7 +13,6 @@ const getBoughtBooksUrl = baseUrl + 'api/user/getBoughtBooks';
|
|||||||
// 兑换书籍接口
|
// 兑换书籍接口
|
||||||
const buyBookUrl = baseUrl + 'api/order/buy';
|
const buyBookUrl = baseUrl + 'api/order/buy';
|
||||||
const appInfo = {
|
const appInfo = {
|
||||||
baseUrl: "https://api.demo.winqi.cn",
|
|
||||||
appId: "992019111758490006",
|
appId: "992019111758490006",
|
||||||
appSecurity: "",
|
appSecurity: "",
|
||||||
};
|
};
|
||||||
|
|||||||
BIN
images/.DS_Store
vendored
BIN
images/.DS_Store
vendored
Binary file not shown.
BIN
images/book.png
BIN
images/book.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
Loading…
Reference in New Issue
Block a user