選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

learning.vue 11 KiB

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