Browse Source

添加图片管理

wangningfei 3 years ago
parent
commit
ba8579384b

+ 22 - 6
vue-admin-template-master/src/router/index.js

@@ -78,13 +78,27 @@ export const constantRoutes = [
         name: "Message",
         component: () => import("@/views/shop/message/index"),
         meta: { title: "门店管理" }
+      },
+      {
+        path: "manageimg",
+        name: "manageimg",
+        component: () => import("@/views/shop/manageimg/index"),
+        meta: { title: "图片管理" }
+      },
+      {
+        hidden: true,
+        path: "trim",
+        name: "Trim",
+        component: () => import("@/views/shop/trim/index"),
+        meta: { title: "门店设置" }
+      },
+      {
+        hidden: true,
+        path: "setStore",
+        name: "SetStore",
+        component: () => import("@/views/shop/setStore/index"),
+        meta: { title: "上线门店" }
       }
-      // {
-      //   path: "trim",
-      //   name: "Trim",
-      //   component: () => import("@/views/shop/trim/index"),
-      //   meta: { title: "门店装修" }
-      // }
     ]
   },
   //商品
@@ -102,6 +116,7 @@ export const constantRoutes = [
   },
   //商户统计
   {
+    hidden: true,
     path: "/merchant",
     component: Layout,
     children: [
@@ -151,6 +166,7 @@ export const constantRoutes = [
   },
   //统计
   {
+    hidden: true,
     path: "/statistics",
     component: Layout,
     children: [

+ 52 - 0
vue-admin-template-master/src/views/shop/manageimg/index.vue

@@ -0,0 +1,52 @@
+<template>
+  <div>
+    <el-card class="box-card">
+      <div slot="header" class="clearfix">
+        <span>图片下载</span>
+      </div>
+      <div v-for="item in list" :key="item" class="text item">
+        <el-link type="primary" :href="baseUrl + item"
+          ><span class="text-size">{{ item | nameFilter }}</span></el-link
+        >
+      </div>
+    </el-card>
+  </div>
+</template>
+<script>
+export default {
+  name: "manageimg",
+  filters: {
+    nameFilter(o) {
+      return o.split(".")[0];
+    }
+  },
+  data() {
+    return {
+      baseUrl:
+        "https://cirraybucket.oss-cn-shanghai.aliyuncs.com/nowwa/qrcode/",
+      list: [
+        "小程序主二维码.jpeg",
+        "测试门店菜单.png",
+        "东阳江北店.png",
+        "九眼桥店.png",
+        "外图店.png",
+        "太和中心店.png",
+        "宝龙城市广场店.png",
+        "科巷店.png",
+        "鹏瑞利店.png"
+      ]
+    };
+  }
+};
+</script>
+<style>
+.box-card {
+  margin: 20px;
+}
+.item {
+  padding: 5px;
+}
+.text-size {
+  font-size: 18px;
+}
+</style>

+ 1 - 0
vue-admin-template-master/src/views/shop/message/index.vue

@@ -127,6 +127,7 @@
         <el-table-column
           label="操作"
           align="center"
+          fixed="right"
           class-name="small-padding fixed-width"
         >
           <template slot-scope="{ row }">