activityBack.vue 13 KB

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