activitySearch.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. <template>
  2. <view class="container activity-content">
  3. <view class="top-content">
  4. <!-- 搜索 -->
  5. <view class="searchTarget-header" v-if="!dynamicName">
  6. <input type="text" placeholder="请输入关键字" placeholder-class="sea_ipt_placeholder" class="sea_ipt" v-model="searchTxt" focus="true" confirm-type="search" @confirm="searchHandle" />
  7. <icon type="search" size="15" class="sea_ico" />
  8. <view class="ipt-right">
  9. <icon type="clear" size="16" color="#E0E0E0" v-show="searchTxt" @click="clearIpt" />
  10. <text class="line">|</text>
  11. <text @click="searchHandle" style="color: #3385ff">搜索</text>
  12. </view>
  13. </view>
  14. <!-- 选中的气泡主题 -->
  15. <view class="dynamic-name" v-if="dynamicName">
  16. <text>{{ dynamicName }}</text>
  17. <icon type="clear" size="16" color="#E0E0E0" @click="clearDynamicName" />
  18. </view>
  19. <!-- 搜索历史 -->
  20. <view class="search-cont-top" v-if="!isShowSearch && historySearchList.length">
  21. <view class="cont-tit">
  22. <text>搜索历史</text>
  23. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/empty_ico.png" class="empty_ico" @click="clearHistory"></image>
  24. </view>
  25. <view class="targetList">
  26. <view class="target-item" v-for="(item, index) in historySearchList" :key="index" @click="chooseTarget(item)">{{ item }}</view>
  27. </view>
  28. </view>
  29. <!-- 气泡主题list -->
  30. <view class="dynamic-content" v-if="!isShowSearch">
  31. <view class="target-title"> 更多主题搜索: </view>
  32. <view class="target-item">
  33. <view class="target-ul target-left">
  34. <view class="target-text" v-for="(item, index) in dynamicList" :key="index" v-if="index % 2 === 0">
  35. <text @click="changeTarget(item.KeyWord)">
  36. {{ item.KeyWord }}
  37. </text>
  38. </view>
  39. <view class="lucency" style="width: 65rpx">
  40. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/broadside-ico.png" mode=""></image>
  41. </view>
  42. </view>
  43. <view class="target-ul target-right">
  44. <view class="target-text" v-for="(item, index) in dynamicList" :key="index" v-if="index % 2 !== 0">
  45. <text @click="changeTarget(item.KeyWord)">
  46. {{ item.KeyWord }}
  47. </text>
  48. </view>
  49. <view class="lucency" style="width: 35rpx">
  50. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/broadside-ico.png" mode=""></image>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 各种状态选择 -->
  56. <view class="select-conyent" v-if="isShowSearch && !dynamicName">
  57. <van-dropdown-menu active-color="#333333">
  58. <van-dropdown-item id="statusstate" :title="activeStateName" @close="closeTheWindow('statusstate')">
  59. <view class="menu-items">
  60. <view class="menu-items-box" @click="overallBtn('statusstate', key)" v-for="key in listActivityStaus" :key="key.Id">
  61. <view class="items-box">
  62. <u-icon v-if="key.IsChoose" name="checkbox-mark" color="#2C83FF" size="24"></u-icon>
  63. </view>
  64. <text>{{ key.StatusName }}</text>
  65. </view>
  66. </view>
  67. <view style="background-color: #f8f8fa; width: 100%">
  68. <view style="margin: 0 auto; width: 682rpx; border-bottom: 2rpx solid #e5e5e5"> </view>
  69. </view>
  70. <view class="menu-items">
  71. <view class="menu-items-box" @click="timeListBtn('statusstate', key)" v-for="key in activityTimeList" :key="key.Id">
  72. <view class="items-box">
  73. <u-icon v-if="key.IsChoose" name="checkbox-mark" color="#2C83FF" size="24"></u-icon>
  74. </view>
  75. <text>{{ key.StatusName }}</text>
  76. </view>
  77. </view>
  78. <view class="replacement-box">
  79. <view class="replacement">
  80. <text @click="replacementBtn('statusstate')" class="replacement-box">重置</text>
  81. <text @click="replacementConfirm('statusstate')">确定</text>
  82. </view>
  83. </view>
  84. </van-dropdown-item>
  85. <van-dropdown-item id="industry" :title="chartPermissionName" @close="closeTheWindow('industry')">
  86. <view class="decide">
  87. <view class="items-box">
  88. <u-icon v-if="isShowJurisdiction" name="checkbox-mark" color="#2C83FF" size="24"> </u-icon>
  89. </view>
  90. <text @click="isJurisdiction">始终只展示有权限的行业</text>
  91. </view>
  92. <view style="background-color: #f8f8fa; width: 100%">
  93. <view style="margin: 0 auto; width: 682rpx; border-bottom: 2rpx solid #e5e5e5"> </view>
  94. </view>
  95. <view class="menu-items">
  96. <view class="menu-items-box" v-for="item in listChartPermission" :key="item.ChartPermissionId" @click="overallClick('industry', item)">
  97. <view class="items-box">
  98. <u-icon v-if="item.IsChoose" name="checkbox-mark" :color="isShowJurisdiction ? '#ccc' : '#2C83FF'" size="24"></u-icon>
  99. </view>
  100. <text>{{ item.PermissionName }}</text>
  101. </view>
  102. </view>
  103. <view class="replacement">
  104. <text @click="replacementBtn('industry')" class="replacement-box">重置</text>
  105. <text @click="replacementConfirm('industry')">确定</text>
  106. </view>
  107. </van-dropdown-item>
  108. <van-dropdown-item id="genre" :title="activityTypeName" @close="closeTheWindow('genre')">
  109. <view class="menu-items">
  110. <view class="menu-items-box" @click="overallActivity('genre', item)" v-for="item in listActivityType" :key="item.ActivityTypeId">
  111. <view class="items-box">
  112. <u-icon v-if="item.IsChoose" name="checkbox-mark" color="#2C83FF" size="24"> </u-icon>
  113. </view>
  114. <text>{{ item.ActivityTypeName }}</text>
  115. </view>
  116. </view>
  117. <view class="replacement">
  118. <text @click="replacementBtn('genre')" class="replacement-box">重置</text>
  119. <text @click="replacementConfirm('genre')">确定</text>
  120. </view>
  121. </van-dropdown-item>
  122. </van-dropdown-menu>
  123. </view>
  124. </view>
  125. <!-- 内容列表部分 -->
  126. <!-- 活动列表 -->
  127. <view v-if="haveData" class="activity-pages" :class="dynamicName ? 'activity-page' : '' ">
  128. <view class="collect-ul">
  129. <view class="collect-ltem" v-for="(item, index) in collectList" :key="index">
  130. <view class="title-date" @click="goDetail(item)">
  131. <text :class="item.ActivityType == 1 ? '' : 'xianxia'">{{ item.ActivityType == 1 ? "线上" : "线下" }}</text>
  132. {{ item.ActivityTimeText }}
  133. </view>
  134. <view class="item-li">
  135. <view class="item-img" @click="goDetail(item)">
  136. <image :src="item.ImgUrl">
  137. <text v-if="item.ActiveState==1" class="img-status begin">未开始</text>
  138. <text v-else-if="item.ActiveState==2" class="img-status proceed">进行中</text>
  139. <text v-else class="img-status">已结束</text>
  140. <view class="img-type">
  141. <image :src="item.ImgUrlText" mode=""></image>
  142. </view>
  143. </view>
  144. <view class="item">
  145. <view class="item-text" @click="goDetail(item)">
  146. <text class="activity-title"> {{ item.ActivityName }} </text>
  147. <text class="text_twoLine" v-if="item.ActivityTypeName == '专家电话会' || item.ActivityTypeName == '专家线下沙龙' || item.ActivityTypeName == '研选电话会'">专家背景:{{ item.Expert }} </text>
  148. <text class="text_twoLine" v-if="item.ActivityTypeName == '公司调研电话会' || item.ActivityTypeName == '公司线下调研'">嘉宾:{{ item.DistinguishedGuest }} </text>
  149. <text class="text_twoLine" v-if="item.ActivityTypeName == '分析师电话会' || item.ActivityTypeName == '分析师线下沙龙'">主讲人:{{ item.Speaker }}</text>
  150. </view>
  151. <block v-if="item.ActiveState == 1">
  152. <view class="bottom-box city" v-if="item.ActiveState == 1 && item.IsLimitPeople == 1 && item.ActivityTypeName == '公司调研电话会'">
  153. <view class="city-img">
  154. <image v-if="item.City" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" />
  155. {{ item.City }}
  156. </view>
  157. <text class="button" v-if="item.IsSignup !== 1" @click="wanttosignup(item.ActivityId)">我要报名</text>
  158. <text class="button" v-else @click="signupCancel(item.ActivityId, 2, item.ActivityTime)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  159. </view>
  160. <view class="bottom-box" v-else-if="item.ActivityType == 1">
  161. <view class="" style="width:130rpx">
  162. <text v-if="item.ActivityTypeId == 1" @click="askingGo(item)">帮我带问</text>
  163. </view>
  164. <text @click="meetingReminderAdd(item.ActivityId)" v-if="item.IsCancelMeetingReminder == 0">会议提醒</text>
  165. <text @click="meetingReminderCancel(item.ActivityId)" v-else>取消提醒</text>
  166. <text class="button" v-if="item.IsSignup !== 1" @click="signupAdd(item.ActivityId, 1)">预约外呼</text>
  167. <text class="button" @click="signupCancel(item.ActivityId, 1, item.ActivityTime)" v-else>取消外呼</text>
  168. </view>
  169. <view class="bottom-box city" v-else>
  170. <view class="city-img">
  171. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" />
  172. {{ item.City }}
  173. </view>
  174. <text class="button" v-if="item.IsSignup !== 1" @click="signupAdd(item.ActivityId, 3)">我要报名</text>
  175. <text class="button" v-else @click="signupCancel(item.ActivityId, 3, item.ActivityTime)">取消报名</text>
  176. </view>
  177. </block>
  178. <block v-else>
  179. <view class="bottom-box city" v-if="item.City">
  180. <view class="city-img">
  181. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" />
  182. {{ item.City }}
  183. </view>
  184. </view>
  185. <view class="bottom-box real-time" v-if="item.ActiveState == 2 && item.ActivityTypeId == 1">
  186. <text class="button" @click="askingGo(item,'提问')">实时提问</text>
  187. </view>
  188. </block>
  189. </view>
  190. </view>
  191. </view>
  192. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  193. </view>
  194. </view>
  195. <!-- 缺审部分 -->
  196. <view class="nodata" v-else>
  197. <image src="https://hzstatic.hzinsights.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
  198. <text>未找到搜索结果</text>
  199. </view>
  200. <!-- 各种自定义弹框 -->
  201. <modalDialog :isShow="isShow" :signupType="signupType" :goFollow="goFollow" :signupStatus="signupStatus"
  202. :hasPermission="hasPermission" :jurisdictionList="jurisdictionList" :editIsShow="editIsShow"
  203. :isCancelShow="isCancelShow" :idTypeCancel="idTypeCancel" @cancelShowBtn="cancelEnsure"
  204. :countryCode="countryCode" :mobileEdit="mobileEdit" :goOnNextStep="goOnNextStep"
  205. :isShowhasPermission="isShowhasPermission" :applyForIsShow="applyForIsShow"
  206. :mailboxBinding="mailboxBinding"/>
  207. <!-- 选择区号弹出层 -->
  208. <areaCode :isAreaCode="isAreaCode" :areaCode="areaCode" />
  209. <!-- 参会方式弹出层 -->
  210. <view class="select-box">
  211. <u-popup v-model="selectShow" mode="bottom">
  212. <view style="color: #333333;font-size: 28rpxrpx;">请选择参会方式</view>
  213. <view style="color: #2C83FF;" @click="signupAdd('id',1)">预约外呼</view>
  214. <view style="color: #2C83FF;" @click="signupAdd('id',2)">自主拨入</view>
  215. <view style="color: #A9AFB8;" @click="selectShow=false">取消</view>
  216. </u-popup>
  217. </view>
  218. </view>
  219. </template>
  220. <script>
  221. import { activity,User } from "@/config/api.js";
  222. import { Throttle } from "@/config/util.js";
  223. import modalDialog from "@/components/modalDialog.vue";
  224. import areaCode from "@/activityPages/components/areaCode.vue";
  225. import myMixin from "../components/index.js";
  226. import myActivityMixin from "../components/indexActivity.js";
  227. let app = getApp({allowDefault: true});
  228. export default {
  229. data() {
  230. return {
  231. searchTxt: "",
  232. isShowSearch: false,
  233. status: "loadmore",
  234. totalPage: "",
  235. haveData: true,
  236. activeState: "1,2,3", //活动进行状态
  237. activeStateName: "全部状态",
  238. selectShow: false,
  239. dynamicList: [],
  240. dynamicName: "",
  241. };
  242. },
  243. mixins: [myMixin,myActivityMixin],
  244. components: {
  245. modalDialog,
  246. areaCode,
  247. },
  248. methods: {
  249. //获取快捷主题
  250. fastSearchKeWord() {
  251. activity
  252. .fastSearchKeWord({
  253. ActiveState: this.activeState,
  254. ActivityTypeIds: this.activityTypeIds,
  255. ChartPermissionIds: this.chartPermissionIds,
  256. WhichDay: this.activityTimeStatus,
  257. Label: "More",
  258. })
  259. .then((res) => {
  260. if (res.Ret !== 200) return;
  261. this.dynamicList = res.Data.List || [];
  262. });
  263. },
  264. //主题的点击事件
  265. //点击了快捷主题
  266. changeTarget(val) {
  267. if (val) {
  268. this.dynamicName = val;
  269. }
  270. if (this.isGain) {
  271. this.empty();
  272. this.getList();
  273. }
  274. this.getUserSearchContent();
  275. this.isShowSearch = true;
  276. },
  277. //清除主题的点击事件
  278. //清除了快捷主题
  279. clearDynamicName() {
  280. this.dynamicName = "";
  281. this.searchTxt = "";
  282. this.collectList = [];
  283. this.haveData = true;
  284. this.isShowSearch = false;
  285. },
  286. // 遍历
  287. preserve() {
  288. const arr = [];
  289. const str = [];
  290. this.listActivityStaus.forEach((item) => {
  291. if (item.IsChoose) {
  292. arr.push(item.Id);
  293. str.push(item.StatusName);
  294. }
  295. });
  296. if (str.length == this.listActivityStaus.length || str.length <= 0) {
  297. this.activeStateName = "所有状态";
  298. } else {
  299. this.activeStateName = str.join(",");
  300. }
  301. this.activeState = arr.join(",");
  302. const arrTwo = [];
  303. this.activityTimeList.forEach((key) => {
  304. if (key.IsChoose) {
  305. arrTwo.push(key.Id);
  306. }
  307. });
  308. this.activityTimeStatus = arrTwo.join(",");
  309. const hyArr = [];
  310. const hyStr = [];
  311. this.listChartPermission.forEach((key) => {
  312. if (key.IsChoose) {
  313. hyArr.push(key.ChartPermissionId);
  314. hyStr.push(key.PermissionName);
  315. }
  316. });
  317. if ((hyStr.length == 6 && this.listChartPermission.length == 6) || hyStr.length <= 0) {
  318. this.chartPermissionName = "所有行业";
  319. } else {
  320. this.chartPermissionName = hyStr.join(",");
  321. }
  322. this.chartPermissionIds = hyArr.join(",");
  323. const lxArr = [];
  324. const lxStr = [];
  325. this.listActivityType.forEach((key) => {
  326. if (key.IsChoose) {
  327. lxArr.push(key.ActivityTypeId);
  328. lxStr.push(key.ActivityTypeName);
  329. }
  330. });
  331. if (lxStr.length == this.listActivityType.length || lxStr.length <= 0) {
  332. this.activityTypeName = "所有类型";
  333. } else {
  334. this.activityTypeName = lxStr.join(",");
  335. }
  336. this.activityTypeIds = lxArr.join(",");
  337. this.getList();
  338. },
  339. // 通过分享进来的下拉选择的状态、关联
  340. shareOption() {
  341. const arr = this.activeState.split(",").map((item) => item - 0);
  342. this.listActivityStaus.forEach((item) => {
  343. if (arr.indexOf(item.Id) !== -1) {
  344. item.IsChoose = true;
  345. } else {
  346. item.IsChoose = false;
  347. }
  348. });
  349. const arrTwo = this.activityTimeStatus.split(",").map((item) => item - 0);
  350. this.activityTimeList.forEach((item) => {
  351. if (arrTwo.indexOf(item.Id) !== -1) {
  352. item.IsChoose = true;
  353. } else {
  354. item.IsChoose = false;
  355. }
  356. });
  357. const hyarr = this.chartPermissionIds.split(",").map((item) => item - 0);
  358. this.listChartPermission.forEach((key) => {
  359. if (hyarr.indexOf(key.ChartPermissionId) !== -1) {
  360. key.IsChoose = true;
  361. } else {
  362. key.IsChoose = false;
  363. }
  364. });
  365. const lxarr = this.activityTypeIds.split(",").map((item) => item - 0);
  366. this.listActivityType.forEach((key) => {
  367. if (lxarr.indexOf(key.ActivityTypeId) !== -1) {
  368. key.IsChoose = true;
  369. } else {
  370. key.IsChoose = false;
  371. }
  372. });
  373. this.preserve();
  374. },
  375. //搜索记录进来
  376. searchHandle() {
  377. if (this.searchTxt) {
  378. this.page_no = 1;
  379. //添加搜索记录
  380. if (!this.historySearchList.includes(this.searchTxt)) {
  381. this.historySearchList.unshift(this.searchTxt);
  382. this.$db.set("historySearchListActivity", JSON.stringify(this.historySearchList));
  383. }
  384. this.isShowSearch = true;
  385. if (this.isGain) {
  386. this.empty();
  387. this.getList();
  388. }
  389. this.getUserSearchContent();
  390. } else {
  391. this.$util.toast("请输入关键字");
  392. }
  393. },
  394. // 选择历史搜索
  395. chooseTarget(item) {
  396. this.searchTxt = item;
  397. this.collectList = [];
  398. this.page_no = 1;
  399. this.searchHandle();
  400. },
  401. /* 历史搜索清空 */
  402. clearHistory() {
  403. this.historySearchList = [];
  404. this.$db.del("historySearchListActivity");
  405. },
  406. //获取列表
  407. async getList() {
  408. const res = this.dynamicName
  409. ? await activity.getActivityListNew({
  410. PageSize: this.pageSize,
  411. CurrentIndex: this.page_no,
  412. ActiveState: "2,3", //活动进行状态
  413. Label: this.dynamicName,
  414. })
  415. : await activity.getActivityList({
  416. PageSize: this.pageSize,
  417. CurrentIndex: this.page_no,
  418. ActiveState: this.activeState, //活动进行状态
  419. ActivityTypeIds: this.activityTypeIds, //活动类型id 多个用 , 隔开
  420. ChartPermissionIds: this.chartPermissionIds, //行业id 多个用 , 隔开
  421. KeyWord: this.searchTxt,
  422. WhichDay: this.activityTimeStatus,
  423. });
  424. if (res.Ret !== 200) return;
  425. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  426. this.totalPage = res.Data.Paging.Pages; //总页数
  427. if (this.page_no === 1) {
  428. this.collectList = res.Data.List || [];
  429. this.haveData = this.collectList.length ? true : false;
  430. if (this.refresh) {
  431. uni.stopPullDownRefresh();
  432. this.refresh = false;
  433. }
  434. } else {
  435. this.collectList.push(...res.Data.List);
  436. }
  437. },
  438. //获取活动详情接口
  439. getUserSearchContent(name) {
  440. activity
  441. .getUserSearchContent({
  442. IsShowJurisdiction: this.isId,
  443. })
  444. .then((res) => {
  445. if (this.isGain) {
  446. res.Data.ListActivityStaus.forEach((item) => {
  447. item.IsChoose = true;
  448. });
  449. }
  450. this.isShowJurisdiction = res.Data.IsShowJurisdiction;
  451. this.listActivityStaus = res.Data.ListActivityStaus;
  452. this.listActivityType = res.Data.ListActivityType;
  453. this.listChartPermission = res.Data.ListChartPermission || [];
  454. this.listChartPermissionInit = res.Data.ListChartPermission2;
  455. if (this.isGain) {
  456. // this.preserve()
  457. } else {
  458. this.shareOption();
  459. }
  460. if (name == "traverse") {
  461. const hyArr = [];
  462. this.listChartPermission.forEach((key) => {
  463. if (key.IsChoose) {
  464. hyArr.push(key.ChartPermissionId);
  465. }
  466. });
  467. this.chartPermissionIds = hyArr.join(",");
  468. }
  469. });
  470. },
  471. //恢复下拉选择的初始状态
  472. empty() {
  473. this.listActivityStaus.forEach((item) => (item.IsChoose = true));
  474. this.activeState = "1,2,3";
  475. this.activeStateName = "全部状态";
  476. this.chartPermissionIds = "";
  477. this.activityTimeList.forEach((key) => {
  478. key.IsChoose = false;
  479. });
  480. this.activityTimeStatus = "";
  481. this.listChartPermission.forEach((item) => (item.IsChoose = false));
  482. this.chartPermissionName = "所有行业";
  483. this.listActivityType.forEach((item) => (item.IsChoose = false));
  484. this.activityTypeIds = "";
  485. this.activityTypeName = "所有类型";
  486. },
  487. /* 表单清空 */
  488. clearIpt() {
  489. this.searchTxt = "";
  490. this.collectList = [];
  491. this.haveData = true;
  492. this.isShowSearch = false;
  493. },
  494. //获取是否需要填写区号接口
  495. countryCcode() {
  496. User.countryCcode().then((res) => {
  497. if (res.Ret == 200) {
  498. this.isNeedAddCountryCode = res.Data.IsNeedAddCountryCode;
  499. }
  500. });
  501. },
  502. },
  503. onShow() {
  504. this.countryCcode(); //判断是否加区号
  505. this.$store.dispatch("statistics", { PageType: "ActivitSearch" });
  506. },
  507. //load
  508. onLoad(option) {
  509. if (this.$db.get("historySearchListActivity")) {
  510. let historyList = JSON.parse(this.$db.get("historySearchListActivity"));
  511. this.historySearchList = historyList;
  512. }
  513. if (option.text || option.dycName) {
  514. this.activeState = option.statesId; //活动进行状态
  515. this.activityTypeIds = option.typeIds; //活动类型id 多个用 , 隔开
  516. this.chartPermissionIds = option.chartIds; //行业id 多个用 , 隔开
  517. this.activeStateName = option.stateName;
  518. this.chartPermissionName = option.chartName;
  519. this.activityTypeName = option.typeName;
  520. this.searchTxt = option.text;
  521. this.dynamicName = option.dycName || "";
  522. this.activityTimeStatus = option.timeStatus;
  523. this.isGain = false;
  524. this.isShowSearch = true;
  525. } else {
  526. this.isGain = true;
  527. }
  528. if (option.text) {
  529. this.searchHandle();
  530. } else if (option.dycName) {
  531. this.changeTarget();
  532. }
  533. this.fastSearchKeWord();
  534. },
  535. /* 触底 */
  536. onReachBottom: Throttle(function () {
  537. if (this.status === "nomore") return;
  538. this.status = "loading";
  539. this.page_no++;
  540. this.getList();
  541. }),
  542. /* 用户点击分享 */
  543. onShareAppMessage: function (res) {
  544. return {
  545. title: "活动搜索",
  546. path:
  547. "/activityPages/activitySearch/activitySearch?statesId=" +
  548. this.activeState +
  549. "&typeIds=" +
  550. this.activityTypeIds +
  551. "&chartIds=" +
  552. this.chartPermissionIds +
  553. "&stateName=" +
  554. this.activeStateName +
  555. "&chartName=" +
  556. this.chartPermissionName +
  557. "&typeName=" +
  558. this.activityTypeName +
  559. "&text=" +
  560. this.searchTxt +
  561. "&timeStatus=" +
  562. this.activityTimeStatus +
  563. "&dycName=" +
  564. this.dynamicName,
  565. success: (res) => {},
  566. fail: (err) => {},
  567. };
  568. },
  569. /* 下拉刷新 */
  570. onPullDownRefresh: Throttle(function () {
  571. this.page_no = 1;
  572. this.refresh = true;
  573. if (this.tabsActive == 0) {
  574. this.getList();
  575. } else {
  576. this.getScheduleList();
  577. }
  578. }),
  579. };
  580. </script>
  581. <style scoped lang="scss">
  582. @import "../components/index.scss";
  583. .dynamic-content {
  584. padding: 0 0 0 0 !important;
  585. .target-title {
  586. color: #333333 !important;
  587. font-size: 28rpx !important;
  588. }
  589. }
  590. .dynamic-name {
  591. display: flex;
  592. align-items: center;
  593. padding: 36rpx 10rpx 20rpx !important;
  594. color: #3385ff;
  595. font-size: 28rpx;
  596. text {
  597. max-width: 100%;
  598. padding-right: 40rpx;
  599. overflow: hidden;
  600. text-overflow: ellipsis;
  601. white-space: nowrap;
  602. }
  603. icon {
  604. width: 32rpx;
  605. height: 32rpx;
  606. }
  607. }
  608. .activity-pages {
  609. padding-top: 200rpx;
  610. padding-bottom: 30rpx;
  611. }
  612. .activity-page {
  613. padding-top: 100rpx !important;
  614. }
  615. @import '../components/indexActivity.scss';
  616. </style>