xzw %!s(int64=5) %!d(string=hai) anos
pai
achega
191dc89324
Modificáronse 3 ficheiros con 15 adicións e 59696 borrados
  1. 4 4
      edit.html
  2. 11 3
      js/edit.js
  3. 0 59689
      js/mainEdit.js

+ 4 - 4
edit.html

@@ -1390,10 +1390,10 @@
     </div>
 
     <script>
-        //var token = localStorage.dcj_token
-        //if (!token) {
-         //  window.location.href = '../list/index.html'
-        //}
+        var token = localStorage.dcj_token
+        if (!token) {
+           window.location.href = '../list/index.html'
+        }
 
         var log = window.location.href.substring(window.location.href.indexOf("?") + 1).indexOf('log') > -1;
         

+ 11 - 3
js/edit.js

@@ -2,9 +2,9 @@ var ceshi = '';
 // var ceshi = 'http://192.168.0.135:8105';
  var ceshi = 'http://47.107.252.54:8105';
 
-var token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGUiOm51bGwsIm1hbmFnZXIiOm51bGwsImlkIjoxLCJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNTk2NzAxNjAyLCJpYXQiOjE1OTY2MTUyMDIsImp0aSI6Ijk0YjA5YTg1LWViY2ItNDE1Yy04OGVmLWU0MDM1M2UzYmIxYyJ9.Uzi95n0kYXp7bdpY77MdLtTpPL_Fq-jn0tE7gjg6AzA"
+//var token ="eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGUiOm51bGwsIm1hbmFnZXIiOm51bGwsImlkIjoxLCJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNTk2Nzk1NjczLCJpYXQiOjE1OTY3MDkyNzMsImp0aSI6IjBjOWE1OTA0LTM5NzgtNDY4Yi05ODA5LWRmMjY4NDdiMWVmZCJ9.ihux4chiWgbY1cxiwVKrI6XaPHGCgWuoj6uVF1KRfOo"
 //var token = window.localStorage.dcj_token
- 
+ var token = window.localStorage.bigscenetoken//军史馆
 
 function reData(data,type) {
   return JSON.stringify(data) == type ? null : data
@@ -1123,6 +1123,7 @@ EditGuide.prototype.init = function (data, data2) {
       var choice = confirm("你确定删除吗?");  // 删除导览
       if (choice) {
         $seft.closest('li').remove();
+        reIndexTourList()
       }
       else {
         return false
@@ -1173,9 +1174,16 @@ EditGuide.prototype.init = function (data, data2) {
       }
       _animate(dragingRect, draging);
       _animate(targetRect, target);
+      reIndexTourList()
     }
   }
 }
+function reIndexTourList(){
+    Array.from($(".tourList ul li")).forEach((li,index)=>{
+        $(li).find("div:first-child span").text(index+1);
+    })
+}
+
 
 /**
  * @author fyz 编辑导览数据
@@ -1297,7 +1305,7 @@ EditGuide.prototype.creatDom = function (data, data2) {
   var tourAudio = data2.tourAudio || {};
   data.model.images.forEach(function (i, index) {
     if (i.thumbnail_signed_src) {
-      var $li = $(that.dom(index, i.name, i.thumbnail_signed_src));
+      var $li = $(that.dom(index+1, i.name, i.thumbnail_signed_src));
       $li[0].data = i
       // 挂载当前导览点对应的音频链接
       if (i.sid in tourAudio && tourAudio[i.sid].music && tourAudio[i.sid].music !== '') {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 59689
js/mainEdit.js