Quellcode durchsuchen

拼图模块改token验证为staff_num

tiandewen vor 3 Jahren
Ursprung
Commit
5304b373c1

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
dist/css/chunk-4b5a1784.5f39d938.css


Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 0
dist/css/chunk-5ce16ed4.34549106.css


Datei-Diff unterdrückt, da er zu groß ist
+ 2 - 2
dist/index.html


Datei-Diff unterdrückt, da er zu groß ist
+ 2 - 2
dist/js/app.f3f18138.js


Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
dist/js/app.f3f18138.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 2
dist/js/chunk-4b5a1784.4aa082b5.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 1
dist/js/chunk-4b5a1784.4aa082b5.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 2 - 0
dist/js/chunk-5ce16ed4.0cda4753.js


Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 0
dist/js/chunk-5ce16ed4.0cda4753.js.map


+ 7 - 1
src/views/ningdongyunying/puzzle/puzzle-info.vue

@@ -170,6 +170,7 @@ export default {
   },
   data() {
     return {
+      staff_num:"",
       token: "",
       // token: sessionStorage.getItem("mytoken")
       //   ? sessionStorage.getItem("mytoken")
@@ -619,6 +620,7 @@ export default {
           {
             completion_time: timeup,
             picture_id: picid,
+            staff_num:this.staff_num
           }
         )
         .then((res) => {
@@ -640,6 +642,7 @@ export default {
           "http://ningdongyunying.nxjiewei.com:8011/api/jigsawPuzzle/pictureList",
           {
             special_id: id,
+            staff_num:this.staff_num
           }
         )
         .then((res) => {
@@ -655,6 +658,7 @@ export default {
           "http://ningdongyunying.nxjiewei.com:8011/api/jigsawPuzzle/getPercentCompleteData",
           {
             special_id: id,
+            staff_num:this.staff_num
           }
         )
         .then((res) => {
@@ -695,7 +699,9 @@ export default {
   mounted() {
     document.body.style.backgroundColor = "#39f"; //背景色
     this.gettoken = getAllUrlParams(window.location.href).token;
-    this.token = `Bearer ${this.gettoken}`; //获取token值
+    // this.token = `Bearer ${this.gettoken}`; //获取token值
+    this.staff_num = getAllUrlParams(window.location.href).staff_num;
+
     // this.token=getAllUrlParams(window.location.href).token;
     // console.log(this.token);
     // this.token =