activityBack.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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">
  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. <view class="select-box">
  123. <u-popup v-model="selectShow" mode="bottom">
  124. <view style="color: #333333; font-size: 28rpxrpx">请选择参会方式</view>
  125. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 1)">预约外呼</view>
  126. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 2)">自主拨入</view>
  127. <view style="color: #a9afb8" @click="selectShow = false">取消</view>
  128. </u-popup>
  129. </view>
  130. <view v-if="showAudioBox">
  131. <audioModule :showAudioPop.sync="showAudioPop" />
  132. </view>
  133. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  134. <videoModule :showVideoPop="showVideoPop" :videoPopList="videoPopList" />
  135. <u-modal
  136. v-model="specialGoFollowShow"
  137. :content-style="{ fontSize: '32rpx' }"
  138. :show-cancel-button="show_cancel_button"
  139. confirm-text="知道了"
  140. @cancel="isCancelBtn = false"
  141. :show-confirm-button="show_confirm_button"
  142. :show-title="false"
  143. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  144. :confirm-style="{ fontWeight: '700' }"
  145. :mask-close-able="specialIsHintShow"
  146. >
  147. <view class="slot-content">
  148. <block v-if="specialPopupMsg">
  149. <text>{{ specialAccounts }}</text>
  150. <text class="light-hint">{{ specialPopupMsg }}</text>
  151. </block>
  152. <rich-text v-else :nodes="specialAccounts"></rich-text>
  153. </view>
  154. </u-modal>
  155. </view>
  156. </template>
  157. <script>
  158. import modalDialog from "@/components/modalDialog.vue";
  159. import specialMixins from "@/activityPages/components/specialMixins.js";
  160. import myActivityMixin from "@/components/activity/indexActivity.js";
  161. import mediaMixins from "@/components/activity/mediaMixins";
  162. import freeCharge from "@/components/freeCharge";
  163. import audioModule from "@/components/audioModule/index";
  164. import videoModule from "@/components/videoModule/index";
  165. import { activity } from "@/config/api";
  166. export default {
  167. props: {
  168. collectLists: {
  169. type: Array,
  170. default: [],
  171. },
  172. tabsActiveSearch: {
  173. type: Number,
  174. },
  175. },
  176. data() {
  177. return {
  178. isShowSearch: false,
  179. status: "loadmore",
  180. totalPage: "",
  181. haveData: true,
  182. activeState: 0, //活动进行状态
  183. activeStateOption: [
  184. {
  185. name: "全部",
  186. state: 0,
  187. },
  188. {
  189. name: "可回放",
  190. state: 1,
  191. },
  192. ],
  193. selectShow: false,
  194. selectShow: false,
  195. };
  196. },
  197. mixins: [myActivityMixin, mediaMixins, specialMixins],
  198. components: {
  199. modalDialog,
  200. freeCharge,
  201. audioModule,
  202. videoModule,
  203. },
  204. watch: {
  205. collectLists: {
  206. handler(newVal) {
  207. this.collectList = newVal;
  208. },
  209. deep: true,
  210. immediate: true,
  211. },
  212. },
  213. methods: {
  214. //查看行程的事件
  215. lookImg(item) {
  216. this.getRecordTracking(this.$store.state.pageRouterActivity, { ActivityId: item.ActivityId, Source: "查看行程" });
  217. uni.previewImage({
  218. urls: [item.TripImgLink], //查看图片的数组
  219. });
  220. },
  221. // 判断几个按钮
  222. isEndBtn(item) {
  223. let isKeys = ["IsShowOutboundCall", "IsShowAppointment", "IsShowMeetingReminder", "IsShowHelpSsk", "IsShowDetails", "IsShowSignup"];
  224. let arr = [];
  225. Object.keys(item).forEach((key) => {
  226. if (isKeys.includes(key)) {
  227. item[key] && arr.push(item[key]);
  228. }
  229. });
  230. return arr.length;
  231. },
  232. },
  233. };
  234. </script>
  235. <style scoped lang="scss">
  236. .activity-pages {
  237. padding-bottom: 30rpx;
  238. }
  239. @import "@/components/activity/indexActivity.scss";
  240. .activity-search-content {
  241. background-color: #f7f7f7;
  242. .ipt-right {
  243. z-index: 11;
  244. }
  245. .collect-ltem {
  246. margin-top: 0 !important;
  247. margin-bottom: 20rpx !important;
  248. }
  249. .select-conyent {
  250. display: flex;
  251. float: right;
  252. margin-bottom: 20rpx;
  253. height: 51rpx;
  254. width: 252rpx;
  255. border-radius: 47rpx;
  256. overflow: hidden;
  257. margin-right: 30rpx;
  258. .state-item {
  259. width: 126rpx;
  260. height: 51rpx;
  261. text-align: center;
  262. line-height: 51rpx;
  263. color: #999999;
  264. font-size: 24rpx;
  265. background-color: #f8f8fa;
  266. }
  267. .state-active-item {
  268. background: #3385ff;
  269. color: #fff;
  270. border-radius: 47rpx;
  271. }
  272. }
  273. .title-date {
  274. position: relative;
  275. .audio-back {
  276. position: absolute;
  277. right: 0;
  278. top: 50%;
  279. transform: translateY(-50%);
  280. width: 99rpx;
  281. height: 39rpx;
  282. font-size: 24rpx;
  283. color: #fff;
  284. display: flex;
  285. align-items: center;
  286. background-color: #3385ff;
  287. border-radius: 20rpx;
  288. padding-left: 4rpx;
  289. .audio-img {
  290. width: 30rpx;
  291. height: 30rpx;
  292. margin: 0 5rpx;
  293. }
  294. }
  295. }
  296. .top-content {
  297. width: 100%;
  298. position: fixed;
  299. top: 0;
  300. left: 0;
  301. z-index: 99;
  302. background-color: #fff;
  303. .searchTarget-header {
  304. position: relative;
  305. width: 100%;
  306. background-color: #fff;
  307. padding: 20rpx 0;
  308. display: flex;
  309. justify-content: center;
  310. align-items: center;
  311. .sea_ipt_placeholder {
  312. color: #8d8d8d;
  313. }
  314. .sea_ipt {
  315. width: 682rpx;
  316. height: 70rpx;
  317. line-height: 70rpx;
  318. box-sizing: border-box;
  319. background: #f9f9f9;
  320. font-size: 26rpx;
  321. color: #4a4a4a;
  322. padding: 0 180rpx 0 78rpx;
  323. border-radius: 70rpx;
  324. }
  325. .sea_ico {
  326. width: 31rpx;
  327. height: 31rpx;
  328. position: absolute;
  329. left: 60rpx;
  330. top: 50%;
  331. transform: translateY(-50%);
  332. }
  333. .ipt-right {
  334. display: flex;
  335. align-items: center;
  336. position: absolute;
  337. right: 59rpx;
  338. top: 50%;
  339. transform: translateY(-50%);
  340. color: #3385ff;
  341. .line {
  342. margin: 0 21rpx;
  343. color: #e0e0e0;
  344. }
  345. }
  346. }
  347. .search-cont {
  348. height: calc(100vh - 200rpx);
  349. padding-bottom: 20rpx;
  350. overflow: hidden;
  351. overflow-y: auto;
  352. background-color: #f7f7f7;
  353. .search-cont-top {
  354. padding: 0 34rpx 0;
  355. margin-bottom: 10rpx;
  356. padding-top: 20rpx;
  357. &:last-child {
  358. margin-bottom: 0;
  359. }
  360. .cont-tit {
  361. font-size: 32rpx;
  362. margin-bottom: 20rpx;
  363. font-weight: 500;
  364. display: flex;
  365. justify-content: space-between;
  366. .empty_ico {
  367. width: 32rpx;
  368. height: 33rpx;
  369. }
  370. }
  371. .targetList {
  372. display: flex;
  373. flex-wrap: wrap;
  374. font-size: 28rpx;
  375. .target-item {
  376. width: 50%;
  377. margin-bottom: 20rpx;
  378. }
  379. .chart-item {
  380. width: 100%;
  381. margin-bottom: 20rpx;
  382. }
  383. }
  384. }
  385. }
  386. }
  387. }
  388. .content-padding {
  389. padding-top: 90rpx !important;
  390. }
  391. </style>