shaogen1995 2 年之前
父節點
當前提交
99d2df5c38

二進制
src/assets/img/home/1.jpg


二進制
src/assets/img/home/1.png


二進制
src/assets/img/home/10.jpg


二進制
src/assets/img/home/11.jpg


二進制
src/assets/img/home/12.jpg


二進制
src/assets/img/home/13.jpg


二進制
src/assets/img/home/14.jpg


二進制
src/assets/img/home/15.jpg


二進制
src/assets/img/home/2.jpg


二進制
src/assets/img/home/2.png


二進制
src/assets/img/home/3.jpg


二進制
src/assets/img/home/3.png


二進制
src/assets/img/home/4.jpg


二進制
src/assets/img/home/4.png


二進制
src/assets/img/home/5.jpg


二進制
src/assets/img/home/5.png


二進制
src/assets/img/home/6.jpg


二進制
src/assets/img/home/6.png


二進制
src/assets/img/home/7.jpg


二進制
src/assets/img/home/8.jpg


二進制
src/assets/img/home/9.jpg


+ 17 - 6
src/views/Construct/components/HomeList.vue

@@ -21,7 +21,7 @@
         v-for="item in dataShow"
         :key="item.id"
       >
-        <img :src="require(`@/assets/img/home/${item.id}.png`)" alt="" />
+        <img :src="require(`@/assets/img/home/${item.id}.jpg`)" alt="" />
         <div class="name">{{ item.name }}</div>
         <div class="loc">
           <img src="../../../assets/img/home/loc.png" alt="" />
@@ -53,10 +53,21 @@ export default {
     return {
       txt: "",
       data: [
-        { id: 1, name: "鸠兹古镇", loction: "芜湖城东政务新区" },
-        { id: 2, name: "芜湖老海关", loction: "芜湖市新芜区滨江北路" },
-        { id: 3, name: "方特梦幻王国万圣夜", loction: "镜湖区银湖北路" },
-        { id: 4, name: "中江塔", loction: "芜湖市镜湖区滨江路桥口" },
+        { id: 1, name: "老芜湖海关旧址", loction: "滨江公园内" },
+        { id: 2, name: "英驻芜领事署旧址", loction: "范罗山" },
+        { id: 3, name: "总税务司公所旧址", loction: "范罗山" },
+        { id: 4, name: "洋员帮办楼旧址", loction: "范罗山" },
+        { id: 5, name: "英驻芜领事官邸旧址", loction: "吉和南路 26 号雨耕山顶" },
+        { id: 6, name: "大教堂", loction: "吉和街28 号" },
+        { id: 7, name: "神父楼", loction: "吉和街28 号" },
+        { id: 8, name: "天主教主教公署旧址", loction: "狮子山马路39号" },
+        { id: 9, name: "圣母院旧址", loction: "狮子山马路39号" },
+        { id: 10, name: "天主教修士楼", loction: "大官山顶" },
+        { id: 11, name: "内思高级工业职业学校旧址", loction: "吉和街26号" },
+        { id: 12, name: "博仁堂", loction: "安师大附属外国语学校中学内" },
+        { id: 13, name: "义德堂", loction: "安师大附属外国语学校中学内" },
+        { id: 14, name: "经方堂", loction: "安师大附属外国语学校中学内" },
+        { id: 15, name: "广济寺塔", loction: "广济寺内" },
       ],
       dataShow: [],
       videoShow: false,
@@ -85,7 +96,7 @@ export default {
   },
   methods: {
     handlClick(id) {
-      if (id === 2) this.videoShow = true;
+      if (id === 1) this.videoShow = true;
       else return Toast("敬请期待!");
     },
     // 获取列表的方法

+ 26 - 5
src/views/Construct/index.vue

@@ -32,11 +32,11 @@
             <div
               class="swiper-slide"
               @click="handlClick"
-              v-for="i in 5"
-              :key="i"
+              v-for="item in data"
+              :key="item.id"
             >
-              <img src="../../assets/img/construct/sw1.png" alt="" />
-              <p>芜湖老海关{{ i }}</p>
+              <img :src="require(`@/assets/img/home/${item.id}.jpg`)" alt="" />
+              <p>{{ item.name }}</p>
             </div>
           </div>
         </div>
@@ -65,6 +65,27 @@ export default {
     return {
       vrShow: false,
       searchShow: false,
+      data: [
+        { id: 1, name: "老芜湖海关旧址", loction: "滨江公园内" },
+        { id: 2, name: "英驻芜领事署旧址", loction: "范罗山" },
+        { id: 3, name: "总税务司公所旧址", loction: "范罗山" },
+        { id: 4, name: "洋员帮办楼旧址", loction: "范罗山" },
+        {
+          id: 5,
+          name: "英驻芜领事官邸旧址",
+          loction: "吉和南路 26 号雨耕山顶",
+        },
+        { id: 6, name: "大教堂", loction: "吉和街28 号" },
+        { id: 7, name: "神父楼", loction: "吉和街28 号" },
+        { id: 8, name: "天主教主教公署旧址", loction: "狮子山马路39号" },
+        { id: 9, name: "圣母院旧址", loction: "狮子山马路39号" },
+        { id: 10, name: "天主教修士楼", loction: "大官山顶" },
+        { id: 11, name: "内思高级工业职业学校旧址", loction: "吉和街26号" },
+        { id: 12, name: "博仁堂", loction: "安师大附属外国语学校中学内" },
+        { id: 13, name: "义德堂", loction: "安师大附属外国语学校中学内" },
+        { id: 14, name: "经方堂", loction: "安师大附属外国语学校中学内" },
+        { id: 15, name: "广济寺塔", loction: "广济寺内" },
+      ],
     };
   },
   computed: {},
@@ -80,7 +101,7 @@ export default {
       slidesPerView: 1.4,
       spaceBetween: 30,
       centeredSlides: true,
-      initialSlide: 1,
+      initialSlide: 0,
     });
   },
   beforeCreate() {}, //生命周期 - 创建之前

+ 14 - 14
src/views/Interact/index.vue

@@ -80,20 +80,20 @@ export default {
   methods: {
     // 点击+号
     addInteract() {
-      this.$router.push("/layout/interact/issue");
-      // let code = this.getQueryString("code");
-      // if (code) this.$router.push("/layout/interact/issue");
-      // else {
-      //   //此处的ID是在文档的开发-基本配置里面
-      //   let appid = "wx779dbafb46bab697";
-      //   let url = "http://192.168.20.48:8080/#/layout/interact";
-      //   window.location.href =
-      //     "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" +
-      //     appid +
-      //     "&redirect_uri=" +
-      //     url +
-      //     "&response_type=code&scope=snsapi_userinfo&state=bc17befd6d5060f16de95e38f6eaf69c&connect_redirect=1#wechat_redirect";
-      // }
+      let code = this.getQueryString("code");
+      if (code) this.$router.push("/layout/interact/issue");
+      else {
+        //此处的ID是在文档的开发-基本配置里面
+        let appid = "wx3255043d1b21a4f7";
+        // let url = "http://192.168.20.48:8080/#/layout/interact";
+        let url = "www.4dage.com";
+        window.location.href =
+          "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" +
+          appid +
+          "&redirect_uri=" +
+          encodeURIComponent(url) +
+          "&response_type=code&scope=snsapi_userinfo&state=bc17befd6d5060f16de95e38f6eaf69c&connect_redirect=1#wechat_redirect";
+      }
     },
     searchFu() {
       this.getList();