liyongli před 2 roky
rodič
revize
b3373fa001
2 změnil soubory, kde provedl 2 přidání a 10 odebrání
  1. 1 1
      saveOSSAGitte.js
  2. 1 9
      src/view/SilkRoadShanShiPinList/index.vue

+ 1 - 1
saveOSSAGitte.js

@@ -17,7 +17,7 @@ class saveOssGitte {
       bucket: "smcic-index",
     });
     this.execFun();
-    // this.delDir();
+    this.delDir();
   }
 
   /**

+ 1 - 9
src/view/SilkRoadShanShiPinList/index.vue

@@ -146,12 +146,6 @@
       :before-close="beforeClose"
     >
       <van-cell-group inset>
-        <van-field
-          v-model="login.name"
-          required
-          label="姓名"
-          placeholder="请输入姓名"
-        />
         <van-field
           v-model="login.phone"
           required
@@ -249,7 +243,6 @@ const t = config.isShanShiPin ? 5 : 1;
 const phone = window.$shanshipin.Phone != 0 ? window.$shanshipin.Phone : localStorage.getItem("SilkRoadShanShiPinPhone") ||
     "";
 const login = reactive({
-  name: localStorage.getItem("SilkRoadShanShiPinName") || "",
   phone,
   code: "",
 });
@@ -299,7 +292,7 @@ const toupiao = function (item) {
 };
 
 const beforeClose = () => {
-  if (!login.phone || !login.name || !login.code) return false;
+  if (!login.phone || !login.code) return false;
 
   getTimes({
     phone: login.phone,
@@ -311,7 +304,6 @@ const beforeClose = () => {
     })
       .then(() => {
         localStorage.setItem("SilkRoadShanShiPinPhone", login.phone);
-        localStorage.setItem("SilkRoadShanShiPinName", login.name);
         return true;
       })
       .catch(() => false);