Browse Source

更新 资源路径;新功能日志

wzg 2 years ago
parent
commit
de4c08924f

+ 6 - 7
src/components/Header.vue

@@ -79,8 +79,7 @@
         background
         layout="prev, pager, next"
         :total="total"
-      >
-      </el-pagination>
+      ></el-pagination>
       <template #footer>
         <span class="dialog-footer">
           <el-button type="primary" @click="dialogVisible = false">
@@ -98,10 +97,10 @@ import api from "../apis/fetch";
 import { onMounted, ref } from "vue";
 import { BellFilled } from "@element-plus/icons";
 import _ from "lodash";
-import { AnonymousLogin, tcb } from "../apis/cloudLogin";
-const db = tcb.database();
-const v = db.collection("huihenduo_versions");
-const __ = db.command;
+// import { AnonymousLogin, tcb } from "../apis/cloudLogin";
+// const db = tcb.database();
+// const v = db.collection("huihenduo_versions");
+// const __ = db.command;
 
 export default {
   components: {
@@ -171,7 +170,7 @@ export default {
       //     getUnphotographNotice();
       //   }
       // }, 2 * 60 * 1000);
-      cloudLogin();
+      // cloudLogin();
     });
     let timelineData = ref([]);
     async function cloudLogin() {

+ 1 - 1
src/views/index/Login.vue

@@ -193,7 +193,7 @@ export default {
 .title-left {
   height: 38px;
   width: 105px;
-  background: url(https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/%E6%B1%87%E5%BE%88%E5%A4%9Alogo-%E5%B7%A6%E5%8F%B3.png?sign=22b9335300bbef8d04da1b9b75589f7e&t=1634706935);
+  background: url(https://frontend-1255802371.cos.ap-shanghai.myqcloud.com/miniapp-static/%E6%B1%87%E5%BE%88%E5%A4%9Alogo-%E5%B7%A6%E5%8F%B3.png?sign=22b9335300bbef8d04da1b9b75589f7e&t=1634706935);
   background-size: contain;
   background-repeat: no-repeat;
 }

+ 56 - 39
src/views/toolManage/urls.vue

@@ -1,9 +1,9 @@
 <template>
   <div class="full-container-p24">
     <div class="df jcfe pb20">
-      <el-button size="medium" type="primary" @click="modalVisable = true"
-        >新增项目</el-button
-      >
+      <el-button size="medium" type="primary" @click="modalVisable = true">
+        新增项目
+      </el-button>
     </div>
     <el-card>
       <template #header>
@@ -26,8 +26,9 @@
                   @click="edit(item, index, item.type)"
                   size="small"
                   type="text"
-                  >修改</el-button
                 >
+                  修改
+                </el-button>
                 <el-popconfirm
                   title="确认删除项目?"
                   @confirm="deleteItem(item._id, index, item.type)"
@@ -41,24 +42,25 @@
           </template>
           <div class="mb10 df jscb card-line aic" v-if="item.master_url">
             <div class="s-title">正式版:</div>
-            <el-button size="medium" type="text" @click="goTo(item.master_url)"
-              >去访问</el-button
-            >
+            <el-button size="medium" type="text" @click="goTo(item.master_url)">
+              去访问
+            </el-button>
             <el-button
               size="small"
               type="primary"
               @click="copy2(item.master_url)"
-              >复制链接</el-button
             >
+              复制链接
+            </el-button>
           </div>
           <div class="mb10 df jscb card-line aic" v-if="item.dev_url">
             <div class="s-title">测试版:</div>
-            <el-button size="medium" type="text" @click="goTo(item.dev_url)"
-              >去访问</el-button
-            >
-            <el-button size="small" type="primary" @click="copy2(item.dev_url)"
-              >复制链接</el-button
-            >
+            <el-button size="medium" type="text" @click="goTo(item.dev_url)">
+              去访问
+            </el-button>
+            <el-button size="small" type="primary" @click="copy2(item.dev_url)">
+              复制链接
+            </el-button>
           </div>
           <div class="mb10 df jscb card-line aic" v-if="item.master_api">
             <div class="s-title">正式接口:</div>
@@ -66,14 +68,16 @@
               size="medium"
               type="text"
               @click="goTo(item.master_api + 'swagger-ui.html#/')"
-              >访问文档</el-button
             >
+              访问文档
+            </el-button>
             <el-button
               size="small"
               type="primary"
               @click="copy2(item.master_api + 'swagger-ui.html#/')"
-              >复制接口</el-button
             >
+              复制接口
+            </el-button>
           </div>
           <div class="mb10 df jscb card-line aic" v-if="item.dev_api">
             <div class="s-title">测试接口:</div>
@@ -81,20 +85,22 @@
               size="medium"
               type="text"
               @click="goTo(item.dev_api + 'swagger-ui.html#/')"
-              >访问文档</el-button
             >
+              访问文档
+            </el-button>
             <el-button
               size="small"
               type="primary"
               @click="copy2(item.dev_api + 'swagger-ui.html#/')"
-              >复制接口</el-button
             >
+              复制接口
+            </el-button>
           </div>
           <div class="mb10 df jscb card-line aic" v-if="item.desc">
             <div class="s-title">备注:</div>
             <div>{{ item.desc }}</div>
-          </div></el-card
-        >
+          </div>
+        </el-card>
       </div>
     </el-card>
     <el-card style="margin-top: 30px">
@@ -118,8 +124,9 @@
                   @click="edit(item, index, item.type)"
                   size="small"
                   type="text"
-                  >修改</el-button
                 >
+                  修改
+                </el-button>
                 <el-popconfirm
                   title="确认删除项目?"
                   @confirm="deleteItem(item._id, index, item.type)"
@@ -187,14 +194,16 @@
               size="medium"
               type="text"
               @click="goTo(item.master_api + 'swagger-ui.html#/')"
-              >访问文档</el-button
             >
+              访问文档
+            </el-button>
             <el-button
               size="small"
               type="primary"
               @click="copy2(item.master_api + 'swagger-ui.html#/')"
-              >复制接口</el-button
             >
+              复制接口
+            </el-button>
           </div>
           <div class="mb10 df jscb card-line aic" v-if="item.dev_api">
             <div class="s-title">测试接口:</div>
@@ -202,20 +211,22 @@
               size="medium"
               type="text"
               @click="goTo(item.dev_api + 'swagger-ui.html#/')"
-              >访问文档</el-button
             >
+              访问文档
+            </el-button>
             <el-button
               size="small"
               type="primary"
               @click="copy2(item.dev_api + 'swagger-ui.html#/')"
-              >复制接口</el-button
             >
+              复制接口
+            </el-button>
           </div>
           <div class="mb10 df jscb card-line aic" v-if="item.desc">
             <div class="s-title">备注:</div>
             <div>{{ item.desc }}</div>
-          </div></el-card
-        >
+          </div>
+        </el-card>
       </div>
     </el-card>
     <el-dialog
@@ -286,8 +297,9 @@
             type="primary"
             v-else
             @click="upload('master_url')"
-            >上传</el-button
           >
+            上传
+          </el-button>
         </el-form-item>
         <el-form-item
           label="体验版二维码"
@@ -305,8 +317,9 @@
             type="primary"
             v-else
             @click="upload('dev_url')"
-            >上传</el-button
           >
+            上传
+          </el-button>
         </el-form-item>
         <el-form-item label="正式接口地址" prop="master_api">
           <el-input
@@ -336,29 +349,33 @@
               type="primary"
               @click="cancel()"
               v-if="currentItemId"
-              >取消</el-button
             >
+              取消
+            </el-button>
             <el-button
               size="medium"
               type="primary"
               @click="resetForm(ruleFormRef)"
               v-else
-              >重置</el-button
             >
+              重置
+            </el-button>
             <el-button
               size="medium"
               type="primary"
               @click="update(ruleFormRef)"
               v-if="currentItemId"
-              >提交修改</el-button
             >
+              提交修改
+            </el-button>
             <el-button
               size="medium"
               type="primary"
               @click="submitForm(ruleFormRef)"
               v-else
-              >创建项目</el-button
             >
+              创建项目
+            </el-button>
           </div>
         </el-form-item>
       </el-form>
@@ -368,16 +385,16 @@
 
 <script setup>
 import { reactive, ref, onMounted } from "vue";
-import { AnonymousLogin, tcb } from "apis/cloudLogin";
+// import { AnonymousLogin, tcb } from "apis/cloudLogin";
 import _ from "lodash";
 import { ElMessage, ElMessageBox } from "element-plus";
 import store from "../../store";
 import { chooseFile } from "../../utils/chooseFile";
 import copy from "copy-to-clipboard";
 
-const db = tcb.database();
-const p = db.collection("huihenduo_projects");
-const __ = db.command;
+// const db = tcb.database();
+// const p = db.collection("huihenduo_projects");
+// const __ = db.command;
 let pcData = ref([]);
 let wxData = ref([]);
 async function init() {
@@ -510,7 +527,7 @@ function copy2(url) {
 }
 
 onMounted(() => {
-  init();
+  // init();
 });
 </script>
 
@@ -532,4 +549,4 @@ onMounted(() => {
   color: #555;
   font-size: 15px;
 }
-</style>
+</style>

+ 19 - 16
src/views/toolManage/versions.vue

@@ -1,9 +1,13 @@
 <template>
   <div class="mt10 df aic jcsb">
     <div>
-      <el-button type="primary" class="mb20 mr30" @click="isModalVisable = true"
-        >添加版本记录</el-button
+      <el-button
+        type="primary"
+        class="mb20 mr30"
+        @click="isModalVisable = true"
       >
+        添加版本记录
+      </el-button>
       <el-popover placement="bottom" trigger="hover" :width="240">
         <div style="width: 100%; height: 80vh; overflow-y: scroll">
           <el-timeline>
@@ -29,7 +33,7 @@
         <template #reference>
           <el-badge value="new">
             <!-- <div class="log">新功能日志</div> -->
-            <el-button> 新功能日志</el-button>
+            <el-button>新功能日志</el-button>
           </el-badge>
         </template>
       </el-popover>
@@ -66,8 +70,7 @@
             placeholder="请选择日期"
             format="YYYY/MM/DD"
             value-format="YYYY/MM/DD"
-          >
-          </el-date-picker>
+          ></el-date-picker>
         </el-form-item>
         <hr class="mb20" />
         <el-form-item
@@ -82,9 +85,9 @@
               v-model="item.text"
               autosize
             ></el-input>
-            <el-button size="small" @click="deleteRemark(index)" type="danger"
-              >删除</el-button
-            >
+            <el-button size="small" @click="deleteRemark(index)" type="danger">
+              删除
+            </el-button>
           </div>
         </el-form-item>
         <div class="df aic jcfe">
@@ -92,8 +95,9 @@
             size="small"
             type="primary"
             @click="ruleForm.remarks.push({})"
-            >添加一条记录</el-button
           >
+            添加一条记录
+          </el-button>
         </div>
         <hr class="mt20 mb20" />
         <div class="df aic jcfe">
@@ -176,13 +180,13 @@
 
 <script setup>
 import { reactive, ref, onMounted } from "vue";
-import { AnonymousLogin, tcb } from "apis/cloudLogin";
+// import { AnonymousLogin, tcb } from "apis/cloudLogin";
 import _ from "lodash";
 import { ElMessage, ElMessageBox } from "element-plus";
 import store from "../../store";
-const db = tcb.database();
-const v = db.collection("huihenduo_versions");
-const __ = db.command;
+// const db = tcb.database();
+// const v = db.collection("huihenduo_versions");
+// const __ = db.command;
 
 let versions = ref([]);
 let isModalVisable = ref(false);
@@ -335,9 +339,8 @@ function pageChange(e) {
 }
 
 onMounted(() => {
-  init();
+  // init();
 });
 </script>
 
-<style scoped>
-</style>
+<style scoped></style>