product.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  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">
  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. if (obj.goodsObjact.description != null) {
  380. obj.description = obj.goodsObjact.description.replace(/\<img/gi, '<img class="rich-img"');
  381. } //小程序商品详情图超出屏幕问题
  382. obj.imgList = goods.slider_image; //保存轮播图
  383. obj.specList = data.productAttr; //保存分类列表
  384. if (Array.isArray(data.productValue) != true) {
  385. obj.many = 2;
  386. obj.specList = data.productAttr; //保存产品属性
  387. obj.productValue = data.productValue; //保存属性值
  388. obj.specSelected = []; //初始化默认选择对象
  389. for (let i = 0; i < obj.specList.length; i++) {
  390. // 设置默认数据
  391. let attrValue = obj.specList[i].attr_value[0];
  392. attrValue.check = true;
  393. obj.specSelected.push(attrValue.attr);
  394. }
  395. let str = obj.specSelected.join(',');
  396. console.log(str, 'str');
  397. // 设置默认值
  398. obj.actionPrice = obj.productValue[str].price;
  399. obj.goodsNumberMax = obj.productValue[str].stock;
  400. obj.actionImage = obj.productValue[str].image;
  401. obj.uniqueId = obj.productValue[str].unique;
  402. obj.goodsStore = obj.productValue[str].quota;
  403. } else {
  404. obj.many = 1;
  405. obj.productValue = data.productValue; //保存分类查询数据
  406. obj.actionPrice = goods.price; //保存默认选中商品价格
  407. obj.actionImage = goods.image_base; //保存默认选中商品图片
  408. obj.goodsNumberMax = goods.stock; //保存默认选中最大可购买商品数量
  409. }
  410. obj.shopId = data.mer_id; //保存商店id
  411. // #ifdef H5
  412. obj.shareDate();
  413. // #endif
  414. });
  415. },
  416. // #ifdef H5
  417. // 加载微信html5页面分享方法
  418. shareDate() {
  419. let obj = this;
  420. // 保存分享人id链接
  421. let url = window.location.href + '&spread=' + this.userInfo.uid;
  422. // 判断是否微信浏览器
  423. let bool = uni.getStorageSync('weichatBrowser') || '';
  424. if (bool) {
  425. // 过滤微信强制添加的链接地址
  426. url = url.replace(/[\?,&]from=singlemessage/g, '');
  427. let data = {
  428. link: url, // 分享链接
  429. imgUrl: obj.goodsObjact.image, // 分享图标
  430. desc: obj.goodsObjact.store_info,
  431. title: obj.goodsObjact.store_name,
  432. success: function(e) {
  433. console.log(e);
  434. }
  435. };
  436. shareLoad(data);
  437. }
  438. },
  439. // #endif
  440. // 立即购买
  441. buy() {
  442. let obj = this;
  443. // 创建传值对象
  444. let data = {
  445. cartNum: obj.goodsNumber, //商品数量
  446. new: 1,
  447. productId: obj.goodsid, //商品编号
  448. uniqueId: obj.uniqueId
  449. };
  450. if (obj.type == 2) {
  451. data.new = 0;
  452. }
  453. cartAdd(data)
  454. .then(function(e) {
  455. let da = e.data;
  456. if (obj.type == 1) {
  457. // 跳转到支付页
  458. uni.navigateTo({
  459. url: '/pages/order/createOrder?id=' + da.cartId
  460. });
  461. }
  462. if (obj.type == 2) {
  463. uni.showToast({
  464. title: '成功加入购物车',
  465. type: 'top',
  466. duration: 2000,
  467. icon: 'none'
  468. });
  469. obj.goodsDetail();
  470. }
  471. obj.toggleSpec();
  472. })
  473. .catch(e => {
  474. console.log(e);
  475. });
  476. },
  477. buy1() {
  478. let obj = this;
  479. let data = {
  480. cartNum: obj.goodsNumber, //商品数量
  481. new: 1,
  482. productId: obj.goodsid, //商品编号
  483. uniqueId: obj.uniqueId
  484. };
  485. if (obj.type == 2) {
  486. data.new = 0;
  487. }
  488. cartAdd(data)
  489. .then(function(e) {
  490. let da = e.data;
  491. if (obj.type == 1) {
  492. // 跳转到支付页
  493. uni.navigateTo({
  494. url: '/pages/order/createOrder?id=' + da.cartId
  495. });
  496. }
  497. if (obj.type == 2) {
  498. uni.showToast({
  499. title: '成功加入购物车',
  500. type: 'top',
  501. duration: 2000,
  502. icon: 'none'
  503. });
  504. obj.goodsDetail();
  505. }
  506. obj.toggleSpec();
  507. })
  508. .catch(e => {
  509. console.log(e);
  510. });
  511. },
  512. // 阻止触发上级事件
  513. stopPrevent() {}
  514. }
  515. };
  516. </script>
  517. <style lang="scss">
  518. /* 弹出层 */
  519. .popup {
  520. position: fixed;
  521. left: 0;
  522. top: 0;
  523. right: 0;
  524. bottom: 0;
  525. z-index: 99;
  526. &.show {
  527. display: block;
  528. .mask {
  529. animation: showPopup 0.2s linear both;
  530. }
  531. .layer {
  532. animation: showLayer 0.2s linear both;
  533. }
  534. }
  535. &.hide {
  536. .mask {
  537. animation: hidePopup 0.2s linear both;
  538. }
  539. .layer {
  540. animation: hideLayer 0.2s linear both;
  541. }
  542. }
  543. &.none {
  544. display: none;
  545. }
  546. .mask {
  547. position: fixed;
  548. top: 0;
  549. width: 100%;
  550. height: 100%;
  551. z-index: 1;
  552. background-color: rgba(0, 0, 0, 0.4);
  553. }
  554. .layer {
  555. position: fixed;
  556. z-index: 99;
  557. bottom: 0;
  558. width: 100%;
  559. min-height: 30vh;
  560. border-radius: 10rpx 10rpx 0 0;
  561. background-color: #fff;
  562. .btn {
  563. height: 66rpx;
  564. line-height: 66rpx;
  565. border-radius: 100rpx;
  566. // background: $uni-color-primary;
  567. background: #FF4C4C;
  568. font-size: $font-base + 2rpx;
  569. color: #fff;
  570. margin: 30rpx auto 20rpx;
  571. }
  572. }
  573. @keyframes showPopup {
  574. 0% {
  575. opacity: 0;
  576. }
  577. 100% {
  578. opacity: 1;
  579. }
  580. }
  581. @keyframes hidePopup {
  582. 0% {
  583. opacity: 1;
  584. }
  585. 100% {
  586. opacity: 0;
  587. }
  588. }
  589. @keyframes showLayer {
  590. 0% {
  591. transform: translateY(120%);
  592. }
  593. 100% {
  594. transform: translateY(0%);
  595. }
  596. }
  597. @keyframes hideLayer {
  598. 0% {
  599. transform: translateY(0);
  600. }
  601. 100% {
  602. transform: translateY(120%);
  603. }
  604. }
  605. }
  606. /* 规格选择弹窗 */
  607. .attr-content {
  608. padding: 10rpx 30rpx;
  609. .a-t {
  610. display: flex;
  611. image {
  612. width: 170rpx;
  613. height: 170rpx;
  614. flex-shrink: 0;
  615. border-radius: 8rpx;
  616. }
  617. .right {
  618. display: flex;
  619. flex-direction: column;
  620. padding-left: 24rpx;
  621. font-size: $font-sm + 2rpx;
  622. color: $font-color-base;
  623. line-height: 42rpx;
  624. .good-name {
  625. padding-top: 20rpx;
  626. max-width: 320rpx;
  627. font-size: 30rpx;
  628. font-family: PingFang SC;
  629. font-weight: bold;
  630. color: #1d2023;
  631. line-height: 42rpx;
  632. margin-bottom: 15rpx;
  633. }
  634. .price {
  635. font-size: 60rpx;
  636. font-family: PingFang SC;
  637. font-weight: bold;
  638. color: #ff6f0f;
  639. // font-size: $font-lg;
  640. // color: $uni-color-primary;
  641. // margin-bottom: 10rpx;
  642. }
  643. .selected-text {
  644. margin-right: 10rpx;
  645. }
  646. }
  647. }
  648. .attr-list {
  649. display: flex;
  650. flex-direction: column;
  651. font-size: $font-base + 2rpx;
  652. color: $font-color-base;
  653. padding-top: 30rpx;
  654. padding-left: 10rpx;
  655. }
  656. .item-list {
  657. padding: 20rpx 0 0;
  658. display: flex;
  659. flex-wrap: wrap;
  660. .tit {
  661. display: flex;
  662. align-items: center;
  663. justify-content: center;
  664. background: #eee;
  665. // margin-left: 10rpx;
  666. margin-right: 20rpx;
  667. margin-bottom: 20rpx;
  668. border-radius: 100rpx;
  669. min-width: 60rpx;
  670. height: 60rpx;
  671. padding: 0 20rpx;
  672. font-size: $font-base;
  673. color: $font-color-dark;
  674. }
  675. .selected {
  676. background: #FCEFF1;
  677. border: 1px solid #EF041F;
  678. color: #EF041F;
  679. }
  680. }
  681. }
  682. //默认商品底部高度
  683. .goodsBottom {
  684. height: 160rpx;
  685. }
  686. page {
  687. background: #f0f0f0;
  688. }
  689. //秒杀、拼团底部高度
  690. .contentBottomHeight {
  691. height: 110rpx;
  692. }
  693. //默认商品底部高度
  694. .goodsBottom {
  695. height: 160rpx;
  696. }
  697. /deep/ .iconenter {
  698. font-size: $font-base + 2rpx;
  699. color: #888;
  700. }
  701. /deep/ .con_image {
  702. width: 130rpx;
  703. height: 130rpx;
  704. display: inline-block;
  705. padding: 15rpx;
  706. image {
  707. width: 100%;
  708. height: 100%;
  709. }
  710. }
  711. /* 商品详情中限制图片大小 */
  712. /deep/ .rich-img {
  713. width: 100% !important;
  714. height: auto;
  715. }
  716. .c-list {
  717. margin-top: 20rpx;
  718. font-size: $font-sm + 2rpx;
  719. color: $font-color-base;
  720. background: #fff;
  721. .c-row {
  722. display: flex;
  723. align-items: center;
  724. padding: 20rpx 30rpx;
  725. position: relative;
  726. }
  727. .tit {
  728. width: 140rpx;
  729. }
  730. .con {
  731. flex: 1;
  732. color: $font-color-dark;
  733. .selected-text {
  734. margin-right: 10rpx;
  735. }
  736. }
  737. .bz-list {
  738. height: 40rpx;
  739. font-size: $font-sm + 2rpx;
  740. color: $font-color-dark;
  741. text {
  742. display: inline-block;
  743. margin-right: 30rpx;
  744. }
  745. }
  746. .con-list {
  747. flex: 1;
  748. display: flex;
  749. flex-direction: column;
  750. color: $font-color-dark;
  751. line-height: 40rpx;
  752. }
  753. .red {
  754. color: $uni-color-primary;
  755. }
  756. }
  757. </style>