themeActivity.vue 10 KB

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