mySchedulepage.vue 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <template>
  2. <view class="container activity-content">
  3. <view class="collect-ul" v-if="haveData">
  4. <view class="collect-ltem" v-for="(item, index) in collectList" :key="index">
  5. <view class="title-date" @click="goDetail(item)">
  6. <text :class="item.ActivityType == 1 ? '' : 'xianxia'">{{ item.ActivityType == 1 ? "线上" : "线下" }}</text>
  7. {{ item.ActivityTimeText }}
  8. <view class="audio-back" v-if="item.AudioLink" @click.stop="PlayBackAll(item)">
  9. <block v-if="item.FileType == 2">
  10. <image class="audio-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/video_play.png"></image>
  11. </block>
  12. <image
  13. v-else
  14. class="audio-img"
  15. :src="
  16. curVoiceId === item.ActivityId && !curAudioPaused
  17. ? 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/stop_play.png'
  18. : 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/audio_play.png'
  19. "
  20. ></image>
  21. {{ curVoiceId === item.ActivityId && !curAudioPaused ? "暂停" : "回放" }}
  22. </view>
  23. </view>
  24. <view class="item-li">
  25. <view class="item-img" @click="goDetail(item)">
  26. <image :src="item.ImgUrl"></image>
  27. <text v-if="item.ActiveState == 1" class="img-status begin">未开始</text>
  28. <text v-else-if="item.ActiveState == 2" class="img-status proceed">进行中</text>
  29. <text v-else class="img-status">已结束</text>
  30. <view class="img-type">
  31. <image :src="item.ImgUrlText" mode=""></image>
  32. </view>
  33. </view>
  34. <view class="item">
  35. <view class="item-text" @click="goDetail(item)">
  36. <text class="activity-title"> {{ item.ActivityName }} </text>
  37. <text class="text_twoLine" v-if="item.Expert">专家背景:{{ item.Expert }} </text>
  38. <text class="text_twoLine" v-if="item.DistinguishedGuest">嘉宾:{{ item.DistinguishedGuest }} </text>
  39. <text class="text_twoLine" v-if="item.Speaker">主讲人:{{ item.Speaker }}</text>
  40. </view>
  41. <block v-if="item.ActiveState == 1">
  42. <view :class="['bottom-box', item.ActivityTypeId == 1 && item.IsLimitPeople == 0 && 'expert-item', item.City && 'city']">
  43. <view class="city-img" v-if="item.City">
  44. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png"></image>
  45. {{ item.City }}
  46. </view>
  47. <view style="display: flex">
  48. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId == 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  49. <text v-if="item.IsShowAppointment" @click="summaryIsHandel(item)">{{ item.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
  50. <text v-if="item.IsShowMeetingReminder" @click="meetingReminderAdd(item.ActivityId, item.IsCancelMeetingReminder)">
  51. {{ item.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
  52. </text>
  53. <view v-if="item.IsShowHelpSsk" style="width: 130rpx">
  54. <text @click="askingGo(item)">帮我带问</text>
  55. </view>
  56. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId != 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  57. <text v-if="item.IsShowDetails" @click="goDetail(item)" class="button">查看详情</text>
  58. <block v-if="item.IsShowSignup">
  59. <block v-if="item.IsCClassMeeting">
  60. <text class="button" @click="signupIsAddOfCancel(item, 3, 'CClass')">{{ item.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
  61. </block>
  62. <block v-else>
  63. <text class="button" v-if="item.IsSignup !== 1" @click="wanttosignup(item)">我要报名</text>
  64. <text class="button" v-else @click="signupIsAddOfCancel(item, 2)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  65. </block>
  66. </block>
  67. </view>
  68. </view>
  69. </block>
  70. <block v-else>
  71. <view class="bottom-box city" v-if="item.City">
  72. <view class="city-img">
  73. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png"></image>
  74. {{ item.City }}
  75. </view>
  76. </view>
  77. <view class="bottom-box real-time" v-if="item.ActiveState == 2 && item.ActivityTypeId == 1">
  78. <text class="button" @click="askingGo(item, '提问')">实时提问</text>
  79. </view>
  80. </block>
  81. </view>
  82. </view>
  83. </view>
  84. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  85. </view>
  86. <view class="nodata" v-if="!haveData">
  87. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
  88. <text>{{ tabsActive == 0 ? "暂时没有符合条件的活动" : "暂无我的日程" }}</text>
  89. </view>
  90. <!-- 所有自定义弹框 -->
  91. <modalDialog
  92. :isShow="isShow"
  93. :signupType="signupType"
  94. :goFollow="goFollow"
  95. :signupStatus="signupStatus"
  96. :hasPermission="hasPermission"
  97. :jurisdictionList="jurisdictionList"
  98. :editIsShow="editIsShow"
  99. :isCancelShow="isCancelShow"
  100. :idTypeCancel="idTypeCancel"
  101. :countryCode="countryCode"
  102. :mobileEdit="mobileEdit"
  103. :goOnNextStep="goOnNextStep"
  104. :isShowhasPermission="isShowhasPermission"
  105. :applyForIsShow="applyForIsShow"
  106. :mailboxBinding="mailboxBinding"
  107. />
  108. <view class="select-box">
  109. <u-popup v-model="selectShow" mode="bottom">
  110. <view style="color: #333333; font-size: 28rpxrpx">请选择参会方式</view>
  111. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 1)">预约外呼</view>
  112. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 2)">自主拨入</view>
  113. <view style="color: #a9afb8" @click="selectShow = false">取消</view>
  114. </u-popup>
  115. </view>
  116. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  117. <view v-if="showAudioBox">
  118. <audioModule :showAudioPop.sync="showAudioPop" />
  119. </view>
  120. <videoModule :showVideoPop="showVideoPop" :videoPopList="videoPopList" />
  121. </view>
  122. </template>
  123. <script>
  124. import { activity } from "@/config/api.js";
  125. import { Throttle } from "@/config/util.js";
  126. import myActivityMixin from "@/components/activity/indexActivity.js";
  127. import modalDialog from "@/components/modalDialog.vue";
  128. import freeCharge from "@/components/freeCharge";
  129. import audioModule from "@/components/audioModule/index";
  130. import mediaMixins from "@/components/activity/mediaMixins";
  131. import videoModule from "@/components/videoModule/index";
  132. let app = getApp();
  133. export default {
  134. mixins: [myActivityMixin, mediaMixins],
  135. components: {
  136. modalDialog,
  137. freeCharge,
  138. audioModule,
  139. videoModule
  140. },
  141. data() {
  142. return {
  143. collectTypeList: [],
  144. haveData: true,
  145. whichDay: "",
  146. listChartPermission: [],
  147. listChartPermissionInit: [],
  148. chartPermissionIds: "",
  149. isShowJurisdiction: false, //
  150. isGetJurisdiction: 0,
  151. isrefresh: true,
  152. activityTypeId: "",
  153. selectShow: false,
  154. };
  155. },
  156. methods: {
  157. //获取数据
  158. async getActivityList() {
  159. const res = await activity.getScheduleList({ PageSize: this.pageSize, CurrentIndex: this.page_no });
  160. if (res.Ret === 200) {
  161. this.contentImg = res.Data.ImgUrl;
  162. this.contentLabel = res.Data.Label;
  163. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  164. if (this.page_no === 1) {
  165. this.collectList = res.Data.List || [];
  166. this.haveData = this.collectList.length ? true : false;
  167. if (this.refresh) {
  168. uni.stopPullDownRefresh();
  169. this.refresh = false;
  170. }
  171. } else {
  172. this.collectList = this.collectList.concat(res.Data.List);
  173. }
  174. }
  175. },
  176. },
  177. //load
  178. onLoad(option) {
  179. this.getActivityList();
  180. },
  181. async onShow() {
  182. await this.$store.dispatch("checkHandle", "noGO");
  183. this.$store.commit("audioBg/parseIntAudio", true);
  184. },
  185. onHide() {
  186. this.$store.commit("audioBg/parseIntAudio", false);
  187. },
  188. /* 触底 */
  189. onReachBottom: Throttle(function () {
  190. if (this.status === "nomore") return;
  191. this.status = "loading";
  192. this.page_no++;
  193. this.getActivityList();
  194. }),
  195. /* 下拉刷新 */
  196. onPullDownRefresh: Throttle(function () {
  197. this.page_no = 1;
  198. this.refresh = true;
  199. this.getActivityList();
  200. }),
  201. };
  202. </script>
  203. <style scoped lang="scss">
  204. .activity-content {
  205. background-color: #f7f7f7;
  206. padding-bottom: 90rpx;
  207. position: relative;
  208. padding-top: 20rpx;
  209. .nodata_ico {
  210. width: 374rpx;
  211. height: 288rpx;
  212. }
  213. .title-date {
  214. position: relative;
  215. .audio-back {
  216. position: absolute;
  217. right: 0;
  218. top: 50%;
  219. transform: translateY(-50%);
  220. width: 99rpx;
  221. height: 39rpx;
  222. font-size: 24rpx;
  223. color: #fff;
  224. display: flex;
  225. align-items: center;
  226. background-color: #3385ff;
  227. border-radius: 20rpx;
  228. padding-left: 4rpx;
  229. .audio-img {
  230. width: 30rpx;
  231. height: 30rpx;
  232. margin: 0 5rpx;
  233. }
  234. }
  235. }
  236. }
  237. @import "@/components/activity/indexActivity.scss";
  238. </style>