|
@@ -157,7 +157,6 @@
|
|
|
<script module="tools" lang="wxs" src="@/pages/common/wxs/tools.wxs"></script>
|
|
|
<script module="tools" lang="sjs" src="@/pages/common/wxs/tools.sjs"></script>
|
|
|
<script>
|
|
|
- var app = getApp();
|
|
|
var config = require('@/common/config.js');
|
|
|
var config_gyq = require('@/common/config_gyq.js');
|
|
|
var common = require('@/common/common.js');
|
|
@@ -220,7 +219,6 @@
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function(options) {
|
|
|
- this.locationFn()
|
|
|
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight || 0
|
|
|
let _this = this
|
|
|
// #ifdef APP
|
|
@@ -314,17 +312,7 @@
|
|
|
this.newsList = data.data
|
|
|
}
|
|
|
},
|
|
|
- locationFn() {
|
|
|
- uni.getLocation({
|
|
|
- success(res) {
|
|
|
- let myLocation = {
|
|
|
- latitude: res.latitude,
|
|
|
- longitude: res.longitude,
|
|
|
- }
|
|
|
- storage.setUserCurrentLocation(myLocation)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+
|
|
|
changCar(e) {
|
|
|
this.car_info = e
|
|
|
},
|