caiyuqin 2 ヶ月 前
コミット
4459ddb40b

+ 1 - 1
components/list-scroll-view/index.vue

@@ -145,7 +145,7 @@ export default {
 					this.dataList = this.dataList.concat(records);
 					this.mescroll.endBySize(records.length, result.total || result[this.keyName].total);
 				} else {
-					this.$tip.error('数据请求发生错误');
+					this.$tip.error(res.data.message || '数据请求发生错误');
 					this.mescroll.endErr();
 				}
 			}).catch(e => {

+ 3 - 4
pages/login/settled.vue

@@ -301,7 +301,6 @@
 					phone: uni.getStorageSync('phone'),
 					ordinaryUserId: null,
 					storeExtent: null,
-					address: '',
 					longitude: '',
 					latitude: '',
 					typeLabel: null,
@@ -365,10 +364,11 @@
 			})] : []
 			let storageData = uni.getStorageSync('address');
 			// this.form.address = storageData.address
-			this.form.latitude = storageData.lat
-			this.form.longitude = storageData.lng
+			this.form.latitude = storageData.lat || 37.855068;
+			this.form.longitude = storageData.lng ||  112.536392
 		},
 		async onLoad(data) {
+		
 			if (data.loginType) {
 				// data.loginType =2  需要根据merchantId查询商户临时数据
 				// data.loginType =3  不需要回显
@@ -419,7 +419,6 @@
 			} else {
 				if (data.params) {
 					let obj = JSON.parse(decodeURIComponent(data.params));
-
 					this.title = '店铺信息'
 					this.tab = 1
 					obj.lifespanType = obj.lifespanType ? obj.lifespanType : '1'

+ 1 - 1
pages/store/selectTdMap.vue

@@ -321,7 +321,7 @@
 				uni.request({
 					url: `https://api.tianditu.gov.cn/v2/search?postStr=${encodeURIComponent(JSON.stringify(postStr))}&type=query&tk=${this.tk}`,
 					success: (res) => {
-						if (res.data.code == 200 && res.data) {
+						if (res.statusCode == 200 && res.data) {
 							this.searchResults = res.data.pois.map(item => ({
 								...item,
 								location: item.lonlat