index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. <template>
  2. <view >
  3. <u-navbar :is-back="false" title="选课中心" :border-bottom="false" title-color="#333333" back-icon-color="#ffffff">
  4. <view class="slot-wrap">
  5. <image src="/static/logo2.png" style="width: 178rpx;height: 31rpx;margin-left: 30rpx;"></image>
  6. </view>
  7. </u-navbar>
  8. <view v-show="!show">
  9. <view style="position: fixed;width: 100%;z-index: 999;">
  10. <view class="bg_color"></view>
  11. <view class="check_ck">
  12. <view class="checked">
  13. <!-- {{selObj.pName}}-{{selObj.bName}} -->
  14. <view class="check_title">{{selObj.eName}}:{{ selObj.aliasName }}</view>
  15. <view class="again_ck" @click="openLeft()">
  16. <view style="color: #007AFF;font-size: 32rpx;">重新选择</view>
  17. <u-icon name="list" color="#007AFF" size="40"></u-icon>
  18. </view>
  19. </view>
  20. <view style="display: flex;align-items:center;">
  21. <view style="margin: 0 auto;">
  22. <u-tabs :list="courseLists" height='97' :current="current" @change="change" :scrollable="false"></u-tabs>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- <u-line color="#D6D6DB" /> -->
  27. <view class="menuSel" v-show="current==0">
  28. <scroll-view class="r_sliper" scroll-x="true" >
  29. <view v-for="(item,index) in sList" :key="index" style="margin-right: 20rpx;display:inline-block">
  30. <view :class="paramList[0].subjectId==item.id?'r_t1':'r_t2'" @click="cMenu(item.id)">
  31. {{item.subjectName}}
  32. </view>
  33. </view>
  34. </scroll-view>
  35. </view>
  36. <view class="menuSel" v-show="current==1">
  37. <scroll-view class="r_sliper" scroll-x="true" >
  38. <view v-for="(item,index) in sList" :key="index" style="margin-right: 20rpx;display:inline-block">
  39. <view :class="paramList[1].subjectId==item.id?'r_t1':'r_t2'" @click="cMenu1(item.id)">
  40. {{item.subjectName}}
  41. </view>
  42. </view>
  43. </scroll-view>
  44. </view>
  45. <view class="menuSel" v-show="current==2">
  46. <scroll-view class="r_sliper" scroll-x="true" >
  47. <view v-for="(item,index) in sList" :key="index" style="margin-right: 20rpx;display:inline-block">
  48. <view :class="paramList[2].subjectId==item.id?'r_t1':'r_t2'" @click="cMenu2(item.id)">
  49. {{item.subjectName}}
  50. </view>
  51. </view>
  52. </scroll-view>
  53. </view>
  54. </view>
  55. <view v-show="current==0" class="contents">
  56. <view class="listBox">
  57. <navigator hover-class="none" :url="'/pages3/course/detail?id='+item.goodsId" v-for="(item,index) in list1" :key="index" >
  58. <view class="itemBox">
  59. <image :src="$method.splitImgHost(item.coverUrl, true)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
  60. <view style="display: flex;margin-top: 13rpx;align-items: center;">
  61. <view class="yearTag" v-if="item.year">{{item.year}}</view>
  62. <view class="titleTag">{{item.goodsName}}</view>
  63. </view>
  64. <view style="display: flex;justify-content: space-between;margin-top: 15rpx;">
  65. <view class="noteTag"><image src="/static/icon/wk_icon1.png" class="wk_icon"></image>
  66. 共 <text class="blackFont">{{item.courseNum}}</text>
  67. <text class="margin30">课程</text>
  68. <text class="blackFont">{{item.classHours || '-'}}</text> 学时</view>
  69. <view>
  70. <text v-if="item.standPrice" class="priceTag">¥ {{item.standPrice.toFixed(2)}}</text>
  71. <text v-else class="priceTag free">免费</text>
  72. <text v-if="item.linePrice" class="sale">¥ </text>
  73. <text v-if="item.linePrice" class="price_line"> {{ item.linePrice }}</text>
  74. </view>
  75. </view>
  76. </view>
  77. </navigator>
  78. <view class="emptyTip" v-if="list1.length==0">暂未上架相关网课~</view>
  79. </view>
  80. </view>
  81. <view v-show="current==1" class="contents">
  82. <view class="listBox">
  83. <navigator hover-class="none" :url="'/pages2/bank/detail?id='+item.goodsId" v-for="(item,index) in list2" :key="index" >
  84. <view class="itemBox">
  85. <image :src="$method.splitImgHost(item.coverUrl, true)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
  86. <view style="display: flex;margin-top: 13rpx;align-items: center;">
  87. <view class="yearTag" v-if="item.year">{{item.year}}</view>
  88. <view class="titleTag" style="display: flex;justify-content: space-between;flex:1;">
  89. <view style="flex:1;">{{item.goodsName}}</view>
  90. <view>
  91. <text v-if="item.standPrice" class="priceTag">¥ {{item.standPrice.toFixed(2)}}</text>
  92. <text v-else class="priceTag free">免费</text>
  93. <text v-if="item.linePrice" class="sale">¥ </text>
  94. <text v-if="item.linePrice" class="price_line"> {{ item.linePrice }}</text>
  95. </view>
  96. </view>
  97. </view>
  98. <view style="display: flex;justify-content: space-between;margin-top: 15rpx;" v-if="false">
  99. <view class="noteTag"><image src="/static/icon/wk_icon1.png" class="wk_icon"></image>
  100. 共 <text class="blackFont">6</text>
  101. <view class="margin30">张卷</view>
  102. <text class="blackFont">120</text>道题
  103. </view>
  104. <view>
  105. <text v-if="item.standPrice" class="priceTag">¥ {{item.standPrice.toFixed(2)}}</text>
  106. <text v-else class="priceTag free">免费</text>
  107. <!-- <text class="priceTag">¥ {{item.standPrice.toFixed(2)}}</text> -->
  108. <text v-if="item.linePrice" class="sale">¥ </text>
  109. <text v-if="item.linePrice" class="price_line"> {{ item.linePrice }}</text>
  110. </view>
  111. </view>
  112. </view>
  113. </navigator>
  114. <view class="emptyTip" v-if="list2.length==0">暂未上架相关题库~</view>
  115. </view>
  116. </view>
  117. <view v-show="current==2" class="contents">
  118. <view class="listBox">
  119. <navigator hover-class="none" :url="'/pages5/liveDetail/index?id='+item.goodsId" v-for="(item,index) in list3" :key="index" >
  120. <view class="itemBox">
  121. <image :src="$method.splitImgHost(item.coverUrl, true)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
  122. <view style="display: flex;margin-top: 13rpx;align-items: center;">
  123. <view class="yearTag" v-if="item.year">{{item.year}}</view>
  124. <view class="titleTag" style="display: flex;justify-content: space-between;flex:1;">
  125. <view style="flex:1;">{{item.goodsName}}</view>
  126. <view>
  127. <text v-if="item.standPrice" class="priceTag">¥ {{item.standPrice.toFixed(2)}}</text>
  128. <text v-else class="priceTag free">免费</text>
  129. <text v-if="item.linePrice" class="sale">¥ </text>
  130. <text v-if="item.linePrice" class="price_line"> {{ item.linePrice }}</text>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- <view style="display: flex;justify-content: space-between;margin-top: 15rpx;" v-if="false">
  135. <view class="noteTag">
  136. <image src="/static/icon/wk_icon1.png" class="wk_icon"></image>
  137. <view>
  138. <text v-if="item.standPrice" class="priceTag">¥ {{item.standPrice.toFixed(2)}}</text>
  139. <text v-else class="priceTag free">免费</text>
  140. <view class="priceTag">¥ {{item.standPrice.toFixed(2)}}</view>
  141. <text class="sale"> ¥ </text>
  142. <text class="price_line"> {{ item.linePrice }}</text>
  143. </view>
  144. </view>
  145. </view> -->
  146. </view>
  147. </navigator>
  148. <view class="emptyTip" v-if="list3.length==0">暂未上架相关直播~</view>
  149. </view>
  150. </view>
  151. </view>
  152. <view v-show="show" class="popuBox">
  153. <view class="flex-d" >
  154. <view class="contentZ">
  155. <view class="lzs" >
  156. <view class="tylsz" v-for="(item, index) in eList" :key="index" @click="item.id === 0 ? activeAll(1) : active1(item)" :class="item.id === selObj.eId ? 'activeStys':''">{{ item.educationName }}</view>
  157. </view>
  158. <view class="rzs" >
  159. <!-- {{ item.projectName }}-{{ item.businessName }} -->
  160. <view class="tylszB" v-for="(item, index) in bList" :key="index" @click="item.id === 0 ? activeAll(2) : active2(item)"
  161. :class="item.id === selObj.bId ? 'activeStys2':''">{{ item.aliasName }}</view>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. <!-- <tab-bar v-model="current" :list="tabbarlist" :mid-button="true" :mid-button-size="50" class="tab_items"></tab-bar> -->
  167. </view>
  168. </template>
  169. <script>
  170. // import TabBar from '@/components/u-tabbar/u-tabbar.vue';
  171. import { mapGetters } from 'vuex';
  172. export default {
  173. components: {
  174. // TabBar
  175. },
  176. data() {
  177. return {
  178. show:false,
  179. courseLists:[
  180. {
  181. name: '网课'
  182. },
  183. {
  184. name: '题库通'
  185. },
  186. {
  187. name: '直播课'
  188. }
  189. ],
  190. // array:['全部','建设工程施工管理','机电全科','机电工程管理与实','机电全科','全科'],
  191. current:0,
  192. menuIndex:0,
  193. menuIndex1:0,
  194. paramList: [
  195. {
  196. pageNum: 1,
  197. pageSize: 10,
  198. total: 0,
  199. showStatus: 0,
  200. goodsType:1,
  201. subjectId:0
  202. },
  203. {
  204. pageNum: 1,
  205. pageSize: 10,
  206. total: 0,
  207. showStatus: 0,
  208. goodsType:2,
  209. subjectId:0
  210. },
  211. {
  212. pageNum: 1,
  213. pageSize: 10,
  214. total: 0,
  215. showStatus: 0,
  216. goodsType:6,
  217. subjectId:0
  218. }
  219. ],
  220. list1: [],
  221. list2: [],
  222. list3:[],
  223. eList:[],
  224. bList:[],
  225. sList:[],
  226. selObj:{
  227. eName:'',
  228. pName:'',
  229. bName:'',
  230. eId:0,
  231. bId:0,
  232. pId:0,
  233. },
  234. current: 1,
  235. tabbarlist: this.$store.state.tabLists
  236. };
  237. },
  238. onPullDownRefresh(){
  239. this.initList();
  240. setTimeout(function(){
  241. uni.stopPullDownRefresh()
  242. },500)
  243. },
  244. onLoad(option) {
  245. let eduStr = uni.getStorageSync('eduObj')
  246. if(eduStr){
  247. this.selObj = JSON.parse(eduStr)
  248. this.subjectList({businessId:this.selObj.bId,projectId:this.selObj.pId,educationId:this.selObj.eId})
  249. this.mergeBusiness()
  250. }else{
  251. this.show = true
  252. }
  253. this.initList();
  254. },
  255. methods: {
  256. mergeBusiness(){
  257. this.paramList[0].educationTypeId = this.selObj.eId
  258. this.paramList[0].businessId = this.selObj.bId
  259. this.paramList[0].subjectId = 0
  260. this.paramList[1].educationTypeId = this.selObj.eId
  261. this.paramList[1].businessId = this.selObj.bId
  262. this.paramList[1].subjectId = 0
  263. this.paramList[2].educationTypeId = this.selObj.eId
  264. this.paramList[2].businessId = this.selObj.bId
  265. this.paramList[2].subjectId = 0
  266. },
  267. subjectList(data) {
  268. var self = this;
  269. // /app/common/course/subject/list
  270. this.$api.subjectList(data).then(res => {
  271. if(res.data.code==200){
  272. self.sList = res.data.rows
  273. let allItem = {id:0,subjectName:'全部'}
  274. self.sList.unshift(allItem)
  275. }
  276. });
  277. },
  278. active2(item){
  279. // console.log('item', item)
  280. // if (item.topicId) {
  281. // item.topicId
  282. uni.navigateTo({
  283. url: '/pages4/courseTopic/goodsTopic?topicId=' + 1
  284. })
  285. return
  286. // }
  287. this.selObj.bId = item.id
  288. this.show = false
  289. this.selObj.pId = item.projectId
  290. this.selObj.bName = item.businessName
  291. this.selObj.pName = item.projectName
  292. this.selObj.aliasName = item.aliasName
  293. uni.setStorageSync('eduObj', JSON.stringify(this.selObj));
  294. this.subjectList({businessId:item.id,projectId:item.projectId,educationId:this.selObj.eId})
  295. this.mergeBusiness()
  296. //初始化
  297. this.initList();
  298. },
  299. businessList(data) {
  300. var self = this;
  301. // /app/common/course/business/list
  302. this.$api.businessList(data).then(res => {
  303. if(res.data.code==200){
  304. self.bList = res.data.rows
  305. }
  306. });
  307. },
  308. active1(item){
  309. this.selObj.eId = item.id
  310. this.selObj.eName = item.educationName
  311. this.businessList({educationId:item.id})
  312. },
  313. educationList() {
  314. var self = this;
  315. // /app/common/course/educationType/list
  316. this.$api.educationTypeList().then(res => {
  317. if(res.data.code==200){
  318. self.eList = res.data.rows
  319. if(self.selObj.eId){
  320. self.businessList({educationId:self.selObj.eId})
  321. } else {
  322. this.active1(self.eList[0])
  323. }
  324. }
  325. });
  326. },
  327. openLeft(){
  328. this.show = true
  329. },
  330. initList() {
  331. this.paramList[0].pageNum = 1
  332. this.paramList[1].pageNum = 1
  333. this.list1 = []
  334. this.list2 = []
  335. this.list3 = [];
  336. this.courseList();
  337. this.bankList();
  338. this.liveList()
  339. this.educationList()
  340. },
  341. cMenu(index){
  342. this.paramList[0].pageNum = 1
  343. this.paramList[0].subjectId= index;
  344. this.list1 = []
  345. // this.menuIndex
  346. this.courseList();
  347. },
  348. cMenu1(index){
  349. this.paramList[1].pageNum = 1
  350. this.paramList[1].subjectId= index;
  351. this.list2 = []
  352. // this.menuIndex1 = index;
  353. this.bankList();
  354. },
  355. cMenu2(index){
  356. this.paramList[2].pageNum = 1
  357. this.paramList[2].subjectId= index;
  358. this.list3 = []
  359. // this.menuIndex1 = index;
  360. this.liveList();
  361. },
  362. change(index){
  363. this.current = index;
  364. },
  365. //课程
  366. courseList() {
  367. var self = this;
  368. var param = this.paramList[0];
  369. this.$api.goodsList(param).then(res => {
  370. self.paramList[0].total = res.data.total;
  371. self.list1.push.apply(self.list1, res.data.rows);
  372. if (self.list1.length === res.data.total) {
  373. self.paramList[0].showStatus = true;
  374. }
  375. });
  376. },
  377. //题库
  378. bankList() {
  379. var self = this;
  380. var param = this.paramList[1];
  381. this.$api.goodsList(param).then(res => {
  382. self.paramList[1].total = res.data.total;
  383. self.list2.push.apply(self.list2, res.data.rows);
  384. if (self.list2.length === res.data.total) {
  385. self.paramList[1].showStatus = true;
  386. }
  387. });
  388. },
  389. //直播
  390. liveList() {
  391. var self = this;
  392. var param = this.paramList[2];
  393. this.$api.goodsList(param).then(res => {
  394. self.paramList[2].total = res.data.total;
  395. self.list3.push.apply(self.list3, res.data.rows);
  396. if (self.list3.length === res.data.total) {
  397. self.paramList[2].showStatus = true;
  398. }
  399. });
  400. },
  401. },
  402. onReachBottom() {
  403. if (this.current == 0) {
  404. if (this.list1.length < this.paramList[0].total) {
  405. this.paramList[0].pageNum++;
  406. this.courseList();
  407. }
  408. }
  409. if (this.current == 1) {
  410. if (this.list2.length < this.paramList[1].total) {
  411. this.paramList[1].pageNum++;
  412. this.bankList();
  413. }
  414. }
  415. },
  416. computed: { ...mapGetters(['userInfo']) }
  417. };
  418. </script>
  419. <style >
  420. ::-webkit-scrollbar {
  421. width: 0;
  422. height: 0;
  423. color: transparent;
  424. }
  425. page {
  426. background-color: #eaeef1;
  427. }
  428. </style>
  429. <style scoped lang="scss">
  430. .bg_color {
  431. width: 100%;
  432. height: 16rpx;
  433. background-color: #EAEEF1;
  434. }
  435. .check_ck {
  436. height: 211rpx;
  437. background: #FFFFFF;
  438. box-shadow: 0rpx 5rpx 5rpx 1rpx rgba(1,99,235,0.0500);
  439. border-radius: 24rpx 24rpx 0rpx 0rpx;
  440. padding: 0 38rpx;
  441. .again_ck {
  442. width: 25%;
  443. display: flex;
  444. align-items: center;
  445. justify-content: space-between;
  446. }
  447. }
  448. .checked {
  449. display: flex;
  450. justify-content: space-between;
  451. height: 108rpx;
  452. line-height: 108rpx;
  453. border-bottom: 1rpx solid #EEEEEE;
  454. font-size: 28rpx;
  455. .check_title {
  456. font-size: 32rpx;
  457. font-weight: 500;
  458. color: #333;
  459. white-space: nowrap;
  460. width: 75%;
  461. overflow-x: hidden;
  462. }
  463. }
  464. .contents {
  465. position: relative;
  466. left: 0;
  467. top: 320rpx;
  468. }
  469. .emptyTip{
  470. color: #999999;
  471. font-size: 32rpx;
  472. text-align: center;
  473. margin-top: 20%;
  474. }
  475. .popuBox{
  476. top: 92px;
  477. width: 100%;
  478. bottom:0;
  479. position:absolute;
  480. overflow-y:scroll;
  481. overflow-x:hidden;
  482. background-color: #FFFFFF;
  483. }
  484. .activeStys2{
  485. background: #007AFF !important;
  486. color: #FFFFFF;
  487. }
  488. .tylszB{
  489. text-align: center;
  490. padding:20rpx 10rpx;
  491. background: #FFFFFF;
  492. border: 2rpx solid #EEEEEE;
  493. border-radius: 16rpx;
  494. margin-top: 15rpx;
  495. font-size: 30rpx;
  496. overflow: hidden;
  497. white-space: nowrap;
  498. text-overflow: ellipsis;
  499. }
  500. .activeStys{
  501. background: linear-gradient(90deg, rgba(1,94,234,0.2),rgba(255,255,255,.6));
  502. border-radius: 16rpx;
  503. font-weight: bold;
  504. color: #007AFF!important;
  505. }
  506. .tylsz{
  507. color: #666;
  508. font-size: 30rpx;
  509. padding:20rpx 10rpx;
  510. margin-top: 15rpx;
  511. white-space: nowrap;
  512. }
  513. .popup_t1 {
  514. padding-left: 35rpx;
  515. border-bottom: 1rpx solid #eee;
  516. height: 57rpx;
  517. margin-top: 86rpx;
  518. font-weight: bold;
  519. color: #007AFF;
  520. font-size: 27rpx;
  521. }
  522. .flex-d {
  523. height:100%;
  524. background-color: #FFFFFF;
  525. padding: 0 5%;
  526. font-size: 30rpx;
  527. }
  528. .contentZ {
  529. display: flex;
  530. height: 100%;
  531. padding: 10rpx;
  532. .lzs {
  533. width:200rpx;
  534. height: 100%;
  535. overflow-y: scroll;
  536. }
  537. .rzs {
  538. margin-left:40rpx;
  539. flex:1;
  540. height: 100%;
  541. overflow-y: scroll;
  542. }
  543. }
  544. .contentZ::-webkit-scrollbar {
  545. display: none;
  546. }
  547. .fots {
  548. height: 100rpx;
  549. display: flex;
  550. align-items: center;
  551. justify-content: space-around;
  552. border-top: 1rpx solid #eee;
  553. }
  554. .leftBtns {
  555. font-size: 30rpx;
  556. color: #007AFF;
  557. font-weight: 500;
  558. }
  559. .right_Btns {
  560. font-size: 30rpx;
  561. color: #fff;
  562. background-color: #007AFF;
  563. border-radius: 24rpx;
  564. height: 60rpx;
  565. line-height: 60rpx;
  566. text-align: center;
  567. padding: 0rpx 23rpx;
  568. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  569. }
  570. .blackFont{
  571. color: #333333;
  572. margin: 0 10rpx;
  573. }
  574. .margin30 {
  575. margin:0 20rpx 0 0;
  576. }
  577. .wk_icon{
  578. width: 24rpx;
  579. height: 24rpx;
  580. margin-right: 12rpx;
  581. }
  582. .noteTag{
  583. font-size: 24rpx;
  584. font-family: PingFang SC;
  585. font-weight: 500;
  586. color: #999999;
  587. align-items: center;
  588. }
  589. .priceTag{
  590. font-size: 32rpx;
  591. font-family: PingFang SC;
  592. font-weight: bold;
  593. color: #FC3F3F;
  594. }
  595. .sale {
  596. color: #999999;
  597. font-size: 28rpx;
  598. margin-left: 8rpx;
  599. }
  600. .price_line {
  601. color: #999999;
  602. font-size: 28rpx;
  603. text-decoration:line-through;
  604. font-weight: 400;
  605. }
  606. .titleTag{
  607. font-size: 32rpx;
  608. font-weight: bold;
  609. color: #333333;
  610. margin-left: 8rpx;
  611. }
  612. .yearTag{
  613. width: 80rpx;
  614. height: 32rpx;
  615. background: #EBF5FF;
  616. border: 2rpx solid #007AFF;
  617. border-radius: 16rpx;
  618. font-size: 24rpx;
  619. color: #007AFF;
  620. text-align: center;
  621. line-height: 32rpx;
  622. }
  623. .itemBox{
  624. background: #FFFFFF;
  625. border-radius: 24rpx;
  626. width: 100%;
  627. padding: 23rpx 22rpx 32rpx 22rpx;
  628. margin-bottom: 24rpx;
  629. box-shadow: 0rpx 0rpx 20rpx 1rpx rgba(1,99,235,0.1000);
  630. }
  631. .listBox{
  632. background-color: #EAEEF1;
  633. padding: 24rpx 24rpx 150rpx 24rpx;
  634. position: relative;
  635. // top: 235rpx;
  636. }
  637. .menuSel{
  638. width: 100%;
  639. // height: 70rpx;
  640. padding: 30rpx 0rpx;
  641. background: #EAEEF1;
  642. white-space:nowrap;
  643. overflow: hidden;
  644. }
  645. .r_sliper{
  646. padding: 0 20rpx;
  647. }
  648. .r_t1{
  649. // height: 48rpx;
  650. background: #007AFF;
  651. border-radius: 8rpx;
  652. padding: 9rpx 21rpx;
  653. // margin-top: 11rpx;
  654. color: #FFFFFF;
  655. }
  656. .r_t2{
  657. // height: 48rpx;
  658. background: #FFFFFF;
  659. border: 2rpx solid #EEEEEE;
  660. border-radius: 8rpx;
  661. padding: 9rpx 21rpx;
  662. // margin-top: 11rpx;
  663. color:#666666;
  664. font-size: 30rpx;
  665. }
  666. </style>