|
@@ -89,11 +89,12 @@
|
|
cancelText: '重新开始',
|
|
cancelText: '重新开始',
|
|
buttons: ['继续巡店','重新开始'],
|
|
buttons: ['继续巡店','重新开始'],
|
|
success: function (result) {
|
|
success: function (result) {
|
|
|
|
+ console.log(result.index)
|
|
if (result.confirm || result.index==0) { // 继续巡店
|
|
if (result.confirm || result.index==0) { // 继续巡店
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/shopTour/shopTour?storeId=' + item.tenantId + '&taskId='+ res.data.taskId + '&restart=0&types=video'
|
|
url: '/pages/shopTour/shopTour?storeId=' + item.tenantId + '&taskId='+ res.data.taskId + '&restart=0&types=video'
|
|
})
|
|
})
|
|
- }else{ // 重新开始
|
|
|
|
|
|
+ }else if(result.cancel || result.index==1){ // 重新开始
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/shopTour/shopTour?storeId=' + item.tenantId + '&taskId='+ res.data.taskId + '&restart=1&types=video'
|
|
url: '/pages/shopTour/shopTour?storeId=' + item.tenantId + '&taskId='+ res.data.taskId + '&restart=1&types=video'
|
|
})
|
|
})
|