activityBack.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. <template>
  2. <view class="activity-content activity-search-content">
  3. <!-- 活动列表 -->
  4. <view :class="['activity-pages', tabsActiveSearch == 4 && 'content-padding']">
  5. <view class="collect-ul">
  6. <view class="collect-ltem global_card_content" v-for="(item, index) in collectList" :key="index">
  7. <view class="reminder-item" v-if="item.SourceType == 2">
  8. <image class="item" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/trip_icon.png"></image>
  9. </view>
  10. <view class="title-date" @click="goDetail(item)">
  11. <text :class="item.ActivityType == 1 ? '' : 'xianxia'">{{ item.ActivityType == 1 ? "线上" : "线下" }}</text>
  12. {{ item.SourceType == 2 ? "" : item.ActivityTimeText }}
  13. <view class="audio-back" v-if="item.AudioLink" @click.stop="PlayBackAll(item)">
  14. <block v-if="item.FileType == 2">
  15. <image class="audio-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/video_play.png"></image>
  16. </block>
  17. <image
  18. v-else
  19. class="audio-img"
  20. :src="
  21. curVoiceId === item.ActivityId && !curAudioPaused
  22. ? 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/stop_play.png'
  23. : 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/audio_play.png'
  24. "
  25. ></image>
  26. {{ curVoiceId === item.ActivityId && !curAudioPaused ? "暂停" : "回放" }}
  27. </view>
  28. </view>
  29. <view class="item-li">
  30. <view class="item-img" @click="goDetail(item)">
  31. <image :src="item.ImgUrl"></image>
  32. <image v-if="item.ActiveState == 1" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/not_started_activity.png" class="img-status"></image>
  33. <image v-else-if="item.ActiveState == 2" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/in_progress_activity.png" class="img-status"></image>
  34. <image v-else src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/end_activity.png" class="img-status"></image>
  35. <view class="img-type">
  36. <image :src="item.ImgUrlText" mode=""></image>
  37. </view>
  38. </view>
  39. <view class="item">
  40. <view class="item-text" @click="goDetail(item)">
  41. <view class="activity-title text_twoLine">
  42. <image v-if="item.IsResearchPoints" src="https://hzstatic.hzinsights.com/cygx/icon/Research_Points.png"></image>
  43. <image v-else-if="item.IsResearch" src="https://hzstatic.hzinsights.com/cygx/icon/Research_normal.png"></image>
  44. {{ item.ActivityName }}
  45. </view>
  46. <text class="global_activity_content text_twoLine" v-if="item.Expert && item.SourceType == 1">专家背景:{{ item.Expert }} </text>
  47. <text class="global_activity_content text_twoLine" v-if="item.DistinguishedGuest">嘉宾:{{ item.DistinguishedGuest }} </text>
  48. <text class="global_activity_content text_twoLine" v-if="item.Speaker">主讲人:{{ item.Speaker }}</text>
  49. <view style="display: flex" class="global_activity_content text_twoLine" v-if="item.ActivityTimeText && item.SourceType == 2">
  50. <text style="flex-shrink: 0"> 活动时间:</text>
  51. <text> {{ item.ActivityTimeText }}</text>
  52. </view>
  53. </view>
  54. <block v-if="item.SourceType == 1">
  55. <block v-if="item.ActiveState == 1">
  56. <view :class="['bottom-box', isEndBtn(item) > 3 && 'expert-item', item.City && 'city']">
  57. <view class="city-img" v-if="item.City">
  58. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/position.png"></image>
  59. {{ item.City }}
  60. </view>
  61. <view style="display: flex">
  62. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId == 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  63. <text v-if="item.IsShowAppointment" @click="summaryIsHandel(item)">{{ item.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
  64. <text v-if="item.IsShowMeetingReminder" @click="meetingReminderAdd(item.ActivityId, item.IsCancelMeetingReminder)">
  65. {{ item.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
  66. </text>
  67. <text v-if="item.IsShowHelpSsk" @click="askingGo(item)">帮我带问</text>
  68. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId != 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  69. <text v-if="item.IsShowDetails" @click="goDetail(item)" class="button">查看详情</text>
  70. <block v-if="item.IsShowSignup">
  71. <block v-if="item.IsCClassMeeting && !item.IsYidongConduct">
  72. <text class="button" @click="signupIsAddOfCancel(item, 3, 'CClass')">{{ item.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
  73. </block>
  74. <block v-else>
  75. <text class="button" v-if="item.IsSignup !== 1" @click="wanttosignup(item)">我要报名</text>
  76. <text class="button" v-else @click="signupIsAddOfCancel(item, 2)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  77. </block>
  78. </block>
  79. </view>
  80. </view>
  81. </block>
  82. <block v-else>
  83. <view class="bottom-box city" v-if="item.City">
  84. <view class="city-img">
  85. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/position.png"></image>
  86. {{ item.City }}
  87. </view>
  88. </view>
  89. <view class="bottom-box real-time" v-if="item.ActiveState == 2 && item.ActivityTypeId == 1">
  90. <text class="button" @click="askingGo(item, '提问')">实时提问</text>
  91. </view>
  92. </block>
  93. </block>
  94. <block v-if="item.SourceType == 2">
  95. <view class="bottom-box">
  96. <view class="" style="width: 130rpx"> </view>
  97. <text @click="lookImg(item)">行程安排</text>
  98. <text v-if="item.ActiveState == 1" class="button" @click="applyOfcancel(item, 'back')">{{ item.IsSignup == 0 ? "我要报名" : "取消报名" }}</text>
  99. </view>
  100. </block>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <!-- 各种自定义弹框 -->
  107. <modalDialog
  108. :isShow="isShow"
  109. :signupType="signupType"
  110. :goFollow="goFollow"
  111. :hasPermission="hasPermission"
  112. :jurisdictionList="jurisdictionList"
  113. :editIsShow="editIsShow"
  114. :isCancelShow="isCancelShow"
  115. :idTypeCancel="idTypeCancel"
  116. :countryCode="countryCode"
  117. :mobileEdit="mobileEdit"
  118. :goOnNextStep="goOnNextStep"
  119. :isShowhasPermission="isShowhasPermission"
  120. :applyForIsShow="applyForIsShow"
  121. :mailboxBinding="mailboxBinding"
  122. />
  123. <!-- 参会方式弹出层 -->
  124. <SelectPopup :selectShow.sync="selectShow" @signupIsAddOfCancel="signupIsAddOfCancel" :selectYdong="selectYdong" />
  125. <view v-if="showAudioBox">
  126. <audioModule :showAudioPop.sync="showAudioPop" />
  127. </view>
  128. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  129. <videoModule :showVideoPop.sync="showVideoPop" :videoPopList="videoPopList" />
  130. <u-modal
  131. v-model="specialGoFollowShow"
  132. :content-style="{ fontSize: '32rpx' }"
  133. :show-cancel-button="show_cancel_button"
  134. confirm-text="知道了"
  135. @cancel="isCancelBtn = false"
  136. :show-confirm-button="show_confirm_button"
  137. :show-title="false"
  138. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  139. :confirm-style="{ fontWeight: '700' }"
  140. :mask-close-able="specialIsHintShow"
  141. >
  142. <view class="slot-content">
  143. <block v-if="specialPopupMsg">
  144. <text>{{ specialAccounts }}</text>
  145. <text class="light-hint">{{ specialPopupMsg }}</text>
  146. </block>
  147. <rich-text v-else :nodes="specialAccounts"></rich-text>
  148. </view>
  149. </u-modal>
  150. <ShowResearchDlg :isResearchModalShow.sync="isResearchModalShow" :jurisdictionList="jurisdictionList" :checkResearchList.sync="checkResearchList" />
  151. </view>
  152. </template>
  153. <script>
  154. import modalDialog from "@/components/modalDialog.vue";
  155. import specialMixins from "@/activityPages/components/specialMixins.js";
  156. import myActivityMixin from "@/components/activity/indexActivity.js";
  157. import mediaMixins from "@/components/activity/mediaMixins";
  158. import freeCharge from "@/components/freeCharge";
  159. import audioModule from "@/components/audioModule/index";
  160. import videoModule from "@/components/videoModule/index";
  161. import { activity } from "@/config/api";
  162. import SelectPopup from "@/components/activity/selectPopup";
  163. import ShowResearchDlg from "@/components/activity/showResearchDlg.vue";
  164. export default {
  165. props: {
  166. collectLists: {
  167. type: Array,
  168. default: [],
  169. },
  170. tabsActiveSearch: {
  171. type: Number,
  172. },
  173. },
  174. data() {
  175. return {
  176. isShowSearch: false,
  177. status: "loadmore",
  178. totalPage: "",
  179. haveData: true,
  180. activeState: 0, //活动进行状态
  181. activeStateOption: [
  182. {
  183. name: "全部",
  184. state: 0,
  185. },
  186. {
  187. name: "可回放",
  188. state: 1,
  189. },
  190. ],
  191. };
  192. },
  193. mixins: [myActivityMixin, mediaMixins, specialMixins],
  194. components: {
  195. modalDialog,
  196. freeCharge,
  197. audioModule,
  198. videoModule,
  199. SelectPopup,
  200. ShowResearchDlg,
  201. },
  202. watch: {
  203. collectLists: {
  204. handler(newVal) {
  205. this.collectList = newVal;
  206. },
  207. deep: true,
  208. immediate: true,
  209. },
  210. },
  211. methods: {
  212. //查看行程的事件
  213. lookImg(item) {
  214. this.getRecordTracking(this.$store.state.pageRouterActivity, { ActivityId: item.ActivityId, Source: "查看行程" });
  215. uni.previewImage({
  216. urls: [item.TripImgLink], //查看图片的数组
  217. });
  218. },
  219. // 判断几个按钮
  220. isEndBtn(item) {
  221. let isKeys = ["IsShowOutboundCall", "IsShowAppointment", "IsShowMeetingReminder", "IsShowHelpSsk", "IsShowDetails", "IsShowSignup"];
  222. let arr = [];
  223. Object.keys(item).forEach((key) => {
  224. if (isKeys.includes(key)) {
  225. item[key] && arr.push(item[key]);
  226. }
  227. });
  228. return arr.length;
  229. },
  230. },
  231. };
  232. </script>
  233. <style scoped lang="scss">
  234. .activity-pages {
  235. padding-bottom: 30rpx;
  236. }
  237. @import "@/components/activity/indexActivity.scss";
  238. .activity-search-content {
  239. background-color: $uni-bg-color;
  240. .ipt-right {
  241. z-index: 11;
  242. }
  243. .collect-ltem {
  244. margin-top: 0 !important;
  245. margin-bottom: 20rpx !important;
  246. }
  247. .select-conyent {
  248. display: flex;
  249. float: right;
  250. margin-bottom: 20rpx;
  251. height: 51rpx;
  252. width: 252rpx;
  253. border-radius: 47rpx;
  254. overflow: hidden;
  255. margin-right: 30rpx;
  256. .state-item {
  257. width: 126rpx;
  258. height: 51rpx;
  259. text-align: center;
  260. line-height: 51rpx;
  261. color: #999999;
  262. font-size: 24rpx;
  263. background-color: #f8f8fa;
  264. }
  265. .state-active-item {
  266. background: #376cbb;
  267. color: #fff;
  268. border-radius: 47rpx;
  269. }
  270. }
  271. .title-date {
  272. position: relative;
  273. .audio-back {
  274. position: absolute;
  275. right: 0;
  276. top: 50%;
  277. transform: translateY(-50%);
  278. width: 99rpx;
  279. height: 39rpx;
  280. font-size: 24rpx;
  281. color: #fff;
  282. display: flex;
  283. align-items: center;
  284. background-color: #376cbb;
  285. border-radius: 20rpx;
  286. padding-left: 4rpx;
  287. .audio-img {
  288. width: 30rpx;
  289. height: 30rpx;
  290. margin: 0 5rpx;
  291. }
  292. }
  293. }
  294. .top-content {
  295. width: 100%;
  296. position: fixed;
  297. top: 0;
  298. left: 0;
  299. z-index: 99;
  300. background-color: #fff;
  301. .searchTarget-header {
  302. position: relative;
  303. width: 100%;
  304. background-color: #fff;
  305. padding: 20rpx 0;
  306. display: flex;
  307. justify-content: center;
  308. align-items: center;
  309. .sea_ipt_placeholder {
  310. color: #8d8d8d;
  311. }
  312. .sea_ipt {
  313. width: 682rpx;
  314. height: 70rpx;
  315. line-height: 70rpx;
  316. box-sizing: border-box;
  317. background: #f9f9f9;
  318. font-size: 26rpx;
  319. color: #4a4a4a;
  320. padding: 0 180rpx 0 78rpx;
  321. border-radius: 70rpx;
  322. }
  323. .sea_ico {
  324. width: 31rpx;
  325. height: 31rpx;
  326. position: absolute;
  327. left: 60rpx;
  328. top: 50%;
  329. transform: translateY(-50%);
  330. }
  331. .ipt-right {
  332. display: flex;
  333. align-items: center;
  334. position: absolute;
  335. right: 59rpx;
  336. top: 50%;
  337. transform: translateY(-50%);
  338. color: #376cbb;
  339. .line {
  340. margin: 0 21rpx;
  341. color: #e0e0e0;
  342. }
  343. }
  344. }
  345. .search-cont {
  346. height: calc(100vh - 200rpx);
  347. padding-bottom: 20rpx;
  348. overflow: hidden;
  349. overflow-y: auto;
  350. background-color: $uni-bg-color;
  351. .search-cont-top {
  352. padding: 0 34rpx 0;
  353. margin-bottom: 10rpx;
  354. padding-top: 20rpx;
  355. &:last-child {
  356. margin-bottom: 0;
  357. }
  358. .cont-tit {
  359. font-size: 32rpx;
  360. margin-bottom: 20rpx;
  361. font-weight: 500;
  362. display: flex;
  363. justify-content: space-between;
  364. .empty_ico {
  365. width: 32rpx;
  366. height: 33rpx;
  367. }
  368. }
  369. .targetList {
  370. display: flex;
  371. flex-wrap: wrap;
  372. font-size: 28rpx;
  373. .target-item {
  374. width: 50%;
  375. margin-bottom: 20rpx;
  376. }
  377. .chart-item {
  378. width: 100%;
  379. margin-bottom: 20rpx;
  380. }
  381. }
  382. }
  383. }
  384. }
  385. }
  386. .content-padding {
  387. padding-top: 90rpx !important;
  388. }
  389. </style>