Commit 92824a2a authored by jtwu's avatar jtwu

6

parent ef10d02a
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -48,45 +48,6 @@ class Mappage extends React.Component { ...@@ -48,45 +48,6 @@ class Mappage extends React.Component {
getMapInfo = async () => { getMapInfo = async () => {
let res = await API.mapInfo(); let res = await API.mapInfo();
res = {
"success": true,
"code": "",
"message": "",
"data": {
"spInfoList": [
{
"spId": "sp_landmark1",
"name": "北京",
"icon": "https://www.baidu.com/tiananmen.png",
"unlockFlag": true
},
{
"spId": "sp_landmark2",
"name": "上海",
"icon": "https://www.baidu.com/dongfangmingzhu.png",
"unlockFlag": false
},
{
"spId": "sp_landmark3",
"name": "广州",
"icon": "https://www.baidu.com/guangzhouta.png",
"unlockFlag": false
},
{
"spId": "sp_landmark4",
"name": "深圳",
"icon": "https://www.baidu.com/shenzhendiwangdasha.png",
"unlockFlag": true
},
{
"spId": "sp_landmark5",
"name": "杭州",
"icon": "https://www.baidu.com/hangzhoudasha.png",
"unlockFlag": false
}
]
}
}
console.log('res:::::', res); console.log('res:::::', res);
if (res?.success) { if (res?.success) {
this.setState({ this.setState({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment