shenxin преди 4 години
родител
ревизия
737dbad2ff
променени са 2 файла, в които са добавени 51 реда и са изтрити 4 реда
  1. 4 3
      src/pages/classification.vue
  2. 47 1
      src/pagesSub/activity/activityDetail.vue

+ 4 - 3
src/pages/classification.vue

@@ -39,9 +39,10 @@
               v-for="(item, index) in activityList"
               :key="index">
           <activity-card :value="item"
-                          @sign-up="toActivityDetail"
-                          @click-ybm="toActivityDetail"
-                          @click-yqg="toActivityDetail">
+                         @click-card="toActivityDetail"
+                         @sign-up="toActivityDetail"
+                         @click-ybm="toActivityDetail"
+                         @click-yqg="toActivityDetail">
           </activity-card>
         </view>
         <view class="touch-bottom u-font-22 line-32 u-text-center">{{isLoadMore ? '加载中...' : '到底了~'}}</view>

+ 47 - 1
src/pagesSub/activity/activityDetail.vue

@@ -32,7 +32,7 @@
     <view class="shop-info u-m-t-16">
       <view class="u-font-36 line-50 u-tips-color bold">店铺信息</view>
       <view class="u-flex">
-        <view class="u-flex-1 u-p-r-32">
+        <view class="u-flex-1">
           <text class="shop-name u-font-28 u-tips-color line-40 u-line-1">【{{detail.plat_type | platFilter}}】{{detail.shop_name}}</text>
           <view class="u-flex"
                 @click="openMap">
@@ -158,6 +158,11 @@
         </view>
       </fixed-bottom>
     </block>
+    <view class="fixed-copy">
+      <view class="btn-copy u-font-22"
+            :style="{marginBottom: `${footerHeight}rpx`}"
+            @click.stop="copyShopName">复制店名</view>
+    </view>
   </view>
 </template>
 
@@ -284,6 +289,14 @@ export default {
       imageUrl: this.detail.imgs
     }
   },
+  onShareTimeline (res) {
+    const title = `${this.detail.activity_type === 1 ? '【免费吃】' : '【返利餐】'}${this.detail.title}`
+    return {
+      title: title,
+      path: `/pagesSub/activity/activityDetail?id=${this.detail.id}`,
+      imageUrl: this.detail.imgs
+    }
+  },
   methods: {
     reNowTime () {
       clearTimeout(this.timer)
@@ -404,6 +417,17 @@ export default {
         path: this.detail.app_info.path
       })
     },
+    copyShopName () {
+      uni.setClipboardData({
+        data: this.detail.shop_name,
+        success: () => {
+          uni.showToast({
+            icon: 'none',
+            title: '平台门店复制成功'
+          })
+        }
+      })
+    },
     copyWx () {
       uni.setClipboardData({
         data: this.detail.kf_wechat,
@@ -437,6 +461,28 @@ export default {
 
 <style lang="scss" scoped>
 .act-deltail-main {
+  .fixed-copy {
+    position: fixed;
+    bottom: 0;
+    z-index: 2000;
+    width: 100%;
+    display: flex;
+    justify-content: flex-end;
+    padding-bottom: 16rpx;
+    .btn-copy {
+      width: 72rpx;
+      height: 72rpx;
+      text-align: center;
+      padding: 8rpx;
+      margin-right: 16rpx;
+      background: #111111;
+      box-shadow: 0px 1px 4px 0px rgba(17, 17, 17, 0.6);
+      opacity: 0.8;
+      color: #eaebec;
+      font-weight: 400;
+      border-radius: 36rpx;
+    }
+  }
   .over-view {
     .detail-img {
       width: 100%;