chenrui 4 роки тому
батько
коміт
91802053aa

+ 24 - 11
pages/siteInspection/siteInspection.vue

@@ -1,17 +1,19 @@
 <template>
 	<view class="siteInspection-wrap">
-		<!-- 搜索框 -->
-		<view class="search-con">
-			<u-search placeholder="查找全部门店" v-model="queryValue" @custom="searchHandle(1)" @search="searchHandle(1)" bg-color="#fff" :action-style="{background: '#2979ff',color: '#fff', borderRadius: '6upx',padding: '6upx 0', fontSize: '26upx'}"></u-search>
-		</view>
-		<!-- 定位 -->
-		<view class="location-con">
-			<text class="location-tit">当前位置:</text>
-			<view class="location-main" @click="getLocation">
-				<text class="location-addr">{{location}}</text>
-				<u-icon name="map" color="#2979ff" size="34" class="location-icon"></u-icon>
+		<!-- <u-sticky> -->
+			<!-- 搜索框 -->
+			<view class="search-con">
+				<u-search placeholder="查找全部门店" v-model="queryValue" @custom="searchHandle(1)" @search="searchHandle(1)" bg-color="#fff" :action-style="{background: '#2979ff',color: '#fff', borderRadius: '6upx',padding: '6upx 0', fontSize: '26upx'}"></u-search>
 			</view>
-		</view>
+			<!-- 定位 -->
+			<view class="location-con">
+				<text class="location-tit">当前位置:</text>
+				<view class="location-main" @click="getLocation">
+					<text class="location-addr">{{location}}</text>
+					<u-icon name="map" color="#2979ff" size="34" class="location-icon"></u-icon>
+				</view>
+			</view>
+		<!-- </u-sticky> -->
 		<!-- 附近的门店 -->
 		<view class="store-con">
 			<text class="store-tit">附近的门店:</text>
@@ -49,6 +51,14 @@
 					{name: '兰州通达街店'},
 					{name: '科技西路店'},
 					{name: '常青二路店'},
+					{name: '常青二路店'},
+					{name: '兰州通达街店'},
+					{name: '科技西路店'},
+					{name: '常青二路店'},
+					{name: '常青二路店'},
+					{name: '兰州通达街店'},
+					{name: '科技西路店'},
+					{name: '常青二路店'},
 				],  //  列表数据
 				pageNo: 1,  //  当前页码
 				pageSize: 10,  //  每页条数
@@ -73,6 +83,7 @@
 						console.log(res)
 						_this.location = res.address.province + res.address.city + res.address.district + res.address.street + res.address.streetNum +'靠近' + res.address.poiName
 						console.log(_this.location, '城市编码 ', res.address.cityCode)
+						_this.searchHandle(res)
 				    }
 				})
 			},
@@ -125,10 +136,12 @@
 		background-color: #f8f8f8;
 		.search-con{
 			padding: 30upx 30upx;
+			// background-color: #fff;
 		}
 		// 定位
 		.location-con{
 			padding: 0 30upx;
+			background-color: #fff;
 			.location-main{
 				margin-top: 14upx;
 				padding: 20upx;

+ 27 - 14
pages/videoShopTour/videoShopTour.vue

@@ -37,6 +37,7 @@
 <script>
 	import { clzConfirm } from '@/libs/tools.js'
 	import { findStoreList } from '@/api/store.js'
+	import { queryCurrentTaskUsing } from '@/api/task.js'
 	export default{
 		data(){
 			return{
@@ -80,24 +81,36 @@
 			//  开始巡店
 			goPage(item){
 				//  校验是否有历史巡店记录
-				clzConfirm({
-				    title: '提示',
-				    content: '有进行中的巡店任务,是否继续?',
-					confirmText: '继续巡店',
-					cancelText: '重新开始',
-				    success: function (res) {
-				        if (res.confirm || res.index==0) {  //  继续巡店
-							uni.navigateTo({
-								url: '/pages/shopTour/shopTour?storeId=' + item.id + '&type=0'
+				queryCurrentTaskUsing({ storeId: item.tenantId }).then(res => {
+					console.log(res)
+					if(res.status == 200){
+						if(res.data.state){  //  为true有历史巡店记录
+							clzConfirm({
+							    title: '提示',
+							    content: '有进行中的巡店任务,是否继续?',
+								confirmText: '继续巡店',
+								cancelText: '重新开始',
+							    success: function (result) {
+							        if (result.confirm || result.index==0) {  //  继续巡店
+										uni.navigateTo({
+											url: '/pages/shopTour/shopTour?storeId=' + item.tenantId + '&type=0'
+										})
+							        }else{  //  重新开始
+										uni.navigateTo({
+											url: '/pages/shopTour/shopTour?storeId=' + item.tenantId + '&type=1'
+										})
+							        }
+							    }
 							})
-				        }else{  //  重新开始
+						}else{
 							uni.navigateTo({
-								url: '/pages/shopTour/shopTour?storeId=' + item.id + '&type=1'
+								url: '/pages/shopTour/shopTour?storeId=' + item.tenantId + '&type=1'
 							})
-				        }
-				    }
+						}
+					}else{
+						uni.showToast({icon: 'none', title: res.message})
+					}
 				})
-				
 			}
 		}
 	}

Різницю між файлами не показано, бо вона завелика
+ 0 - 1
unpackage/dist/dev/app-plus/app-config-service.js


+ 1 - 2
unpackage/dist/dev/app-plus/app-config.js

@@ -10,7 +10,7 @@
 /******/ 		var moduleId, chunkId, i = 0, resolves = [];
 /******/ 		for(;i < chunkIds.length; i++) {
 /******/ 			chunkId = chunkIds[i];
-/******/ 			if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
+/******/ 			if(installedChunks[chunkId]) {
 /******/ 				resolves.push(installedChunks[chunkId][0]);
 /******/ 			}
 /******/ 			installedChunks[chunkId] = 0;
@@ -46,7 +46,6 @@
 /******/ 				result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
 /******/ 			}
 /******/ 		}
-/******/
 /******/ 		return result;
 /******/ 	}
 /******/

Різницю між файлами не показано, бо вона завелика
+ 3 - 3
unpackage/dist/dev/app-plus/app-service.js


Різницю між файлами не показано, бо вона завелика
+ 39 - 37
unpackage/dist/dev/app-plus/app-view.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
unpackage/dist/dev/app-plus/manifest.json


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
unpackage/dist/dev/app-plus/view.umd.min.js


Деякі файли не було показано, через те що забагато файлів було змінено