You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

637 lines
13 KiB

  1. <template>
  2. <view class="main">
  3. <view class="tab-box">
  4. <view class="tab-item-wrap">
  5. <view v-for="(item, index) in tablist" :key="index" :class="activeClass == index ? 'bottom' : ''"
  6. @tap="clocktab(index, item.id)">
  7. {{ item.name }}
  8. <view class="bottomLine" v-if="activeClass == index"></view>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="cented" v-if="activeClass==0">
  13. <view class="ceninfo" v-for="(item,index) in alllist" @click="quclick(item)" :key="index">
  14. <view class="infoview">
  15. <view class="infozuo">
  16. <view class="infozuochiud1">{{item.jbaName}}</view>
  17. <view class="infozuochiud2">置业顾问</view>
  18. </view>
  19. <view class="infoyou">
  20. <view class="infoyouchiud2">去学习</view>
  21. </view>
  22. </view>
  23. <view class="footerinfo">
  24. <view class="footerinfozuo">{{item.assignedTime}}</view>
  25. <view class="footerinfoyou"></view>
  26. </view>
  27. <view class="footicon">
  28. <view class="icon">
  29. <image class="Piabodata-img1" src="../../static/images/studyhot.png" mode=""></image>
  30. <!-- 浏览量 -->
  31. {{item.pageviews}}
  32. </view>
  33. <view class="icon">
  34. <image class="Piabodata-img1" src="../../static/images/viewstudy.png" mode=""></image>
  35. <!-- 热度 -->
  36. {{item.heat}}
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="biaoqianview" v-if="activeClass==1">
  42. <view class="boxintention">
  43. <view class="title">分点标签列表</view>
  44. <view class="boxcenten" v-for="(item,index) in equinoctial" :key="index" @click="routerclick(item)">
  45. <view class="boxcenteninfotext">{{item.name}}</view>
  46. <view class="boxcenteninfoimg">
  47. <u-icon size="20px" name="arrow-right"></u-icon>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 底部导航栏 -->
  53. <u-tabbar :mid-button="true" activeColor="#1296db" inactiveColor="#999999" v-model="current" :list="tabbarList"></u-tabbar>
  54. </view>
  55. </template>
  56. <script>
  57. var config = require("../../config");
  58. var util = require("@/utils/util.js");
  59. import tabbarList from '@/utils/tabbar.js'
  60. export default {
  61. data() {
  62. return {
  63. // tabbar配置项
  64. current: 3,
  65. tabbarList: tabbarList,
  66. //--- end --- tabbar配置项
  67. tablist: [{
  68. name: "全文"
  69. },
  70. {
  71. name: "分点"
  72. }
  73. ],
  74. activeClass: 0,
  75. equinoctial: [],
  76. alllist: [],
  77. buildingID: ''
  78. };
  79. },
  80. onShow() {
  81. var i = uni.getStorageSync('fendianindex')
  82. this.buildingID = uni.getStorageSync('buildingID').id;
  83. this.clocktab(i)
  84. },
  85. methods: {
  86. //全部学习跳转
  87. quclick(item) {
  88. uni.showLoading({
  89. title: '加载中',
  90. mask: true
  91. });
  92. const parames = {
  93. pageNum: 1,
  94. pageSize: 100,
  95. query: {
  96. customerId: item.carId,
  97. }
  98. }
  99. var cet = {
  100. bg: 0,
  101. customerId: item.id,
  102. id: ''
  103. }
  104. this.$u.post("/corpus/findByPage", parames).then(res => {
  105. setTimeout(function() {
  106. uni.hideLoading();
  107. }, 2000);
  108. var newobj = res[0];
  109. if (res[0].merge == 0) {
  110. uni.navigateTo({
  111. url: `/pages/learning/Thefulltext/index2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(cet)}&stateisshow=${"2"}`
  112. })
  113. } else {
  114. uni.navigateTo({
  115. url: `/pages/learning/Thefulltext/index?customerId=${newobj.customerId}`
  116. })
  117. }
  118. })
  119. },
  120. //分点学习跳转
  121. routerclick(item) {
  122. uni.navigateTo({
  123. url: "/pages/learning/Equinoctiallearning?id=" + item.marketingId + "&biaoqian=" + item.name
  124. })
  125. },
  126. // tab切换
  127. clocktab(index) {
  128. this.activeClass = index;
  129. if (this.activeClass == 0) {
  130. uni.setStorageSync("fendianindex", 0); //写入缓存
  131. this.ceninit()
  132. } else {
  133. uni.setStorageSync("fendianindex", 1); //写入缓存
  134. this.infoinit()
  135. }
  136. },
  137. ceninit() {
  138. let infoobj = {
  139. "pageNum": 1,
  140. "pageSize": 100,
  141. "query": {
  142. "status": 0,
  143. 'itemId': this.buildingID,
  144. }
  145. }
  146. uni.request({
  147. url: config.service.findAllZATD,
  148. method: "POST",
  149. header: {
  150. 'content-type': 'application/json',
  151. 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
  152. },
  153. data: infoobj,
  154. success: (data) => {
  155. if (data.data.code == 10000) {
  156. this.alllist = data.data.data.results
  157. } else {
  158. uni.showToast({
  159. title: data.data.message,
  160. duration: 2000
  161. });
  162. }
  163. }
  164. })
  165. },
  166. infoinit() {
  167. let obj = {
  168. itemId: this.buildingID
  169. }
  170. uni.request({
  171. url: config.service.findSelectedLabel,
  172. method: "POST",
  173. data: obj,
  174. header: {
  175. 'content-type': 'application/json',
  176. 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
  177. },
  178. success: (data) => {
  179. if (data.data.code == 10000) {
  180. this.equinoctial = data.data.data
  181. } else {
  182. uni.showToast({
  183. title: data.data.message,
  184. duration: 2000
  185. });
  186. }
  187. }
  188. })
  189. }
  190. },
  191. }
  192. </script>
  193. <style lang="scss" scoped>
  194. .main {
  195. background: #F1F1F1;
  196. ;
  197. min-height: 100vh;
  198. }
  199. .tab-box {
  200. height: auto;
  201. overflow: auto;
  202. width: 100%;
  203. .tab-item-wrap {
  204. height: 100rpx;
  205. width: 80%;
  206. margin: 0 auto;
  207. line-height: 100rpx;
  208. display: flex;
  209. justify-content: space-around;
  210. font-size: 36rpx;
  211. color: #959dad;
  212. }
  213. }
  214. .bottom {
  215. color: #008EF2;
  216. position: relative;
  217. }
  218. .bottomLine {
  219. position: absolute;
  220. width: 96rpx;
  221. height: 6rpx;
  222. top: 80rpx;
  223. background-color: #298dff;
  224. border-radius: 8rpx 8rpx 0rpx 0rpx;
  225. left: -13rpx;
  226. }
  227. .cented {
  228. width: 100%;
  229. padding-top: 14rpx;
  230. .ceninfo {
  231. width: 690rpx;
  232. // height: 160rpx;
  233. background: #FFFFFF;
  234. border-radius: 8rpx;
  235. margin: 0 auto;
  236. margin-top: 20rpx;
  237. padding-top: 23rpx;
  238. position: relative;
  239. .infoview {
  240. width: 100%;
  241. height: 64rpx;
  242. display: flex;
  243. .infozuo {
  244. width: 454rpx;
  245. height: 100%;
  246. display: flex;
  247. align-items: center;
  248. .infozuochiud1 {
  249. font-size: 36rpx;
  250. font-weight: 600;
  251. color: #0C0C0C;
  252. text-indent: 28rpx;
  253. }
  254. .infozuochiud2 {
  255. width: 113rpx;
  256. height: 42rpx;
  257. border-radius: 5rpx;
  258. margin-left: 19rpx;
  259. border: 1px solid #008EF2;
  260. font-size: 24rpx;
  261. font-weight: 400;
  262. color: #008EF2;
  263. line-height: 42rpx;
  264. text-align: center;
  265. }
  266. }
  267. .infoyou {
  268. width: 236rpx;
  269. height: 100%;
  270. display: flex;
  271. align-items: center;
  272. .infoyouchiud1 {
  273. display: block;
  274. width: 64rpx;
  275. height: 64rpx;
  276. border-radius: 50%;
  277. }
  278. .infoyouchiud2 {
  279. width: 133rpx;
  280. height: 56rpx;
  281. background: #008EF2;
  282. border-radius: 8rpx;
  283. text-align: center;
  284. color: #FFFFFF;
  285. font-size: 30rpx;
  286. line-height: 56rpx;
  287. margin-left: 80rpx;
  288. }
  289. }
  290. }
  291. .footerinfo {
  292. width: 100%;
  293. height: 42rpx;
  294. display: flex;
  295. margin-top: 14rpx;
  296. .footerinfozuo {
  297. width: 454rpx;
  298. font-size: 30rpx;
  299. color: #0C0C0C;
  300. line-height: 42rpx;
  301. margin-left: 26rpx;
  302. }
  303. .footerinfoyou {
  304. width: 236rpx;
  305. font-size: 24rpx;
  306. color: #999999;
  307. line-height: 42rpx;
  308. text-indent: 42rpx;
  309. }
  310. }
  311. .dingwei {
  312. width: 100%;
  313. height: 60rpx;
  314. border: 1px solid red;
  315. position: absolute;
  316. top: 160rpx;
  317. left: 0rpx;
  318. }
  319. }
  320. }
  321. .biaoqianview {
  322. width: 100%;
  323. .boxintention {
  324. width: 690rpx;
  325. margin: 0 auto;
  326. .title {
  327. font-size: 36upx;
  328. color: #333333;
  329. position: relative;
  330. display: flex;
  331. align-items: center;
  332. padding-left: 19upx;
  333. &:before {
  334. content: '';
  335. position: absolute;
  336. left: 0;
  337. height: 30upx;
  338. width: 9upx;
  339. background: #008ef2;
  340. border-radius: 5rpx;
  341. }
  342. }
  343. .boxcenten {
  344. width: 100%;
  345. height: 100rpx;
  346. background: #FFFFFF;
  347. border-radius: 8rpx;
  348. margin-top: 22rpx;
  349. display: flex;
  350. .boxcenteninfotext {
  351. width: 90%;
  352. height: 100%;
  353. text-indent: 20rpx;
  354. line-height: 100rpx;
  355. font-size: 30rpx;
  356. color: #0C0C0C;
  357. }
  358. .boxcenteninfoimg {
  359. width: 10%;
  360. height: 100%;
  361. line-height: 100rpx;
  362. }
  363. }
  364. }
  365. }
  366. .footicon {
  367. display: flex;
  368. align-items: center;
  369. margin-top: 30rpx;
  370. padding: 20rpx;
  371. flex-direction: row-reverse;
  372. .icon {
  373. margin-left: 20rpx;
  374. }
  375. image {
  376. width: 36rpx;
  377. height: 36rpx;
  378. margin-right: 20rpx;
  379. vertical-align: -7rpx;
  380. }
  381. }
  382. </style>
  383. <!-- <template>
  384. <view class="cented-box">
  385. <view class="search-box">
  386. <view class="search">
  387. <view class="search-img">
  388. <image class="search-img1" src="../../static/images/search.png" mode=""></image>
  389. </view>
  390. <view class="search-text">输入话术关键字</view>
  391. </view>
  392. </view>
  393. <view class="caseid-box">
  394. <view class="caseid">
  395. <image class="caseid-img1" src="../../static/images/good.png" mode=""></image>
  396. <view class="caseid-text">优秀案例</view>
  397. </view>
  398. <view class="caseid">
  399. <image class="caseid-img1" src="../../static/images/problem.png" mode=""></image>
  400. <view class="caseid-text">问题库</view>
  401. </view>
  402. <view class="caseid">
  403. <image class="caseid-img1" src="../../static/images/reverse.png" mode=""></image>
  404. <view class="caseid-text">反面案例</view>
  405. </view>
  406. </view>
  407. <view class="Pinspeak">销讲话术</view>
  408. <view class="chented">
  409. <view class="title">
  410. <view class="title1"></view>
  411. <view class="titletext">逼单话术</view>
  412. <view class="titleimg">
  413. <image class="titleimg1" src="../../static/images/arrow.png" mode=""></image>
  414. </view>
  415. </view>
  416. </view>
  417. <view class="chented">
  418. <view class="title" style="border: none;">
  419. <view class="title1"></view>
  420. <view class="titletext">品牌介绍</view>
  421. </view>
  422. <view class="chented-for">
  423. <view class="chented-che">2021销售额</view>
  424. <view class="chented-che">2021销售额</view>
  425. <view class="chented-che">2021销售额</view>
  426. <view class="chented-che">2021销售额</view>
  427. </view>
  428. </view>
  429. <view class="chented">
  430. <view class="title" style="border: none;">
  431. <view class="title1"></view>
  432. <view class="titletext">品牌介绍</view>
  433. </view>
  434. <view class="chented-for">
  435. <view class="chented-che">2021销售额</view>
  436. <view class="chented-che">2021销售额</view>
  437. <view class="chented-che">2021销售额</view>
  438. <view class="chented-che">2021销售额</view>
  439. </view>
  440. </view>
  441. </view>
  442. </template>
  443. <script>
  444. export default {
  445. data() {
  446. return {};
  447. },
  448. components: {},
  449. onLoad() {},
  450. onShow() {},
  451. methods: {
  452. },
  453. };
  454. </script>
  455. <style lang="scss" scoped>
  456. .cented-box{
  457. background: #F8F8F8;
  458. width: 100%;
  459. height: 100%;
  460. }
  461. .search-box{
  462. width: 100%;
  463. height: 102rpx;
  464. background: #FFFFFF;
  465. display: flex;
  466. align-items: center;
  467. justify-content: center;
  468. .search{
  469. width: 690rpx;
  470. height: 70rpx;
  471. display: flex;
  472. align-items: center;
  473. background: #F8F8F8;
  474. border-radius: 33rpx;
  475. .search-img{
  476. width: 26rpx;
  477. height: 30rpx;
  478. margin-left: 20rpx;
  479. .search-img1{
  480. width: 100%;
  481. height: 100%;
  482. margin-top: 2rpx;
  483. }
  484. }
  485. .search-text{
  486. font-size: 28rpx;
  487. font-weight: 400;
  488. color: #999999;
  489. margin-left:10rpx;
  490. }
  491. }
  492. }
  493. .caseid-box{
  494. width: 100%;
  495. height: 204rpx;
  496. margin-top: 10rpx;
  497. background: #FFFFFF;
  498. display: flex;
  499. .caseid{
  500. flex: 1;
  501. height: 100%;
  502. text-align: center;
  503. margin-top: 13rpx;
  504. .caseid-img1{
  505. width: 134rpx;
  506. height: 134rpx;
  507. }
  508. .caseid-text{
  509. width: 100%;
  510. text-align: center;
  511. font-size: 24rpx;
  512. font-weight: 400;
  513. color: #333333;
  514. }
  515. }
  516. }
  517. .Pinspeak{
  518. width: 100%;
  519. height: 92rpx;
  520. border-bottom: 1rpx solid #E0E0E0;
  521. font-size: 32rpx;
  522. font-weight: 600;
  523. color: #333333;
  524. text-indent: 30rpx;
  525. line-height: 92rpx;
  526. background: #FFFFFF;
  527. margin-top: 20rpx;
  528. }
  529. .chented{
  530. width: 100%;
  531. padding-left: 30rpx;
  532. padding-right: 30rpx;
  533. background-color: #FFFFFF;
  534. .title{
  535. width: 100%;
  536. height: 90rpx;
  537. border-bottom: 1rpx solid #E0E0E0;
  538. display: flex;
  539. align-items: center;
  540. .title1{
  541. width: 6rpx;
  542. height: 30rpx;
  543. background: #2671E2;
  544. }
  545. .titletext{
  546. width: 90%;
  547. height: 30rpx;
  548. font-size: 30rpx;
  549. font-weight: 600;
  550. color: #333333;
  551. line-height: 30rpx;
  552. text-indent: 10rpx;
  553. }
  554. .titleimg{
  555. width: 8%;
  556. text-align: right;
  557. .titleimg1{
  558. width: 14rpx;
  559. height: 30rpx;
  560. }
  561. }
  562. }
  563. .chented-for{
  564. width: 100%;
  565. display: flex;
  566. flex-wrap: wrap;
  567. margin-top: -20rpx;
  568. border-bottom: 1rpx solid #E0E0E0;
  569. padding-bottom: 30rpx;
  570. .chented-che{
  571. width: 210rpx;
  572. height: 60rpx;
  573. background: #FFFFFF;
  574. border-radius: 4rpx;
  575. border: 1px solid #C9C9C9;
  576. text-align: center;
  577. line-height: 60rpx;
  578. font-size: 30rpx;
  579. font-weight: 400;
  580. color: #333333;
  581. margin-right: 20rpx;
  582. margin-top: 20rpx;
  583. }
  584. }
  585. }
  586. </style>
  587. -->