activityBack.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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', item.ActivityTypeId == 1 && item.IsLimitPeople == 0 && '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. uni.previewImage({
  217. urls: [item.TripImgLink], //查看图片的数组
  218. });
  219. },
  220. },
  221. };
  222. </script>
  223. <style scoped lang="scss">
  224. .activity-pages {
  225. padding-bottom: 30rpx;
  226. }
  227. @import "@/components/activity/indexActivity.scss";
  228. .activity-search-content {
  229. background-color: #f7f7f7;
  230. .ipt-right {
  231. z-index: 11;
  232. }
  233. .collect-ltem {
  234. margin-top: 0 !important;
  235. margin-bottom: 20rpx !important;
  236. }
  237. .select-conyent {
  238. display: flex;
  239. float: right;
  240. margin-bottom: 20rpx;
  241. height: 51rpx;
  242. width: 252rpx;
  243. border-radius: 47rpx;
  244. overflow: hidden;
  245. margin-right: 30rpx;
  246. .state-item {
  247. width: 126rpx;
  248. height: 51rpx;
  249. text-align: center;
  250. line-height: 51rpx;
  251. color: #999999;
  252. font-size: 24rpx;
  253. background-color: #f8f8fa;
  254. }
  255. .state-active-item {
  256. background: #3385ff;
  257. color: #fff;
  258. border-radius: 47rpx;
  259. }
  260. }
  261. .title-date {
  262. position: relative;
  263. .audio-back {
  264. position: absolute;
  265. right: 0;
  266. top: 50%;
  267. transform: translateY(-50%);
  268. width: 99rpx;
  269. height: 39rpx;
  270. font-size: 24rpx;
  271. color: #fff;
  272. display: flex;
  273. align-items: center;
  274. background-color: #3385ff;
  275. border-radius: 20rpx;
  276. padding-left: 4rpx;
  277. .audio-img {
  278. width: 30rpx;
  279. height: 30rpx;
  280. margin: 0 5rpx;
  281. }
  282. }
  283. }
  284. .top-content {
  285. width: 100%;
  286. position: fixed;
  287. top: 0;
  288. left: 0;
  289. z-index: 99;
  290. background-color: #fff;
  291. .searchTarget-header {
  292. position: relative;
  293. width: 100%;
  294. background-color: #fff;
  295. padding: 20rpx 0;
  296. display: flex;
  297. justify-content: center;
  298. align-items: center;
  299. .sea_ipt_placeholder {
  300. color: #8d8d8d;
  301. }
  302. .sea_ipt {
  303. width: 682rpx;
  304. height: 70rpx;
  305. line-height: 70rpx;
  306. box-sizing: border-box;
  307. background: #f9f9f9;
  308. font-size: 26rpx;
  309. color: #4a4a4a;
  310. padding: 0 180rpx 0 78rpx;
  311. border-radius: 70rpx;
  312. }
  313. .sea_ico {
  314. width: 31rpx;
  315. height: 31rpx;
  316. position: absolute;
  317. left: 60rpx;
  318. top: 50%;
  319. transform: translateY(-50%);
  320. }
  321. .ipt-right {
  322. display: flex;
  323. align-items: center;
  324. position: absolute;
  325. right: 59rpx;
  326. top: 50%;
  327. transform: translateY(-50%);
  328. color: #3385ff;
  329. .line {
  330. margin: 0 21rpx;
  331. color: #e0e0e0;
  332. }
  333. }
  334. }
  335. .search-cont {
  336. height: calc(100vh - 200rpx);
  337. padding-bottom: 20rpx;
  338. overflow: hidden;
  339. overflow-y: auto;
  340. background-color: #f7f7f7;
  341. .search-cont-top {
  342. padding: 0 34rpx 0;
  343. margin-bottom: 10rpx;
  344. padding-top: 20rpx;
  345. &:last-child {
  346. margin-bottom: 0;
  347. }
  348. .cont-tit {
  349. font-size: 32rpx;
  350. margin-bottom: 20rpx;
  351. font-weight: 500;
  352. display: flex;
  353. justify-content: space-between;
  354. .empty_ico {
  355. width: 32rpx;
  356. height: 33rpx;
  357. }
  358. }
  359. .targetList {
  360. display: flex;
  361. flex-wrap: wrap;
  362. font-size: 28rpx;
  363. .target-item {
  364. width: 50%;
  365. margin-bottom: 20rpx;
  366. }
  367. .chart-item {
  368. width: 100%;
  369. margin-bottom: 20rpx;
  370. }
  371. }
  372. }
  373. }
  374. }
  375. }
  376. .content-padding {
  377. padding-top: 90rpx !important;
  378. }
  379. </style>