product.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. <template>
  2. <view class="container">
  3. <!-- 轮播图 -->
  4. <top-swiper :imgList="imgList"></top-swiper>
  5. <!-- 标题 -->
  6. <product-content :goodsObjact="goodsObjact"></product-content>
  7. <view class="c-list">
  8. <view class="c-row b-b" @click="toggleSpec">
  9. <text class="tit">购买数量</text>
  10. <view class="con">
  11. <text class="selected-text">{{ goodsNumber }}</text>
  12. </view>
  13. <text class="iconfont iconenter"></text>
  14. </view>
  15. <!-- <view class="c-row b-b">
  16. <text>每购买一个送{{goodsObjact.give_integral}}响亮积分</text>
  17. </view> -->
  18. </view>
  19. <!-- 拼货时间及优惠 -->
  20. <!-- <discounts @clickCoupon="Getcoupon" :Info="goodsObjact.store_info" :showCoupon="true"></discounts> -->
  21. <!-- 猜你喜欢 -->
  22. <!-- <guess-like @Addcar='Addcar' @clickNavTo='navToDetailPage' :goodList = 'good_list||[]'></guess-like> -->
  23. <!-- 评价 -->
  24. <estimate @navTo="navTo('/pages/product/reply?id=' + goodsid)" v-if="reply" :reply="reply" :list="list"></estimate>
  25. <!-- 规格信息 -->
  26. <fresh-detail :goodsObjact="goodsObjact"></fresh-detail>
  27. <!-- 图文详情 -->
  28. <content-text :description="description"></content-text>
  29. <!-- 底部高度撑开 -->
  30. <view class="contentBottomHeight"></view>
  31. <!-- 底部操作菜单 -->
  32. <product-bottom @buy="buy" :goodsObjact="goodsObjact" :isVip='isVip' :goodsid="goodsid" @specOPne="specOPne"></product-bottom>
  33. <!-- 规格-模态层弹窗 -->
  34. <view class="popup spec" :class="specClass" @touchmove.stop.prevent="stopPrevent" @click="toggleSpec">
  35. <!-- 遮罩层 -->
  36. <view class="mask"></view>
  37. <view class="layer attr-content" @click.stop="stopPrevent">
  38. <view class="a-t">
  39. <image :src="actionImage"></image>
  40. <view class="right">
  41. <view class="good-name clamp">{{ goodsObjact.store_name }}</view>
  42. <text class="price">¥{{ actionPrice }}</text>
  43. <!-- <text class="stock">库存:{{ goodsObjact.stock }}件</text> -->
  44. <!-- <view class="selected" v-if="goodsType == 0">
  45. 已选:
  46. <text class="selected-text" v-for="(sItem, sIndex) in specSelected" :key="sIndex">{{ sItem }}</text>
  47. </view> -->
  48. </view>
  49. </view>
  50. <view v-for="(item, index) in specList" :key="index" class="attr-list">
  51. <text>{{ item.attr_name }}</text>
  52. <view class="item-list">
  53. <text
  54. v-for="(childItem, childIndex) in item.attr_value"
  55. :key="childIndex"
  56. class="tit"
  57. :class="{ selected: childItem.check }"
  58. @click="selectSpec(childItem, item, index)"
  59. >
  60. {{ childItem.attr }}
  61. </text>
  62. </view>
  63. </view>
  64. <view class="flex">
  65. <view>购买数量</view>
  66. <view class="item-list">
  67. <uni-number-box class="step" :isMin="true" :value="goodsNumber" :min="1" :max="goodsNumberMax" @eventChange="numberChange"></uni-number-box>
  68. </view>
  69. </view>
  70. <button class="btn" @click.stop="buy">确定</button>
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. import uniNumberBox from '@/components/uni-number-box.vue';
  77. import {browse, goodsDetail, cartAdd,seckillGoods } from '@/api/product.js';
  78. import { mapState } from 'vuex';
  79. import store from '@/store/index.js';
  80. import {spread, orderData, userinfo } from '@/api/user.js';
  81. import { saveUrl } from '@/utils/loginUtils.js';
  82. // #ifdef H5
  83. import { weixindata, shareLoad } from '@/utils/wxAuthorized';
  84. // #endif
  85. // 头部轮播图
  86. import topSwiper from './common/topSwiper.vue';
  87. // 标题
  88. import productContent from './common/productContent.vue';
  89. // 到货时间及优惠
  90. import discounts from './common/discounts.vue';
  91. // 规格信息
  92. import freshDetail from './common/freshDetail.vue';
  93. // 图文详情
  94. import contentText from './common/contentText.vue';
  95. // 底部按钮
  96. import productBottom from './common/productBottom.vue';
  97. // 猜你喜欢
  98. import guessLike from './common/guessLike.vue';
  99. // 评价
  100. import estimate from './common/estimate.vue';
  101. import {db} from '@/api/index.js';
  102. export default {
  103. components: {
  104. uniNumberBox,
  105. guessLike,
  106. topSwiper,
  107. productContent,
  108. discounts,
  109. freshDetail,
  110. contentText,
  111. productBottom,
  112. estimate
  113. },
  114. data() {
  115. return {
  116. goodsStore: 0, //选中库存
  117. specList: [],
  118. buys_show: true,
  119. buys_shows: false,
  120. specSelected: [], //选中的分类
  121. specClass: 'none', //显示隐藏弹窗
  122. many: 1, //1是单规格 2是多规格
  123. reply: '', //评论
  124. list: '', //商品详情的数据
  125. type: 1, //默认支付方式add为
  126. goodsType: 0,
  127. goodsNumber: 1, //购买数量
  128. goodsid: '', //商品id
  129. description: '', //商品描述
  130. goodsObjact: {
  131. percent: 1
  132. }, //保存商品数据
  133. //图片循环
  134. imgList: [],
  135. // 对比对象
  136. actionPrice: 0, //默认选中商品价格
  137. actionImage: '', //默认选中图片
  138. good_list: '', //猜你喜欢列表
  139. goodsNumberMax: 0, //最大可购买数量
  140. // 倒计时数据保存
  141. seckillObj: {
  142. stopTime: 0, //结束时间
  143. stop: false, //是否结束
  144. stopTimeH: 0, //小时
  145. stopTimeM: 0, //分钟
  146. stopTimeS: 0, //秒钟
  147. stopTimeD: 0, //天
  148. upTime: 0 //更新组件内部组件用
  149. },
  150. // 拼团数据保存
  151. pink: {
  152. id: '', //拼团编号
  153. uid: '', //用户编号
  154. people: '', //拼团人数
  155. price: '', //拼团价格
  156. stop_time: '', //拼团结束时间
  157. nickname: '', //团长昵称
  158. avatar: '', //团长头像
  159. count: '', //拼团剩余人数
  160. h: '', //时
  161. i: '', //分
  162. s: '' //秒
  163. },
  164. userInfo: '',
  165. isVip: '0'
  166. };
  167. },
  168. filters: {
  169. parseIntTo(percent) {
  170. percent = +percent * 100;
  171. if (percent % 1 === 0) {
  172. return percent;
  173. } else {
  174. percent = percent.toFixed(1);
  175. return percent;
  176. }
  177. }
  178. },
  179. async onLoad(options) {
  180. // let pages = getCurrentPages()
  181. // console.log(pages[pages.length-2].isDa = false,'pages');
  182. // console.log(this.options)
  183. let obj = this;
  184. userinfo({})
  185. .then(({ data }) => {
  186. obj.userInfo = data;
  187. console.log(data,"123456")
  188. })
  189. //保存商品id
  190. this.goodsid = options.id;
  191. this.goodsType = options.type;
  192. // 判断有无人邀请
  193. if (options.spread) {
  194. // 存储邀请人
  195. uni.setStorageSync('puid', options.spread);
  196. }
  197. if (options.isVip) {
  198. obj.isVip = options.isVip;
  199. console.log(options,'isVip')
  200. }
  201. console.log(obj.isVip, 'vip');
  202. saveUrl();
  203. this.goodsDetail();
  204. // 发送浏览记录
  205. this.liulan(options.id)
  206. // 注册邀请信息
  207. // #ifdef H5
  208. let bool = uni.getStorageSync('weichatBrowser') || '';
  209. if (bool) {
  210. weixindata();
  211. }
  212. // #endif
  213. },
  214. onShow: function() {
  215. let uid=uni.getStorageSync('puid');
  216. if(uid){
  217. spread({
  218. puid:uid
  219. }).then(res=>{
  220. console.log(res);
  221. })
  222. }
  223. },
  224. computed: {
  225. ...mapState(['weichatObj', 'baseURL', 'urlFile'])
  226. },
  227. methods: {
  228. // 发送浏览记录
  229. liulan(id){
  230. browse({id:id}).then(e =>{
  231. console.log(e)
  232. })
  233. },
  234. //收藏
  235. toFavorite(item) {
  236. let obj = this;
  237. item.userCollect = !item.userCollect;
  238. if (!item.userCollect) {
  239. collectDel({ id: obj.goodsid, category: 'product' }).then(function(e) {
  240. uni.showToast({
  241. title: '成功取消收藏',
  242. type: 'top',
  243. duration: 1500
  244. });
  245. });
  246. } else {
  247. collectAdd({ id: obj.goodsid, category: 'product' }).then(function(e) {
  248. uni.showToast({
  249. title: '成功加入收藏',
  250. type: 'top',
  251. duration: 1500
  252. });
  253. });
  254. }
  255. },
  256. //选择规格
  257. selectSpec(item, arr, ind) {
  258. arr.attr_value.forEach(function(e) {
  259. e.check = false;
  260. });
  261. item.check = true;
  262. let obj = this;
  263. obj.specSelected[ind] = item.attr;
  264. let str = obj.specSelected.join(',');
  265. // 获取当前选中的对象
  266. if (obj.productValue[str]) {
  267. obj.buys_show = true;
  268. obj.buys_shows = false;
  269. obj.actionPrice = obj.productValue[str].price;
  270. obj.goodsNumberMax = obj.productValue[str].stock;
  271. obj.actionImage = obj.productValue[str].image;
  272. obj.uniqueId = obj.productValue[str].unique;
  273. obj.goodsStore = obj.productValue[str].stock;
  274. } else {
  275. (obj.buys_show = false), (obj.buys_shows = true);
  276. }
  277. if (obj.goodsStore == 0) {
  278. obj.buys_show = false;
  279. obj.buys_shows = true;
  280. }
  281. obj.specSelected[ind] = item.attr;
  282. },
  283. // 打開彈窗
  284. specOPne(type = 1) {
  285. let obj = this;
  286. obj.specClass = 'show';
  287. obj.type = type;
  288. },
  289. //规格弹窗开关
  290. toggleSpec(str) {
  291. if (this.specClass === 'show') {
  292. this.specClass = 'hide';
  293. setTimeout(() => {
  294. this.specClass = 'none';
  295. }, 250);
  296. } else if (this.specClass === 'none') {
  297. this.specClass = 'show';
  298. }
  299. // 保存当前购买类型
  300. this.type = str;
  301. },
  302. //领取优惠券
  303. Getcoupon() {
  304. uni.navigateTo({
  305. url: '/pages/coupon/getcoupon'
  306. });
  307. },
  308. // 购买数量变化
  309. numberChange(e) {
  310. this.goodsNumber = e.number;
  311. },
  312. // #ifdef H5
  313. // 加载微信html5页面分享方法
  314. shareDate() {
  315. let obj = this;
  316. // 保存分享人id链接
  317. let url = window.location.href + '&spread=' + this.userInfo.uid;
  318. // 判断是否微信浏览器
  319. let bool = uni.getStorageSync('weichatBrowser') || '';
  320. if (bool) {
  321. // 过滤微信强制添加的链接地址
  322. url = url.replace(/[\?,&]from=singlemessage/g, '');
  323. let data = {
  324. link: url, // 分享链接
  325. imgUrl: obj.goodsObjact.image, // 分享图标
  326. desc: obj.goodsObjact.store_info,
  327. title: obj.goodsObjact.store_name,
  328. success: function(e) {
  329. console.log(e);
  330. }
  331. };
  332. console.log(data, '分享');
  333. shareLoad(data);
  334. }
  335. },
  336. // #endif
  337. //详情页
  338. navToDetailPage(item) {
  339. let id = item.id;
  340. uni.navigateTo({
  341. url: '/pages/product/product?id=' + id
  342. });
  343. },
  344. // 跳转页面
  345. navTo(url) {
  346. uni.navigateTo({
  347. url: '/pages/product/reply?id=' + this.goodsid
  348. });
  349. },
  350. //加入购物车
  351. Addcar(item) {
  352. let obj = this;
  353. cartAdd({
  354. cartNum: '1', //商品数量
  355. uniqueId: '', //商品标签
  356. new: 0, //商品是否新增加到购物车1为不加入0为加入
  357. mer_id: '',
  358. productId: item.id //商品编号
  359. })
  360. .then(function(e) {
  361. uni.showToast({
  362. title: '成功加入购物车',
  363. type: 'top',
  364. duration: 500,
  365. icon: 'none'
  366. });
  367. obj.goodsDetail();
  368. })
  369. .catch(e => {
  370. console.log(e);
  371. });
  372. },
  373. goodsDetail() {
  374. let obj = this;
  375. // 获取普通商品信息
  376. goodsDetail({}, this.goodsid).then(function({ data }) {
  377. obj.list = data;
  378. obj.good_list = data.good_list; //保存猜你喜欢列表
  379. obj.reply = data.reply; //保存评论列表
  380. let goods = data.storeInfo;
  381. obj.goodsObjact = goods;
  382. console.log(data.storeInfo,'基本商品');
  383. if (obj.goodsObjact.description != null) {
  384. obj.description = obj.goodsObjact.description.replace(/\<img/gi, '<img class="rich-img"');
  385. } //小程序商品详情图超出屏幕问题
  386. obj.imgList = goods.slider_image; //保存轮播图
  387. obj.specList = data.productAttr; //保存分类列表
  388. if (Array.isArray(data.productValue) != true) {
  389. obj.many = 2;
  390. obj.specList = data.productAttr; //保存产品属性
  391. obj.productValue = data.productValue; //保存属性值
  392. obj.specSelected = []; //初始化默认选择对象
  393. for (let i = 0; i < obj.specList.length; i++) {
  394. // 设置默认数据
  395. let attrValue = obj.specList[i].attr_value[0];
  396. attrValue.check = true;
  397. obj.specSelected.push(attrValue.attr);
  398. }
  399. let str = obj.specSelected.join(',');
  400. console.log(str, 'str');
  401. // 设置默认值
  402. obj.actionPrice = obj.productValue[str].price;
  403. obj.goodsNumberMax = obj.productValue[str].stock;
  404. obj.actionImage = obj.productValue[str].image;
  405. obj.uniqueId = obj.productValue[str].unique;
  406. obj.goodsStore = obj.productValue[str].quota;
  407. } else {
  408. obj.many = 1;
  409. obj.productValue = data.productValue; //保存分类查询数据
  410. obj.actionPrice = goods.price; //保存默认选中商品价格
  411. obj.actionImage = goods.image_base; //保存默认选中商品图片
  412. obj.goodsNumberMax = goods.stock; //保存默认选中最大可购买商品数量
  413. }
  414. obj.shopId = data.mer_id; //保存商店id
  415. // #ifdef H5
  416. obj.shareDate();
  417. // #endif
  418. });
  419. },
  420. // #ifdef H5
  421. // 加载微信html5页面分享方法
  422. shareDate() {
  423. let obj = this;
  424. // 保存分享人id链接
  425. let url = window.location.href + '&spread=' + this.userInfo.uid;
  426. // 判断是否微信浏览器
  427. let bool = uni.getStorageSync('weichatBrowser') || '';
  428. if (bool) {
  429. // 过滤微信强制添加的链接地址
  430. url = url.replace(/[\?,&]from=singlemessage/g, '');
  431. let data = {
  432. link: url, // 分享链接
  433. imgUrl: obj.goodsObjact.image, // 分享图标
  434. desc: obj.goodsObjact.store_info,
  435. title: obj.goodsObjact.store_name,
  436. success: function(e) {
  437. console.log(e);
  438. }
  439. };
  440. shareLoad(data);
  441. }
  442. },
  443. // #endif
  444. // 立即购买
  445. buy() {
  446. let obj = this;
  447. console.log(obj.userInfo);
  448. // 创建传值对象
  449. let data = {
  450. cartNum: obj.goodsNumber, //商品数量
  451. new: 1,
  452. productId: obj.goodsid, //商品编号
  453. uniqueId: obj.uniqueId
  454. };
  455. if (obj.type == 2) {
  456. data.new = 0;
  457. }
  458. cartAdd(data)
  459. .then(function(e) {
  460. let da = e.data;
  461. if (obj.type == 1) {
  462. // 跳转到支付页
  463. uni.navigateTo({
  464. url: '/pages/order/createOrder?id=' + da.cartId+'&isVip='+obj.isVip
  465. });
  466. }
  467. if (obj.type == 2) {
  468. uni.showToast({
  469. title: '成功加入购物车',
  470. type: 'top',
  471. duration: 2000,
  472. icon: 'none'
  473. });
  474. obj.goodsDetail();
  475. }
  476. obj.toggleSpec();
  477. })
  478. .catch(e => {
  479. console.log(e);
  480. });
  481. },
  482. buy1() {
  483. let obj = this;
  484. let data = {
  485. cartNum: obj.goodsNumber, //商品数量
  486. new: 1,
  487. productId: obj.goodsid, //商品编号
  488. uniqueId: obj.uniqueId
  489. };
  490. if (obj.type == 2) {
  491. data.new = 0;
  492. }
  493. cartAdd(data)
  494. .then(function(e) {
  495. let da = e.data;
  496. if (obj.type == 1) {
  497. // 跳转到支付页
  498. uni.navigateTo({
  499. url: '/pages/order/createOrder?id=' + da.cartId
  500. });
  501. }
  502. if (obj.type == 2) {
  503. uni.showToast({
  504. title: '成功加入购物车',
  505. type: 'top',
  506. duration: 2000,
  507. icon: 'none'
  508. });
  509. obj.goodsDetail();
  510. }
  511. obj.toggleSpec();
  512. })
  513. .catch(e => {
  514. console.log(e);
  515. });
  516. },
  517. // 阻止触发上级事件
  518. stopPrevent() {}
  519. }
  520. };
  521. </script>
  522. <style lang="scss">
  523. p {
  524. display: block;
  525. margin-block-start: 0px;
  526. margin-block-end: 0px;
  527. margin-inline-start: 0px;
  528. margin-inline-end: 0px;
  529. }
  530. /* 弹出层 */
  531. .popup {
  532. position: fixed;
  533. left: 0;
  534. top: 0;
  535. right: 0;
  536. bottom: 0;
  537. z-index: 99;
  538. &.show {
  539. display: block;
  540. .mask {
  541. animation: showPopup 0.2s linear both;
  542. }
  543. .layer {
  544. animation: showLayer 0.2s linear both;
  545. }
  546. }
  547. &.hide {
  548. .mask {
  549. animation: hidePopup 0.2s linear both;
  550. }
  551. .layer {
  552. animation: hideLayer 0.2s linear both;
  553. }
  554. }
  555. &.none {
  556. display: none;
  557. }
  558. .mask {
  559. position: fixed;
  560. top: 0;
  561. width: 100%;
  562. height: 100%;
  563. z-index: 1;
  564. background-color: rgba(0, 0, 0, 0.4);
  565. }
  566. .layer {
  567. position: fixed;
  568. z-index: 99;
  569. bottom: 0;
  570. width: 100%;
  571. min-height: 30vh;
  572. border-radius: 10rpx 10rpx 0 0;
  573. background-color: #fff;
  574. .btn {
  575. height: 66rpx;
  576. line-height: 66rpx;
  577. border-radius: 100rpx;
  578. // background: $uni-color-primary;
  579. background: #FF4C4C;
  580. font-size: $font-base + 2rpx;
  581. color: #fff;
  582. margin: 30rpx auto 20rpx;
  583. }
  584. }
  585. @keyframes showPopup {
  586. 0% {
  587. opacity: 0;
  588. }
  589. 100% {
  590. opacity: 1;
  591. }
  592. }
  593. @keyframes hidePopup {
  594. 0% {
  595. opacity: 1;
  596. }
  597. 100% {
  598. opacity: 0;
  599. }
  600. }
  601. @keyframes showLayer {
  602. 0% {
  603. transform: translateY(120%);
  604. }
  605. 100% {
  606. transform: translateY(0%);
  607. }
  608. }
  609. @keyframes hideLayer {
  610. 0% {
  611. transform: translateY(0);
  612. }
  613. 100% {
  614. transform: translateY(120%);
  615. }
  616. }
  617. }
  618. /* 规格选择弹窗 */
  619. .attr-content {
  620. padding: 10rpx 30rpx;
  621. .a-t {
  622. display: flex;
  623. image {
  624. width: 170rpx;
  625. height: 170rpx;
  626. flex-shrink: 0;
  627. border-radius: 8rpx;
  628. }
  629. .right {
  630. display: flex;
  631. flex-direction: column;
  632. padding-left: 24rpx;
  633. font-size: $font-sm + 2rpx;
  634. color: $font-color-base;
  635. line-height: 42rpx;
  636. .good-name {
  637. padding-top: 20rpx;
  638. max-width: 320rpx;
  639. font-size: 30rpx;
  640. font-family: PingFang SC;
  641. font-weight: bold;
  642. color: #1d2023;
  643. line-height: 42rpx;
  644. margin-bottom: 15rpx;
  645. }
  646. .price {
  647. font-size: 60rpx;
  648. font-family: PingFang SC;
  649. font-weight: bold;
  650. color: #ff6f0f;
  651. // font-size: $font-lg;
  652. // color: $uni-color-primary;
  653. // margin-bottom: 10rpx;
  654. }
  655. .selected-text {
  656. margin-right: 10rpx;
  657. }
  658. }
  659. }
  660. .attr-list {
  661. display: flex;
  662. flex-direction: column;
  663. font-size: $font-base + 2rpx;
  664. color: $font-color-base;
  665. padding-top: 30rpx;
  666. padding-left: 10rpx;
  667. }
  668. .item-list {
  669. padding: 20rpx 0 0;
  670. display: flex;
  671. flex-wrap: wrap;
  672. .tit {
  673. display: flex;
  674. align-items: center;
  675. justify-content: center;
  676. background: #eee;
  677. // margin-left: 10rpx;
  678. margin-right: 20rpx;
  679. margin-bottom: 20rpx;
  680. border-radius: 100rpx;
  681. min-width: 60rpx;
  682. height: 60rpx;
  683. padding: 0 20rpx;
  684. font-size: $font-base;
  685. color: $font-color-dark;
  686. }
  687. .selected {
  688. background: #FCEFF1;
  689. border: 1px solid #EF041F;
  690. color: #EF041F;
  691. }
  692. }
  693. }
  694. //默认商品底部高度
  695. .goodsBottom {
  696. height: 160rpx;
  697. }
  698. page {
  699. background: #f0f0f0;
  700. }
  701. //秒杀、拼团底部高度
  702. .contentBottomHeight {
  703. height: 110rpx;
  704. }
  705. //默认商品底部高度
  706. .goodsBottom {
  707. height: 160rpx;
  708. }
  709. /deep/ .iconenter {
  710. font-size: $font-base + 2rpx;
  711. color: #888;
  712. }
  713. /deep/ .con_image {
  714. width: 130rpx;
  715. height: 130rpx;
  716. display: inline-block;
  717. padding: 15rpx;
  718. image {
  719. width: 100%;
  720. height: 100%;
  721. }
  722. }
  723. /* 商品详情中限制图片大小 */
  724. /deep/ .rich-img {
  725. width: 100% !important;
  726. height: auto;
  727. }
  728. .c-list {
  729. margin-top: 20rpx;
  730. font-size: $font-sm + 2rpx;
  731. color: $font-color-base;
  732. background: #fff;
  733. .c-row {
  734. display: flex;
  735. align-items: center;
  736. padding: 20rpx 30rpx;
  737. position: relative;
  738. }
  739. .tit {
  740. width: 140rpx;
  741. }
  742. .con {
  743. flex: 1;
  744. color: $font-color-dark;
  745. .selected-text {
  746. margin-right: 10rpx;
  747. }
  748. }
  749. .bz-list {
  750. height: 40rpx;
  751. font-size: $font-sm + 2rpx;
  752. color: $font-color-dark;
  753. text {
  754. display: inline-block;
  755. margin-right: 30rpx;
  756. }
  757. }
  758. .con-list {
  759. flex: 1;
  760. display: flex;
  761. flex-direction: column;
  762. color: $font-color-dark;
  763. line-height: 40rpx;
  764. }
  765. .red {
  766. color: $uni-color-primary;
  767. }
  768. }
  769. </style>