mySchedulepage.vue 8.1 KB

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