goods-classify.vue 19 KB

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