Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

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