themeActivity.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <template>
  2. <view class="container theme-container">
  3. <!-- 筛选部分 -->
  4. <view class="select-content-activity">
  5. <view class="top-title" v-if="!type">
  6. <view :class="['content-title', !contentDetail.IsJump && 'jump-title']" @click="jumpHandler">
  7. <text>{{ contentDetail.Label }}</text>
  8. <image v-if="contentDetail.IndustryNewLabel" class="new_icon" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png" mode=""></image>
  9. </view>
  10. </view>
  11. <view :class="['screen-item', (isEndActivity || !type) && 'end-select-item']">
  12. <block v-if="!isEndActivity && type">
  13. <text :class="[isShowJurisdiction ? 'active' : '', 'text-item']" @click="permissioActivity">有权限行业</text>
  14. <!-- 各种状态选择 -->
  15. <view class="select-conyent" ref="select-conyent">
  16. <van-dropdown-menu active-color="#333333">
  17. <van-dropdown-item id="industry" :title="chartPermissionName">
  18. <view class="menu-items">
  19. <view class="menu-items-box" v-for="item in listChartPermission" :key="item.ChartPermissionId" @click="overallClick(item)">
  20. <view class="items-box">
  21. <u-icon v-if="item.IsChoose" name="checkbox-mark" :color="isShowJurisdiction ? '#ccc' : '#2C83FF'" size="24"></u-icon>
  22. </view>
  23. <text>{{ item.PermissionName }}</text>
  24. </view>
  25. </view>
  26. <view class="replacement">
  27. <text @click="replacementBtn" class="replacement-box">重置</text>
  28. <text @click="replacementConfirm">确定</text>
  29. </view>
  30. </van-dropdown-item>
  31. </van-dropdown-menu>
  32. </view>
  33. </block>
  34. <block v-if="isEndActivity">
  35. <text @click="selectMultipleHandler(item, '类型')" v-for="item in activityTypeList" :key="item.Id" :class="['select-item-multiple', item.IsChoose && 'active']">{{ item.StatusName }}</text>
  36. </block>
  37. <block v-else>
  38. <text @click="selectMultipleHandler(item, '日期')" v-for="item in activityTimeList" :key="item.Id" :class="['select-item-multiple', item.IsChoose && 'active']">{{ item.StatusName }}</text>
  39. </block>
  40. </view>
  41. <view class="screen-item screen-item-ul" v-if="isEndActivity">
  42. <text @click="monthWeekHandler(item)" v-for="item in activityMonthWeekList" :key="item.Id" :class="['text-item', item.IsChoose && 'active']">{{ item.StatusName }}</text>
  43. </view>
  44. </view>
  45. <!-- 活动列表 -->
  46. <view>
  47. <view class="collect-ul" v-if="haveData">
  48. <view class="collect-ltem" v-for="(item, index) in collectList" :key="index">
  49. <view class="title-date" @click="goDetail(item)">
  50. <text :class="item.ActivityType == 1 ? '' : 'xianxia'">{{ item.ActivityType == 1 ? "线上" : "线下" }}</text>
  51. {{ item.SourceType == 2 ? "" : item.ActivityTimeText }}
  52. <view class="audio-back" v-if="item.AudioLink" @click.stop="PlayBackAll(item)">
  53. <block v-if="item.FileType == 2">
  54. <image class="audio-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/video_play.png"></image>
  55. </block>
  56. <image
  57. v-else
  58. class="audio-img"
  59. :src="
  60. curVoiceId === item.ActivityId && !curAudioPaused
  61. ? 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/stop_play.png'
  62. : 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/audio_play.png'
  63. "
  64. ></image>
  65. {{ curVoiceId === item.ActivityId && !curAudioPaused ? "暂停" : "回放" }}
  66. </view>
  67. </view>
  68. <view class="item-li">
  69. <view class="item-img" @click="goDetail(item)">
  70. <image :src="item.ImgUrl"></image>
  71. <text v-if="item.ActiveState == 1" class="img-status begin">未开始</text>
  72. <text v-else-if="item.ActiveState == 2" class="img-status proceed">进行中</text>
  73. <block v-else>
  74. <text v-if="item.TripStatus != 1" class="img-status">已结束</text>
  75. </block>
  76. <view class="img-type">
  77. <image :src="item.ImgUrlText" mode=""></image>
  78. </view>
  79. </view>
  80. <view class="item">
  81. <view class="item-text" @click="goDetail(item)">
  82. <text class="activity-title"> {{ item.ActivityName }} </text>
  83. <text class="text_twoLine" v-if="item.Expert && item.SourceType == 1">专家背景:{{ item.Expert }} </text>
  84. <text class="text_twoLine" v-if="item.DistinguishedGuest">嘉宾:{{ item.DistinguishedGuest }} </text>
  85. <text class="text_twoLine" v-if="item.Speaker">主讲人:{{ item.Speaker }}</text>
  86. <view style="display: flex" class="text_twoLine" v-if="item.ActivityTimeText && item.SourceType == 2">
  87. <text style="flex-shrink: 0"> 活动时间:</text>
  88. <text> {{ item.ActivityTimeText }}</text>
  89. </view>
  90. </view>
  91. <block v-if="item.SourceType == 1">
  92. <block v-if="item.ActiveState == 1">
  93. <view :class="['bottom-box', item.ActivityTypeId == 1 && item.IsLimitPeople == 0 && 'expert-item', item.City && 'city']">
  94. <view class="city-img" v-if="item.City">
  95. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png"></image>
  96. {{ item.City }}
  97. </view>
  98. <view style="display: flex">
  99. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId == 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  100. <text v-if="item.IsShowAppointment" @click="summaryIsHandel(item)">{{ item.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
  101. <text v-if="item.IsShowMeetingReminder" @click="meetingReminderAdd(item.ActivityId, item.IsCancelMeetingReminder)">
  102. {{ item.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
  103. </text>
  104. <view v-if="item.IsShowHelpSsk" style="width: 130rpx">
  105. <text @click="askingGo(item)">帮我带问</text>
  106. </view>
  107. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId != 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  108. <text v-if="item.IsShowDetails" @click="goDetail(item)" class="button">查看详情</text>
  109. <block v-if="item.IsShowSignup">
  110. <block v-if="item.IsCClassMeeting">
  111. <text class="button" @click="signupIsAddOfCancel(item, 3, 'CClass')">{{ item.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
  112. </block>
  113. <block v-else>
  114. <text class="button" v-if="item.IsSignup !== 1" @click="wanttosignup(item)">我要报名</text>
  115. <text class="button" v-else @click="signupIsAddOfCancel(item, 2)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  116. </block>
  117. </block>
  118. </view>
  119. </view>
  120. </block>
  121. <block v-else>
  122. <view class="bottom-box city" v-if="item.City">
  123. <view class="city-img">
  124. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png"></image>
  125. {{ item.City }}
  126. </view>
  127. </view>
  128. <view class="bottom-box real-time" v-if="item.ActiveState == 2 && item.ActivityTypeId == 1">
  129. <text class="button" @click="askingGo(item, '提问')">实时提问</text>
  130. </view>
  131. </block>
  132. </block>
  133. <block v-if="item.SourceType == 2">
  134. <view class="bottom-box">
  135. <view class="" style="width: 130rpx"> </view>
  136. <text @click="lookImg(item)">行程安排</text>
  137. </view>
  138. </block>
  139. </view>
  140. </view>
  141. <view class="reminder-item" v-if="item.SourceType == 2">
  142. <image class="item" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/confirm_XC.png"></image>
  143. </view>
  144. </view>
  145. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  146. </view>
  147. <view class="nodata" v-else>
  148. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
  149. <text>暂时没有符合条件的活动</text>
  150. </view>
  151. <view class="select-box">
  152. <u-popup v-model="selectShow" mode="bottom">
  153. <view style="color: #333333; font-size: 28rpxrpx">请选择参会方式</view>
  154. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 1)">预约外呼</view>
  155. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 2)">自主拨入</view>
  156. <view style="color: #a9afb8" @click="selectShow = false">取消</view>
  157. </u-popup>
  158. </view>
  159. <!-- 所有自定义弹框 -->
  160. <modalDialog
  161. :isShow="isShow"
  162. :signupType="signupType"
  163. :goFollow="goFollow"
  164. :hasPermission="hasPermission"
  165. :jurisdictionList="jurisdictionList"
  166. :editIsShow="editIsShow"
  167. :isCancelShow="isCancelShow"
  168. :idTypeCancel="idTypeCancel"
  169. :countryCode="countryCode"
  170. :mobileEdit="mobileEdit"
  171. :goOnNextStep="goOnNextStep"
  172. :isShowhasPermission="isShowhasPermission"
  173. :applyForIsShow="applyForIsShow"
  174. :mailboxBinding="mailboxBinding"
  175. />
  176. </view>
  177. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  178. <view v-if="showAudioBox">
  179. <audioModule :showAudioPop.sync="showAudioPop" />
  180. </view>
  181. <videoModule :showVideoPop="showVideoPop" :videoPopList="videoPopList" />
  182. </view>
  183. </template>
  184. <script>
  185. import { activity, User } from "@/config/api.js";
  186. import { Throttle } from "@/config/util.js";
  187. import modalDialog from "@/components/modalDialog.vue";
  188. import myActivityMixin from "@/components/activity/indexActivity.js";
  189. import freeCharge from "@/components/freeCharge";
  190. import selectMixins from "../components/selectMixins.js";
  191. import audioModule from "@/components/audioModule/index";
  192. import mediaMixins from "@/components/activity/mediaMixins";
  193. import videoModule from "@/components/videoModule/index";
  194. export default {
  195. mixins: [myActivityMixin, selectMixins, mediaMixins],
  196. data() {
  197. return {
  198. hasPermission: "", //是否有权限
  199. contentImg: "",
  200. contentLabel: "",
  201. contentDetail: {},
  202. label: "",
  203. type: "",
  204. activityId: "",
  205. selectShow: false,
  206. haveData: true,
  207. isEndActivity: false,
  208. };
  209. },
  210. components: {
  211. modalDialog,
  212. freeCharge,
  213. audioModule,
  214. videoModule,
  215. },
  216. methods: {
  217. // 获取列表数据
  218. async getActivityList() {
  219. const res = await activity.getActivityListNew({
  220. PageSize: this.pageSize,
  221. CurrentIndex: this.page_no,
  222. Label: this.type ? "" : this.label,
  223. ActiveState: this.isEndActivity ? 3 : 1,
  224. ActivityTypeId: this.type ? this.label : "",
  225. ChartPermissionIds: this.chartPermissionIds,
  226. WhichDay: this.whichDay,
  227. ActivityId: this.activityId,
  228. TypeName: this.selectActiveId,
  229. });
  230. if (res.Ret === 200) {
  231. if (this.type) {
  232. uni.setNavigationBarTitle({
  233. title: this.type,
  234. });
  235. }
  236. this.contentImg = res.Data.ImgUrl;
  237. this.contentDetail = res.Data;
  238. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  239. if (this.page_no === 1) {
  240. this.collectList = res.Data.List || [];
  241. this.haveData = this.collectList.length ? true : false;
  242. if (this.refresh) {
  243. uni.stopPullDownRefresh();
  244. this.refresh = false;
  245. }
  246. } else {
  247. this.collectList = this.collectList.concat(res.Data.List);
  248. }
  249. }
  250. },
  251. // 点击了top的标签
  252. jumpHandler() {
  253. if (this.contentDetail.IsJump) {
  254. if (this.contentDetail.IsResearch) {
  255. //严选
  256. this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + this.contentDetail.IndustrialManagementId);
  257. } else {
  258. //非严选
  259. this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + this.contentDetail.IndustrialManagementId);
  260. }
  261. }
  262. },
  263. // 进入页面的筛选的方法
  264. selectInitHandler(value, list) {
  265. list.forEach((item) => {
  266. if (value.includes(item.Id)) {
  267. item.IsChoose = true;
  268. }
  269. });
  270. },
  271. //查看行程的事件
  272. lookImg(item) {
  273. uni.previewImage({
  274. urls: [item.TripImgLink], //查看图片的数组
  275. });
  276. },
  277. // 进入页面的初始化
  278. loadInit(option) {
  279. this.label = option.title;
  280. this.type = option.type;
  281. this.chartPermissionIds = option.permissionIds || "";
  282. this.activityId = option.id;
  283. this.whichDay = option.whichDay || "";
  284. this.isShowJurisdiction = option.showJurisdiction == "show" ? true : false;
  285. this.isGetJurisdiction = this.isShowJurisdiction ? 1 : 2;
  286. console.log(option.showJurisdiction, this.isShowJurisdiction);
  287. this.whichDay && this.selectInitHandler(this.whichDay, this.activityTimeList);
  288. if (option.endList) {
  289. this.isEndActivity = true;
  290. let obj = JSON.parse(option.endList);
  291. this.whichDay = obj.data_activeId;
  292. this.selectActiveId = obj.select_activeId;
  293. this.selectInitHandler(this.whichDay, this.activityMonthWeekList);
  294. this.selectInitHandler(this.selectActiveId, this.activityTypeList);
  295. }
  296. this.getActivityList();
  297. },
  298. },
  299. onLoad(option) {
  300. this.loadInit(option);
  301. },
  302. onShow() {
  303. this.$store.dispatch("checkHandle");
  304. this.$store.commit("audioBg/parseIntAudio", true);
  305. },
  306. onHide() {
  307. this.$store.commit("audioBg/parseIntAudio", false);
  308. },
  309. /* 触底 */
  310. onReachBottom: Throttle(function () {
  311. if (this.status === "nomore") return;
  312. this.status = "loading";
  313. this.page_no++;
  314. this.getActivityList();
  315. }),
  316. /* 下拉刷新 */
  317. onPullDownRefresh: Throttle(function () {
  318. this.page_no = 1;
  319. this.refresh = true;
  320. this.getActivityList();
  321. }),
  322. /** 用户点击分享 */
  323. onShareAppMessage: function (res) {
  324. return {
  325. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : this.type || this.label,
  326. path: "/activityPages/themeActivity/themeActivity?title=" + this.label + "&permissionIds=" + this.chartPermissionIds + "&whichDay=" + this.whichDay + "&type=" + this.type,
  327. };
  328. },
  329. };
  330. </script>
  331. <style lang="scss" scoped>
  332. .theme-container {
  333. background: #f7f7f7;
  334. padding-bottom: 30rpx;
  335. position: relative;
  336. .top-title {
  337. position: sticky;
  338. top: 0;
  339. z-index: 99;
  340. background-color: #fff;
  341. display: flex;
  342. align-items: center;
  343. color: #3385ff;
  344. font-size: 30rpx;
  345. padding: 30rpx 30rpx 20rpx;
  346. border-bottom: 2rpx solid #dcdfe6;
  347. .content-title {
  348. display: flex;
  349. align-items: center;
  350. .jump-text {
  351. margin-left: 10rpx;
  352. font-size: 24rpx;
  353. color: #3385ff;
  354. }
  355. .jump-label {
  356. font-size: 28rpx;
  357. padding: 6rpx 18rpx;
  358. background-color: #3385ff;
  359. border-radius: 52rpx;
  360. color: #fff;
  361. }
  362. .new_icon {
  363. width: 60rpx;
  364. height: 30rpx;
  365. margin-left: 10rpx;
  366. }
  367. }
  368. .jump-title {
  369. .jump-label {
  370. background-color: #f8f8fa;
  371. color: #999;
  372. }
  373. }
  374. }
  375. .collect-ul {
  376. padding-top: 10rpx;
  377. }
  378. .end-select-item {
  379. justify-content: flex-start !important;
  380. .select-item-multiple {
  381. margin-left: 38rpx;
  382. }
  383. }
  384. @import "../components/selectCss.scss";
  385. }
  386. @import "@/components/activity/indexActivity.scss";
  387. </style>