activityBack.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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.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.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>
  43. <block v-if="item.ActiveState == 1">
  44. <view :class="['bottom-box', item.ActivityTypeId == 1 && item.IsLimitPeople == 0 && 'expert-item', item.City && 'city']">
  45. <view class="city-img" v-if="item.City">
  46. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png"></image>
  47. {{ item.City }}
  48. </view>
  49. <view style="display: flex">
  50. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId == 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  51. <text v-if="item.IsShowAppointment" @click="summaryIsHandel(item)">{{ item.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
  52. <text v-if="item.IsShowMeetingReminder" @click="meetingReminderAdd(item.ActivityId, item.IsCancelMeetingReminder)">
  53. {{ item.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
  54. </text>
  55. <view v-if="item.IsShowHelpSsk" style="width: 130rpx">
  56. <text @click="askingGo(item)">帮我带问</text>
  57. </view>
  58. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId != 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  59. <text v-if="item.IsShowDetails" @click="goDetail(item)" class="button">查看详情</text>
  60. <block v-if="item.IsShowSignup">
  61. <block v-if="item.IsCClassMeeting">
  62. <text class="button" @click="signupIsAddOfCancel(item, 3, 'CClass')">{{ item.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
  63. </block>
  64. <block v-else>
  65. <text class="button" v-if="item.IsSignup !== 1" @click="wanttosignup(item)">我要报名</text>
  66. <text class="button" v-else @click="signupIsAddOfCancel(item, 2)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  67. </block>
  68. </block>
  69. </view>
  70. </view>
  71. </block>
  72. <block v-else>
  73. <view class="bottom-box city" v-if="item.City">
  74. <view class="city-img">
  75. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" />
  76. {{ item.City }}
  77. </view>
  78. </view>
  79. <view class="bottom-box real-time" v-if="item.ActiveState == 2 && item.ActivityTypeId == 1">
  80. <text class="button" @click="askingGo(item, '提问')">实时提问</text>
  81. </view>
  82. </block>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 各种自定义弹框 -->
  89. <modalDialog
  90. :isShow="isShow"
  91. :signupType="signupType"
  92. :goFollow="goFollow"
  93. :signupStatus="signupStatus"
  94. :hasPermission="hasPermission"
  95. :jurisdictionList="jurisdictionList"
  96. :editIsShow="editIsShow"
  97. :isCancelShow="isCancelShow"
  98. :idTypeCancel="idTypeCancel"
  99. :countryCode="countryCode"
  100. :mobileEdit="mobileEdit"
  101. :goOnNextStep="goOnNextStep"
  102. :isShowhasPermission="isShowhasPermission"
  103. :applyForIsShow="applyForIsShow"
  104. :mailboxBinding="mailboxBinding"
  105. />
  106. <!-- 选择区号弹出层 -->
  107. <areaCode :isAreaCode="isAreaCode" :areaCode="areaCode" />
  108. <!-- 参会方式弹出层 -->
  109. <view class="select-box">
  110. <u-popup v-model="selectShow" mode="bottom">
  111. <view style="color: #333333; font-size: 28rpxrpx">请选择参会方式</view>
  112. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 1)">预约外呼</view>
  113. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 2)">自主拨入</view>
  114. <view style="color: #a9afb8" @click="selectShow = false">取消</view>
  115. </u-popup>
  116. </view>
  117. <view v-if="showAudioBox">
  118. <audioModule :showAudioPop.sync="showAudioPop" />
  119. </view>
  120. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  121. <videoModule :showVideoPop="showVideoPop" :videoPopList="videoPopList" />
  122. </view>
  123. </template>
  124. <script>
  125. import modalDialog from "@/components/modalDialog.vue";
  126. import areaCode from "@/components/activity/areaCode.vue";
  127. import myMixin from "@/components/activity/index.js";
  128. import myActivityMixin from "@/components/activity/indexActivity.js";
  129. import mediaMixins from "@/components/activity/mediaMixins";
  130. import freeCharge from "@/components/freeCharge";
  131. import audioModule from "@/components/audioModule/index";
  132. import videoModule from "@/components/videoModule/index";
  133. import { activity } from "@/config/api";
  134. export default {
  135. props: {
  136. collectLists: {
  137. type: Array,
  138. default: [],
  139. },
  140. tabsActiveSearch: {
  141. type: Number,
  142. },
  143. },
  144. data() {
  145. return {
  146. isShowSearch: false,
  147. status: "loadmore",
  148. totalPage: "",
  149. haveData: true,
  150. activeState: 0, //活动进行状态
  151. activeStateOption: [
  152. {
  153. name: "全部",
  154. state: 0,
  155. },
  156. {
  157. name: "可回放",
  158. state: 1,
  159. },
  160. ],
  161. selectShow: false,
  162. };
  163. },
  164. mixins: [myMixin, myActivityMixin, mediaMixins],
  165. components: {
  166. modalDialog,
  167. areaCode,
  168. freeCharge,
  169. audioModule,
  170. videoModule,
  171. },
  172. watch: {
  173. collectLists: {
  174. handler(newVal) {
  175. this.collectList = newVal;
  176. },
  177. deep: true,
  178. immediate: true,
  179. },
  180. },
  181. methods: {
  182. //获取是否需要填写区号接口
  183. countryCcode() {
  184. User.countryCcode().then((res) => {
  185. if (res.Ret == 200) {
  186. this.isNeedAddCountryCode = res.Data.IsNeedAddCountryCode;
  187. }
  188. });
  189. },
  190. },
  191. };
  192. </script>
  193. <style scoped lang="scss">
  194. .activity-pages {
  195. padding-bottom: 30rpx;
  196. }
  197. @import "@/components/activity/indexActivity.scss";
  198. .activity-search-content {
  199. background-color: #f7f7f7;
  200. .ipt-right {
  201. z-index: 11;
  202. }
  203. .collect-ltem {
  204. margin-top: 0 !important;
  205. margin-bottom: 20rpx !important;
  206. }
  207. .select-conyent {
  208. display: flex;
  209. float: right;
  210. margin-bottom: 20rpx;
  211. height: 51rpx;
  212. width: 252rpx;
  213. border-radius: 47rpx;
  214. overflow: hidden;
  215. margin-right: 30rpx;
  216. .state-item {
  217. width: 126rpx;
  218. height: 51rpx;
  219. text-align: center;
  220. line-height: 51rpx;
  221. color: #999999;
  222. font-size: 24rpx;
  223. background-color: #f8f8fa;
  224. }
  225. .state-active-item {
  226. background: #3385ff;
  227. color: #fff;
  228. border-radius: 47rpx;
  229. }
  230. }
  231. .title-date {
  232. position: relative;
  233. .audio-back {
  234. position: absolute;
  235. right: 0;
  236. top: 50%;
  237. transform: translateY(-50%);
  238. width: 99rpx;
  239. height: 39rpx;
  240. font-size: 24rpx;
  241. color: #fff;
  242. display: flex;
  243. align-items: center;
  244. background-color: #3385ff;
  245. border-radius: 20rpx;
  246. padding-left: 4rpx;
  247. .audio-img {
  248. width: 30rpx;
  249. height: 30rpx;
  250. margin: 0 5rpx;
  251. }
  252. }
  253. }
  254. .top-content {
  255. width: 100%;
  256. position: fixed;
  257. top: 0;
  258. left: 0;
  259. z-index: 99;
  260. background-color: #fff;
  261. .searchTarget-header {
  262. position: relative;
  263. width: 100%;
  264. background-color: #fff;
  265. padding: 20rpx 0;
  266. display: flex;
  267. justify-content: center;
  268. align-items: center;
  269. .sea_ipt_placeholder {
  270. color: #8d8d8d;
  271. }
  272. .sea_ipt {
  273. width: 682rpx;
  274. height: 70rpx;
  275. line-height: 70rpx;
  276. box-sizing: border-box;
  277. background: #f9f9f9;
  278. font-size: 26rpx;
  279. color: #4a4a4a;
  280. padding: 0 180rpx 0 78rpx;
  281. border-radius: 70rpx;
  282. }
  283. .sea_ico {
  284. width: 31rpx;
  285. height: 31rpx;
  286. position: absolute;
  287. left: 60rpx;
  288. top: 50%;
  289. transform: translateY(-50%);
  290. }
  291. .ipt-right {
  292. display: flex;
  293. align-items: center;
  294. position: absolute;
  295. right: 59rpx;
  296. top: 50%;
  297. transform: translateY(-50%);
  298. color: #3385ff;
  299. .line {
  300. margin: 0 21rpx;
  301. color: #e0e0e0;
  302. }
  303. }
  304. }
  305. .search-cont {
  306. height: calc(100vh - 200rpx);
  307. padding-bottom: 20rpx;
  308. overflow: hidden;
  309. overflow-y: auto;
  310. background-color: #f7f7f7;
  311. .search-cont-top {
  312. padding: 0 34rpx 0;
  313. margin-bottom: 10rpx;
  314. padding-top: 20rpx;
  315. &:last-child {
  316. margin-bottom: 0;
  317. }
  318. .cont-tit {
  319. font-size: 32rpx;
  320. margin-bottom: 20rpx;
  321. font-weight: 500;
  322. display: flex;
  323. justify-content: space-between;
  324. .empty_ico {
  325. width: 32rpx;
  326. height: 33rpx;
  327. }
  328. }
  329. .targetList {
  330. display: flex;
  331. flex-wrap: wrap;
  332. font-size: 28rpx;
  333. .target-item {
  334. width: 50%;
  335. margin-bottom: 20rpx;
  336. }
  337. .chart-item {
  338. width: 100%;
  339. margin-bottom: 20rpx;
  340. }
  341. }
  342. }
  343. }
  344. }
  345. }
  346. .content-padding {
  347. padding-top: 90rpx !important;
  348. }
  349. </style>