@@ -1090,7 +1090,7 @@ sa.getServerUrl = function() {
10901090 return sa . para . server_url ;
10911091} ;
10921092
1093- var LIB_VERSION = '1.17.6 ' ,
1093+ var LIB_VERSION = '1.17.7 ' ,
10941094 LIB_NAME = 'MiniProgram' ;
10951095
10961096var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term' ;
@@ -2867,30 +2867,6 @@ sa.logout = function(isChangeId) {
28672867 }
28682868} ;
28692869
2870- sa . getLocation = function ( ) {
2871- wx . getSetting ( {
2872- success : function ( res ) {
2873- if ( res . authSetting [ 'scope.userLocation' ] ) {
2874- wx . getLocation ( {
2875- type : sa . para . preset_properties . location . type ,
2876- success : function ( res ) {
2877- sa . registerApp ( {
2878- $latitude : res . latitude * Math . pow ( 10 , 6 ) ,
2879- $longitude : res . longitude * Math . pow ( 10 , 6 ) ,
2880- $geo_coordinate_system : _ . setUpperCase ( sa . para . preset_properties . location . type )
2881- } ) ;
2882- } ,
2883- fail : function ( err ) {
2884- logger . info ( '获取位置失败' , err ) ;
2885- }
2886- } ) ;
2887- } else {
2888- return false ;
2889- }
2890- }
2891- } ) ;
2892- } ;
2893-
28942870sa . openid = {
28952871 getRequest : function ( callback ) {
28962872 wx . login ( {
@@ -3405,9 +3381,6 @@ sa.autoTrackCustom = {
34053381 prop . $url_path = _ . getPath ( para . path ) ;
34063382 prop . $title = _ . getPageTitle ( para . path ) ;
34073383 }
3408- if ( _ . isObject ( sa . para . preset_properties . location ) && ( sa . para . preset_properties . location . type === 'wgs84' || sa . para . preset_properties . location . type === 'gcj02' ) ) {
3409- sa . getLocation ( ) ;
3410- }
34113384 _ . setShareInfo ( para , prop ) ;
34123385
34133386 var utms = _ . setUtm ( para , prop ) ;
@@ -3651,9 +3624,6 @@ sa.appShow = function(option, prop) {
36513624 obj . $url_path = _ . getPath ( option . path ) ;
36523625 obj . $title = _ . getPageTitle ( option . path ) ;
36533626 }
3654- if ( _ . isObject ( sa . para . preset_properties . location ) && ( sa . para . preset_properties . location . type === 'wgs84' || sa . para . preset_properties . location . type === 'gcj02' ) ) {
3655- sa . getLocation ( ) ;
3656- }
36573627 _ . setShareInfo ( option , obj ) ;
36583628 var utms = _ . setUtm ( option , obj ) ;
36593629 _ . setLatestChannel ( utms . pre2 ) ;
0 commit comments