Procházet zdrojové kódy

添加分享图片

306132416@qq.com před 4 roky
rodič
revize
c112cb3995
2 změnil soubory, kde provedl 14 přidání a 7 odebrání
  1. 14 7
      pages/index/index.vue
  2. binární
      static/shareImg2.png

+ 14 - 7
pages/index/index.vue

@@ -301,13 +301,14 @@ export default {
       scrollVal: Number,
       footFlag: true,
 	  btnPos:uni.getMenuButtonBoundingClientRect().top + 6,
+	  shareImgUrl:'',
       swiperList: [
-        {
-          img: "/static/swiper/swiper1.jpg",
-        },
-        {
-          img: "/static/swiper/swiper2.jpg",
-        },
+        // {
+        //   img: "/static/swiper/swiper1.jpg",
+        // },
+        // {
+        //   img: "/static/swiper/swiper2.jpg",
+        // },
       ],
       swiperCurrent: 0,
       navList: [
@@ -441,7 +442,12 @@ export default {
     this.getAttract(); //招商接口
   },
   onShareAppMessage() {
-    url: "/pages/index/index";
+  //  url: "/pages/index/index";
+      return {
+        title: '爱企通',
+        path: '/pages/index/index',
+		imageUrl:'/static/shareImg2.png',
+      }
   },
   methods: {
     swiperChange(e) {
@@ -519,6 +525,7 @@ export default {
               item.pic_path = getApp().globalData.shareUrl + item.pic_path;
             });
             this.swiperList = res.data.data.list;
+			// this.shareImgUrl = res.data.data.list[0].pic_path
           }
         },
         fail: () => {

binární
static/shareImg2.png