AI营销辅助 普强使用
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.
 
 
 

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