From e1e2fe5710a5b5cd9c19bd3aa99c998a1a613ca8 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 17 Jan 2026 17:58:01 +0800
Subject: [PATCH] 团购组件增加筛选
---
mobile/pages/branch/activity/detail/detail.vue | 34 ++++++++++++++++++++++++++++++----
1 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/mobile/pages/branch/activity/detail/detail.vue b/mobile/pages/branch/activity/detail/detail.vue
index ac8af60..513f949 100644
--- a/mobile/pages/branch/activity/detail/detail.vue
+++ b/mobile/pages/branch/activity/detail/detail.vue
@@ -81,7 +81,7 @@
<image :src="item.avatarUrl" mode="aspectFill"></image>
<text class="text-ellipsis">{{item.real_name}}</text>
</view>
- <view class="more d-c-c d-c" v-if="activityData.total > 6" @click="openUser">
+ <view class="more d-c-c d-c" v-if="activityData.total > 5" @click="openUser">
<view class="d-c-c more-icon">
<text class="iconfont icon-gengduo"></text>
</view>
@@ -528,10 +528,12 @@
onReg(e) {
this.$refs.regForm.activityData = this.activityData;
+ /* this.$refs.regForm.branch_name = this.activityData.branch.name;
+ this.$refs.regForm.formData.branch_id = this.activityData.branch_id; */
this.is_friend = e;
- if (this.activityData.fee > 0 || e) {
+ //if (this.activityData.fee > 0 || e || !this.activityData.is_member) {
this.isOpenReg = true;
- } else {
+ /* } else {
uni.showModal({
title: '提示',
content: '确定要报名吗?',
@@ -541,7 +543,7 @@
}
}
});
- }
+ } */
},
closeRegFunc(e) {
@@ -795,6 +797,30 @@
this.isOpenUser = false;
},
+ },
+ onShareAppMessage() {
+ if (this.activityData) {
+ return {
+ title: `${this.activityData.name}`,
+ path: `/pages/plus/business/detail?activity_id=${this.activity_id}`
+ };
+ }
+ return {
+ title: '活动详情',
+ path: `/pages/plus/business/detail?activity_id=${this.activity_id}`
+ };
+ },
+ onShareTimeline() {
+ if (this.activityData) {
+ return {
+ title: `${this.activityData.name}`,
+ path: `/pages/plus/business/detail?activity_id=${this.activity_id}`
+ };
+ }
+ return {
+ title: '活动详情',
+ path: `/pages/plus/business/detail?activity_id=${this.activity_id}`
+ };
}
}
</script>
--
Gitblit v1.9.2