chenrui 4 лет назад
Родитель
Сommit
a04c421605

+ 1 - 1
App.vue

@@ -1,7 +1,7 @@
 <script>
 	// const uat_URL = 'http://md.test.zyucgj.com/at-employee/' // 预发布
 	// const uat_URL = 'http://192.168.16.107:7300/mock/5f5af637cb0f492ad4ee858f/app/at-employee/' // mock
-	const uat_URL = 'http://192.168.16.104:8203/at-employee/' // 本地
+	const uat_URL = 'http://192.168.16.100:8203/at-employee/' // 本地
 	const pro_URL = 'https://car.zyucgj.com/at-employee/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url

+ 1 - 1
api/atorg.js

@@ -3,7 +3,7 @@ import axios from '@/libs/axios.js'
 export const findUserInfo = param => {
   return axios.request({
     url: `atorg/findOrgTree`,
-    method: 'post',
+    method: 'get',
 	data: param
   })
 }

+ 1 - 0
components/autograph-to-pic/autograph-to-pic.vue

@@ -60,6 +60,7 @@ export default {
 	watch: {
 		isEmpty: {
 			handler(value) {
+				console.log(value)
 				this.checkEmpty(value)
 			},
 			deep: true

+ 4 - 5
pages/organization/organization.vue

@@ -28,7 +28,7 @@
 						<u-icon class="listData-item-r-icon" name="yuanchengxundian" custom-prefix="xd-icon" size="40" color="#2b85e4"></u-icon>
 					</view>
 				</view>
-				<u-empty :text="noDataText" img-width="120" v-if="list.length == 0 && status != 'loading'" :margin-top="120" style="padding-bottom: 100px;" mode="list"></u-empty>
+				<u-empty :text="noDataText" img-width="120" v-if="list.length == 0 && status != 'loading'" style="padding: 150px 0 180px;background: #fff;" mode="list"></u-empty>
 			</view>
 		</view>
 	</view>
@@ -67,7 +67,7 @@
 				// 获取门店列表
 				findStoreList({ orgCode: orgCode ? orgCode : '' }).then(res => {
 					if(res.status == 200){
-						this.list = res.data.list
+						this.list = res.data
 						this.noDataText = '暂无数据'  //  有列表数据时不显示,因此只用默认设置为无数据时所需显示的'暂无数据'即可
 					}else{
 						this.list = []
@@ -80,8 +80,8 @@
 			getOrgList(){
 				findUserInfo().then(res => {
 					if(res.status == 200){
-						this.organizationList = res.data.list
-						this.organizationNowList = res.data.list
+						this.organizationList = res.data
+						this.organizationNowList = res.data
 					}else{
 						this.organizationList = []
 						this.organizationNowList = []
@@ -136,7 +136,6 @@
 								cancelText: '重新开始',
 								buttons: ['继续巡店','重新开始'],
 							    success: function (result) {
-									console.log(result.index)
 							        if (result.confirm || result.index==0) {  //  继续巡店
 										uni.navigateTo({
 											url: '/pages/shopTour/shopTour?storeId=' + item.id + '&taskId='+ res.data + '&restart=0&types=video'

+ 2 - 3
pages/searchPage/searchPage.vue

@@ -54,8 +54,8 @@
 				this.status = 'loading'
 				findStoreList({ name: this.keyword }).then(res => {
 					if(res.status == 200){
-						this.list = res.data.list
-						this.noDataText = '暂无数据'  //  有列表数据时不显示,因此只用默认设置为无数据时所需显示的'暂无数据'即可
+						this.list = res.data
+						this.noDataText = '暂无数据' //  有列表数据时不显示,因此只用默认设置为无数据时所需显示的'暂无数据'即可
 					}else{
 						this.list = []
 						this.noDataText = res.message
@@ -76,7 +76,6 @@
 								cancelText: '重新开始',
 								buttons: ['继续巡店','重新开始'],
 							    success: function (result) {
-									console.log(result.index)
 							        if (result.confirm || result.index==0) {  //  继续巡店
 										uni.navigateTo({
 											url: '/pages/shopTour/shopTour?storeId=' + item.id + '&taskId='+ res.data + '&restart=0&types=video'

+ 2 - 2
pages/shopTourRecord/shopTourRecord.vue

@@ -45,7 +45,7 @@
 					</u-sticky>
 					<view class="record-item" v-for="(item,index) in list" :key="index">
 						<view class="item-head">
-							<text class="item-c-tit">{{item.name}}</text>
+							<text class="item-c-tit">{{item.storeName}}</text>
 							<u-tag class="item-c-type" :text="item.orderStatus" type="primary" />
 						</view>
 						<view class="item-main">
@@ -54,7 +54,7 @@
 						</view>
 						<view class="item-main">
 							<text class="item-tit">创建时间:</text>
-							<text class="item-val">{{item.creatTime}}</text>
+							<text class="item-val">{{item.createDate}}</text>
 						</view>
 						<u-grid class="item-grid" :col="4" hover-class="none">
 							<u-grid-item>

+ 6 - 16
pages/signIn/signIn.vue

@@ -92,7 +92,7 @@ export default {
 		},
 		//  签到
 		signInFun() {
-			if(!this.position.latitude || !this.position.longitude){
+			if(!this.position || !this.position.latitude || !this.position.longitude){
 				uni.showToast({ icon: 'none', title: '位置获取失败,请重新定位后再进行签到' })
 				return
 			}else if(!this.photograph){
@@ -102,8 +102,10 @@ export default {
 			//  判断是否超出签到范围
 			validTaskPosition({
 				storeId: this.stores.id,
-				lat: this.position.latitude,
-				lng: this.position.longitude
+				point: {
+					lat: this.position.latitude,
+					lng: this.position.longitude,
+				}
 			}).then(res => {
 				if (res.status == 200) {
 					//  跳转开始巡店
@@ -111,19 +113,7 @@ export default {
 						url: '/pages/shopTour/shopTour?storeId=' + this.stores.id + '&types=scene'
 					})
 				} else {
-					this.isOutRange();
-				}
-			});
-		},
-		// 超出范围 提示
-		isOutRange() {
-			clzConfirm({
-				title: '提示',
-				content: '您所在的位置超出门店签到范围,无法开启巡店!',
-				showCancel: false,
-				success: function(res) {
-					if (res.confirm || res.index == 0) {
-					}
+					uni.showToast({ icon: 'none', title: res.message })
 				}
 			});
 		},

+ 5 - 5
pages/siteInspection/siteInspection.vue

@@ -38,8 +38,8 @@
 	export default{
 		data(){
 			return{
-				queryValue: '',
-				location: '陕西省西安市雁塔区丈八东路卡的时间段卡萨34345的想法双方都第三方的',
+				queryValue: '',  //  查询门店
+				location: '',  //  位置
 				noDataText: '未查找到附近门店',  //  列表请求状态提示语
 				status: 'loadmore',  //  加载中状态
 				listdata: [],  //  列表数据
@@ -89,11 +89,11 @@
 				findStoreList({
 					lng: this.lng,
 					lat: this.lat,
-					queryWord: this.queryValue
+					name: this.queryValue
 				}).then(res => {
 					console.log(res)
 					if (res.status == 200) {
-						this.listdata = res.data.list || []
+						this.listdata = res.data || []
 						this.noDataText = this.listdata.length == 0 && this.queryValue != '' ? '没有搜索到相关结果' : '未查找到附近门店'
 					} else {
 						this.listdata = []
@@ -105,7 +105,7 @@
 			// 选择门店
 			chooseStore(item){
 				uni.navigateTo({
-					url:"/pages/signIn/signIn?item="+encodeURIComponent(JSON.stringify(item))
+					url:"/pages/signIn/signIn?item=" + encodeURIComponent(JSON.stringify(item))
 				})
 			}
 		}

+ 1 - 3
pages/videoShopTour/videoShopTour.vue

@@ -51,7 +51,7 @@
 			init(){
 				this.status = 'loading'
 				// 获取门店列表
-				findStoreList({}).then(res => {
+				findStoreList().then(res => {
 					if(res.status == 200){
 						this.list = res.data || []
 						this.noDataText = '暂无数据'  //  有列表数据时不显示,因此只用默认设置为无数据时所需显示的'暂无数据'即可
@@ -78,7 +78,6 @@
 			goPage(item){
 				//  校验是否有历史巡店记录
 				queryCurrentTaskUsing({ storeId: item.id }).then(res => {
-					console.log(res,{ storeId: item.id },'---')
 					if(res.status == 200){
 						if(res.data){  //  为true有历史巡店记录
 							clzConfirm({
@@ -88,7 +87,6 @@
 								cancelText: '重新开始',
 								buttons: ['继续巡店','重新开始'],
 							    success: function (result) {
-									console.log(result.index)
 							        if (result.confirm || result.index==0) {  //  继续巡店
 										uni.navigateTo({
 											url: '/pages/shopTour/shopTour?storeId=' + item.id + '&taskId='+ res.data + '&restart=0&types=video'

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
unpackage/dist/dev/app-plus/view.umd.min.js


Некоторые файлы не были показаны из-за большого количества измененных файлов