goods-classify.vue 19 KB

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