123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- <template>
- <view class="activity-content activity-search-content">
- <!-- 活动列表 -->
- <view :class="['activity-pages', tabsActiveSearch == 4 && 'content-padding']">
- <view class="collect-ul">
- <view class="collect-ltem" v-for="(item, index) in collectList" :key="index">
- <view class="title-date" @click="goDetail(item)">
- <text :class="item.ActivityType == 1 ? '' : 'xianxia'">{{ item.ActivityType == 1 ? "线上" : "线下" }}</text>
- {{ item.ActivityTimeText }}
- <view class="audio-back" v-if="item.AudioLink" @click.stop="audioPlayBack(item)">
- <image
- class="audio-img"
- :src="
- curVoiceId === item.ActivityId && !curAudioPaused
- ? 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/back_stop.png'
- : 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/back_group.png'
- "
- ></image>
- {{ curVoiceId === item.ActivityId && !curAudioPaused ? "暂停" : "回放" }}
- </view>
- </view>
- <view class="item-li">
- <view class="item-img" @click="goDetail(item)">
- <image :src="item.ImgUrl"> </image>
- <text v-if="item.ActiveState == 1" class="img-status begin">未开始</text>
- <text v-else-if="item.ActiveState == 2" class="img-status proceed">进行中</text>
- <text v-else class="img-status">已结束</text>
- <view class="img-type">
- <image :src="item.ImgUrlText" mode=""></image>
- </view>
- </view>
- <view class="item">
- <view class="item-text" @click="goDetail(item)">
- <text class="activity-title"> {{ item.ActivityName }} </text>
- <text class="text_twoLine" v-if="item.Expert">专家背景:{{ item.Expert }} </text>
- <text class="text_twoLine" v-if="item.DistinguishedGuest">嘉宾:{{ item.DistinguishedGuest }} </text>
- <text class="text_twoLine" v-if="item.Speaker">主讲人:{{ item.Speaker }}</text>
- </view>
- <block v-if="item.ActiveState == 1">
- <view :class="['bottom-box', item.ActivityTypeId == 1 && item.IsLimitPeople == 0 && 'expert-item', item.City && 'city']">
- <view class="city-img" v-if="item.City">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png"></image>
- {{ item.City }}
- </view>
- <view style="display: flex">
- <text v-if="item.IsShowOutboundCall && item.ActivityTypeId == 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
- <text v-if="item.IsShowAppointment" @click="summaryIsHandel(item)">{{ item.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
- <text v-if="item.IsShowMeetingReminder" @click="meetingReminderAdd(item.ActivityId, item.IsCancelMeetingReminder)">
- {{ item.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
- </text>
- <view v-if="item.IsShowHelpSsk" style="width: 130rpx">
- <text @click="askingGo(item)">帮我带问</text>
- </view>
- <text v-if="item.IsShowOutboundCall && item.ActivityTypeId != 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
- <text v-if="item.IsShowDetails" @click="goDetail(item)" class="button">查看详情</text>
- <block v-if="item.IsShowSignup">
- <block v-if="item.IsCClassMeeting">
- <text class="button" @click="signupIsAddOfCancel(item, 3, 'CClass')">{{ item.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
- </block>
- <block v-else>
- <text class="button" v-if="item.IsSignup !== 1" @click="wanttosignup(item)">我要报名</text>
- <text class="button" v-else @click="signupIsAddOfCancel(item, 2)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
- </block>
- </block>
- </view>
- </view>
- </block>
- <block v-else>
- <view class="bottom-box city" v-if="item.City">
- <view class="city-img">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" />
- {{ item.City }}
- </view>
- </view>
- <view class="bottom-box real-time" v-if="item.ActiveState == 2 && item.ActivityTypeId == 1">
- <text class="button" @click="askingGo(item, '提问')">实时提问</text>
- </view>
- </block>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 各种自定义弹框 -->
- <modalDialog
- :isShow="isShow"
- :signupType="signupType"
- :goFollow="goFollow"
- :signupStatus="signupStatus"
- :hasPermission="hasPermission"
- :jurisdictionList="jurisdictionList"
- :editIsShow="editIsShow"
- :isCancelShow="isCancelShow"
- :idTypeCancel="idTypeCancel"
- @cancelShowBtn="cancelEnsure"
- :countryCode="countryCode"
- :mobileEdit="mobileEdit"
- :goOnNextStep="goOnNextStep"
- :isShowhasPermission="isShowhasPermission"
- :applyForIsShow="applyForIsShow"
- :mailboxBinding="mailboxBinding"
- />
- <!-- 选择区号弹出层 -->
- <areaCode :isAreaCode="isAreaCode" :areaCode="areaCode" />
- <!-- 参会方式弹出层 -->
- <view class="select-box">
- <u-popup v-model="selectShow" mode="bottom">
- <view style="color: #333333; font-size: 28rpxrpx">请选择参会方式</view>
- <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 1)">预约外呼</view>
- <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 2)">自主拨入</view>
- <view style="color: #a9afb8" @click="selectShow = false">取消</view>
- </u-popup>
- </view>
- <view v-if="showAudioBox">
- <audioModule :showAudioPop.sync="showAudioPop" />
- </view>
- <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
- </view>
- </template>
- <script>
- import modalDialog from "@/components/modalDialog.vue";
- import areaCode from "@/components/activity/areaCode.vue";
- import myMixin from "@/components/activity/index.js";
- import myActivityMixin from "@/components/activity/indexActivity.js";
- import freeCharge from "@/components/freeCharge";
- import audioModule from "@/components/audioModule/index";
- import { activity } from "@/config/api";
- export default {
- props: {
- collectLists: {
- type: Array,
- default: [],
- },
- tabsActiveSearch: {
- type: Number,
- },
- },
- data() {
- return {
- isShowSearch: false,
- status: "loadmore",
- totalPage: "",
- haveData: true,
- activeState: 0, //活动进行状态
- activeStateOption: [
- {
- name: "全部",
- state: 0,
- },
- {
- name: "可回放",
- state: 1,
- },
- ],
- selectShow: false,
- showAudioPop: false,
- };
- },
- mixins: [myMixin, myActivityMixin],
- components: {
- modalDialog,
- areaCode,
- freeCharge,
- audioModule,
- },
- watch: {
- collectLists: {
- handler(newVal) {
- this.collectList = newVal;
- },
- deep: true,
- immediate: true,
- },
- },
- methods: {
- //获取是否需要填写区号接口
- countryCcode() {
- User.countryCcode().then((res) => {
- if (res.Ret == 200) {
- this.isNeedAddCountryCode = res.Data.IsNeedAddCountryCode;
- }
- });
- },
- //点击了回放
- async audioPlayBack(item) {
- if (!item.BackAudioPlay) {
- const res = await activity.getActivityDetail({
- ActivityId: item.ActivityId,
- });
- if (res.Ret === 200) {
- item.BackAudioPlay = res.Data;
- }
- }
- this.hasPermission = item.BackAudioPlay.HasPermission;
- this.jurisdictionList.ActivityId = item.BackAudioPlay.ActivityId;
- if (this.hasPermission == 1) {
- this.$store.commit("audioBg/parseIntAudio", true);
- // 判断是否为同一个音频
- if (this.$store.state.audioBg.activityId == item.ActivityId) {
- if (this.globalBgAudioManager.paused) {
- this.globalBgAudioManager.play();
- } else {
- this.globalBgAudioManager.pause();
- }
- } else {
- this.$store.commit("audioBg/addAudio", { list: item.VoiceList, activityId: item.ActivityId, activityTitle: item.ActivityName });
- }
- this.showAudioPop = true;
- } else if (this.hasPermission == 2) {
- this.jurisdictionList.SellerMobile = item.BackAudioPlay.SellerMobile;
- this.jurisdictionList.SellerName = item.BackAudioPlay.SellerName;
- this.jurisdictionList.PopupMsg = item.BackAudioPlay.PopupMsg;
- this.isShowhasPermission = true;
- } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
- this.jurisdictionList.PopupMsg = item.BackAudioPlay.PopupMsg;
- this.applyForIsShow = true;
- }
- },
- },
- computed: {
- curVoiceId() {
- //当前正在播放的音频id
- return this.$store.state.audioBg.activityId;
- },
- curAudioPaused() {
- //当前音频是否暂停状态
- return this.$store.state.audioBg.paused;
- },
- showAudioBox() {
- return this.$store.state.audioBg.parseIntShow;
- },
- },
- };
- </script>
- <style scoped lang="scss">
- .activity-pages {
- padding-bottom: 30rpx;
- }
- @import "@/components/activity/indexActivity.scss";
- .activity-search-content {
- background-color: #f7f7f7;
- .ipt-right {
- z-index: 11;
- }
- .collect-ltem {
- margin-top: 0 !important;
- margin-bottom: 20rpx !important;
- }
- .select-conyent {
- display: flex;
- float: right;
- margin-bottom: 20rpx;
- height: 51rpx;
- width: 252rpx;
- border-radius: 47rpx;
- overflow: hidden;
- margin-right: 30rpx;
- .state-item {
- width: 126rpx;
- height: 51rpx;
- text-align: center;
- line-height: 51rpx;
- color: #999999;
- font-size: 24rpx;
- background-color: #f8f8fa;
- }
- .state-active-item {
- background: #3385ff;
- color: #fff;
- border-radius: 47rpx;
- }
- }
- .title-date {
- position: relative;
- .audio-back {
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 99rpx;
- height: 39rpx;
- font-size: 24rpx;
- color: #fff;
- display: flex;
- align-items: center;
- background-color: #3385ff;
- border-radius: 20rpx;
- padding-left: 4rpx;
- .audio-img {
- width: 30rpx;
- height: 30rpx;
- margin: 0 5rpx;
- }
- }
- }
- .top-content {
- width: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 99;
- background-color: #fff;
- .searchTarget-header {
- position: relative;
- width: 100%;
- background-color: #fff;
- padding: 20rpx 0;
- display: flex;
- justify-content: center;
- align-items: center;
- .sea_ipt_placeholder {
- color: #8d8d8d;
- }
- .sea_ipt {
- width: 682rpx;
- height: 70rpx;
- line-height: 70rpx;
- box-sizing: border-box;
- background: #f9f9f9;
- font-size: 26rpx;
- color: #4a4a4a;
- padding: 0 180rpx 0 78rpx;
- border-radius: 70rpx;
- }
- .sea_ico {
- width: 31rpx;
- height: 31rpx;
- position: absolute;
- left: 60rpx;
- top: 50%;
- transform: translateY(-50%);
- }
- .ipt-right {
- display: flex;
- align-items: center;
- position: absolute;
- right: 59rpx;
- top: 50%;
- transform: translateY(-50%);
- color: #3385ff;
- .line {
- margin: 0 21rpx;
- color: #e0e0e0;
- }
- }
- }
- .search-cont {
- height: calc(100vh - 200rpx);
- padding-bottom: 20rpx;
- overflow: hidden;
- overflow-y: auto;
- background-color: #f7f7f7;
- .search-cont-top {
- padding: 0 34rpx 0;
- margin-bottom: 10rpx;
- padding-top: 20rpx;
- &:last-child {
- margin-bottom: 0;
- }
- .cont-tit {
- font-size: 32rpx;
- margin-bottom: 20rpx;
- font-weight: 500;
- display: flex;
- justify-content: space-between;
- .empty_ico {
- width: 32rpx;
- height: 33rpx;
- }
- }
- .targetList {
- display: flex;
- flex-wrap: wrap;
- font-size: 28rpx;
- .target-item {
- width: 50%;
- margin-bottom: 20rpx;
- }
- .chart-item {
- width: 100%;
- margin-bottom: 20rpx;
- }
- }
- }
- }
- }
- }
- .content-padding {
- padding-top: 90rpx !important;
- }
- </style>
|