Commit 7eeff5f4 authored by 余成's avatar 余成

对接行方获取地址的方法

parent fc8fe099
......@@ -9,8 +9,9 @@
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,viewport-fit=cover" />
<!-- 百度地图sdk 判断是否是上海用户 -->
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=DD279b2a90afdf0ae7a3796787a0742e"></script>
<!-- <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=x17dz3Kwh0xIBQReQF6SmMnaGtHwSelm"></script> -->
<script src="https://res.yunbusiness.ccb.com/tools/jhshThemeActivityTool.js"></script>
<!-- swiper cdn -->
<script src="https://cdn.bootcdn.net/ajax/libs/Swiper/6.8.1/swiper-bundle.min.js"></script>
<link href="https://cdn.bootcdn.net/ajax/libs/Swiper/6.8.1/swiper-bundle.min.css" rel="stylesheet">
......@@ -835,7 +836,7 @@
showDownLoadApp();
}, 300);
} else { // 端内
isShanghai(targetUrl)
isShanxi(targetUrl)
}
}
/**
......@@ -866,6 +867,23 @@
}
});
}
let addressArry = ["太原市","大同市","阳泉市","长治市","晋城市","朔州市","晋中市","运城市","忻州市","临汾市","吕梁市"]
/**
* 判断是否是山西
*/
function isShanxi(targetUrl) {
getPosition(function (data){
console.log('data: ', data);
for( let item of addressArry ) {
if( item == data.cityName ) {
toLink(targetUrl);
return
}
}
Toast("仅限山西省参与");
})
}
/**
* 引导下载app
......
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