|
@@ -92,6 +92,7 @@ angular.module('app').controller('HomeController', ['$scope', '$state', '$timeou
|
|
|
console.log($scope.sdk);
|
|
console.log($scope.sdk);
|
|
|
|
|
|
|
|
var activeClick = $(e.target);
|
|
var activeClick = $(e.target);
|
|
|
|
|
+ //activeClick[0].parentElement.dataset.target = "#phoneLoginModal";
|
|
|
if (!$scope.getAddSuccess) {
|
|
if (!$scope.getAddSuccess) {
|
|
|
alert("获取地址失败,请开启手机GPS定位功能,并允许获取地理位置授权");
|
|
alert("获取地址失败,请开启手机GPS定位功能,并允许获取地理位置授权");
|
|
|
window.location.reload();
|
|
window.location.reload();
|
|
@@ -109,7 +110,7 @@ angular.module('app').controller('HomeController', ['$scope', '$state', '$timeou
|
|
|
$scope.onlineService = function() {
|
|
$scope.onlineService = function() {
|
|
|
//console.log($scope.mobile, $scope.sdk);
|
|
//console.log($scope.mobile, $scope.sdk);
|
|
|
if ($scope.currentUser.Mobile.length == 11 && $scope.sdk) {
|
|
if ($scope.currentUser.Mobile.length == 11 && $scope.sdk) {
|
|
|
- userService.update();
|
|
|
|
|
|
|
+ userService.update($scope.currentUser);
|
|
|
ysf.config({
|
|
ysf.config({
|
|
|
uid: $scope.currentUser.Id, // 用户Id
|
|
uid: $scope.currentUser.Id, // 用户Id
|
|
|
name: $scope.currentUser.Nickname, // 用户名称
|
|
name: $scope.currentUser.Nickname, // 用户名称
|