Selaa lähdekoodia

feat bug修改

wzh 4 kuukautta sitten
vanhempi
commit
f84f2a7ffa
4 muutettua tiedostoa jossa 10 lisäystä ja 3 poistoa
  1. 4 0
      api/hexiao.js
  2. 3 0
      pages/cjx/hexiao/ywy/index.vue
  3. 1 2
      pages/cjx/hexiao/ywy/scan_code.vue
  4. 2 1
      utils/requestAdmin.js

+ 4 - 0
api/hexiao.js

@@ -430,6 +430,10 @@ export  async function uploadImage(files){
     const arr = []
     for(let i=0;i<files.length;i++){
         let url = files[i].path;
+        if(url.indexOf("https") != -1){
+            arr.push(url)
+            continue;
+        }
         let res =  await uploadImageToServer(url);
         arr.push(res);
     }

+ 3 - 0
pages/cjx/hexiao/ywy/index.vue

@@ -154,6 +154,9 @@ export default {
       }else if("pointsStats" === page){
         uni.navigateTo({ url: `/pages/cjx/hexiao/score_list?score=`+stats.pointsCount });
       }
+      else if("storeStats" === page){
+        uni.redirectTo({ url: `/pages/cjx/hexiao/ywy/retail` });
+      }
       else{
         this.build();
       }

+ 1 - 2
pages/cjx/hexiao/ywy/scan_code.vue

@@ -64,7 +64,6 @@ export default {
     uni.setNavigationBarTitle({
       title: title
     });
-    this.getCodeNumber('ac6a603e708d24c9')
     // 获取二维码列表
     // this.codeList = this.$store.state.qrCodeList;
   },
@@ -105,7 +104,7 @@ export default {
           uni.vibrateShort();
         }else{
           uni.showToast({
-            title: "该码有误",
+            title: res.msg,
             icon: 'none'
           });
         }

+ 2 - 1
utils/requestAdmin.js

@@ -3,7 +3,7 @@ import config from '@/config'
 import { getToken } from '@/utils/auth'
 import errorCode from '@/utils/errorCode'
 import { toast, showConfirm, tansParams } from '@/utils/common'
-import {getAdminToken} from "./auth";
+import {clearAdminToken, getAdminToken} from "./auth";
 
 let timeout = 10000
 const baseUrl = config.baseUrl
@@ -60,6 +60,7 @@ const request = config => {
 
       if (code === 401  || code === -10) {
         if (getAdminToken()) {
+          clearAdminToken();
           store.dispatch('LogOut').then(() => {
             uni.reLaunch({ url: '/pages/cjx/hexiao/login' })
           })