goods-classify.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. <template>
  2. <view class="container all-type-list-wrapper" :style="{paddingTop:(CustomBar+44)+'px'}">
  3. <!-- 自定义顶部 -->
  4. <custom-floor :systeminfo='systeminfo' :navbar-data='nvabarData' :headerBtnPosi ="headerBtnPosi"></custom-floor>
  5. <view class="tui-header-screen" :style="{top:CustomBar+'px'}">
  6. <view class="tui-screen-top">
  7. <view class="tui-top-item" :class="[tabIndex ==0 ?'tui-active':'']" @tap="handleScreen" data-index="0">综合</view>
  8. <view class="tui-top-item tui-icon-ml" :class="[tabIndex==1?'tui-active':'']" data-index="1" @tap="handleScreen">
  9. <view>销量</view>
  10. <text class="iconfont icon-shangxiajiantou" v-if="isSearchSalesFirst"></text>
  11. <template v-else>
  12. <tui-icon :name="isSearchSales ? 'turningdown':'turningup'" :size="18" :color="tabIndex==1 ?'#e15616':'#999'" tui-icon-class="tui-ml"></tui-icon>
  13. </template>
  14. </view>
  15. <view class="tui-top-item tui-icon-ml" :class="[tabIndex==2?'tui-active':'']" data-index="2" @tap="handleScreen">
  16. <view>人气</view>
  17. <text class="iconfont icon-shangxiajiantou" v-if="isSearchMoodFirst"></text>
  18. <template v-else>
  19. <tui-icon :name="isSearchMood ? 'turningdown':'turningup'" :size="18" :color="tabIndex==2 ?'#e15616':'#999'" tui-icon-class="tui-ml"></tui-icon>
  20. </template>
  21. </view>
  22. <view class="tui-top-item tui-icon-ml" :class="[tabIndex==3?'tui-active':'']" data-index="3" @tap="handleScreen">
  23. <view>价格</view>
  24. <text class="iconfont icon-shangxiajiantou" v-if="isSearchPriceFirst"></text>
  25. <template v-else>
  26. <tui-icon :name="isSearchPrice ? 'turningdown':'turningup'" :size="18" :color="tabIndex==3?'#e15616':'#999'" tui-icon-class="tui-ml"></tui-icon>
  27. </template>
  28. </view>
  29. <view class="tui-top-item" @tap="handleScreen" data-index="4">
  30. <view>筛选</view>
  31. <text class="iconfont icon-shaixuan"></text>
  32. </view>
  33. </view>
  34. </view>
  35. <!-- 商品列表 -->
  36. <list-skeleton v-if="showSkeleton" :listType='0'></list-skeleton>
  37. <template v-else>
  38. <view class="empty-container" v-if="showEmpty">
  39. <image class="empty-container-image" src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AY2ZjAABpmnBICH4247.png"></image>
  40. <text class="error-text">{{emptyText}}</text>
  41. </view>
  42. <template v-else>
  43. <view class="container-list" :style="{'height':scrollHeight+'px'}">
  44. <view v-for="(item,index) in listData" :key="index" :id="item.id" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.productID)">
  45. <image mode='widthFix' :src="item.mainImage" class="list-img" alt="list-img"></image>
  46. <view class="list-details-info">
  47. <text class="list-details-title">{{item.name}}</text>
  48. <text class="list-details-specs">规格:{{item.unit}}</text>
  49. <view class="list-details-specs" v-if="item.productCode!=''&&item.productCode!=null">商品编码:{{item.productCode}}</view>
  50. <view class="list-details-price">
  51. <template v-if="userIdentity == 3">
  52. <view class="floor-item-act" v-if="item.actStatus==1">
  53. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  54. {{item.promotions.name}}<text v-if="item.price1TextFlag != '1' && item.supplierId === shopId">:¥{{ item.price | NumFormat }}</text>
  55. </view>
  56. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  57. </view>
  58. <view class="floor-item-act" v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  59. <view class="floor-tags">阶梯价格</view>
  60. </view>
  61. </template>
  62. <template v-else>
  63. <view class="floor-item-act" v-if="item.actStatus==1">
  64. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  65. {{item.promotions.name}}<text v-if="hasLogin && item.price1TextFlag != '1'">:¥{{ item.price | NumFormat }}</text>
  66. </view>
  67. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  68. </view>
  69. <view class="floor-item-act" v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  70. <view class="floor-tags">阶梯价格</view>
  71. </view>
  72. </template>
  73. <view v-if="hasLogin" class="list-price">
  74. <view v-if="userIdentity == 1">
  75. <text class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  76. ¥{{ (PromotionsFormat(item.promotions) ? item.price1 : item.retailPrice) | NumFormat }}
  77. </text>
  78. </view>
  79. <view v-if="userIdentity == 4">
  80. <view class="price-larger" v-if="item.price1TextFlag == '1'">
  81. <text class="txt">¥未公开价格</text>
  82. </view>
  83. <view v-else>
  84. <view class="price-larger" v-if="item.price1TextFlag == '2'">
  85. <text class="txt">¥价格仅会员可见</text>
  86. </view>
  87. <template v-else>
  88. <text class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  89. ¥{{ (PromotionsFormat(item.promotions) ? item.price1 : item.retailPrice) | NumFormat }}
  90. </text>
  91. </template>
  92. </view>
  93. </view>
  94. <view v-if="userIdentity == 2">
  95. <view class="price-larger" v-if="item.price1TextFlag == '1'">
  96. <text class="txt">¥未公开价格</text>
  97. </view>
  98. <template v-else>
  99. <text class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  100. ¥{{ (PromotionsFormat(item.promotions) ? item.price1 : item.retailPrice) | NumFormat }}
  101. </text>
  102. </template>
  103. </view>
  104. </view>
  105. <view v-else class="list-login-now">
  106. <text class="p-no">¥</text>
  107. <uni-stars :stars="parseInt(item.price1Grade)" :font-size='36' :width-info="180"></uni-stars>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <!--加载loadding-->
  114. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  115. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  116. <!--加载loadding-->
  117. </template>
  118. </template>
  119. <!--右抽屉-->
  120. <tui-drawer mode="right" :visible="rightDrawer" @close="closeDrawer">
  121. <view class="drawer-container clearfix" :style="{paddingTop:CustomBar+10+'px'}">
  122. <view class="drawer-title">{{ setNavigationBarTitle }}</view>
  123. <view class="drawer-input btn">
  124. <view class="drawer-btn clear" @click="handSearchClear">重置</view>
  125. <view class="drawer-btn comfrim" @click="handSearchList">确定</view>
  126. </view>
  127. </view>
  128. </tui-drawer>
  129. </view>
  130. </template>
  131. <script>
  132. import { mapState,mapMutations} from 'vuex';
  133. import listSkeleton from '@/components/cm-module/listTemplate/listSkeleton'
  134. import customFloor from '@/components/cm-custom/custom-floor' //自定义导航
  135. const defaultListQuery = {
  136. id:0,
  137. pageNum:1,
  138. pageSize:10,
  139. sortField:'',
  140. sortType:0,
  141. idType:0,//一级
  142. };
  143. export default{
  144. components:{
  145. customFloor,
  146. listSkeleton
  147. },
  148. data(){
  149. return{
  150. tabIndex:0,
  151. isSearchSalesFirst:true,
  152. isSearchMoodFirst:true,
  153. isSearchPriceFirst:true,
  154. isSearchSales:true,
  155. isSearchMood:true,
  156. isSearchPrice:true,
  157. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  158. systeminfo: this.setSysteminfo(), //获取设备信息
  159. CustomBar:this.CustomBar,// 顶部导航栏高度
  160. emptyText: '该分类暂时还没有商品哟,去逛逛别的吧~',
  161. isRequest:false,
  162. showSkeleton: false,
  163. showEmpty: false,
  164. userID: 0,
  165. userIdentity:'',
  166. listData: [],
  167. windowHeight: '',
  168. scrollHeight: '',
  169. listQuery:Object.assign({}, defaultListQuery),
  170. loadding: false,
  171. pullUpOn: true,
  172. pullFlag: true,
  173. totalPage: 0,
  174. nomoreText: '上拉显示更多',
  175. rightDrawer: false,
  176. setNavigationBarTitle:'',
  177. classifyType:0,
  178. }
  179. },
  180. onLoad(option) {
  181. console.log(option)
  182. this.initOption(option);
  183. },
  184. computed: {
  185. ...mapState(['hasLogin','userInfo','identity'])
  186. },
  187. filters: {
  188. NumFormat:function(text) {//处理金额
  189. return Number(text).toFixed(2);
  190. },
  191. },
  192. methods:{
  193. initOption(option) {
  194. this.listQuery.id = option.id;
  195. this.listQuery.idType = this.classifyType = Number(option.classType);
  196. this.setNavigationBarTitle = option.title
  197. uni.setNavigationBarTitle({title:option.title});
  198. this.$api.getComStorage('userInfo').then((resolve) =>{
  199. this.userID = resolve.userID ? resolve.userID : 0
  200. this.userIdentity = resolve.userIdentity
  201. this.isRequest = true
  202. this.GetProductListInfo()
  203. this.GetProductOneClassly()
  204. }).catch(error =>{
  205. this.GetProductListInfo()
  206. this.GetProductOneClassly()
  207. })
  208. console.log(this.classifyID)
  209. },
  210. GetProductOneClassly(){//根据分类ID 查询二三级分类
  211. this.CommonService.GetProductOneClassly({typeId:this.listQuery.id,idType:this.classifyType,source :'crm'}).then(response =>{
  212. console.log(response.data)
  213. }).catch(error =>{
  214. this.$util.msg(error.msg,2000)
  215. })
  216. },
  217. GetProductListInfo(){//查询分类商品列表
  218. this.ProductService.GetSearchProductTypeData(this.listQuery).then(response =>{
  219. const resData = JSON.parse(response.data);
  220. const resList = resData.items;
  221. if(resList && resList.length > 0){
  222. this.showEmpty = false
  223. this.totalPage = resData.total;
  224. this.listData = [...resList];
  225. this.GetProductPrice()
  226. this.showSkeleton = false
  227. // 防上拉暴滑
  228. this.pullFlag = false;
  229. setTimeout(()=>{ this.pullFlag = true; },500)
  230. // 底部提示文案
  231. if(this.totalPage>this.listData.length) {
  232. this.pullUpOn = false
  233. this.nomoreText = '上拉显示更多'
  234. } else {
  235. this.pullUpOn = false
  236. this.loadding = false
  237. this.nomoreText = '已至底部'
  238. }
  239. } else {
  240. this.showEmpty = true;
  241. }
  242. }).catch(error =>{
  243. this.$util.msg(error.msg,2000);
  244. })
  245. },
  246. GetOnReachBottomData(){//上拉加载
  247. this.listQuery.pageNum += 1
  248. this.ProductService.GetSearchProductTypeData(this.listQuery).then(response =>{
  249. const resData = JSON.parse(response.data);
  250. const resList = resData.items;
  251. this.totalPage = resData.total;
  252. this.listData = [...this.listData,...resList];
  253. this.GetProductPrice()
  254. this.showSkeleton = false
  255. // 防上拉暴滑
  256. this.pullFlag = false;
  257. setTimeout(()=>{ this.pullFlag = true; },500)
  258. // 底部提示文案
  259. if(this.totalPage>this.listData.length) {
  260. this.pullUpOn = false
  261. this.nomoreText = '上拉显示更多'
  262. } else {
  263. this.pullUpOn = false
  264. this.loadding = false
  265. this.nomoreText = '已至底部'
  266. }
  267. }).catch(error =>{
  268. this.$util.msg(error.msg,2000);
  269. })
  270. },
  271. GetProductPrice(){//获取价格
  272. let productIdArr = [];
  273. this.listData.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  274. productIdArr.push(item.productID)
  275. })
  276. this.productIds = productIdArr.join(",");
  277. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:this.productIds}).then(response =>{
  278. if (response.data) {
  279. this.listData = this.ReturnNewProducts(this.listData,response.data);
  280. }
  281. this.priceLoading = false;
  282. }).catch(error =>{
  283. this.$util.msg(error.msg,2000)
  284. })
  285. },
  286. ReturnNewProducts(Array,list){//处理对应商品ID的商品价格
  287. let NewArray = []
  288. Array.map(item=>{
  289. for (let i = 0; i < list.length; i++) {
  290. if( item.productID == list[i].productId ){
  291. NewArray.push(Object.assign(item,list[i]))
  292. }
  293. }
  294. });
  295. return NewArray
  296. },
  297. handleScreen(e) {
  298. let index = e.currentTarget.dataset.index;
  299. console.log(index)
  300. if (index == 0) {
  301. this.tabIndex = 0
  302. this.isSearchSalesFirst = true;
  303. this.isSearchMoodFirst = true;
  304. this.isSearchPriceFirst = true;
  305. this.GetProductListInfo();
  306. } else if (index == 1) {
  307. this.tabIndex = 1
  308. this.isSearchSalesFirst = false
  309. this.isSearchMoodFirst = true;
  310. this.isSearchPriceFirst = true;
  311. this.isSearchSales = !this.isSearchSales
  312. if(this.isSearchSales){
  313. this.listQuery.sorttype = 5
  314. }else{
  315. this.listQuery.sorttype = 6
  316. }
  317. this.listQuery.sortfield = 'sales'
  318. } else if (index == 2) {
  319. this.tabIndex = 2
  320. this.isSearchSalesFirst = true;
  321. this.isSearchPriceFirst = true;
  322. this.isSearchMoodFirst= false
  323. this.isSearchMood = !this.isSearchMood
  324. if(this.isSearchMood){
  325. this.listQuery.sorttype = 3
  326. }else{
  327. this.listQuery.sorttype = 4
  328. }
  329. } else if (index == 3) {
  330. this.tabIndex = 3
  331. this.isSearchSalesFirst = true;
  332. this.isSearchMoodFirst = true;
  333. this.isSearchPriceFirst= false
  334. this.isSearchPrice = !this.isSearchPrice
  335. if(this.isSearchPrice){
  336. this.listQuery.sorttype = 1
  337. }else{
  338. this.listQuery.sorttype = 2
  339. }
  340. } else if (index == 4) {
  341. this.searchClickFn()
  342. }
  343. // this.getQueryGoodslist()
  344. },
  345. navToDetailPage(id) {
  346. this.isModallayer = true;
  347. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  348. this.isModallayer = false;
  349. },
  350. PromotionsFormat(promo){//促销活动类型数据处理
  351. if(promo!=null){
  352. if(promo.type == 1 && promo.mode == 1){
  353. return true
  354. }else{
  355. return false
  356. }
  357. }
  358. return false
  359. },
  360. setScrollHeight() {
  361. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  362. this.windowHeight = windowHeight - 1;
  363. this.scrollHeight = windowHeight - 1;
  364. },
  365. setHeaderBtnPosi(){
  366. // 获得胶囊按钮位置信息
  367. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  368. return headerBtnPosi
  369. },
  370. searchClickFn() {//弹出抽屉
  371. this.rightDrawer = true;
  372. },
  373. closeDrawer(e) {//关闭抽屉
  374. this.leftDrawer = false;
  375. this.rightDrawer = false;
  376. },
  377. setSysteminfo(){
  378. let systeminfo;
  379. uni.getSystemInfo({ // 获取设备信息
  380. success: (res) => {
  381. systeminfo = res
  382. },
  383. })
  384. return systeminfo
  385. },
  386. },
  387. onPullDownRefresh() {
  388. setTimeout(() => {
  389. this.listQuery.pageNum = 1
  390. this.GetProductListInfo()
  391. uni.stopPullDownRefresh()
  392. }, 200)
  393. },
  394. onReachBottom() {
  395. if(this.totalPage>this.listData.length) {
  396. this.loadding = true
  397. this.pullUpOn = true
  398. this.GetOnReachBottomData()
  399. }
  400. },
  401. onShow() {
  402. }
  403. }
  404. </script>
  405. <style lang="scss">
  406. page {
  407. background: $sub-bg-color;
  408. .all-type-list-wrapper {
  409. display: flex;
  410. flex-direction: column;
  411. }
  412. }
  413. .container-list{
  414. width: 100%;
  415. height: auto;
  416. }
  417. .all-type-list-content {
  418. height: 216rpx;
  419. padding: 24rpx;
  420. background: #fff;
  421. margin-bottom: 2rpx;
  422. display: flex;
  423. flex-direction: row;
  424. box-sizing: content-box;
  425. .list-img {
  426. width: 210rpx;
  427. height: 218rpx !important;
  428. margin-right: 26rpx;
  429. border-radius: 10rpx;
  430. border: 2rpx solid #f3f3f3;
  431. }
  432. }
  433. .list-details-info {
  434. width: 466rpx;
  435. display: flex;
  436. flex-direction: column;
  437. font-size: 26rpx;
  438. position: relative;
  439. .list-details-title {
  440. line-height: 38rpx;
  441. text-overflow: ellipsis;
  442. overflow: hidden;
  443. display: -webkit-box;
  444. -webkit-line-clamp: 2;
  445. line-clamp: 2;
  446. -webkit-box-orient: vertical;
  447. }
  448. .list-details-specs {
  449. margin-top: 8rpx;
  450. color: #666666;
  451. }
  452. .list-details-miniQuantity {
  453. margin-top: 7rpx;
  454. }
  455. }
  456. .list-details-price {
  457. width: 100%;
  458. height: 54rpx;
  459. line-height: 54rpx;
  460. position: absolute;
  461. bottom: -10rpx;
  462. right: 0;
  463. .floor-item-act{
  464. height: 54rpx;
  465. text-align: center;
  466. box-sizing: border-box;
  467. float: right;
  468. .floor-tags{
  469. height: 28rpx;
  470. border-radius: 6rpx;
  471. background-color: #FFFFFF;
  472. line-height: 28rpx;
  473. color: $color-system;
  474. text-align: center;
  475. display: inline-block;
  476. padding:0 16rpx;
  477. font-size: $font-size-20;
  478. margin-left: 15rpx;
  479. border: 1px solid #E15616;
  480. }
  481. }
  482. .price-icon {
  483. width: 22rpx;
  484. height: 28rpx;
  485. vertical-align: middle;
  486. margin-right: 10rpx;
  487. }
  488. .price-icon + text {
  489. font-size: 25rpx;
  490. vertical-align: middle;
  491. }
  492. .list-login-now {
  493. color: #F8C499;
  494. float: left;
  495. line-height: 54rpx;
  496. .p-no{
  497. float: left;
  498. font-size: $font-size-24;
  499. color: $text-color;
  500. }
  501. }
  502. .login-now {
  503. padding: 10rpx 10rpx 10rpx 0;
  504. }
  505. .list-price {
  506. color: #FF2A2A;
  507. height: 44rpx;
  508. float: left;
  509. .price-larger {
  510. width: 100%;
  511. height: 44rpx;
  512. font-size: 32rpx;
  513. &.none{
  514. text-decoration: line-through;
  515. color: #999999;
  516. }
  517. &.small{
  518. font-size: $font-size-24;
  519. }
  520. .txt{
  521. font-size: $font-size-24;
  522. display: inline-block;
  523. line-height: 44rpx;
  524. text-align: left;
  525. float: left;
  526. }
  527. }
  528. }
  529. .add-cart-btn {
  530. width: 156rpx;
  531. height: 64rpx;
  532. line-height: 64rpx;
  533. border-radius: 32rpx;
  534. color: #fff;
  535. font-size: 26rpx;
  536. margin-right: 0;
  537. background:linear-gradient(45deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  538. }
  539. }
  540. /*screen*/
  541. .tui-header-screen {
  542. width: 100%;
  543. box-sizing: border-box;
  544. background: #fff;
  545. position: fixed;
  546. z-index: 1000;
  547. /* padding-top: 12rpx; */
  548. }
  549. .tui-screen-top,
  550. .tui-screen-bottom {
  551. display: flex;
  552. align-items: center;
  553. justify-content: space-between;
  554. font-size: 28rpx;
  555. color: #999999;
  556. }
  557. .tui-screen-top {
  558. height: 88rpx;
  559. position: relative;
  560. background: #fff;
  561. border-bottom: 1px solid #EFEFEF;
  562. }
  563. .tui-top-item {
  564. height: 28rpx;
  565. line-height: 28rpx;
  566. flex: 1;
  567. display: flex;
  568. align-items: center;
  569. justify-content: center;
  570. }
  571. .icon-shangxiajiantou{
  572. font-size: 20rpx;
  573. color: #999999;
  574. margin-left: 8rpx;
  575. }
  576. .tui-topitem-active {
  577. color: #e15616;
  578. }
  579. .tui-screen-bottom {
  580. height: 100rpx;
  581. padding: 0 30rpx;
  582. box-sizing: border-box;
  583. font-size: 24rpx;
  584. align-items: center;
  585. overflow: hidden;
  586. }
  587. .tui-bottom-text {
  588. line-height: 26rpx;
  589. max-width: 82%;
  590. white-space: nowrap;
  591. overflow: hidden;
  592. text-overflow: ellipsis;
  593. }
  594. .tui-bottom-item {
  595. flex: 1;
  596. width: 0;
  597. display: flex;
  598. align-items: center;
  599. justify-content: center;
  600. padding: 0 12rpx;
  601. box-sizing: border-box;
  602. background: #f7f7f7;
  603. margin-right: 20rpx;
  604. white-space: nowrap;
  605. height: 60rpx;
  606. border-radius: 40rpx;
  607. }
  608. .tui-bottom-item:last-child {
  609. margin-right: 0;
  610. }
  611. .tui-btmItem-active {
  612. background: #fcedea !important;
  613. color: #e15616;
  614. font-weight: bold;
  615. position: relative;
  616. }
  617. .tui-btmItem-active::after {
  618. content: "";
  619. position: absolute;
  620. border: 1rpx solid #e15616;
  621. width: 100%;
  622. height: 100%;
  623. border-radius: 40rpx;
  624. left: 0;
  625. top: 0;
  626. }
  627. .tui-btmItem-tap {
  628. position: relative;
  629. border-bottom-left-radius: 0;
  630. border-bottom-right-radius: 0;
  631. }
  632. .tui-btmItem-tap::after {
  633. content: "";
  634. position: absolute;
  635. width: 100%;
  636. height: 22rpx;
  637. background: #f7f7f7;
  638. left: 0;
  639. top: 58rpx;
  640. }
  641. .tui-active {
  642. color: #e15616;
  643. }
  644. .tui-icon-ml .tui-icon-class {
  645. margin-left: 6rpx;
  646. }
  647. .tui-ml {
  648. margin-left: 6rpx;
  649. }
  650. .tui-seizeaseat-20 {
  651. height: 20rpx;
  652. }
  653. .tui-seizeaseat-30 {
  654. height: 30rpx;
  655. }
  656. .tui-icon-middle .tui-icon-class {
  657. vertical-align: middle;
  658. }
  659. .tui-middle {
  660. vertical-align: middle;
  661. }
  662. /*screen*/
  663. .drawer-container {
  664. width: 560rpx;
  665. padding: 80rpx 30rpx;
  666. .drawer-title{
  667. width: 100%;
  668. height: 72rpx;
  669. line-height: 72rpx;
  670. box-sizing: border-box;
  671. padding: 0 30rpx;
  672. text-align: left;
  673. font-size: $font-size-26;
  674. color: #e15616;
  675. font-weight: bold;
  676. background-color: #F7F7F7;
  677. }
  678. .drawer-input{
  679. width: 100%;
  680. height: 80rpx;
  681. float: left;
  682. box-sizing: border-box;
  683. padding: 0 10rpx;
  684. border: 1px solid rgba(0,0,0,0.2);
  685. border-radius: 4rpx;
  686. margin-bottom: 30rpx;
  687. position: relative;
  688. &.btn{
  689. border: none;
  690. margin-top: 40rpx;
  691. display: flex;
  692. }
  693. .drawer-btn{
  694. width: 210rpx;
  695. height: 84rpx;
  696. border-radius: 42rpx;
  697. background: $btn-confirm;
  698. line-height: 84rpx;
  699. text-align: center;
  700. font-size: $font-size-26;
  701. color: #FFFFFF;
  702. flex: 1;
  703. margin: 0 10rpx;
  704. &.comfrim{
  705. background: $btn-confirm;
  706. }
  707. &.clear{
  708. background: #e1e1e1;
  709. }
  710. }
  711. }
  712. }
  713. </style>