goods-classify.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  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.p_id" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.p_id)">
  45. <image mode='widthFix' :src="item.p_image" class="list-img" alt="list-img"></image>
  46. <view class="list-details-info">
  47. <text class="list-details-title">{{item.p_name}}</text>
  48. <text class="list-details-specs">规格:{{item.p_unit}}</text>
  49. <view class="list-details-specs" v-if="item.p_code!=''&&item.p_code!=null">商品编码:{{item.p_code}}</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.p_price_flag != '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.p_price_flag != '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. <template v-if="userIdentity == 1">
  75. <text v-if="priceLoading" class="price-larger small">正在获取价格...</text>
  76. <template v-else>
  77. <text class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  78. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  79. </text>
  80. </template>
  81. </template>
  82. <template v-if="userIdentity == 4">
  83. <view class="price-larger" v-if="item.p_price_flag == '1'">
  84. <text class="txt">¥未公开价格</text>
  85. </view>
  86. <view class="price-larger" v-if="item.p_price_flag == '2'">
  87. <text class="txt">¥价格仅会员可见</text>
  88. </view>
  89. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  90. <template v-else>
  91. <text class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  92. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  93. </text>
  94. </template>
  95. </template>
  96. <template v-if="userIdentity == 3">
  97. <template v-if="item.supplierId === shopId">
  98. <view class="price-larger" v-if="item.p_price_flag == '1'">
  99. <text class="txt">¥未公开价格</text>
  100. </view>
  101. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  102. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  103. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  104. </text>
  105. </template>
  106. <template v-else>
  107. <view class="list-login-now">
  108. <text class="p-no">¥</text>
  109. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  110. </view>
  111. </template>
  112. </template>
  113. <template v-if="userIdentity == 2">
  114. <view class="price-larger" v-if="item.p_price_flag == '1'">
  115. <text class="txt">¥未公开价格</text>
  116. </view>
  117. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  118. <template v-else>
  119. <text class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  120. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  121. </text>
  122. </template>
  123. </template>
  124. </view>
  125. <view v-else class="list-login-now">
  126. <text class="p-no">¥</text>
  127. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. <!--加载loadding-->
  134. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  135. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  136. <!--加载loadding-->
  137. </template>
  138. </template>
  139. <!--右抽屉-->
  140. <tui-drawer mode="right" :visible="rightDrawer" @close="closeDrawer">
  141. <view class="drawer-container clearfix" :style="{paddingTop:CustomBar+'px'}">
  142. <view class="drawer-title">{{ classData.name }}</view>
  143. <view class="drawer-main">
  144. <template v-if="classData.smalltypeList">
  145. <view class="drawer-item-cell" v-for="(item,index) in classData.smalltypeList" :key="index">
  146. <view class="drawer-item-title">{{ item.name }}</view>
  147. <view class="drawer-item-main" v-if="item.tinytypeList">
  148. <text class="drawer-item-text" :class="tiny.isChecked ? 'checked' : ''" v-for="(tiny,tinyIndex) in item.tinytypeList" :key="tinyIndex" @click="SearchCondition(3,item,tiny)">{{ tiny.name }}</text>
  149. </view>
  150. <view class="drawer-item-main" v-else>
  151. <text class="drawer-item-text" :class="item.isChecked ? 'checked' : ''" @click="SearchCondition(2,item)">全部商品</text>
  152. </view>
  153. </view>
  154. </template>
  155. <template v-else>
  156. <view class="drawer-item-cell">
  157. <view class="drawer-item-main none">
  158. <text class="drawer-item-text" :class="classData.isChecked ? 'checked' : ''" @click="SearchCondition(1,classData)">全部商品</text>
  159. </view>
  160. </view>
  161. </template>
  162. </view>
  163. <view class="drawer-input btn" :style="{bottom :isIphoneX ? '68rpx' : '34rpx'}">
  164. <view class="drawer-btn clear" @click="closeDrawer">取消</view>
  165. <view class="drawer-btn comfrim" @click="handSearchList">确定</view>
  166. </view>
  167. </view>
  168. </tui-drawer>
  169. <!-- 透明模态层 -->
  170. <modal-layer v-if='isModallayer'></modal-layer>
  171. </view>
  172. </template>
  173. <script>
  174. import { mapState,mapMutations} from 'vuex';
  175. import listSkeleton from '@/components/cm-module/listTemplate/listSkeleton'
  176. import customFloor from '@/components/cm-custom/custom-floor' //自定义导航
  177. import uniGrader from '@/components/uni-grade/uni-grade.vue'
  178. import modalLayer from "@/components/modal-layer"
  179. const defaultListQuery = {
  180. id:0,
  181. pageNum:1,
  182. pageSize:10,
  183. sortField:'',
  184. sortType:1,
  185. idType:0,//一级
  186. };
  187. export default{
  188. components:{
  189. customFloor,
  190. listSkeleton,
  191. uniGrader,
  192. modalLayer
  193. },
  194. data(){
  195. return{
  196. shopID:0,
  197. tabIndex:0,
  198. isModallayer:false,
  199. isSearchSalesFirst:true,
  200. isSearchMoodFirst:true,
  201. isSearchPriceFirst:true,
  202. isSearchSales:true,
  203. isSearchMood:true,
  204. isSearchPrice:true,
  205. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  206. systeminfo: this.setSysteminfo(), //获取设备信息
  207. CustomBar:this.CustomBar,// 顶部导航栏高度
  208. isIphoneX:this.$store.state.isIphoneX,
  209. emptyText: '该分类暂时还没有商品哟,去逛逛别的吧~',
  210. isRequest:false,
  211. showSkeleton: true,
  212. showEmpty: false,
  213. userID: 0,
  214. userIdentity:'',
  215. listData: [],
  216. windowHeight: '',
  217. scrollHeight: '',
  218. listQuery:Object.assign({}, defaultListQuery),
  219. loadding: false,
  220. pullUpOn: true,
  221. pullFlag: true,
  222. totalPage: 0,
  223. nomoreText: '上拉显示更多',
  224. rightDrawer: false,
  225. classifyType:0,
  226. classData:{},
  227. searchCheckedId:null
  228. }
  229. },
  230. onLoad(option) {
  231. console.log(option)
  232. this.initOption(option);
  233. },
  234. computed: {
  235. ...mapState(['hasLogin','userInfo','identity'])
  236. },
  237. filters: {
  238. NumFormat:function(text) {//处理金额
  239. return Number(text).toFixed(2);
  240. },
  241. },
  242. methods:{
  243. initOption(option) {
  244. this.listQuery.id = option.id;
  245. this.listQuery.idType = this.classifyType = Number(option.classType);
  246. uni.setNavigationBarTitle({title:option.title});
  247. this.$api.getComStorage('userInfo').then((resolve) =>{
  248. this.userID = resolve.userID ? resolve.userID : 0
  249. this.shopID = resolve.shopID ? resolve.shopID : 0
  250. this.userIdentity = resolve.userIdentity
  251. this.isRequest = true
  252. this.GetProductListInfo()
  253. this.GetProductOneClassly()
  254. }).catch(error =>{
  255. this.GetProductListInfo()
  256. this.GetProductOneClassly()
  257. })
  258. console.log(this.classifyID)
  259. },
  260. GetProductOneClassly(){//根据分类ID 查询二三级分类
  261. this.CommonService.GetProductOneClassly({typeId:this.listQuery.id,idType:this.classifyType,source :'crm'}).then(response =>{
  262. console.log(response.data)
  263. this.classData = response.data
  264. }).catch(error =>{
  265. this.$util.msg(error.msg,2000)
  266. })
  267. },
  268. GetProductListInfo(){//查询分类商品列表
  269. this.ProductService.GetSearchProductTypeData(this.listQuery).then(response =>{
  270. const resData = JSON.parse(response.data);
  271. const resList = resData.items;
  272. this.showSkeleton = false
  273. if(resList && resList.length > 0){
  274. this.showEmpty = false
  275. this.totalPage = resData.total;
  276. this.listData = [...resList];
  277. this.GetProductPrice()
  278. // 防上拉暴滑
  279. this.pullFlag = false;
  280. setTimeout(()=>{ this.pullFlag = true; },500)
  281. // 底部提示文案
  282. if(this.totalPage>this.listData.length) {
  283. this.pullUpOn = false
  284. this.nomoreText = '上拉显示更多'
  285. } else {
  286. if(this.listData.length>4){
  287. this.pullUpOn = false
  288. this.loadding = false
  289. this.nomoreText = '已至底部'
  290. }else{
  291. this.pullUpOn = true
  292. this.loadding = false
  293. this.nomoreText = '已至底部'
  294. }
  295. }
  296. } else {
  297. this.showEmpty = true;
  298. }
  299. }).catch(error =>{
  300. this.$util.msg(error.msg,2000);
  301. })
  302. },
  303. GetOnReachBottomData(){//上拉加载
  304. this.listQuery.pageNum += 1
  305. this.ProductService.GetSearchProductTypeData(this.listQuery).then(response =>{
  306. const resData = JSON.parse(response.data);
  307. const resList = resData.items;
  308. this.totalPage = resData.total;
  309. this.listData = [...this.listData,...resList];
  310. this.GetProductPrice()
  311. // 防上拉暴滑
  312. this.pullFlag = false;
  313. setTimeout(()=>{ this.pullFlag = true; },500)
  314. // 底部提示文案
  315. if(this.totalPage>this.listData.length) {
  316. this.pullUpOn = false
  317. this.nomoreText = '上拉显示更多'
  318. } else {
  319. this.pullUpOn = false
  320. this.loadding = false
  321. this.nomoreText = '已至底部'
  322. }
  323. }).catch(error =>{
  324. this.$util.msg(error.msg,2000);
  325. })
  326. },
  327. GetProductPrice(){//获取价格
  328. let productIdArr = [];
  329. this.listData.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  330. productIdArr.push(item.p_id)
  331. })
  332. this.productIds = productIdArr.join(",");
  333. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:this.productIds}).then(response =>{
  334. if(response.data) {
  335. this.listData = this.ReturnNewProducts(this.listData,response.data);
  336. }
  337. this.priceLoading = false;
  338. }).catch(error =>{
  339. this.$util.msg(error.msg,2000)
  340. })
  341. },
  342. ReturnNewProducts(Array,list){//处理对应商品ID的商品价格
  343. let NewArray = []
  344. Array.map(item=>{
  345. for (let i = 0; i < list.length; i++) {
  346. if( item.p_id == list[i].productId ){
  347. NewArray.push(Object.assign(item,list[i]))
  348. }
  349. }
  350. });
  351. return NewArray
  352. },
  353. handleScreen(e) {
  354. let index = e.currentTarget.dataset.index;
  355. console.log(index)
  356. if (index == 0) {
  357. this.tabIndex = 0
  358. this.isSearchSalesFirst = true
  359. this.isSearchMoodFirst = true
  360. this.isSearchPriceFirst = true
  361. this.listQuery.sortType = ''
  362. this.GetProductListInfo();
  363. } else if (index == 1) {
  364. this.tabIndex = 1
  365. this.isSearchSalesFirst = false
  366. this.isSearchMoodFirst = true
  367. this.isSearchPriceFirst = true
  368. this.isSearchSales = !this.isSearchSales
  369. if(this.isSearchSales){
  370. this.listQuery.sortType = 1
  371. }else{
  372. this.listQuery.sortType = 0
  373. }
  374. this.listQuery.sortField = 'p_sales'
  375. } else if (index == 2) {
  376. this.tabIndex = 2
  377. this.isSearchSalesFirst = true
  378. this.isSearchPriceFirst = true
  379. this.isSearchMoodFirst= false
  380. this.isSearchMood = !this.isSearchMood
  381. if(this.isSearchMood){
  382. this.listQuery.sortType = 1
  383. }else{
  384. this.listQuery.sortType = 0
  385. }
  386. this.listQuery.sortField = 'p_favorite'
  387. } else if (index == 3) {
  388. this.tabIndex = 3
  389. this.isSearchSalesFirst = true
  390. this.isSearchMoodFirst = true
  391. this.isSearchPriceFirst= false
  392. this.isSearchPrice = !this.isSearchPrice
  393. if(this.isSearchPrice){
  394. this.listQuery.sortType = 1
  395. }else{
  396. this.listQuery.sortType = 0
  397. }
  398. this.listQuery.sortField = 'p_price'
  399. } else if (index == 4) {
  400. this.searchClickFn()
  401. }
  402. this.GetProductListInfo()
  403. },
  404. handSearchList(){//确定筛选
  405. if(this.searchCheckedId == ''){
  406. this.listQuery.id = this.classData.bigTypeID
  407. }else{
  408. this.listQuery.id = this.searchCheckedId
  409. }
  410. this.leftDrawer = false;
  411. this.rightDrawer = false;
  412. this.GetProductListInfo()
  413. },
  414. SearchCondition(type,item,tiny){//选择筛选分类
  415. this.listQuery.idType = type
  416. switch(type){
  417. case 1:
  418. console.log('1级分类全部商品',item);
  419. item.isChecked = !item.isChecked
  420. this.searchCheckedId = item.bigTypeID
  421. break;
  422. case 2:
  423. console.log('2级分类全部商品',item);
  424. item.isChecked = !item.isChecked
  425. if(item.isChecked){
  426. this.searchCheckedId = item.smallTypeID
  427. }else{
  428. this.searchCheckedId = ''
  429. }
  430. break;
  431. case 3:
  432. console.log('3级分类',tiny);
  433. tiny.isChecked = !tiny.isChecked
  434. if(tiny.isChecked){
  435. this.searchCheckedId = tiny.tinyTypeID
  436. }else{
  437. this.searchCheckedId = ''
  438. }
  439. break;
  440. }
  441. },
  442. navToDetailPage(id) {
  443. this.isModallayer = true;
  444. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  445. this.isModallayer = false;
  446. },
  447. PromotionsFormat(promo){//促销活动类型数据处理
  448. if(promo!=null){
  449. if(promo.type == 1 && promo.mode == 1){
  450. return true
  451. }else{
  452. return false
  453. }
  454. }
  455. return false
  456. },
  457. setScrollHeight() {
  458. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  459. this.windowHeight = windowHeight - 1;
  460. this.scrollHeight = windowHeight - 1;
  461. },
  462. setHeaderBtnPosi(){
  463. // 获得胶囊按钮位置信息
  464. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  465. return headerBtnPosi
  466. },
  467. searchClickFn() {//弹出抽屉
  468. this.rightDrawer = true;
  469. },
  470. closeDrawer(e) {//关闭抽屉
  471. this.leftDrawer = false;
  472. this.rightDrawer = false;
  473. },
  474. setSysteminfo(){
  475. let systeminfo;
  476. uni.getSystemInfo({ // 获取设备信息
  477. success: (res) => {
  478. systeminfo = res
  479. },
  480. })
  481. return systeminfo
  482. },
  483. },
  484. onPullDownRefresh() {
  485. setTimeout(() => {
  486. this.listQuery.pageNum = 1
  487. this.GetProductListInfo()
  488. uni.stopPullDownRefresh()
  489. }, 200)
  490. },
  491. onReachBottom() {
  492. if(this.totalPage>this.listData.length) {
  493. console.log('2222222222222')
  494. this.loadding = true
  495. this.pullUpOn = true
  496. this.GetOnReachBottomData()
  497. }
  498. },
  499. onShow() {
  500. }
  501. }
  502. </script>
  503. <style lang="scss">
  504. page {
  505. background: $sub-bg-color;
  506. .all-type-list-wrapper {
  507. display: flex;
  508. flex-direction: column;
  509. }
  510. }
  511. .container-list{
  512. width: 100%;
  513. height: auto;
  514. }
  515. .all-type-list-content {
  516. height: 216rpx;
  517. padding: 24rpx;
  518. background: #fff;
  519. margin-bottom: 2rpx;
  520. display: flex;
  521. flex-direction: row;
  522. box-sizing: content-box;
  523. .list-img {
  524. width: 210rpx;
  525. height: 218rpx !important;
  526. margin-right: 26rpx;
  527. border-radius: 10rpx;
  528. border: 2rpx solid #f3f3f3;
  529. }
  530. }
  531. .list-details-info {
  532. width: 466rpx;
  533. display: flex;
  534. flex-direction: column;
  535. font-size: 26rpx;
  536. position: relative;
  537. .list-details-title {
  538. line-height: 38rpx;
  539. text-overflow: ellipsis;
  540. overflow: hidden;
  541. display: -webkit-box;
  542. -webkit-line-clamp: 2;
  543. line-clamp: 2;
  544. -webkit-box-orient: vertical;
  545. }
  546. .list-details-specs {
  547. margin-top: 8rpx;
  548. color: #666666;
  549. }
  550. .list-details-miniQuantity {
  551. margin-top: 7rpx;
  552. }
  553. }
  554. .list-details-price {
  555. width: 100%;
  556. height: 54rpx;
  557. line-height: 54rpx;
  558. position: absolute;
  559. bottom: -10rpx;
  560. right: 0;
  561. .floor-item-act{
  562. height: 54rpx;
  563. text-align: center;
  564. box-sizing: border-box;
  565. float: right;
  566. .floor-tags{
  567. height: 28rpx;
  568. border-radius: 6rpx;
  569. background-color: #FFFFFF;
  570. line-height: 28rpx;
  571. color: $color-system;
  572. text-align: center;
  573. display: inline-block;
  574. padding:0 16rpx;
  575. font-size: $font-size-20;
  576. margin-left: 15rpx;
  577. border: 1px solid #E15616;
  578. }
  579. }
  580. .price-icon {
  581. width: 22rpx;
  582. height: 28rpx;
  583. vertical-align: middle;
  584. margin-right: 10rpx;
  585. }
  586. .price-icon + text {
  587. font-size: 25rpx;
  588. vertical-align: middle;
  589. }
  590. .list-login-now {
  591. color: #F8C499;
  592. float: left;
  593. line-height: 54rpx;
  594. .p-no{
  595. float: left;
  596. font-size: $font-size-24;
  597. color: $text-color;
  598. }
  599. }
  600. .login-now {
  601. padding: 10rpx 10rpx 10rpx 0;
  602. }
  603. .list-price {
  604. color: #FF2A2A;
  605. height: 44rpx;
  606. float: left;
  607. .price-larger {
  608. width: 100%;
  609. height: 44rpx;
  610. font-size: 32rpx;
  611. &.none{
  612. text-decoration: line-through;
  613. color: #999999;
  614. }
  615. &.small{
  616. font-size: $font-size-24;
  617. }
  618. .txt{
  619. font-size: $font-size-24;
  620. display: inline-block;
  621. line-height: 44rpx;
  622. text-align: left;
  623. float: left;
  624. }
  625. }
  626. }
  627. .add-cart-btn {
  628. width: 156rpx;
  629. height: 64rpx;
  630. line-height: 64rpx;
  631. border-radius: 32rpx;
  632. color: #fff;
  633. font-size: 26rpx;
  634. margin-right: 0;
  635. background:linear-gradient(45deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  636. }
  637. }
  638. /*screen*/
  639. .tui-header-screen {
  640. width: 100%;
  641. box-sizing: border-box;
  642. background: #fff;
  643. position: fixed;
  644. z-index: 1000;
  645. /* padding-top: 12rpx; */
  646. }
  647. .tui-screen-top,
  648. .tui-screen-bottom {
  649. display: flex;
  650. align-items: center;
  651. justify-content: space-between;
  652. font-size: 28rpx;
  653. color: #999999;
  654. }
  655. .tui-screen-top {
  656. height: 88rpx;
  657. position: relative;
  658. background: #fff;
  659. border-bottom: 1px solid #EFEFEF;
  660. }
  661. .tui-top-item {
  662. height: 28rpx;
  663. line-height: 28rpx;
  664. flex: 1;
  665. display: flex;
  666. align-items: center;
  667. justify-content: center;
  668. }
  669. .icon-shangxiajiantou{
  670. font-size: 20rpx;
  671. color: #999999;
  672. margin-left: 8rpx;
  673. }
  674. .tui-topitem-active {
  675. color: #e15616;
  676. }
  677. .tui-screen-bottom {
  678. height: 100rpx;
  679. padding: 0 30rpx;
  680. box-sizing: border-box;
  681. font-size: 24rpx;
  682. align-items: center;
  683. overflow: hidden;
  684. }
  685. .tui-bottom-text {
  686. line-height: 26rpx;
  687. max-width: 82%;
  688. white-space: nowrap;
  689. overflow: hidden;
  690. text-overflow: ellipsis;
  691. }
  692. .tui-bottom-item {
  693. flex: 1;
  694. width: 0;
  695. display: flex;
  696. align-items: center;
  697. justify-content: center;
  698. padding: 0 12rpx;
  699. box-sizing: border-box;
  700. background: #f7f7f7;
  701. margin-right: 20rpx;
  702. white-space: nowrap;
  703. height: 60rpx;
  704. border-radius: 40rpx;
  705. }
  706. .tui-bottom-item:last-child {
  707. margin-right: 0;
  708. }
  709. .tui-btmItem-active {
  710. background: #fcedea !important;
  711. color: #e15616;
  712. font-weight: bold;
  713. position: relative;
  714. }
  715. .tui-btmItem-active::after {
  716. content: "";
  717. position: absolute;
  718. border: 1rpx solid #e15616;
  719. width: 100%;
  720. height: 100%;
  721. border-radius: 40rpx;
  722. left: 0;
  723. top: 0;
  724. }
  725. .tui-btmItem-tap {
  726. position: relative;
  727. border-bottom-left-radius: 0;
  728. border-bottom-right-radius: 0;
  729. }
  730. .tui-btmItem-tap::after {
  731. content: "";
  732. position: absolute;
  733. width: 100%;
  734. height: 22rpx;
  735. background: #f7f7f7;
  736. left: 0;
  737. top: 58rpx;
  738. }
  739. .tui-active {
  740. color: #e15616;
  741. }
  742. .tui-icon-ml .tui-icon-class {
  743. margin-left: 6rpx;
  744. }
  745. .tui-ml {
  746. margin-left: 6rpx;
  747. }
  748. .tui-seizeaseat-20 {
  749. height: 20rpx;
  750. }
  751. .tui-seizeaseat-30 {
  752. height: 30rpx;
  753. }
  754. .tui-icon-middle .tui-icon-class {
  755. vertical-align: middle;
  756. }
  757. .tui-middle {
  758. vertical-align: middle;
  759. }
  760. /*screen*/
  761. .drawer-container {
  762. width: 560rpx;
  763. height: 100%;
  764. padding: 80rpx 0;
  765. box-sizing: border-box;
  766. .drawer-title{
  767. width: 100%;
  768. height: 72rpx;
  769. line-height: 72rpx;
  770. box-sizing: border-box;
  771. padding: 0 30rpx;
  772. text-align: left;
  773. font-size: $font-size-26;
  774. color: #e15616;
  775. font-weight: bold;
  776. background-color: #F7F7F7;
  777. }
  778. .drawer-main{
  779. width: 100%;
  780. height: auto;
  781. box-sizing: border-box;
  782. padding: 0 30rpx;
  783. .drawer-item-cell{
  784. width: 100%;
  785. height: auto;
  786. float: left;
  787. .drawer-item-title{
  788. width: 100%;
  789. height: 82rpx;
  790. line-height: 82rpx;
  791. text-align: left;
  792. font-size: $font-size-26;
  793. color: $text-color;
  794. float: left;
  795. }
  796. .drawer-item-main{
  797. width: 100%;
  798. height: auto;
  799. float: left;
  800. &.none{
  801. margin-top: 24rpx;
  802. }
  803. .drawer-item-text{
  804. display: inline-block;
  805. float: left;
  806. padding: 0 30rpx;
  807. height: 56rpx;
  808. border-radius: 28rpx;
  809. background-color: #F7F7F7;
  810. line-height: 56rpx;
  811. text-align: center;
  812. color: #999999;
  813. font-size: $font-size-26;
  814. margin-right: 24rpx;
  815. margin-bottom: 24rpx;
  816. &.checked{
  817. background-color: #fef6f3;
  818. color: $color-system;
  819. }
  820. }
  821. }
  822. }
  823. }
  824. .drawer-input{
  825. width: 100%;
  826. height: 80rpx;
  827. float: left;
  828. box-sizing: border-box;
  829. padding: 0 10rpx;
  830. border: 1px solid rgba(0,0,0,0.2);
  831. border-radius: 4rpx;
  832. margin-bottom: 30rpx;
  833. position: relative;
  834. &.btn{
  835. border: none;
  836. margin-top: 40rpx;
  837. display: flex;
  838. position: absolute;
  839. left: 0;
  840. }
  841. .drawer-btn{
  842. width: 210rpx;
  843. height: 84rpx;
  844. border-radius: 42rpx;
  845. background: $btn-confirm;
  846. line-height: 84rpx;
  847. text-align: center;
  848. font-size: $font-size-26;
  849. color: #FFFFFF;
  850. flex: 1;
  851. margin: 0 10rpx;
  852. &.comfrim{
  853. background: $btn-confirm;
  854. }
  855. &.clear{
  856. background: #e1e1e1;
  857. }
  858. }
  859. }
  860. }
  861. </style>