activityItem.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <template>
  2. <view class="container-activity-item" @click="goDetail(list)">
  3. <view class="content-sign">
  4. <view :class="[list.ActivityType === 0 ? 'is-down' : 'is-up', 'is-up-down']">{{ list.ActivityType === 0 ? "线下" : "线上" }}</view>
  5. <view v-if="list.ActiveState == 1 || list.ActiveState == 2" :class="[list.ActiveState == 1 ? 'is-down-state' : 'is-up-state', 'is-up-down', 'state']">
  6. {{ list.ActiveState == 1 ? "未开始" : "进行中" }}
  7. </view>
  8. <block v-else>
  9. <view v-if="list.TripStatus != 1" :class="['is-end', 'is-up-down', 'state']"> 已结束 </view>
  10. </block>
  11. </view>
  12. <view class="content-type"> {{ list.ActivityTypeName || "专项产业调研" }}</view>
  13. <view :class="['content-title', 'text-Line', list.ResearchTheme && 'content-min-hight']" v-if="list.ActivityName || list.ResearchTheme">
  14. {{ list.ActivityName || list.ResearchTheme }}
  15. </view>
  16. <view style="display: flex" class="content-text content-min-hight text_twoLine" v-if="list.ActivityTimeText && list.SourceType !== 1">
  17. <text style="flex-shrink: 0"> 活动时间:</text>
  18. <text> {{ list.ActivityTimeText }}</text>
  19. </view>
  20. <view class="content-text text-Line" v-else>
  21. {{ list.Host ? "主持人:" : list.Expert ? "专家背景:" : list.Speaker ? "主讲人:" : list.DistinguishedGuest ? "嘉宾:" : "" }}
  22. {{ list.Host ? list.Host : list.Expert ? list.Expert : list.Speaker ? list.Speaker : list.DistinguishedGuest ? list.DistinguishedGuest : "" }}
  23. </view>
  24. <view class="content-time" v-if="list.SourceType == 1">
  25. {{ list.ActivityTimeText }}
  26. </view>
  27. <view v-if="list.City" class="content-city">
  28. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png"></image>
  29. {{ list.City }}
  30. </view>
  31. <view :class="['content-btn', isEndBtnSlide(list) > 2 && 'content-btn-end']">
  32. <block v-if="list.SourceType === 1">
  33. <block v-if="list.ActiveState == 1">
  34. <text class="item-btn btn-solid" v-if="list.IsShowOutboundCall && list.ActivityTypeId == 1" @click.stop="signupIsAddOfCancel(list, 1)">{{
  35. list.IsSignup == 1 ? "取消外呼" : "预约外呼"
  36. }}</text>
  37. <text class="item-btn" v-if="list.IsShowAppointment" @click.stop="summaryIsHandel(list)">{{ list.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
  38. <text class="item-btn" v-if="list.IsShowMeetingReminder" @click.stop="meetingReminderAdd(list, list.IsCancelMeetingReminder)">
  39. {{ list.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
  40. </text>
  41. <view class="item-btn" v-if="list.IsShowHelpSsk" style="width: 130rpx">
  42. <text @click.stop="askingGo(list)">帮我带问</text>
  43. </view>
  44. <text class="item-btn btn-solid" v-if="list.IsShowOutboundCall && list.ActivityTypeId != 1" @click.stop="signupIsAddOfCancel(list, 1)">{{
  45. list.IsSignup == 1 ? "取消外呼" : "预约外呼"
  46. }}</text>
  47. <text class="item-btn" v-if="list.IsShowDetails" @click.stop="goDetail(list)">查看详情</text>
  48. <block v-if="list.IsShowSignup">
  49. <block v-if="list.IsCClassMeeting">
  50. <text class="item-btn btn-solid" @click.stop="signupIsAddOfCancel(list, 3, 'CClass')">{{ list.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
  51. </block>
  52. <block v-else>
  53. <text class="item-btn btn-solid" v-if="list.IsSignup !== 1" @click.stop="wanttosignup(list)">我要报名</text>
  54. <text class="item-btn btn-solid" v-else @click.stop="signupIsAddOfCancel(list, 2)">{{ list.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  55. </block>
  56. </block>
  57. </block>
  58. <text v-if="list.IsShowHelpSsk && list.ActiveState == 2" class="item-btn" @click.stop="askingGo(list, '提问')">实时提问</text>
  59. </block>
  60. <view class="bottom-box real-time" v-else>
  61. <view class="bottom-box">
  62. <view class="" style="width: 130rpx"> </view>
  63. <text class="item-btn" @click.stop="lookImg(list)">行程安排</text>
  64. <block v-if="list.TripStatus == 2">
  65. <text v-if="list.ActiveState == 1" class="item-btn btn-solid" @click.stop="applyOfcancel(list)">{{ list.IsTrip == 0 ? "我要报名" : "取消报名" }}</text>
  66. </block>
  67. <block v-else>
  68. <text class="item-btn btn-solid" v-if="list.IsSignup !== 1" @click.stop="interest(list)">感兴趣</text>
  69. <text class="item-btn btn-solid" @click.stop="beNotInterested(list)" v-else>已预报名</text>
  70. </block>
  71. </view>
  72. </view>
  73. </view>
  74. <image v-if="list.TripStatus == 2" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/confirm_XC_new.png" class="content-img"></image>
  75. <image v-if="list.TripStatus == 1" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/Y_apply_new.png" class="content-img"></image>
  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. <u-modal
  94. v-model="specialGoFollowShow"
  95. :content-style="{ fontSize: '32rpx' }"
  96. :show-cancel-button="show_cancel_button"
  97. confirm-text="知道了"
  98. :show-confirm-button="show_confirm_button"
  99. :show-title="false"
  100. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  101. :confirm-style="{ fontWeight: '700' }"
  102. :mask-close-able="specialIsHintShow"
  103. @confirm="ininModalHandler"
  104. @cancel="ininModalHandler"
  105. >
  106. <view class="slot-content">
  107. <block v-if="specialPopupMsg">
  108. <text>{{ specialAccounts }}</text>
  109. <text class="light-hint">{{ specialPopupMsg }}</text>
  110. </block>
  111. <rich-text v-else :nodes="specialAccounts"></rich-text>
  112. </view>
  113. </u-modal>
  114. <view class="select-box">
  115. <u-popup v-model="selectShow" mode="bottom">
  116. <view style="color: #333333; font-size: 28rpxrpx">请选择参会方式</view>
  117. <view style="color: #2c83ff" @click.stop="signupIsAddOfCancel('', 1)">预约外呼</view>
  118. <view style="color: #2c83ff" @click.stop="signupIsAddOfCancel('', 2)">自主拨入</view>
  119. <view style="color: #a9afb8" @click.stop="selectShow = false">取消</view>
  120. </u-popup>
  121. </view>
  122. </view>
  123. </template>
  124. <script>
  125. import myActivityMixin from "@/components/activity/indexActivity.js";
  126. import modalDialog from "../modalDialog.vue";
  127. import { activity, User } from "@/config/api.js";
  128. export default {
  129. name: "",
  130. components: { modalDialog },
  131. props: {
  132. list: {
  133. type: Object,
  134. default: {},
  135. required: true,
  136. },
  137. },
  138. data() {
  139. return {
  140. /**/
  141. tabsActive: 0,
  142. /**/
  143. /* 共用的弹框 */
  144. isShow: false, //弹框
  145. signupType: "", //关注类型
  146. goFollow: false, //是否关注公众号
  147. hasPermission: "", //是否有权限
  148. jurisdictionList: {},
  149. editIsShow: false, //外呼莫泰框
  150. isCancelShow: false,
  151. idTypeCancel: {
  152. id: "",
  153. type: 1,
  154. cutId: "",
  155. state: "",
  156. isNum: false,
  157. },
  158. countryCode: "", //外呼区号
  159. mobileEdit: "", //外呼手机号
  160. goOnNextStep: "", //设置外呼号后弹出哪个
  161. isShowhasPermission: false, //拨打销售电话
  162. applyForIsShow: false, //潜在用户
  163. mailboxBinding: false, //是否绑定邮箱
  164. selectShow: false, //
  165. specialIsHintShow: false, // 按钮的显示
  166. specialGoFollowShow: false, // 弹框的隐藏显示
  167. specialAccounts: `您已开启【专项调研】新活动通知<br/><br/>请关注【查研观向小助手】公众号,及时获取微信消息提醒`,
  168. specialIsFollow: false, // 是否关注
  169. specialPopupMsg: "", // 消息的文案
  170. show_cancel_button: false, // 取消按钮的隐藏显示
  171. show_confirm_button: false, // 确定按钮的隐藏显示
  172. };
  173. },
  174. computed: {},
  175. watch: {},
  176. created() {},
  177. mounted() {},
  178. methods: {
  179. isEndBtnSlide(item) {
  180. let isKey = ["IsShowOutboundCall", "IsShowAppointment", "IsShowMeetingReminder", "IsShowHelpSsk", "IsShowDetails", "IsShowSignup"];
  181. let arr = [];
  182. Object.keys(item).forEach((key) => {
  183. if (isKey.includes(key)) {
  184. item[key] && arr.push(item[key]);
  185. }
  186. });
  187. return arr.length;
  188. },
  189. // 我要报名
  190. wanttosignup(item) {
  191. this.activityIdAdd = item.ActivityId;
  192. if (item.YidongActivityId) {
  193. this.goDetail(item);
  194. return;
  195. } else if (item.IsLimitPeople == 1 && item.ActivityTypeName == "公司调研电话会") {
  196. this.selectShow = true;
  197. } else {
  198. this.activityIdAdd = "";
  199. this.signupIsAddOfCancel(item, 3);
  200. }
  201. },
  202. //报名/取消报名
  203. signupIsAddOfCancel(item, type, valName = "") {
  204. let id = this.activityIdAdd || item.ActivityId;
  205. let itemData = item;
  206. if (item && item.IsSignup == 1) {
  207. const str = item.ActivityTime.replace(/-/g, "/");
  208. const date = new Date(str);
  209. const times = date.getTime();
  210. const num = new Date().getTime();
  211. if (times - num <= 3600000) {
  212. uni.showModal({
  213. confirmText: "知道了",
  214. showCancel: false,
  215. confirmColor: "#3385FF",
  216. content: type == 1 ? "活动开始前1小时内无法取消预约外呼,请联系对口销售处理" : "活动开始前1小时内无法取消报名,请联系对口销售处理",
  217. });
  218. return;
  219. }
  220. uni.showModal({
  221. content: type == 1 ? "您要取消此次活动预约外呼吗?" : "您要取消此次活动的报名吗?",
  222. confirmColor: "#3385FF",
  223. cancelColor: "#606266",
  224. success: async (res) => {
  225. if (res.confirm) {
  226. const res = await activity.signupCancel({ ActivityId: item.ActivityId, SignupType: type });
  227. if (res.Ret === 200) {
  228. this.parentDataEmit(item, "IsSignup", 0);
  229. this.init();
  230. type == 1
  231. ? uni.showToast({
  232. title: "预约外呼已取消",
  233. duration: 2000,
  234. })
  235. : uni.showToast({
  236. title: "已取消报名",
  237. duration: 2000,
  238. });
  239. if (valName === "我的") {
  240. this.getActivityList();
  241. }
  242. }
  243. }
  244. },
  245. });
  246. } else {
  247. let timer = null;
  248. if (this.flag) return;
  249. clearTimeout(timer);
  250. this.flag = true;
  251. this.selectShow = false;
  252. activity
  253. .signupAdd({
  254. ActivityId: id,
  255. SignupType: type,
  256. })
  257. .then((res) => {
  258. if (res.Ret == 200) {
  259. this.hasPermission = res.Data.HasPermission;
  260. this.jurisdictionList = res.Data;
  261. if (this.hasPermission == 1) {
  262. item.SignupType = type;
  263. this.signupType = valName == "CClass" ? "CClass" : res.Data.SignupType;
  264. this.countryCode = res.Data.CountryCode;
  265. this.mobileEdit = res.Data.Mobile;
  266. this.goOnNextStep = res.Data.GoFollow;
  267. this.idTypeCancel = {
  268. cutId: res.Data.ActivityId,
  269. state: 1,
  270. };
  271. if (res.Data.GoBindEmail) {
  272. this.mailboxBinding = true;
  273. return;
  274. }
  275. if (res.Data.SignupStatus !== "Success") {
  276. this.isShow = true;
  277. } else {
  278. if (res.Data.GoOutboundMobile) {
  279. this.editIsShow = true;
  280. } else if (res.Data.GoFollow) {
  281. this.goFollow = res.Data.GoFollow;
  282. } else if (res.Data.SignupStatus == "Success") {
  283. this.isShow = true;
  284. }
  285. this.parentDataEmit(item, "IsSignup", 1);
  286. }
  287. } else if (this.hasPermission == 2) {
  288. this.isShowhasPermission = true;
  289. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  290. this.applyForIsShow = true;
  291. }
  292. }
  293. });
  294. timer = setTimeout(() => {
  295. this.flag = false;
  296. }, 500);
  297. }
  298. },
  299. // 弹框的初始化
  300. init() {
  301. this.signupType = "";
  302. this.goFollow = false;
  303. this.isShow = false;
  304. this.isCancelShow = false;
  305. },
  306. //添加消息提醒接口
  307. meetingReminderAdd(item, type) {
  308. if (type != 0) {
  309. this.meetingReminderCancel(item);
  310. return;
  311. }
  312. activity
  313. .meetingReminderAdd({
  314. ActivityId: item.ActivityId,
  315. })
  316. .then((res) => {
  317. if (res.Ret == 200) {
  318. this.hasPermission = res.Data.HasPermission;
  319. this.jurisdictionList = res.Data;
  320. if (this.hasPermission == 1) {
  321. if ((res.Data.GoFollow && res.Data.SignupStatus !== "Success") || !res.Data.GoFollow) {
  322. this.isShow = true;
  323. } else {
  324. this.goFollow = res.Data.GoFollow;
  325. }
  326. this.signupType = 999;
  327. this.idTypeCancel = {
  328. cutId: res.Data.ActivityId,
  329. state: 1,
  330. name: "conference",
  331. };
  332. this.parentDataEmit(item, "IsCancelMeetingReminder", 1);
  333. } else if (this.hasPermission == 2) {
  334. this.isShowhasPermission = true;
  335. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  336. this.applyForIsShow = true;
  337. }
  338. }
  339. });
  340. },
  341. //取消消息提醒接口
  342. meetingReminderCancel(item) {
  343. activity
  344. .meetingReminderCancel({
  345. ActivityId: item.ActivityId,
  346. })
  347. .then((res) => {
  348. if (res.Ret == 200) {
  349. uni.showModal({
  350. confirmText: "知道了",
  351. confirmColor: "#3385FF",
  352. content: res.Msg,
  353. showCancel: false,
  354. success: (res) => {
  355. if (this.isrefresh) return this.getActivityList();
  356. if (res.confirm) {
  357. this.parentDataEmit(item, "IsCancelMeetingReminder", 0);
  358. }
  359. },
  360. });
  361. }
  362. });
  363. },
  364. //帮我带问
  365. async askingGo(item, type = "") {
  366. const res = await activity.checkAskActivity({ ActivityId: item.ActivityId });
  367. if (res.Ret == 200) {
  368. this.hasPermission = res.Data.HasPermission;
  369. this.jurisdictionList = res.Data;
  370. if (this.hasPermission == 1) {
  371. uni.navigateTo({
  372. url: "/activityPages/generationAsk/generationAsk?id=" + item.ActivityId + "&type=" + type,
  373. });
  374. } else if (this.hasPermission == 2) {
  375. this.isShowhasPermission = true;
  376. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  377. this.applyForIsShow = true;
  378. }
  379. }
  380. },
  381. // 弹框的初始化
  382. init() {
  383. this.signupType = "";
  384. this.goFollow = false;
  385. this.isShow = false;
  386. this.isCancelShow = false;
  387. },
  388. //预约纪要、取消预约纪要
  389. async summaryIsHandel(item, type = "") {
  390. if (item.IsAppointment == 0) {
  391. const res = await activity.postAppointmentAdd({ ActivityId: item.ActivityId });
  392. if (res.Ret == 200) {
  393. this.hasPermission = res.Data.HasPermission;
  394. this.jurisdictionList = res.Data;
  395. if (this.hasPermission == 1) {
  396. this.signupType = "summaryIsHandel";
  397. this.goOnNextStep = res.Data.GoFollow;
  398. if (res.Data.SignupStatus !== "Success") {
  399. this.isShow = true;
  400. } else {
  401. if (res.Data.GoFollow) {
  402. this.goFollow = res.Data.GoFollow;
  403. } else if (res.Data.SignupStatus == "Success") {
  404. this.isShow = true;
  405. }
  406. this.parentDataEmit(item, "IsAppointment", 1);
  407. }
  408. } else if (this.hasPermission == 2) {
  409. this.isShowhasPermission = true;
  410. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  411. this.applyForIsShow = true;
  412. }
  413. }
  414. } else {
  415. uni.showModal({
  416. content: "确定要取消预约本场调研的纪要吗?",
  417. confirmColor: "#3385FF",
  418. cancelColor: "#606266",
  419. success: async (res) => {
  420. if (res.confirm) {
  421. const res = await activity.postAppointmentCancel({ ActivityId: item.ActivityId });
  422. if (res.Ret === 200) {
  423. this.parentDataEmit(item, "IsAppointment", 0);
  424. this.init();
  425. if (type === "我的") {
  426. this.getActivityList();
  427. }
  428. }
  429. }
  430. },
  431. });
  432. }
  433. },
  434. //去往详情页面
  435. goDetail(item) {
  436. if (item.SourceType !== 1) {
  437. this.$store.dispatch("checkHandle", "/activityPages/specialDetail/specialDetail?id=" + item.ActivityId);
  438. } else {
  439. this.$store.dispatch("checkHandle", "/activityPages/activityDetail/activityDetail?id=" + item.ActivityId);
  440. }
  441. },
  442. // 查看行程的事件
  443. lookImg(item) {
  444. uni.previewImage({
  445. urls: [item.TripImgLink], //查看图片的数组
  446. });
  447. },
  448. // 点击感兴趣
  449. async interest(item) {
  450. const res = await activity.postSpecialSignupAdd({
  451. ActivityId: item.ActivityId,
  452. });
  453. if (res.Ret === 200) {
  454. this.modalShow(res);
  455. if (res.Data.SignupStatus == 1) {
  456. this.parentDataEmit(item, "IsSignup", 1);
  457. }
  458. }
  459. },
  460. // 报名或者取消报名
  461. async applyOfcancel(item, type = "") {
  462. this.show_confirm_button = true;
  463. if ((type != "back" && item.IsTrip == 1) || (type == "back" && item.IsSignup == 1)) {
  464. // 取消报名
  465. const str = item.ActivityTime.replace(/-/g, "/");
  466. const date = new Date(str);
  467. const times = date.getTime();
  468. const num = new Date().getTime();
  469. let twoDays = times - num <= 3600000 * 48;
  470. uni.showModal({
  471. content: twoDays ? "活动开始前48小时内,取消报名仍会维持扣点,确定要取消报名吗?" : "您要取消此次专项调研的预报名吗?",
  472. confirmColor: "#3385FF",
  473. cancelColor: "#606266",
  474. success: async (res) => {
  475. if (res.confirm) {
  476. const res = await activity.activityApecialCancel({
  477. ActivityId: item.ActivityId,
  478. });
  479. if (res.Ret === 200) {
  480. uni.showToast({
  481. title: "已取消",
  482. duration: 2000,
  483. });
  484. item.TripNum > 0 && (item.TripNum -= 1);
  485. type == "back" ? this.parentDataEmit(item, "IsSignup", 0) : this.parentDataEmit(item, "IsTrip", 0);
  486. }
  487. }
  488. },
  489. });
  490. } else {
  491. // 报名
  492. const res = await activity.activityApecialAdd({ ActivityId: item.ActivityId });
  493. if (res.Ret == 200) {
  494. this.modalShow(res);
  495. if (res.Data.SignupStatus == 1) {
  496. type == "back" ? this.parentDataEmit(item, "IsSignup", 1) : this.parentDataEmit(item, "IsTrip", 1);
  497. }
  498. }
  499. }
  500. },
  501. // 弹框的数据重置
  502. ininModalHandler() {
  503. this.show_cancel_button = false;
  504. this.show_confirm_button = false;
  505. this.specialIsHintShow = false;
  506. this.specialGoFollowShow = false;
  507. this.isCancelBtn = false;
  508. },
  509. // 显示弹框
  510. modalShow(res) {
  511. this.show_confirm_button = true;
  512. this.specialGoFollowShow = true;
  513. this.specialAccounts = res.Data.PopupMsg;
  514. this.specialPopupMsg = res.Data.PopupMsg2;
  515. },
  516. // 已预报名、就是不感兴趣
  517. beNotInterested(item) {
  518. uni.showModal({
  519. content: "您要取消此次专研调研的预报名吗?",
  520. confirmColor: "#3385FF",
  521. cancelColor: "#606266",
  522. success: async (res) => {
  523. if (res.confirm) {
  524. const res = await activity.postSpecialSignupAdd({
  525. ActivityId: item.ActivityId,
  526. });
  527. if (res.Ret === 200) {
  528. this.parentDataEmit(item, "IsSignup", 0);
  529. }
  530. }
  531. },
  532. });
  533. },
  534. // 新调研通知
  535. async specialFollow() {
  536. this.show_confirm_button = true;
  537. if (this.specialIsFollow) {
  538. uni.showModal({
  539. content: "您要取消【专项调研】新活动通知吗?",
  540. confirmColor: "#3385FF",
  541. cancelColor: "#606266",
  542. success: async (res) => {
  543. if (res.confirm) {
  544. const res = await activity.postSpecialFollow();
  545. if (res.Ret === 200) {
  546. this.specialIsFollow = !this.specialIsFollow;
  547. }
  548. }
  549. },
  550. });
  551. } else {
  552. const res = await activity.postSpecialFollow();
  553. if (res.Ret === 200) {
  554. this.show_cancel_button = true;
  555. this.specialIsFollow = !this.specialIsFollow;
  556. this.specialGoFollowShow = true;
  557. }
  558. }
  559. },
  560. parentDataEmit(item, value, num) {
  561. let index = this.$parent.newDataList.findIndex((key) => key.Activity && key.Activity.ActivityId === item.ActivityId);
  562. this.$parent.newDataList[index].Activity[value] = num;
  563. },
  564. },
  565. };
  566. </script>
  567. <style scoped lang="scss">
  568. .container-activity-item {
  569. position: relative;
  570. width: 100%;
  571. background: #ffffff;
  572. box-shadow: 0rpx 3rpx 8rpx 0rpx rgba(0, 0, 0, 0.16);
  573. border-radius: 8rpx;
  574. padding: 20rpx;
  575. margin-bottom: 20rpx;
  576. font-size: 24rpx;
  577. overflow: hidden;
  578. .content-sign {
  579. display: flex;
  580. .is-up-down {
  581. width: 110rpx;
  582. height: 40rpx;
  583. text-align: center;
  584. line-height: 40rpx;
  585. border-radius: 4rpx;
  586. color: #fff;
  587. }
  588. .is-up {
  589. background: linear-gradient(90deg, #0151ff 0%, #01b9ff 100%);
  590. }
  591. .is-up-state {
  592. background: #ff9110;
  593. }
  594. .is-down-state {
  595. background-color: #01a7ff;
  596. }
  597. .is-down {
  598. background: linear-gradient(90deg, #ff8a05 0%, #ffb74d 100%);
  599. }
  600. .is-end {
  601. background: #dddddd;
  602. }
  603. .state {
  604. border-radius: 4rpx 0 4rpx 0;
  605. margin-left: 10rpx;
  606. }
  607. }
  608. .content-type {
  609. font-size: 32rpx;
  610. font-weight: 500;
  611. color: #333333;
  612. line-height: 38rpx;
  613. margin: 10rpx 0;
  614. }
  615. .content-title {
  616. font-size: 28rpx;
  617. font-weight: 400;
  618. color: #333333;
  619. line-height: 44rpx;
  620. }
  621. .content-text {
  622. font-size: 28rpx;
  623. font-weight: 400;
  624. color: #999999;
  625. line-height: 44rpx;
  626. margin: 10rpx 0;
  627. }
  628. .content-time {
  629. color: #333333;
  630. margin-bottom: 15rpx;
  631. }
  632. .content-city {
  633. display: flex;
  634. justify-content: flex-end;
  635. align-items: center;
  636. color: #3385ff;
  637. image {
  638. width: 27rpx;
  639. height: 32rpx;
  640. margin-right: 8rpx;
  641. }
  642. }
  643. .content-img {
  644. position: absolute;
  645. top: 49rpx;
  646. right: 0;
  647. width: 205rpx;
  648. height: 119rpx;
  649. }
  650. .content-btn {
  651. display: flex;
  652. overflow: hidden;
  653. overflow-x: auto;
  654. margin-top: 20rpx;
  655. justify-content: flex-end;
  656. .item-btn {
  657. color: #3385ff;
  658. display: flex;
  659. align-items: center;
  660. justify-content: center;
  661. width: 113rpx;
  662. height: 42rpx;
  663. border-radius: 4rpx;
  664. border: 1rpx solid #3385ff;
  665. margin-left: 20rpx;
  666. flex-shrink: 0;
  667. }
  668. .btn-solid {
  669. background: #3385ff;
  670. border: none;
  671. color: #fff;
  672. }
  673. }
  674. .content-btn-end {
  675. justify-content: flex-start;
  676. }
  677. .bottom-box {
  678. display: flex;
  679. }
  680. .text-Line {
  681. text-overflow: -o-ellipsis-lastline;
  682. overflow: hidden;
  683. text-overflow: ellipsis;
  684. display: -webkit-box;
  685. -webkit-box-orient: vertical;
  686. word-wrap: break-word;
  687. word-break: break-all;
  688. -webkit-line-clamp: 3;
  689. line-clamp: 3;
  690. }
  691. .select-box {
  692. width: 100%;
  693. view {
  694. height: 95prx;
  695. line-height: 95rpx;
  696. text-align: center;
  697. font-size: 32rpx;
  698. border-bottom: 1rpx solid #ebebeb;
  699. }
  700. }
  701. .content-min-hight {
  702. min-height: 88rpx;
  703. text-overflow: -o-ellipsis-lastline;
  704. overflow: hidden;
  705. text-overflow: ellipsis;
  706. display: -webkit-box;
  707. -webkit-box-orient: vertical;
  708. word-wrap: break-word;
  709. word-break: break-all;
  710. -webkit-line-clamp: 2 !important;
  711. line-clamp: 2 !important;
  712. }
  713. }
  714. </style>