themeActivity.vue 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. :signupStatus="signupStatus"
  82. :hasPermission="hasPermission"
  83. :jurisdictionList="jurisdictionList"
  84. :editIsShow="editIsShow"
  85. :isCancelShow="isCancelShow"
  86. :idTypeCancel="idTypeCancel"
  87. @cancelShowBtn="cancelEnsure"
  88. :countryCode="countryCode"
  89. :mobileEdit="mobileEdit"
  90. :goOnNextStep="goOnNextStep"
  91. :isShowhasPermission="isShowhasPermission"
  92. :applyForIsShow="applyForIsShow"
  93. :mailboxBinding="mailboxBinding"
  94. />
  95. </view>
  96. <areaCode :isAreaCode="isAreaCode" :areaCode="areaCode" />
  97. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  98. </view>
  99. </template>
  100. <script>
  101. import { activity, User } from "@/config/api.js";
  102. import { Throttle } from "@/config/util.js";
  103. import modalDialog from "@/components/modalDialog.vue";
  104. import myMixin from "../components/index.js";
  105. import myActivityMixin from "../components/indexActivity.js";
  106. import areaCode from "@/activityPages/components/areaCode.vue";
  107. import freeCharge from "@/components/freeCharge";
  108. export default {
  109. mixins: [myMixin, myActivityMixin],
  110. data() {
  111. return {
  112. hasPermission: "", //是否有权限
  113. contentImg: "",
  114. contentLabel: "",
  115. contentDetail: {},
  116. label: "",
  117. type: "",
  118. permissionIds: "",
  119. whichDay: "",
  120. };
  121. },
  122. components: {
  123. areaCode,
  124. modalDialog,
  125. freeCharge,
  126. },
  127. methods: {
  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. });
  138. if (res.Ret === 200) {
  139. if (this.type) {
  140. uni.setNavigationBarTitle({
  141. title: this.type,
  142. });
  143. }
  144. this.contentImg = res.Data.ImgUrl;
  145. this.contentDetail = res.Data;
  146. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  147. if (this.page_no === 1) {
  148. this.collectList = res.Data.List || [];
  149. if (this.refresh) {
  150. uni.stopPullDownRefresh();
  151. this.refresh = false;
  152. }
  153. } else {
  154. this.collectList = this.collectList.concat(res.Data.List);
  155. }
  156. }
  157. },
  158. //获取是否需要填写区号接口
  159. countryCcode() {
  160. User.countryCcode().then((res) => {
  161. if (res.Ret == 200) {
  162. this.isNeedAddCountryCode = res.Data.IsNeedAddCountryCode;
  163. }
  164. });
  165. },
  166. jumpHandler() {
  167. if (this.contentDetail.IsJump) {
  168. if (this.contentDetail.IsResearch) {
  169. //严选
  170. this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + this.contentDetail.IndustrialManagementId);
  171. } else {
  172. //非严选
  173. this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + this.contentDetail.IndustrialManagementId);
  174. }
  175. }
  176. },
  177. },
  178. onLoad(option) {
  179. this.label = option.title;
  180. this.type = option.type;
  181. this.permissionIds = option.permissionIds || "";
  182. this.whichDay = option.whichDay || "";
  183. this.getActivityList();
  184. this.countryCcode();
  185. },
  186. onShow() {
  187. this.$store.dispatch("checkHandle");
  188. },
  189. /* 触底 */
  190. onReachBottom: Throttle(function () {
  191. if (this.status === "nomore") return;
  192. this.status = "loading";
  193. this.page_no++;
  194. this.getActivityList();
  195. }),
  196. /* 下拉刷新 */
  197. onPullDownRefresh: Throttle(function () {
  198. this.page_no = 1;
  199. this.refresh = true;
  200. this.getActivityList();
  201. }),
  202. /** 用户点击分享 */
  203. onShareAppMessage: function (res) {
  204. return {
  205. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : this.type || this.label,
  206. path: "/activityPages/themeActivity/themeActivity?title=" + this.label + "&permissionIds=" + this.permissionIds + "&whichDay=" + this.whichDay + "&type=" + this.type,
  207. };
  208. },
  209. };
  210. </script>
  211. <style lang="scss" scoped>
  212. .theme-container {
  213. background: #f7f7f7;
  214. padding-bottom: 30rpx;
  215. position: relative;
  216. .top-title {
  217. position: sticky;
  218. top: 0;
  219. z-index: 99;
  220. background-color: #fff;
  221. display: flex;
  222. align-items: center;
  223. color: #3385ff;
  224. font-size: 30rpx;
  225. padding: 30rpx 30rpx 20rpx;
  226. .content-title {
  227. display: flex;
  228. align-items: center;
  229. padding: 7rpx 12rpx;
  230. background-color: #f8f8fa;
  231. .new_icon {
  232. width: 60rpx;
  233. height: 30rpx;
  234. margin-left: 10rpx;
  235. }
  236. }
  237. .jump-title {
  238. color: #999;
  239. }
  240. }
  241. .collect-ul {
  242. padding-top: 10rpx;
  243. }
  244. }
  245. @import "../components/indexActivity.scss";
  246. </style>