Ver Fonte

增加分享功能

vaecebyZ há 1 ano atrás
pai
commit
d2bc09cc09

+ 6 - 6
components/zs-tab-bar/index.vue

@@ -36,7 +36,7 @@
           src="@/static/icon/taskBar/act.png"
         ></image>
       </u-tabbar-item>
-      <u-tabbar-item text="生活">
+      <!-- <u-tabbar-item text="生活">
         <image
           class="u-page__item__slot-icon"
           slot="active-icon"
@@ -48,7 +48,7 @@
           slot="inactive-icon"
           src="@/static/icon/taskBar/life.png"
         ></image>
-      </u-tabbar-item>
+      </u-tabbar-item> -->
       <u-tabbar-item text="我的">
         <image
           class="u-page__item__slot-icon"
@@ -89,10 +89,10 @@ export default {
           text: "活动",
           pagePath: "pages/activity/index",
         },
-        {
-          text: "生活",
-          pagePath: "pages/life/index",
-        },
+        // {
+        //   text: "生活",
+        //   pagePath: "pages/life/index",
+        // },
         {
           text: "我的",
           pagePath: "pages/my/index",

+ 7 - 0
detail/goodsDetail/index.vue

@@ -136,6 +136,13 @@ export default {
       shopInfo: {},
     };
   },
+  onShareAppMessage() {
+    return {
+      title: this.info.goodsName,
+      path: `/detail/goodsDetail/index?id=${this.info.goodsId}`,
+      desc: '贵大印象文创'
+    };
+  },
   methods: {
     filterMsg(val) {
       if(!isNaN(val)){

+ 1 - 1
milktea/index.vue

@@ -45,7 +45,7 @@
               <image class="card-item-img" src="https://oss.dev.zonelife.cn/static/guida/img/milktea/index/send.png">
               </image>
             </view>
-            <view class="title-moji">印象配送</view>
+            <view class="title-moji">更多选择</view>
             <view class="subtitle">尽情期待...</view>
           </view>
 

+ 15 - 0
pages/activity/index.vue

@@ -33,6 +33,21 @@
           </view>
         </view>
       </uni-card>
+      <!-- <uni-card v-for="item in 1" :key="item" padding="0" spacing="0">
+      <view @click.stop="onClick">
+        <image
+          slot="cover"
+          class="cover"
+          src="https://oss.dev.zonelife.cn/static/guida/img/act/15519395654249311.jpg"
+        ></image>
+        <view class="content-box">
+          <view class="title">期待与生活与“粽”不同</view>
+          <view class="sub-title">
+            期待与生活与“粽”不同期待与生活与“粽”不同
+          </view>
+        </view>
+      </view>
+    </uni-card> -->
     </zs-list>
     <zs-tab-bar :value="1"></zs-tab-bar>
   </view>

+ 13 - 0
pages/index/index.vue

@@ -140,6 +140,19 @@ export default {
       this.getCity(),
     ]).then((res) => { });
   },
+  onShareTimeline() {
+    return {
+      title: "印象贵大文创",
+      query: "id=1",
+      imageUrl: "https://oss.dev.zonelife.cn/static/guida/img/logo.jpg",
+    };
+  },
+  onShareAppMessage() {
+    return {
+      title: "印象贵大文创",
+      path: "/pages/index/index",
+    };
+  },
   methods: {
     goGoodsDetail(item) {
       uni.setStorageSync("shopInfo", JSON.stringify(item));

+ 8 - 8
pages/my/index.vue

@@ -126,14 +126,14 @@ export default {
           title: "活动管理",
           path: "../../my/activityManage/index",
         },
-        {
-          name: "location",
-          title: "收货地址",
-        },
-        {
-          name: "heart",
-          title: "我的收藏",
-        },
+        // {
+        //   name: "location",
+        //   title: "收货地址",
+        // },
+        // {
+        //   name: "heart",
+        //   title: "我的收藏",
+        // },
         {
           name: "coupon",
           title: "我的优惠券",