|
@@ -224,11 +224,10 @@ onLoad((option) => {
|
|
|
async function init() {
|
|
|
window.location.href = BASE_URL + "Com/getPageAuthorization1";
|
|
|
}
|
|
|
+
|
|
|
//扫码
|
|
|
function scanQRCode() {
|
|
|
- // console.log(1);
|
|
|
// scanCode();
|
|
|
- // 微信公众号获取位置
|
|
|
jwx.configWeiXin((jweixin) => {
|
|
|
jweixin.scanQRCode({
|
|
|
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
|
@@ -275,11 +274,9 @@ async function getCodeResult(param = {}) {
|
|
|
|
|
|
//获取地理位置
|
|
|
function getLocation() {
|
|
|
- // 将this赋值给that
|
|
|
- let that = this;
|
|
|
- // 微信公众号获取位置
|
|
|
+
|
|
|
jwx.configWeiXin((jweixin) => {
|
|
|
- alert(22);
|
|
|
+ // 微信公众号获取位置
|
|
|
jweixin.getLocation({
|
|
|
type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
|
|
|
success: function (res) {
|