zhangtao 1 روز پیش
والد
کامیت
7b021290ea
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      my/qiandao/index.vue

+ 4 - 1
my/qiandao/index.vue

@@ -3,7 +3,7 @@
 		<view class="top-box">
 			<view class="flex justify-between align-center">
 				<view style="font-weight: bold;font-size: 32rpx;color: #222222;">当前位置</view>
-				<view style="color: #1EDA94;font-size: 28rpx;" @click="gxAddress">更新位置</view>
+				<view style="color: #1EDA94;font-size: 28rpx;" @click="gxAddress">签到</view>
 			</view>
 			<view style="font-size: 28rpx;color: #AAAAAA;margin-top: 20rpx;">{{address}}</view>
 			<view style="width: 100%;height: 1rpx;background: #E6E6E6;margin-top: 30rpx;"></view>
@@ -153,6 +153,7 @@
 				let longitude = uni.getStorageSync('longitude');
 				let latitude = uni.getStorageSync('latitude');
 				let userId = uni.getStorageSync('userId')
+				console.log(longitude,latitude,'latitude===================');
 				this.$queue.showLoading('更新中...')
 				let data = {
 					typeId: longitude,
@@ -208,6 +209,8 @@
 						that.latitude = res.latitude
 						that.longitude = res.longitude
 						that.address = res.address
+						uni.setStorageSync('longitude', res.longitude);
+						uni.setStorageSync('latitude', res.latitude);
 					}
 				});
 			}