goods.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <template>
  2. <app-layout>
  3. <view v-if="!goods" class="u-goods-detail"></view>
  4. <template v-if="goods">
  5. <!--商品轮播图-->
  6. <app-goods-banner
  7. :pic-list="goods.pic_url"
  8. :share="goods.share"
  9. :goods_id="id"
  10. sign="mch"
  11. :video-url="goods.video_url"
  12. ></app-goods-banner>
  13. <view>
  14. <bd-info
  15. :theme="getTheme"
  16. :name="goods.name"
  17. :subtitle="goods.subtitle"
  18. :level-show="goods.level_show"
  19. :flash-sale="flash_sale"
  20. :price="goods.price"
  21. :original-price="goods.original_price"
  22. :price-max="goods.price_max"
  23. :price-min="goods.price_min"
  24. :price-member-max="goods.price_member_max"
  25. :price-member-min="goods.price_member_min"
  26. :sales="goods.sales"
  27. :unit="goods.unit"
  28. :is-sales="goods.is_sales"
  29. :goods-id="goods.id"
  30. :extra-quick-share="goods.extra_quick_share"
  31. :app-share-pic="goods.app_share_pic"
  32. :app-share-title="goods.app_share_title"
  33. :poster-config="poster_config + `&goods_id=` + goods.id + `&mch_id=` + goods.mch_id"
  34. :poster-generate="poster_generate + `&goods_id=` + goods.id + `&mch_id=` + goods.mch_id"
  35. :has-poster-nav="true"
  36. :share-url="poster + `&goods_id=` + goods.id + `&mch_id=` + goods.mch_id"
  37. v-bind:goods="goods"
  38. @share="hShareAppMessage"
  39. :limit-buy="goods.limit_buy"
  40. :min-number="goods.min_number"
  41. ></bd-info>
  42. </view>
  43. <template v-if="mch_store">
  44. <view class="shop-info dir-left-nowrap cross-center" :clas="mch_store.distance ? 'shop-info-2' : 'shop-info-1'">
  45. <image @click="navShop" class="box-grow-0" :src="mch_store.store.cover_url"></image>
  46. <view @click="navShop" class="dir-top-nowrap box-grow-1">
  47. <view class="store-name t-omit">{{mch_store.store.name}}</view>
  48. <view class="dir-left-nowrap">
  49. <view class="store-num">商品数量: {{mch_store.goods_count}}</view>
  50. <view>已售: {{mch_store.order_goods_count}}</view>
  51. </view>
  52. </view>
  53. <view class="box-grow-0">
  54. <view @click="navService" v-if="mch_setting.is_web_service"
  55. class="contain main-center cross-center dir-top-nowrap">
  56. <image class="store-icon-contain"
  57. :src="mch_setting.web_service_pic ? mch_setting.web_service_pic : `../image/goods-contact.png`"></image>
  58. <view class="store-contain">客服</view>
  59. </view>
  60. <view v-else class="main-center store-btn">
  61. <view class="shop-btn" @click="navShop">进店逛逛</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view v-if="mch_store.distance" class="shop-address dir-left-nowrap cross-top">
  66. <view class="dir-top-nowrap box-grow-1">
  67. <view class="address">{{mch_store.store.address}}</view>
  68. <view class="km">距离{{mch_store.distance}}</view>
  69. </view>
  70. <view @click="navMap" class="box-grow-0 icon-address main-center">
  71. <image src="../image/summary-address.png"></image>
  72. </view>
  73. </view>
  74. </template>
  75. <bd-xbc
  76. :coAttr="is_open"
  77. :attr-list="selectAttr && selectAttr.attr_list"
  78. :type="goods.type"
  79. :guarantee-title="goods.guarantee_title"
  80. :guarantee-pic="goods.guarantee_pic"
  81. :param_content="param_content"
  82. :param_name="goods.param_name"
  83. :services="goods.services"
  84. :attr-groups="goods.attr_groups"
  85. :goods-stock="goods.goods_stock"
  86. @openAttr="clickAttr()"
  87. ></bd-xbc>
  88. <bd-hc
  89. :integral="goods.goods_marketing_award.integral"
  90. :coupon="goods.goods_marketing_award.coupon"
  91. :card="goods.goods_marketing_award.card"
  92. :balance="goods.goods_marketing_award.balance"
  93. :theme="getTheme"
  94. ></bd-hc>
  95. <bd-kb
  96. :limit="goods.goods_marketing.limit"
  97. :express="goods.express"
  98. :shipping="goods.goods_marketing.shipping"
  99. :pickup="goods.goods_marketing.pickup"
  100. ></bd-kb>
  101. <bd-comments :goods-id="goods.id"></bd-comments>
  102. <bd-detail :detail="goods.detail"></bd-detail>
  103. <!--相关推荐-->
  104. <view class="recommend">
  105. <view class="recommend-title dir-left-nowrap main-center">
  106. <view class="dir-left-nowrap cross-center">
  107. <view class="border"></view>
  108. <image src="../../../static/image/icon/icon-favorite.png"></image>
  109. <view style="color: #353535;">您或许喜欢</view>
  110. <view class="border"></view>
  111. </view>
  112. </view>
  113. <view class="recommend-list">
  114. <u-ordinary-list :is-under-line-price="isListUnderlinePrice == 1 ? true : false" :isShowAttr="true" :list="recommend_list" :theme="getTheme" :list-style="2"></u-ordinary-list>
  115. </view>
  116. </view>
  117. <!-- 底部空格 -->
  118. <view class="safe-area-inset-bottom">
  119. <view class="u-bottom-height" :class="[uBottomHeight]"></view>
  120. </view>
  121. <!-- 底部按钮 -->
  122. <view v-if="is_open == 1" class="safe-area-inset-bottom u-bottom-fixed">
  123. <view v-if="full_reduce">
  124. <app-goods-full-reduce
  125. :theme="getTheme"
  126. :full_reduce="full_reduce"
  127. >
  128. </app-goods-full-reduce>
  129. </view>
  130. <view v-if="goods.sell_time > 0">
  131. <app-sell-tip :time="goods.sell_time" @changeTime="changeTime"></app-sell-tip>
  132. </view>
  133. <view class="bd-bottom dir-left-nowrap" >
  134. <view class="bd-back dir-top-nowrap main-center cross-center box-grow-0" @click="navShop">
  135. <image class="bd-icon" src="../../../static/image/icon/icon-mch.png"></image>
  136. <text>店铺</text>
  137. </view>
  138. <view class="bd-back dir-top-nowrap main-center cross-center box-grow-0" @click="back">
  139. <image class="bd-icon" src="../../../static/image/icon/index.png"></image>
  140. <text>首页</text>
  141. </view>
  142. <view class="bd-back dir-top-nowrap main-center cross-center box-grow-0" @click="favorite">
  143. <image class="bd-icon" :src="goods.favorite ? '../../../static/image/icon/icon-favorite-active.png' : '../../../static/image/icon/icon-favorite.png'"></image>
  144. <text>收藏</text>
  145. </view>
  146. <view class="box-grow-1 dir-left-nowrap">
  147. <template v-if="goods.goods_stock > 0 && !goods.is_finish_sell">
  148. <view class="bd-button"
  149. :class="[leftTip]"
  150. :style="{'background': !goods || goods.buy_goods_auth ? getTheme.background_s_gradient_btn : '#999999','color': !goods || goods.buy_goods_auth ? getTheme.secondary_text : ''}"
  151. @click="clickAttr">
  152. 加入购物车
  153. </view>
  154. <view class="bd-button" v-if="!(isTip == 0 && goods.sell_time > 0)">
  155. <app-jump-button form>
  156. <view
  157. :style="{'background': goods.buy_goods_auth ? getTheme.background_gradient_btn : '#999999','color': goods.buy_goods_auth ? getTheme.main_text : '', 'width': '100%'}"
  158. class="bd-btn-right box-grow-1" @click="buyClick"
  159. >{{rightRemindText}}
  160. </view>
  161. </app-jump-button>
  162. </view>
  163. </template>
  164. <view v-else class="bd-btn" :class="[disableBtn]">{{goods.is_finish_sell ? '商品已下架' : '已售罄'}}</view>
  165. </view>
  166. </view>
  167. </view>
  168. <u-attr
  169. v-model="attrShow"
  170. :goods="goods"
  171. :theme="getTheme"
  172. :checked="selectAttr"
  173. @check="onAttr"
  174. >
  175. </u-attr>
  176. </template>
  177. <app-close v-if="showClose" :mch_id="mch_id" :modal="false" @update="getMall"></app-close>
  178. </app-layout>
  179. </template>
  180. <script>
  181. import {mapGetters, mapState} from "vuex";
  182. import appGoodsBanner from "@/components/page-component/goods/app-goods-banner.vue";
  183. import appGoodsFullReduce from "@/components/page-component/goods/app-goods-full-reduce";
  184. import uOrdinaryList from '@/components/page-component/u-goods-list/u-ordinary-list.vue';
  185. import uAttr from '@/components/page-component/goods/u-attr.vue';
  186. import bdInfo from '@/components/page-component/goods/bd-info';
  187. import bdXbc from '@/components/page-component/goods/bd-xbc.vue';
  188. import bdKb from '@/components/page-component/goods/bd-kb.vue';
  189. import bdHc from '@/components/page-component/goods/bd-hc.vue';
  190. import bdDetail from '@/components/page-component/goods/bd-detail.vue';
  191. import bdComments from '@/components/page-component/goods/bd-comments.vue';
  192. import appClose from '@/components/basic-component/app-close/app-close.vue';
  193. import appSellTip from '@/components/page-component/goods/app-sell-tip.vue';
  194. import goodsMixin from '@/core/goods-mixin.js';
  195. export default {
  196. name: "goods",
  197. mixins: [goodsMixin],
  198. components: {
  199. appGoodsBanner,
  200. uOrdinaryList,
  201. uAttr,
  202. appGoodsFullReduce,
  203. bdInfo,
  204. bdXbc,
  205. bdKb,
  206. bdHc,
  207. bdDetail,
  208. bdComments,
  209. appClose,
  210. appSellTip
  211. },
  212. data() {
  213. return {
  214. showClose: false,
  215. is_open: 0,
  216. goods: null,
  217. full_reduce: null,
  218. selectAttr: null,
  219. recommend_list: null,
  220. attrShow: false,
  221. id: 0,
  222. mch_id: 0,
  223. mch_store: null,
  224. mch_setting: null,
  225. flash_sale: null,
  226. poster: this.$api.mch.poster,
  227. poster_config: this.$api.mch.poster_config,
  228. poster_generate: this.$api.mch.poster_generate,
  229. param_content: [],
  230. disable: 'disable'
  231. };
  232. },
  233. computed: {
  234. ...mapState({
  235. mall: state => state.mallConfig.mall,
  236. isListUnderlinePrice: state => state.mallConfig.mall.setting.is_list_underline_price,
  237. isTip: state => state.mallConfig.mall.setting.is_remind_sell_time
  238. }),
  239. ...mapState('gConfig', {
  240. iphone: (data) => {
  241. return data.iphone;
  242. },
  243. iphoneHeight: (state) => {
  244. return state.iphoneHeight;
  245. },
  246. }),
  247. ...mapGetters('mallConfig', {
  248. getTheme: 'getTheme',
  249. }),
  250. uBottomHeight() {
  251. if (this.full_reduce && this.goods && this.goods.sell_time > 0) {
  252. return 'u-bottom-height-2';
  253. } else if (this.full_reduce || (this.goods && this.goods.sell_time > 0)) {
  254. return 'u-bottom-height-1';
  255. } else {
  256. return 'u-bottom-height-0';
  257. }
  258. },
  259. leftTip() {
  260. let leftTip = '';
  261. if (!(this.isTip == 0 && this.goods && this.goods.sell_time > 0)) {
  262. leftTip = 'bd-btn-left';
  263. } else {
  264. leftTip = 'box-grow-1';
  265. }
  266. return leftTip;
  267. },
  268. disableBtn() {
  269. return this.goods && this.goods.is_finish_sell ? 'btn-finish-sell' : 'bd-oversell-btn';
  270. },
  271. remindParams() {
  272. if (!this.goods) {
  273. return {};
  274. }
  275. return {
  276. sell_time: this.goods.sell_time,
  277. goods_id: this.goods.id,
  278. template_message_list: this.goods.template_message_list,
  279. buy_text: '立即购买'
  280. };
  281. },
  282. },
  283. onLoad(options) { this.$commonLoad.onload(options);
  284. [this.mch_id, this.id] = [options.mch_id, options.id];
  285. this.getAddress();
  286. this.loadRecommend();
  287. // #ifdef MP-WEIXIN
  288. wx.showShareMenu({
  289. withShareTicket: true,
  290. menus: ['shareAppMessage', 'shareTimeline']
  291. })
  292. // #endif
  293. },
  294. onShow() {
  295. this.showClose = false;
  296. setTimeout(()=>{
  297. this.showClose = true;
  298. })
  299. },
  300. // #ifdef MP-WEIXIN
  301. onShareTimeline() {
  302. return this.$shareTimeline({
  303. title: this.goods.app_share_title ? this.goods.app_share_title : this.goods.name,
  304. query: {
  305. id: this.id,
  306. mch_id: this.mch_id,
  307. }
  308. });
  309. },
  310. // #endif
  311. // #ifdef MP
  312. onShareAppMessage() {
  313. return this.hShareAppMessage();
  314. },
  315. // #endif
  316. methods: {
  317. hShareAppMessage(s = false){
  318. return this.$shareAppMessage({
  319. title: this.goods.app_share_title ? this.goods.app_share_title : this.goods.name,
  320. imageUrl: this.goods.app_share_pic ? this.goods.app_share_pic : this.goods.pic_url[0].pic_url,
  321. path: '/plugins/mch/goods/goods',
  322. desc: this.goods.subtitle,
  323. params: {
  324. id: this.id,
  325. mch_id: this.mch_id,
  326. }
  327. }, s);
  328. },
  329. getMall(e) {
  330. this.is_open = e.is_open;
  331. },
  332. // setCoupon(index) {
  333. // this.$set(this.goods.goods_coupon_center[index], 'is_receive', 1);
  334. // },
  335. getAddress() {
  336. const self = this;
  337. uni.getLocation({
  338. type: 'wgs84',
  339. success(res) {
  340. self.getMch(res.latitude, res.longitude);
  341. },
  342. fail(e) {
  343. self.getMch(0, 0);
  344. }
  345. });
  346. },
  347. getMch(latitude, longitude) {
  348. const self = this;
  349. self.$showLoading();
  350. self.$request({
  351. url: self.$api.mch.detail,
  352. data: {
  353. id: self.mch_id,
  354. latitude: latitude,
  355. longitude: longitude,
  356. }
  357. }).then(info => {
  358. self.$hideLoading();
  359. if (info.code === 0) {
  360. [self.mch_store, self.mch_setting] = [info.data.detail, info.data.mchSetting];
  361. self.getDetail();
  362. } else {
  363. uni.showModal({
  364. title: '提示',
  365. content: info.msg,
  366. showCancel: false,
  367. success: function (e) {
  368. if (e.confirm) {
  369. uni.navigateBack({delta: 1});
  370. }
  371. }
  372. });
  373. }
  374. }).catch(() => {
  375. self.$hideLoading();
  376. })
  377. },
  378. getDetail() {
  379. this.$showLoading();
  380. this.$request({
  381. url: this.$api.mch.goods_detail,
  382. data: {
  383. id: this.id,
  384. mch_id: this.mch_id
  385. }
  386. }).then(e => {
  387. this.$hideLoading();
  388. if (e.code === 0) {
  389. let { goods_activity } = e.data.detail;
  390. this.goods = e.data.detail;
  391. // #ifdef H5
  392. this.hShareAppMessage();
  393. // #endif
  394. let { param_content } = e.data.detail;
  395. this.param_content = param_content;
  396. if (goods_activity) {
  397. this.full_reduce = goods_activity.full_reduce;
  398. }
  399. } else {
  400. uni.showModal({
  401. title: '提示',
  402. content: e.msg,
  403. showCancel: false
  404. });
  405. }
  406. }).catch(() => {
  407. this.$hideLoading();
  408. });
  409. },
  410. loadRecommend() {
  411. const self = this;
  412. self.$request({
  413. url: self.$api.goods.new_recommend,
  414. data: {
  415. goods_id: self.id,
  416. },
  417. method: 'get'
  418. }).then(info => {
  419. if (info.code === 0) {
  420. this.recommend_list = info.data.list;
  421. }
  422. });
  423. },
  424. navMap() {
  425. uni.openLocation({
  426. latitude: parseFloat(this.mch_store.store.latitude),
  427. longitude: parseFloat(this.mch_store.store.longitude),
  428. name: this.mch_store.store.name,
  429. address: this.mch_store.store.address,
  430. })
  431. },
  432. onAttr({item}) {
  433. this.selectAttr = item;
  434. },
  435. navService() {
  436. uni.navigateTo({url: `/pages/web/web?url=` + this.mch_setting.web_service_url});
  437. },
  438. navShop() {
  439. uni.redirectTo({url: `/plugins/mch/shop/shop?mch_id=` + this.mch_id});
  440. },
  441. back() {
  442. uni.redirectTo({
  443. url: '/pages/index/index'
  444. });
  445. },
  446. favorite() {
  447. this.goods.favorite ? this.goods.favorite = false : this.goods.favorite = true;
  448. this.$request({
  449. url: !this.goods.favorite ? this.$api.user.favorite_remove : this.$api.user.favorite_add,
  450. data: {
  451. goods_id: this.goods.id,
  452. }
  453. }).then(e => {
  454. if (e.code !== 0) {
  455. uni.showModal({
  456. title: '提示',
  457. content: e.msg,
  458. showCancel: false
  459. });
  460. }
  461. });
  462. },
  463. clickAttr() {
  464. if (!this.goods.buy_goods_auth) {
  465. uni.showToast({
  466. title: '您暂无权限购买该商品',
  467. icon: 'none'
  468. });
  469. return;
  470. }
  471. if (this.goods.type === 'ecard') {
  472. uni.showToast({
  473. title: '虚拟商品不允许加入购物车',
  474. icon: 'none'
  475. });
  476. return;
  477. }
  478. this.attrShow = true;
  479. },
  480. changeTime(time) {
  481. this.goods.sell_time = time;
  482. },
  483. buyClick() {
  484. if (this.goods.sell_time > 0) {
  485. this.rightTip();
  486. } else{
  487. this.clickAttr();
  488. }
  489. },
  490. },
  491. }
  492. </script>
  493. <style scoped lang="scss">
  494. .goods-name {
  495. padding: #{24rpx};
  496. background-color: #ffffff;
  497. color: $uni-important-color-black;
  498. }
  499. .goods-subtitle {
  500. padding: #{24rpx};
  501. padding-top: 0;
  502. font-size: 24rpx;
  503. background-color: #ffffff;
  504. color: #999999;
  505. }
  506. .attr {
  507. padding: #{24rpx} 0;
  508. background-color: #f7f7f7;
  509. }
  510. .recommend {
  511. .recommend-title {
  512. margin: #{40rpx} 0 #{32rpx} 0;
  513. font-size: $uni-font-size-weak-one;
  514. color: $uni-general-color-two;
  515. .border {
  516. border-top: #{1rpx} solid #bbbbbb;
  517. height: 0;
  518. width: #{40rpx};
  519. margin: 0 #{24rpx};
  520. }
  521. image {
  522. width: #{24rpx};
  523. height: #{24rpx};
  524. display: block;
  525. margin-right: #{12rpx};
  526. }
  527. }
  528. }
  529. .shop-btn {
  530. height: #{64rpx};
  531. border: #{1px} solid #cdcdcd;
  532. color: #666666;
  533. background: #FFFFFF;
  534. width: #{146rpx};
  535. line-height: #{64rpx};
  536. border-radius: #{32rpx};
  537. text-align: center;
  538. }
  539. .bd-bottom {
  540. height: 110upx;
  541. width: 750upx;
  542. padding: 20upx 24upx;
  543. }
  544. .bd-back {
  545. width: 66upx;
  546. height: 100%;
  547. margin-right: 20upx;
  548. font-size: 20upx;
  549. color: #888888;
  550. }
  551. .bd-icon {
  552. width: 30upx;
  553. height: 30upx;
  554. }
  555. .bd-button {
  556. text-align: center;
  557. line-height: 70upx;
  558. font-size: 26upx;
  559. border-radius: 35upx;
  560. width: 50%;
  561. }
  562. .bd-btn-left {
  563. border-top-right-radius: 0;
  564. border-bottom-right-radius: 0;
  565. }
  566. .bd-btn-right {
  567. border-top-left-radius: 0;
  568. border-bottom-left-radius: 0;
  569. border-top-right-radius: 35upx;
  570. border-bottom-right-radius: 35upx;
  571. color: #ffffff;
  572. }
  573. .bd-btn {
  574. color: #ffffff;
  575. width: 100%;
  576. text-align: center;
  577. line-height: 70upx;
  578. font-size: 26upx;
  579. border-radius: 35upx;
  580. }
  581. .comments {
  582. margin-bottom: #{20rpx};
  583. background-color: #ffffff;
  584. }
  585. .detail {
  586. background-color: #ffffff;
  587. image {
  588. width: 100%;
  589. height: #{80rpx};
  590. display: block;
  591. }
  592. }
  593. .shop-info-1 {
  594. border-radius: 15upx;
  595. }
  596. .shop-info-2 {
  597. border-radius: 15upx 15upx 0 0;
  598. }
  599. .shop-info {
  600. height: #{124rpx};
  601. color: #999999;
  602. font-size: #{24rpx};
  603. background: #FFFFFF;
  604. width: 702upx;
  605. margin: 24upx 24upx 0 24upx;
  606. > image {
  607. border-radius: #{8rpx};
  608. margin: 0 #{20rpx};
  609. height: #{80rpx};
  610. width: #{80rpx}
  611. }
  612. .store-name {
  613. line-height: 1.5em;
  614. font-size: #{32rpx};
  615. color: #353535;
  616. margin-bottom: #{16rpx};
  617. }
  618. .store-num {
  619. margin-right: #{32rpx};
  620. }
  621. .contain {
  622. width: #{152rpx};
  623. height: 100%;
  624. image {
  625. height: #{40rpx};
  626. width: #{40rpx};
  627. display: block;
  628. }
  629. view {
  630. margin-top: #{8rpx};
  631. }
  632. }
  633. .store-btn {
  634. margin: 0 #{20rpx};
  635. }
  636. }
  637. .shop-address {
  638. width: 702rpx;
  639. margin: 0 24upx 24upx 24upx;
  640. padding: 20upx;
  641. font-size: #{24rpx};
  642. background: #FFFFFF;
  643. border-radius: 0 0 15upx 15upx;
  644. .address {
  645. color: #666666;
  646. max-height: #{560rpx};
  647. }
  648. .km {
  649. color: #999999;
  650. margin-top:#{10rpx};
  651. }
  652. .icon-address {
  653. width: #{120rpx};
  654. border-left: 1px solid #e2e2e2;
  655. }
  656. image {
  657. height: #{32rpx};
  658. width: #{32rpx};
  659. display: block;
  660. }
  661. }
  662. .text {
  663. color: #ffffff;
  664. }
  665. .goods-margin {
  666. margin-top: 20upx;
  667. }
  668. .u-bottom-height-0 {
  669. height: 110upx;
  670. }
  671. .u-bottom-height-1 {
  672. height: 190upx;
  673. }
  674. .u-bottom-fixed {
  675. position: fixed;
  676. bottom: 0;
  677. left: 0;
  678. width: 100%;
  679. z-index: 1602;
  680. background-color: #ffffff;
  681. box-shadow: 0 -1rpx 20rpx -15rpx #353535;
  682. }
  683. .bd-oversell-btn {
  684. background-color: #CDCDCD;
  685. }
  686. .btn-finish-sell {
  687. background: linear-gradient(to right, rgba(153, 153, 153, 1), rgba(153, 153, 153, 0.7)) ;
  688. }
  689. .u-bottom-height-2 {
  690. height: 270upx;
  691. }
  692. .bd-oversell-btn {
  693. background-color: #CDCDCD;
  694. }
  695. </style>