|
@@ -30,6 +30,8 @@ function ribao_init() {
|
|
alert('你的微信版本太低,不支持微信JS接口,请升级到最新的微信版本!');
|
|
alert('你的微信版本太低,不支持微信JS接口,请升级到最新的微信版本!');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ // 获取定位
|
|
|
|
+ getLocation();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
wx.error(function (res) {
|
|
wx.error(function (res) {
|
|
@@ -822,9 +824,6 @@ function ribao_cell(v) {
|
|
|
|
|
|
function ribao_add() {
|
|
function ribao_add() {
|
|
$('#btnAdd').on('click', function () {
|
|
$('#btnAdd').on('click', function () {
|
|
-
|
|
|
|
-// 获取定位
|
|
|
|
- getLocation();
|
|
|
|
if ($('#ribao')[0].style.display == 'none') {
|
|
if ($('#ribao')[0].style.display == 'none') {
|
|
$('#notOpenRibao').toggle();
|
|
$('#notOpenRibao').toggle();
|
|
$('#ribao')[0].style.display = '';
|
|
$('#ribao')[0].style.display = '';
|
|
@@ -1244,12 +1243,12 @@ function ribaoCommit() {
|
|
var todyLocalOther = "";
|
|
var todyLocalOther = "";
|
|
if (jrszd == 0) {
|
|
if (jrszd == 0) {
|
|
cantijiao = true;
|
|
cantijiao = true;
|
|
- $.alert("请先设置微信获取当前位置");
|
|
|
|
|
|
+ $.alert("请检查是否开启手机定位和微信定位");
|
|
//$.alert("请选择今晚住地");
|
|
//$.alert("请选择今晚住地");
|
|
return;
|
|
return;
|
|
} else if (jrszd == 4 && jrszq == "") {
|
|
} else if (jrszd == 4 && jrszq == "") {
|
|
cantijiao = true;
|
|
cantijiao = true;
|
|
- $.alert("请先设置微信获取当前位置");
|
|
|
|
|
|
+ $.alert("请检查是否开启手机定位和微信定位");
|
|
//$.alert("请填写今晚住地");
|
|
//$.alert("请填写今晚住地");
|
|
return;
|
|
return;
|
|
} else if (jrszd != 0 && jrszd != 4) {
|
|
} else if (jrszd != 0 && jrszd != 4) {
|