activityBack.vue 14 KB

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