فهرست منبع

删除build:prod输入密码操作

zhujindu 10 ماه پیش
والد
کامیت
1a90c7b51c
4فایلهای تغییر یافته به همراه98 افزوده شده و 101 حذف شده
  1. 0 3
      README.md
  2. 0 19
      checkPassword.js
  3. 1 1
      package.json
  4. 97 78
      src/views/home/hintTabPage/unCreateStore.vue

+ 0 - 3
README.md

@@ -24,8 +24,5 @@ npm run prod // 生产环境
 ```
 npm run build:dev  // 测试环境
 npm run build:prod // 生产环境
-//为了避免测试环境意外打包成正式环境,在打包正式环境之前添加密码校验操作
-//密码:admin
-checkPassword.js 生产环境打包校验
 
 ```

+ 0 - 19
checkPassword.js

@@ -1,19 +0,0 @@
-// scripts/password-check.js
-const readline = require('readline');
-
-const rl = readline.createInterface({
-  input: process.stdin,
-  output: process.stdout,
-});
-
-rl.question('请输入密码: ', (password) => {
-  rl.close();
-  if (password === 'admin') {
-    // 替换为你的实际密码
-    console.log('密码正确,开始打包...');
-    process.exit(0);
-  } else {
-    console.error('密码错误,打包终止!');
-    process.exit(1);
-  }
-});

+ 1 - 1
package.json

@@ -7,7 +7,7 @@
     "test": "vue-cli-service serve --mode test",
     "prod": "vue-cli-service serve --mode production",
     "build:dev": "vue-cli-service build --mode development",
-    "build:prod": "node checkPassword.js && vue-cli-service build",
+    "build:prod": "vue-cli-service build",
     "lint": "vue-cli-service lint"
   },
   "dependencies": {

+ 97 - 78
src/views/home/hintTabPage/unCreateStore.vue

@@ -341,94 +341,113 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
+/* Base container styles */
 .unCreateStore {
   height: 100%;
   width: 100%;
-  /* overflow-y: auto; */
+
   .content {
     padding: 8px 10px;
-    .item {
-      padding: 8px 10px;
-      margin: 10px 0;
-      background: #fff;
-      .van-cell__right-icon {
-        height: 144px;
-        line-height: 144px;
-        margin-right: 10px;
-      }
-      .van-cell {
-        padding: 0;
-      }
-      .card {
-        box-sizing: border-box;
-        .title {
-          font-size: 16px;
-          font-weight: bold;
-          color: #333;
-          line-height: 30px;
-        }
-        .info {
-          font-size: 14px;
-          color: #909090;
-          line-height: 26px;
-        }
-      }
-      .visitStoreIco {
-        float: left;
-        float: left;
-        width: 26px;
-        text-align: center;
-        background-color: #ffba13;
-        color: #fff;
-        border-radius: 100%;
-        margin-left: 14px;
-        line-height: 26px;
-        height: 26px;
-      }
-      .centerBtn {
-        /* margin: 0 auto 10px; */
-        display: block;
-        width: 92%;
-        color: #0057ba;
-        border-radius: 5px;
-        padding: 0 6px;
-        height: 28px;
-      }
-      .ctns {
-        position: absolute;
-        top: 0px;
-        right: 0px;
-        width: 77px;
-      }
-      .statusIcon {
-        padding: 3px;
-        font-size: 12px;
-        margin: 0 3px;
-        color: #fff;
-        display: inline-block;
-        height: 20px;
-        line-height: 16px;
-        vertical-align: -1px;
-      }
-      .submit {
-        background: #ffba13;
-      }
-      .noSubmit {
-        background: #f11818;
-      }
+  }
+}
+
+/* Store item styles */
+.item {
+  padding: 8px 10px;
+  margin: 10px 0;
+  background: #fff;
+
+  .van-cell {
+    padding: 0;
+
+    &__right-icon {
+      height: 144px;
+      line-height: 144px;
+      margin-right: 10px;
     }
   }
-  .van-collapse-item {
-    border-bottom: 1px solid #dcdcdc;
+}
+
+/* Card styles */
+.card {
+  box-sizing: border-box;
+
+  .title {
+    font-size: 16px;
+    font-weight: bold;
+    color: #333;
+    line-height: 30px;
+  }
+
+  .info {
+    font-size: 14px;
+    color: #909090;
+    line-height: 26px;
+  }
+}
+
+/* Icon styles */
+.visitStoreIco {
+  float: left;
+  width: 26px;
+  text-align: center;
+  background-color: #ffba13;
+  color: #fff;
+  border-radius: 100%;
+  margin-left: 14px;
+  line-height: 26px;
+  height: 26px;
+}
+
+/* Button styles */
+.centerBtn {
+  display: block;
+  color: #0057ba;
+  border-radius: 5px;
+  padding: 0 6px;
+  height: 28px;
+
+  &.ctns {
+    position: absolute;
+    top: 0;
+    right: 0;
+    width: 77px;
+  }
+}
+
+/* Status styles */
+.statusIcon {
+  padding: 3px;
+  font-size: 12px;
+  margin: 0 3px;
+  color: #fff;
+  display: inline-block;
+  height: 20px;
+  line-height: 16px;
+  vertical-align: -1px;
+
+  &.submit {
+    background: #ffba13;
   }
-  .TCFXListItem {
-    display: inline-block;
-    border: 1px solid #ccc;
-    padding: 3px 5px;
-    margin: 0 5px;
-    border-radius: 6px;
+
+  &.noSubmit {
+    background: #f11818;
   }
 }
+
+/* List item styles */
+.TCFXListItem {
+  display: inline-block;
+  border: 1px solid #ccc;
+  padding: 3px 5px;
+  margin: 0 5px;
+  border-radius: 6px;
+}
+
+/* Collapse styles */
+.van-collapse-item {
+  border-bottom: 1px solid #dcdcdc;
+}
 </style>
 <style lang="scss">
 .unCreateStore {