mySchedulepage.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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>
  9. <view class="item-li">
  10. <view class="item-img" @click="goDetail(item)">
  11. <image :src="item.ImgUrl">
  12. <text v-if="item.ActiveState == 1" class="img-status begin">未开始</text>
  13. <text v-else-if="item.ActiveState == 2" class="img-status proceed">进行中</text>
  14. <text v-else class="img-status">已结束</text>
  15. <view class="img-type">
  16. <image :src="item.ImgUrlText" mode=""></image>
  17. </view>
  18. </view>
  19. <view class="item">
  20. <view class="item-text" @click="goDetail(item)">
  21. <text class="activity-title"> {{ item.ActivityName }} </text>
  22. <text class="text_twoLine" v-if="item.ActivityTypeName == '专家电话会' || item.ActivityTypeName == '专家线下沙龙' || item.ActivityTypeName == '研选电话会'">专家背景:{{ item.Expert }} </text>
  23. <text class="text_twoLine" v-if="item.ActivityTypeName == '公司调研电话会' || item.ActivityTypeName == '公司线下调研'">嘉宾:{{ item.DistinguishedGuest }} </text>
  24. <text class="text_twoLine" v-if="item.ActivityTypeName == '分析师电话会' || item.ActivityTypeName == '分析师线下沙龙'">主讲人:{{ item.Speaker }}</text>
  25. </view>
  26. <block v-if="item.ActiveState == 1">
  27. <view class="bottom-box city" v-if="item.ActiveState == 1 && item.IsLimitPeople == 1 && item.ActivityTypeName == '公司调研电话会'">
  28. <view class="city-img">
  29. <image v-if="item.City" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" />
  30. {{ item.City }}
  31. </view>
  32. <text class="button" v-if="item.IsSignup !== 1" @click="wanttosignup(item.ActivityId)">我要报名</text>
  33. <text class="button" v-else @click="signupCancel(item.ActivityId, 2, item.ActivityTime)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  34. </view>
  35. <view class="bottom-box" v-else-if="item.ActivityType == 1">
  36. <view class="" style="width: 130rpx">
  37. <text v-if="item.ActivityTypeId == 1" @click="askingGo(item)">帮我带问</text>
  38. </view>
  39. <text @click="meetingReminderAdd(item.ActivityId)" v-if="item.IsCancelMeetingReminder == 0">会议提醒</text>
  40. <text @click="meetingReminderCancel(item.ActivityId)" v-else>取消提醒</text>
  41. <text class="button" v-if="item.IsSignup !== 1" @click="signupAdd(item.ActivityId, 1)">预约外呼</text>
  42. <text class="button" @click="signupCancel(item.ActivityId, 1, item.ActivityTime)" v-else>取消外呼</text>
  43. </view>
  44. <view class="bottom-box city" v-else>
  45. <view class="city-img">
  46. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" />
  47. {{ item.City }}
  48. </view>
  49. <text class="button" v-if="item.IsSignup !== 1" @click="signupAdd(item.ActivityId, 3)">我要报名</text>
  50. <text class="button" v-else @click="signupCancel(item.ActivityId, 3, item.ActivityTime)">取消报名</text>
  51. </view>
  52. </block>
  53. <block v-else>
  54. <view class="bottom-box city" v-if="item.City">
  55. <view class="city-img">
  56. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" />
  57. {{ item.City }}
  58. </view>
  59. </view>
  60. <view class="bottom-box real-time" v-if="item.ActiveState == 2 && item.ActivityTypeId == 1">
  61. <text class="button" @click="askingGo(item,'提问')">实时提问</text>
  62. </view>
  63. </block>
  64. </view>
  65. </view>
  66. </view>
  67. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  68. </view>
  69. <view class="nodata" v-if="!haveData">
  70. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
  71. <text>{{ tabsActive == 0 ? "暂时没有符合条件的活动" : "暂无我的日程" }}</text>
  72. </view>
  73. <!-- 所有自定义弹框 -->
  74. <modalDialog
  75. :isShow="isShow"
  76. :signupType="signupType"
  77. :goFollow="goFollow"
  78. :signupStatus="signupStatus"
  79. :hasPermission="hasPermission"
  80. :jurisdictionList="jurisdictionList"
  81. :editIsShow="editIsShow"
  82. :isCancelShow="isCancelShow"
  83. :idTypeCancel="idTypeCancel"
  84. @cancelShowBtn="cancelEnsure"
  85. :countryCode="countryCode"
  86. :mobileEdit="mobileEdit"
  87. :goOnNextStep="goOnNextStep"
  88. :isShowhasPermission="isShowhasPermission"
  89. :applyForIsShow="applyForIsShow"
  90. :mailboxBinding="mailboxBinding"
  91. />
  92. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree"/>
  93. </view>
  94. </template>
  95. <script>
  96. import { activity } from "@/config/api.js";
  97. import { Throttle } from "@/config/util.js";
  98. import myActivityMixin from "@/activityPages/components/indexActivity.js";
  99. import modalDialog from "@/components/modalDialog.vue";
  100. import freeCharge from '@/components/freeCharge'
  101. let app = getApp();
  102. export default {
  103. mixins: [myActivityMixin],
  104. components: {
  105. modalDialog, freeCharge
  106. },
  107. data() {
  108. return {
  109. collectTypeList: [],
  110. haveData: true,
  111. whichDay: "",
  112. listChartPermission: [],
  113. listChartPermissionInit: [],
  114. chartPermissionIds: "",
  115. isShowJurisdiction: false, //
  116. isGetJurisdiction: 0,
  117. isrefresh: true,
  118. activityTypeId: '',
  119. };
  120. },
  121. methods: {
  122. //
  123. async getActivityList() {
  124. const res = await activity.getScheduleList({ PageSize: this.pageSize, CurrentIndex: this.page_no });
  125. if (res.Ret === 200) {
  126. this.contentImg = res.Data.ImgUrl;
  127. this.contentLabel = res.Data.Label;
  128. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  129. if (this.page_no === 1) {
  130. this.collectList = res.Data.List || [];
  131. this.haveData = this.collectList.length ? true : false;
  132. if (this.refresh) {
  133. uni.stopPullDownRefresh();
  134. this.refresh = false;
  135. }
  136. } else {
  137. this.collectList = this.collectList.concat(res.Data.List);
  138. }
  139. }
  140. },
  141. },
  142. //load
  143. onLoad(option) {
  144. this.getActivityList();
  145. },
  146. async onShow() {
  147. await this.$store.dispatch("checkHandle", "noGO");
  148. },
  149. /* 触底 */
  150. onReachBottom: Throttle(function () {
  151. if (this.status === "nomore") return;
  152. this.status = "loading";
  153. this.page_no++;
  154. this.getActivityList();
  155. }),
  156. /* 下拉刷新 */
  157. onPullDownRefresh: Throttle(function () {
  158. this.page_no = 1;
  159. this.refresh = true;
  160. this.getActivityList();
  161. }),
  162. };
  163. </script>
  164. <style scoped lang="scss">
  165. .activity-content {
  166. background-color: #f7f7f7;
  167. padding-bottom: 90rpx;
  168. position: relative;
  169. padding-top: 20rpx;
  170. .nodata_ico {
  171. width: 374rpx;
  172. height: 288rpx;
  173. }
  174. }
  175. @import "@/activityPages/components/indexActivity.scss";
  176. </style>