|
@@ -115,6 +115,12 @@ export default {
|
|
|
uni.showToast({ icon: 'none', title: '请拍照后再进行签到' })
|
|
|
return
|
|
|
}
|
|
|
+ // 存储当前签到信息
|
|
|
+ this.$u.vuex('vuex_sceneTaskSignIn',{
|
|
|
+ inspectorPositionAddr: '',
|
|
|
+ inspectorPositionPhotoBasePath:'',
|
|
|
+ inspectorPositionPhotoPath: this.photograph
|
|
|
+ })
|
|
|
// 判断是否超出签到范围
|
|
|
validTaskPosition({
|
|
|
storeId: this.stores.id,
|
|
@@ -125,9 +131,18 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
// 跳转开始巡店
|
|
|
- uni.redirectTo({
|
|
|
- url: '/pages/shopTour/shopTour?storeId=' + this.stores.id + '&types=scene'
|
|
|
- })
|
|
|
+ let item = this.stores
|
|
|
+ // 重新开始巡店
|
|
|
+ if(item.taskId&&item.restart){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/shopTour/shopTour?storeId=' + item.id + '&taskId='+ item.taskId + '&restart=1&types=scene'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ // 首次巡店
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/shopTour/shopTour?storeId=' + item.id + '&types=scene'
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
uni.showToast({ icon: 'none', title: res.message })
|
|
|
}
|