goods_cate.vue 18 KB

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