themeActivity.vue 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <view class="container theme-container">
  3. <view class="top-title" v-if="!type">
  4. <view :class="['content-title', !contentDetail.IsJump && 'jump-title']" @click="jumpHandler">
  5. <text>{{ contentDetail.Label }}</text>
  6. <image v-if="contentDetail.IndustryNewLabel" class="new_icon" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png" mode=""></image>
  7. </view>
  8. </view>
  9. <!-- 活动列表 -->
  10. <view>
  11. <view class="collect-ul">
  12. <view class="collect-ltem" v-for="(item, index) in collectList" :key="index">
  13. <view class="title-date" @click="goDetail(item)">
  14. <text :class="item.ActivityType == 1 ? '' : 'xianxia'">{{ item.ActivityType == 1 ? "线上" : "线下" }}</text>
  15. {{ item.ActivityTimeText }}
  16. </view>
  17. <view class="item-li">
  18. <view class="item-img" @click="goDetail(item)">
  19. <image :src="item.ImgUrl"> </image>
  20. <text v-if="item.ActiveState == 1" class="img-status begin">未开始</text>
  21. <text v-else-if="item.ActiveState == 2" class="img-status proceed">进行中</text>
  22. <text v-else class="img-status">已结束</text>
  23. <view class="img-type">
  24. <image :src="item.ImgUrlText" mode=""></image>
  25. </view>
  26. </view>
  27. <view class="item">
  28. <view class="item-text" @click="goDetail(item)">
  29. <text class="activity-title"> {{ item.ActivityName }} </text>
  30. <text class="text_twoLine" v-if="item.Expert">专家背景:{{ item.Expert }} </text>
  31. <text class="text_twoLine" v-if="item.DistinguishedGuest">嘉宾:{{ item.DistinguishedGuest }} </text>
  32. <text class="text_twoLine" v-if="item.Speaker">主讲人:{{ item.Speaker }}</text>
  33. </view>
  34. <block v-if="item.ActiveState == 1">
  35. <view :class="['bottom-box', item.ActivityTypeId == 1 && item.IsLimitPeople == 0 && 'expert-item', item.City && 'city']">
  36. <view class="city-img" v-if="item.City">
  37. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png"></image>
  38. {{ item.City }}
  39. </view>
  40. <view style="display: flex">
  41. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId == 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  42. <text v-if="item.IsShowAppointment" @click="summaryIsHandel(item)">{{ item.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
  43. <text v-if="item.IsShowMeetingReminder" @click="meetingReminderAdd(item.ActivityId, item.IsCancelMeetingReminder)">
  44. {{ item.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
  45. </text>
  46. <view v-if="item.IsShowHelpSsk" style="width: 130rpx">
  47. <text @click="askingGo(item)">帮我带问</text>
  48. </view>
  49. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId != 1" class="button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  50. <text v-if="item.IsShowDetails" @click="goDetail(item)" class="button">查看详情</text>
  51. <block v-if="item.IsShowSignup">
  52. <block v-if="item.IsCClassMeeting">
  53. <text class="button" @click="signupIsAddOfCancel(item, 3, 'CClass')">{{ item.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
  54. </block>
  55. <block v-else>
  56. <text class="button" v-if="item.IsSignup !== 1" @click="wanttosignup(item)">我要报名</text>
  57. <text class="button" v-else @click="signupIsAddOfCancel(item, 2)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  58. </block>
  59. </block>
  60. </view>
  61. </view>
  62. </block>
  63. </view>
  64. </view>
  65. </view>
  66. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  67. </view>
  68. <view class="select-box">
  69. <u-popup v-model="selectShow" mode="bottom">
  70. <view style="color: #333333; font-size: 28rpxrpx">请选择参会方式</view>
  71. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 1)">预约外呼</view>
  72. <view style="color: #2c83ff" @click="signupIsAddOfCancel('', 2)">自主拨入</view>
  73. <view style="color: #a9afb8" @click="selectShow = false">取消</view>
  74. </u-popup>
  75. </view>
  76. <!-- 所有自定义弹框 -->
  77. <modalDialog
  78. :isShow="isShow"
  79. :signupType="signupType"
  80. :goFollow="goFollow"
  81. :hasPermission="hasPermission"
  82. :jurisdictionList="jurisdictionList"
  83. :editIsShow="editIsShow"
  84. :isCancelShow="isCancelShow"
  85. :idTypeCancel="idTypeCancel"
  86. :countryCode="countryCode"
  87. :mobileEdit="mobileEdit"
  88. :goOnNextStep="goOnNextStep"
  89. :isShowhasPermission="isShowhasPermission"
  90. :applyForIsShow="applyForIsShow"
  91. :mailboxBinding="mailboxBinding"
  92. />
  93. </view>
  94. <areaCode :isAreaCode="isAreaCode" :areaCode="areaCode" />
  95. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  96. </view>
  97. </template>
  98. <script>
  99. import { activity, User } from "@/config/api.js";
  100. import { Throttle } from "@/config/util.js";
  101. import modalDialog from "@/components/modalDialog.vue";
  102. import myMixin from "../components/index.js";
  103. import myActivityMixin from "@/components/activity/indexActivity.js";
  104. import areaCode from "@/components/activity/areaCode.vue";
  105. import freeCharge from "@/components/freeCharge";
  106. export default {
  107. mixins: [myMixin, myActivityMixin],
  108. data() {
  109. return {
  110. hasPermission: "", //是否有权限
  111. contentImg: "",
  112. contentLabel: "",
  113. contentDetail: {},
  114. label: "",
  115. type: "",
  116. permissionIds: "",
  117. whichDay: "",
  118. activityId: "",
  119. };
  120. },
  121. components: {
  122. areaCode,
  123. modalDialog,
  124. freeCharge,
  125. },
  126. methods: {
  127. // 获取列表数据
  128. async getActivityList() {
  129. const res = await activity.getActivityListNew({
  130. PageSize: this.pageSize,
  131. CurrentIndex: this.page_no,
  132. Label: this.type ? "" : this.label,
  133. ActiveState: 1,
  134. ActivityTypeId: this.type ? this.label : "",
  135. ChartPermissionIds: this.permissionIds,
  136. WhichDay: this.whichDay,
  137. ActivityId: this.activityId,
  138. });
  139. if (res.Ret === 200) {
  140. if (this.type) {
  141. uni.setNavigationBarTitle({
  142. title: this.type,
  143. });
  144. }
  145. this.contentImg = res.Data.ImgUrl;
  146. this.contentDetail = res.Data;
  147. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  148. if (this.page_no === 1) {
  149. this.collectList = res.Data.List || [];
  150. if (this.refresh) {
  151. uni.stopPullDownRefresh();
  152. this.refresh = false;
  153. }
  154. } else {
  155. this.collectList = this.collectList.concat(res.Data.List);
  156. }
  157. }
  158. },
  159. // 获取是否需要填写区号接口
  160. countryCcode() {
  161. User.countryCcode().then((res) => {
  162. if (res.Ret == 200) {
  163. this.isNeedAddCountryCode = res.Data.IsNeedAddCountryCode;
  164. }
  165. });
  166. },
  167. // 点击了top的标签
  168. jumpHandler() {
  169. if (this.contentDetail.IsJump) {
  170. if (this.contentDetail.IsResearch) {
  171. //严选
  172. this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + this.contentDetail.IndustrialManagementId);
  173. } else {
  174. //非严选
  175. this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + this.contentDetail.IndustrialManagementId);
  176. }
  177. }
  178. },
  179. },
  180. onLoad(option) {
  181. this.label = option.title;
  182. this.type = option.type;
  183. this.permissionIds = option.permissionIds || "";
  184. this.whichDay = option.whichDay || "";
  185. this.activityId = option.id;
  186. this.getActivityList();
  187. this.countryCcode();
  188. },
  189. onShow() {
  190. this.$store.dispatch("checkHandle");
  191. },
  192. /* 触底 */
  193. onReachBottom: Throttle(function () {
  194. if (this.status === "nomore") return;
  195. this.status = "loading";
  196. this.page_no++;
  197. this.getActivityList();
  198. }),
  199. /* 下拉刷新 */
  200. onPullDownRefresh: Throttle(function () {
  201. this.page_no = 1;
  202. this.refresh = true;
  203. this.getActivityList();
  204. }),
  205. /** 用户点击分享 */
  206. onShareAppMessage: function (res) {
  207. return {
  208. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : this.type || this.label,
  209. path: "/activityPages/themeActivity/themeActivity?title=" + this.label + "&permissionIds=" + this.permissionIds + "&whichDay=" + this.whichDay + "&type=" + this.type,
  210. };
  211. },
  212. };
  213. </script>
  214. <style lang="scss" scoped>
  215. .theme-container {
  216. background: #f7f7f7;
  217. padding-bottom: 30rpx;
  218. position: relative;
  219. .top-title {
  220. position: sticky;
  221. top: 0;
  222. z-index: 99;
  223. background-color: #fff;
  224. display: flex;
  225. align-items: center;
  226. color: #3385ff;
  227. font-size: 30rpx;
  228. padding: 30rpx 30rpx 20rpx;
  229. .content-title {
  230. display: flex;
  231. align-items: center;
  232. padding: 7rpx 12rpx;
  233. background-color: #f8f8fa;
  234. .new_icon {
  235. width: 60rpx;
  236. height: 30rpx;
  237. margin-left: 10rpx;
  238. }
  239. }
  240. .jump-title {
  241. color: #999;
  242. }
  243. }
  244. .collect-ul {
  245. padding-top: 10rpx;
  246. }
  247. }
  248. @import "@/components/activity/indexActivity.scss";
  249. </style>