product.vue 20 KB

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