goods_cate.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <template>
  2. <view class='productSort'>
  3. <!-- #ifdef APP-PLUS || H5 -->
  4. <!-- 状态栏占位 -->
  5. <view class="status_bar"></view>
  6. <!-- #endif -->
  7. <!-- 商品搜索 -->
  8. <view class='header acea-row row-center-wrapper' style="margin-top: var(--status-bar-height)">
  9. <view class='acea-row row-between-wrapper input'>
  10. <!-- #ifdef MP -->
  11. <text class='iconfont icon-sousuo'></text>
  12. <!-- #endif -->
  13. <!-- #ifdef APP-PLUS || H5 -->
  14. <u-icon name="search"></u-icon>
  15. <!-- #endif -->
  16. <input type='text' placeholder='点击搜索商品信息' @confirm="searchSubmitValue" confirm-type='search'
  17. name="search" placeholder-class='placeholder' />
  18. </view>
  19. </view>
  20. <!-- 商品分类(左) -->
  21. <view class='aside' :style="{bottom: tabbarH + 'px',height: height + 'rpx'}">
  22. <scroll-view scroll-y="true" scroll-with-animation='true' style="height: 100%;">
  23. <view class='item acea-row row-center-wrapper' :class='index==navActive?"on":""'
  24. v-for="(item,index) in productList" :key="index" @click='tap(item.id,index,"b"+index)'>
  25. <text>{{item.name}}</text>
  26. </view>
  27. </scroll-view>
  28. </view>
  29. <!-- 商品分类(右) -->
  30. <view class='conter'>
  31. <scroll-view scroll-y="true" :style='"height:"+height+"rpx;margin-top: 96rpx;"'
  32. scroll-with-animation='true'>
  33. <view class='listw'>
  34. <view class='list acea-row'>
  35. <view class='list acea-row row-between-wrapper' :class='is_switch?"":"on"'>
  36. <view class='item' :class='is_switch?"":"on"' hover-class='none'
  37. v-for="(item,index) in goodsRightList" :key="index" @click="godDetail(item)">
  38. <view class='pictrue' :class='is_switch?"":"on"'>
  39. <image :src='item.picUrl' :class='is_switch?"":"on"'></image>
  40. </view>
  41. <view class='text' :class='is_switch?"":"on"'>
  42. <view class='name line1'>{{item.name}}</view>
  43. <view class='money font-color' :class='is_switch?"":"on"'> <text
  44. class='num'>¥{{ fen2yuan(item.price) }}</text>
  45. <view class="carnum num-dis row-left" v-if="item.selected_goods_num>0">
  46. <view class="item reduce"
  47. :class="item.selected_goods_num <= 1 ? 'on' : ''"
  48. @click.stop="CartNumDes(item.id)">
  49. -
  50. </view>
  51. <view class='item num' @click.stop="bindCode()">
  52. <input style="color: #000;background-color: #EAEAEA;" type="number" v-model="item.selected_goods_num"
  53. @input="updateCart" />
  54. </view>
  55. <view v-if="iSplus" class="item plus"
  56. :class="attr.productSelect.cart_num >= attr.productSelect.stock ? 'on' : ''"
  57. @click.stop="CartNumAdd(item.id)">
  58. +
  59. </view>
  60. <view v-else class='item plus' :class='(attr.productSelect.cart_num >= attr.productSelect.stock)
  61. || (attr.productSelect.cart_num >= attr.productSelect.limitCount)
  62. ? "on":""' @click.stop='CartNumAdd(item.id)'>+</view>
  63. </view>
  64. <view class="circle" v-else @click.stop="addGoods(item.skus[0].id,index)">+
  65. </view>
  66. </view>
  67. <view class='vip acea-row row-between-wrapper' :class='is_switch?"":"on"'>
  68. <view class='vip-money' v-if="item.vipPrice > 0">
  69. ¥{{ fen2yuan(item.price - item.vipPrice) }}
  70. <image src='../../static/images/vip.png'></image>
  71. </view>
  72. <view>已售 {{ item.salesCount || 0}} 库存{{item.stock}}</view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view :style='"height:"+(height-300)+"rpx;"' v-if="number < 15" />
  80. </scroll-view>
  81. </view>
  82. <!-- 购物车 -->
  83. <!-- <view class='footer acea-row row-between-wrapper' >
  84. <view class="zz" @click="hideShoppingCar"></view>
  85. <view class='money acea-row row-middle' @click="showShoppingCar">
  86. <view>费用:¥{{ fen2yuan(0) }}</view>
  87. <form @submit="subOrder" report-submit='true'>
  88. <button class='placeOrder bg-color' formType="submit">立即下单</button>
  89. </form>
  90. </view>
  91. </view> -->
  92. <!-- 购物车列表 -->
  93. <!-- :style="{display: showCar ? 'flex' : 'none'}" -->
  94. <view class="cart-box" v-if="goodsRightList.length>0">
  95. <orderAddcart ref='orderAddcart' @showMask='isShowMask' @cartList="handleCartList"></orderAddcart>
  96. </view>
  97. <view class="zz" @click="hideShoppingCar" v-if="showMask"></view>
  98. </view>
  99. </template>
  100. <script>
  101. import * as CategoryApi from '@/api/product/category.js';
  102. import * as ProductSpuApi from '@/api/product/spu.js';
  103. import * as Util from '@/utils/util.js';
  104. import {
  105. toLogin
  106. } from '@/libs/login.js';
  107. import * as TradeCartApi from '@/api/trade/cart.js';
  108. import {
  109. mapGetters
  110. } from "vuex";
  111. import {
  112. goShopDetail
  113. } from '@/libs/order.js'
  114. import orderAddcart from '@/components/order_addcart/index.vue';
  115. export default {
  116. props: {
  117. attr: {
  118. type: Object,
  119. default: () => {}
  120. },
  121. },
  122. data() {
  123. return {
  124. navlist: [],
  125. productList: [], // 商品分类,树形结构
  126. navActive: 0,
  127. number: "",
  128. height: 0,
  129. hightArr: [],
  130. toView: "",
  131. tabbarH: 0,
  132. limit: 10,
  133. page: 1,
  134. goodsRightList: [],
  135. cartList:[],
  136. //显示购物车
  137. showCar: false,
  138. showMask:false,
  139. is_switch:false,
  140. }
  141. },
  142. components: {
  143. orderAddcart
  144. },
  145. computed: mapGetters(['isLogin']),
  146. // onLoad(options) {
  147. // this.getAllCategory();
  148. // },
  149. onShow(){
  150. this.getAllCategory()
  151. },
  152. methods: {
  153. updateCart: function(event) {
  154. console.log(event,'我是购物车 ')
  155. },
  156. infoScroll: function() {
  157. let len = this.productList.length;
  158. let child = this.productList[len - 1] && this.productList[len - 1].child ? this.productList[len - 1]
  159. .child : [];
  160. this.number = child ? child.length : 0;
  161. // 设置商品列表高度
  162. let that = this;
  163. uni.getSystemInfo({
  164. success: function(res) {
  165. that.height = (res.windowHeight) * (750 / res.windowWidth) - 98;
  166. },
  167. });
  168. let hightArr = [];
  169. // for (let i = 0; i < len; i++) {
  170. // // 获取元素所在位置
  171. // let query = uni.createSelectorQuery().in(this);
  172. // let idView = "#b" + i;
  173. // query.select(idView).boundingClientRect();
  174. // query.exec(function(res) {
  175. // let top = res[0].top;
  176. // hightArr.push(top);
  177. // that.hightArr = hightArr
  178. // });
  179. // }
  180. },
  181. handleCartList(data){
  182. console.log(data,'datadtaa',this.goodsRightList)
  183. this.cartList=data
  184. this.goodsRightList.forEach(goodsItem => {
  185. data.forEach(item => {
  186. if (goodsItem.id === item.spu.id) {
  187. // 找到了匹配的数据,将 selected_goods_num 赋值为 data 中的 count
  188. goodsItem.selected_goods_num = item.count;
  189. // 在这里可以对找到的数据进行其他操作
  190. console.log('Matched item:', goodsItem);
  191. }
  192. });
  193. });
  194. },
  195. isShowMask(){
  196. this.showMask=true
  197. },
  198. tap: function(itemId, index, id) {
  199. console.log('点击了', itemId, id, index)
  200. this.toView = id;
  201. this.navActive = index;
  202. this.getGoodsList(itemId)
  203. },
  204. getGoodsList(id) {
  205. ProductSpuApi.getSpuPage({
  206. categoryId: id,
  207. pageNo: this.page,
  208. pageSize: this.limit
  209. }).then(res => {
  210. console.log(res, 77788999)
  211. this.goodsRightList = res.data.list.map(item => {
  212. return {
  213. ...item,
  214. selected_goods_num: 0
  215. }
  216. })
  217. })
  218. },
  219. getAllCategory: function() {
  220. console.log('这里执行了')
  221. CategoryApi.getCategoryList().then(res => {
  222. this.productList = Util.handleTree(res.data);
  223. console.log(this.productList, 'this.productList')
  224. this.getGoodsList(this.productList[0].id)
  225. setTimeout(() => {
  226. this.infoScroll();
  227. }, 500)
  228. })
  229. },
  230. scroll: function(e) {
  231. let scrollTop = e.detail.scrollTop;
  232. let scrollArr = this.hightArr;
  233. for (let i = 0; i < scrollArr.length; i++) {
  234. if (scrollTop >= 0 && scrollTop < scrollArr[1] - scrollArr[0]) {
  235. this.navActive = 0
  236. } else if (scrollTop >= scrollArr[i] - scrollArr[0] && scrollTop < scrollArr[i + 1] - scrollArr[
  237. 0]) {
  238. this.navActive = i
  239. } else if (scrollTop >= scrollArr[scrollArr.length - 1] - scrollArr[0]) {
  240. this.navActive = scrollArr.length - 1
  241. }
  242. }
  243. },
  244. searchSubmitValue: function(e) {
  245. if (this.$util.trim(e.detail.value).length > 0) {
  246. uni.navigateTo({
  247. url: '/pages/goods_list/index?searchValue=' + e.detail.value
  248. })
  249. } else {
  250. return this.$util.Tips({
  251. title: '请填写要搜索的产品信息'
  252. });
  253. }
  254. },
  255. fen2yuan(price) {
  256. return Util.fen2yuan(price)
  257. },
  258. // 去详情页
  259. godDetail(item) {
  260. goShopDetail(item, this.uid).then(res => {
  261. uni.navigateTo({
  262. url: `/pages/goods_details/index?id=${item.id}`
  263. })
  264. })
  265. },
  266. addGoods(id, index) {
  267. // 未登录,需要跳转
  268. if (!this.isLogin) {
  269. toLogin();
  270. return;
  271. }
  272. // // 库存不足
  273. // let sku = this.attr.productSelect;
  274. // if (sku.stock === 0) {
  275. // return that.$util.Tips({
  276. // title: "产品库存不足,请选择其它"
  277. // });
  278. // }
  279. // 添加购物车
  280. TradeCartApi.addCart({
  281. count: 1,
  282. skuId: id,
  283. }).then(res => {
  284. console.log('我进拉了', index, this.goodsRightList, )
  285. console.log(this.goodsRightList[index].selected_goods_num, 888)
  286. // this.$set(this.goodsRightList[index],'selected_goods_num')
  287. // this.goodsRightList[index].selected_goods_num++
  288. this.$set(this.goodsRightList[index], 'selected_goods_num', this.goodsRightList[index].selected_goods_num + 1);
  289. console.log(this.goodsRightList[index].selected_goods_num,'我是购物车的数量')
  290. // // 关闭 attr 组件
  291. // this.attr.cartAttr = false;
  292. // 提示成功
  293. this.$util.Tips({
  294. title: "添加购物车成功",
  295. success: () => {
  296. this.$refs.orderAddcart.getCartList()
  297. }
  298. });
  299. }).catch(res => {
  300. this.$util.Tips({
  301. title: res
  302. });
  303. });
  304. },
  305. CartNumDes: function(id) {
  306. console.log('我减少了',id,this.cartList)
  307. const index = this.cartList.findIndex(item => item.spu.id === id);
  308. this.$refs.orderAddcart.subCart(index)
  309. },
  310. CartNumAdd(id) {
  311. console.log('我增加了',id,this.cartList)
  312. const index = this.cartList.findIndex(item => item.spu.id === id);
  313. this.$refs.orderAddcart.addCart(index)
  314. },
  315. //显示购物车
  316. showShoppingCar(){
  317. // if(this.goodsTotalNumber == 0){
  318. // return;
  319. // }
  320. // this.footHeight = '100%';
  321. this.showCar = true;
  322. // this.carGoodsScrollTop = 0;
  323. },
  324. //隐藏购物车
  325. hideShoppingCar(){
  326. // this.footHeight = '0';
  327. this.$refs.orderAddcart.showCartList = false;
  328. // this.$refs.orderAddcart.footerswitch = true
  329. this.showMask=false
  330. },
  331. }
  332. }
  333. </script>
  334. <style scoped lang="scss">
  335. .cart-box{
  336. display: flex;
  337. justify-content: flex-start;
  338. flex-flow: column;
  339. background: #ffffff;
  340. position: absolute;
  341. bottom: 0;
  342. z-index: 8;
  343. max-height: 66%;
  344. padding-bottom: 48px;
  345. border-top-left-radius: 16px;
  346. border-top-right-radius: 16px;
  347. overflow: hidden;
  348. width: 100%;
  349. }
  350. .zz{
  351. position: absolute;
  352. top: 0;
  353. left: 0;
  354. right: 0;
  355. bottom: 0;
  356. background-color: rgba(0,0,0,.7);
  357. z-index: 1;
  358. }
  359. .productSort .header {
  360. width: 100%;
  361. height: 96rpx;
  362. background-color: #fff;
  363. position: fixed;
  364. left: 0;
  365. right: 0;
  366. top: 0;
  367. z-index: 9;
  368. border-bottom: 1rpx solid #f5f5f5;
  369. }
  370. .productSort .header .input {
  371. width: 700rpx;
  372. height: 60rpx;
  373. background-color: #f5f5f5;
  374. border-radius: 50rpx;
  375. box-sizing: border-box;
  376. padding: 0 25rpx;
  377. }
  378. .productSort .header .input .iconfont {
  379. font-size: 26rpx;
  380. color: #555;
  381. }
  382. .productSort .header .input .placeholder {
  383. color: #999;
  384. }
  385. .productSort .header .input input {
  386. font-size: 26rpx;
  387. height: 100%;
  388. width: 597rpx;
  389. }
  390. .productSort .aside {
  391. position: fixed;
  392. width: 180rpx;
  393. left: 0;
  394. top: 0;
  395. background-color: #f7f7f7;
  396. overflow-y: scroll;
  397. overflow-x: hidden;
  398. height: auto;
  399. /* #ifdef MP */
  400. margin-top: 96rpx;
  401. /* #endif */
  402. /* #ifdef APP-PLUS || H5 */
  403. margin-top: calc(96rpx + var(--status-bar-height));
  404. /* #endif */
  405. }
  406. .productSort .aside .item {
  407. height: 100rpx;
  408. width: 100%;
  409. font-size: 26rpx;
  410. color: #424242;
  411. }
  412. .productSort .aside .item.on {
  413. background-color: #fff;
  414. border-left: 4rpx solid #fc4141;
  415. width: 100%;
  416. text-align: center;
  417. color: #fc4141;
  418. font-weight: bold;
  419. }
  420. .productSort .conter {
  421. /* #ifdef MP */
  422. margin: 96rpx 0 0 180rpx;
  423. /* #endif */
  424. /* #ifdef APP-PLUS || H5 */
  425. margin: calc(96rpx + var(--status-bar-height)) 0 0 180rpx;
  426. /* #endif */
  427. padding: 0 14rpx;
  428. background-color: #fff;
  429. }
  430. .productSort .conter .listw {
  431. // padding-top: 20rpx;
  432. }
  433. .productSort .conter .listw .title {
  434. height: 90rpx;
  435. }
  436. .productSort .conter .listw .title .line {
  437. width: 100rpx;
  438. height: 2rpx;
  439. background-color: #f0f0f0;
  440. }
  441. .productSort .conter .listw .title .name {
  442. font-size: 28rpx;
  443. color: #333;
  444. margin: 0 30rpx;
  445. font-weight: bold;
  446. }
  447. .productSort .conter .list {
  448. flex-wrap: wrap;
  449. }
  450. .productSort .conter .list .item {
  451. // width: 177rpx;
  452. // margin-top: 26rpx;
  453. }
  454. .productSort .conter .list .item .picture {
  455. width: 120rpx;
  456. height: 120rpx;
  457. border-radius: 50%;
  458. }
  459. .productSort .conter .list .item .picture image {
  460. width: 100%;
  461. height: 100%;
  462. border-radius: 50%;
  463. div {
  464. background-color: #f7f7f7;
  465. }
  466. }
  467. .productSort .conter .list .item .name {
  468. font-size: 24rpx;
  469. color: #333;
  470. height: 56rpx;
  471. line-height: 56rpx;
  472. width: 120rpx;
  473. text-align: center;
  474. }
  475. .productSort .conter .listw .list {
  476. padding: 0 30rpx;
  477. }
  478. .productSort .conter .listw .list.on {
  479. border-radius: 14rpx;
  480. margin-top: 0 !important;
  481. background-color: #fff;
  482. padding: 40rpx 0 0 0;
  483. // margin: 20rpx 0;
  484. // background-color: #fff;
  485. }
  486. .productSort .conter .listw .list .item {
  487. // width: 335rpx;
  488. background-color: #fff;
  489. border-radius: 14rpx;
  490. margin-bottom: 20rpx;
  491. }
  492. .productSort .conter .listw .list .item.on {
  493. width: 100%;
  494. display: flex;
  495. padding: 0 0 50rpx 24rpx;
  496. margin: 0;
  497. border-radius: 14rpx;
  498. }
  499. .productSort .conter .listw .list .item .pictrue {
  500. position: relative;
  501. width: 100%;
  502. height: 335rpx;
  503. }
  504. .productSort .conter .listw .list .item .pictrue.on {
  505. width: 180rpx;
  506. height: 180rpx;
  507. }
  508. .productSort .conter .listw .list .item .pictrue image {
  509. width: 100%;
  510. height: 100%;
  511. border-radius: 20rpx 20rpx 0 0;
  512. }
  513. .productSort .conter .listw .list .item .pictrue image.on {
  514. border-radius: 6rpx;
  515. }
  516. .productSort .conter .listw .list .item .text {
  517. padding: 18rpx 20rpx;
  518. font-size: 30rpx;
  519. color: #222;
  520. }
  521. .productSort .conter .listw .list .item .text.on {
  522. // width: 456rpx;
  523. flex: 1;
  524. padding: 0 0 0 20rpx;
  525. }
  526. .productSort .conter .listw .list .item .text .money {
  527. width: 100%;
  528. font-size: 26rpx;
  529. font-weight: bold;
  530. margin-top: 8rpx;
  531. display: flex;
  532. align-items: center;
  533. justify-content: space-between;
  534. }
  535. .productSort .conter .listw .list .item .text .money.on {
  536. margin-top: 50rpx;
  537. }
  538. .productSort .conter .listw .list .item .text .money .num {
  539. font-size: 28rpx;
  540. }
  541. .productSort .conter .listw .list .item .text .money .carnum {
  542. // height: 54rpx;
  543. // margin-top: 24rpx;
  544. display: flex;
  545. align-items: center;
  546. }
  547. .productSort .conter .listw .list .item .text .money .carnum view {
  548. // border: 1px solid #a4a4a4;
  549. // width: 84rpx;
  550. text-align: center;
  551. height: 100%;
  552. line-height: 54rpx;
  553. color: #282828;
  554. font-size: 45rpx;
  555. margin-left: 10rpx;
  556. }
  557. .productSort .conter .listw .list .item .text .money .carnum .reduce {
  558. border-right: 0;
  559. border-radius: 6rpx 0 0 6rpx;
  560. line-height: 48rpx;
  561. }
  562. .productSort .conter .listw .list .item .text .money .carnum .reduce.on {
  563. // border-color: #e3e3e3;
  564. color: #DEDEDE;
  565. font-size: 44rpx;
  566. }
  567. .productSort .conter .listw .list .item .text .money .carnum .plus {
  568. border-left: 0;
  569. border-radius: 0 6rpx 6rpx 0;
  570. line-height: 46rpx;
  571. }
  572. .productSort .conter .listw .list .item .text .money .carnum .plus.on {
  573. border-color: #e3e3e3;
  574. color: #dedede;
  575. }
  576. .productSort .conter .listw .list .item .text .money .carnum .num {
  577. background: rgba(242, 242, 242, 1);
  578. color: #282828;
  579. font-size: 28rpx;
  580. border-radius: 12rpx;
  581. line-height: 29px;
  582. height: 54rpx;
  583. input {
  584. display: -webkit-inline-box;
  585. }
  586. }
  587. .productSort .conter .listw .list .item .text .money .circle {
  588. width: 40rpx;
  589. height: 40rpx;
  590. background-color: #E93323;
  591. border-radius: 50%;
  592. display: flex;
  593. justify-content: center;
  594. // align-items: center;
  595. color: white;
  596. font-size: 14px;
  597. }
  598. .productSort .conter .listw .list .item .text .vip {
  599. font-size: 22rpx;
  600. color: #aaa;
  601. margin-top: 7rpx;
  602. }
  603. .productSort .conter .listw .list .item .text .vip.on {
  604. margin-top: 12rpx;
  605. }
  606. .productSort .conter .listw .list .item .text .vip .vip-money {
  607. font-size: 24rpx;
  608. color: #282828;
  609. font-weight: bold;
  610. }
  611. .productSort .conter .listw .list .item .text .vip .vip-money image {
  612. width: 46rpx;
  613. height: 21rpx;
  614. margin-left: 4rpx;
  615. }
  616. .footer {
  617. z-index: 9;
  618. width: 100%;
  619. // height: 100rpx;
  620. // background-color: red;
  621. height: 100rpx;
  622. color: #fff;
  623. background-color: #313131;
  624. border-radius: 49rpx;
  625. position: fixed;
  626. padding: 0 24rpx;
  627. box-sizing: border-box;
  628. border-top: 1rpx solid #eee;
  629. // border-bottom: 1px solid #EEEEEE;
  630. /* #ifdef H5 */
  631. bottom: 98rpx;
  632. /* #endif */
  633. /* #ifdef MP */
  634. bottom: 0;
  635. /* #endif */
  636. /* #ifndef MP */
  637. // bottom: 98rpx;
  638. // bottom: calc(98rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  639. // bottom: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  640. /* #endif */
  641. }
  642. .footer .checkAll {
  643. font-size: 28rpx;
  644. color: #282828;
  645. margin-left: 14rpx;
  646. }
  647. .footer .money {
  648. font-size: 30rpx;
  649. color: #fff;
  650. width: 100%;
  651. display: flex;
  652. justify-content: space-between;
  653. }
  654. .footer .zz{
  655. position: absolute;
  656. top: 0;
  657. left: 0;
  658. right: 0;
  659. bottom: 0;
  660. background-color: rgba(0,0,0,.7);
  661. z-index: 1;
  662. }
  663. .footer .placeOrder {
  664. color: #fff;
  665. font-size: 30rpx;
  666. width: 226rpx;
  667. height: 70rpx;
  668. border-radius: 50rpx;
  669. text-align: center;
  670. line-height: 70rpx;
  671. margin-left: 22rpx;
  672. background-color: #EC3534;
  673. }
  674. .footer .button .bnt {
  675. font-size: 28rpx;
  676. color: #999;
  677. border-radius: 50rpx;
  678. border: 1px solid #999;
  679. width: 160rpx;
  680. height: 60rpx;
  681. text-align: center;
  682. line-height: 60rpx;
  683. }
  684. .footer .button form~form {
  685. margin-left: 17rpx;
  686. }
  687. </style>