integral_goods_details.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. <template>
  2. <view :style="viewColor">
  3. <view class='product-con'>
  4. <!-- #ifdef H5 -->
  5. <view class="head-wrapper" :style="'top:'+statusBarHeight">
  6. <view class="head-menu">
  7. <view class='iconfont icon-xiangzuo' @click.native="returns"></view>
  8. <view class="iconfont icon-shouye4" @click.native="goHome"></view>
  9. </view>
  10. </view>
  11. <!-- #endif -->
  12. <scroll-view :scroll-top="scrollTop" scroll-y='true' scroll-with-animation="true"
  13. :style="'height:'+height+'px;'" @scroll="scroll">
  14. <view id="past0">
  15. <productConSwiper :imgUrls='imgUrls'></productConSwiper>
  16. <view class='nav acea-row row-between-wrapper'>
  17. <view class="share acea-row row-between row-bottom">
  18. <view class="money">
  19. <image :src="`${domain}/static/images/jf-point.png`" mode=""></image>
  20. <view class="price-count">
  21. <text class="num">{{storeInfo.ot_price || 0}}</text>
  22. <text>积分</text><text v-if="storeInfo.price > 0">+{{storeInfo.price}}元</text>
  23. </view>
  24. </view>
  25. <view></view>
  26. </view>
  27. </view>
  28. <view class='wrapper'>
  29. <view class='introduce acea-row row-between'>
  30. <view> {{storeInfo.store_name}}</view>
  31. </view>
  32. <view class='label acea-row row-middle'>
  33. <view class='stock'>市场价:¥{{storeInfo.cost}}</view>
  34. <view class='stock'>库存:
  35. {{ storeInfo.stock}}
  36. </view>
  37. <view class='stock'>已兑换:{{storeInfo.sales}}
  38. </view>
  39. </view>
  40. </view>
  41. <view class="attribute" v-if='attribute.productAttr.length' @tap='selecAttr'>
  42. <view class='acea-row row-between-wrapper df'>
  43. <view><text class='atterTxt line1'>{{attr}}:{{attrValue}}</text></view>
  44. <view class='iconfont icon-jiantou'></view>
  45. </view>
  46. <view class="acea-row row-between-wrapper" style="margin-top:7px;padding-left:55px;" v-if="skuArr.length > 1">
  47. <view class="flex">
  48. <image :src="item.image" v-for="(item,index) in skuArr.slice(0,4)" :key="index" class="attrImg"></image>
  49. </view>
  50. <view class="switchTxt">共{{skuArr.length}}种规格可选</view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class='product-intro' id="past2">
  55. <view class='title'>产品介绍</view>
  56. <view class='conter'>
  57. <jyf-parser :html="storeInfo.description" ref="article" :tag-style="tagStyle"></jyf-parser>
  58. </view>
  59. </view>
  60. </scroll-view>
  61. <view class='footer acea-row row-between-wrapper'>
  62. <navigator hover-class="none" class="item" url="/pages/points_mall/index">
  63. <view class="iconfont icon-jifenshangcheng"></view>
  64. <view class="p_center">积分商城</view>
  65. </navigator>
  66. <view class="bnt acea-row"
  67. v-if="attribute.productSelect.stock>0">
  68. <view class="buy bnts" @tap="goCat">立即兑换</view>
  69. </view>
  70. <view class="bnt acea-row" v-else>
  71. <view class="bnts no-goods">无法兑换</view>
  72. </view>
  73. </view>
  74. </view>
  75. <product-window :attr='attribute' :limitCount='limitNum' :type="'points'" :domain="domain" :isShow="1" @myevent="onMyEvent" @ChangeAttr="ChangeAttr"
  76. @attrVal="attrVal" @iptCartNum="iptCartNum" id="product-window"></product-window>
  77. </view>
  78. </template>
  79. <script>
  80. // +----------------------------------------------------------------------
  81. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  82. // +----------------------------------------------------------------------
  83. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  84. // +----------------------------------------------------------------------
  85. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  86. // +----------------------------------------------------------------------
  87. // | Author: CRMEB Team <admin@crmeb.com>
  88. // +----------------------------------------------------------------------
  89. const app = getApp();
  90. var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  91. import { mapGetters } from "vuex";
  92. import { getIntegralProductDetail } from '@/api/points_mall.js';
  93. import { postCartAdd } from '@/api/store.js';
  94. import productConSwiper from '@/components/productConSwiper/index.vue'
  95. import productWindow from '@/components/productWindow';
  96. import parser from "@/components/jyf-parser/jyf-parser";
  97. import { imageBase64 } from "@/api/public";
  98. import { toLogin } from '@/libs/login.js';
  99. import { silenceBindingSpread } from "@/utils";
  100. import { getUserInfo } from '@/api/user.js';
  101. import {HTTP_REQUEST_URL} from '@/config/app';
  102. export default {
  103. computed: mapGetters(['uid','isLogin','viewColor','keyColor']),
  104. data() {
  105. return {
  106. dataShow: 0,
  107. id: 0,
  108. time: 0,
  109. storeInfo: [],
  110. imgUrls: [],
  111. domain:HTTP_REQUEST_URL,
  112. statusBarHeight: statusBarHeight, //系统导航条高度
  113. parameter: {
  114. 'navbar': '1',
  115. 'return': '1',
  116. 'title': '抢购详情页',
  117. 'color': false
  118. },
  119. attribute: {
  120. cartAttr: false,
  121. productAttr: [],
  122. productSelect: {}
  123. },
  124. productValue: [],
  125. isOpen: false,
  126. attr: '请选择',
  127. attrValue: '',
  128. status: 1,
  129. iShidden: false,
  130. limitNum: 0, //限制本属性产品的个数;
  131. iSplus: false,
  132. replyCount: 0, //总评论数量
  133. reply: [], //评论列表
  134. replyChance: 0,
  135. navH: "",
  136. navList: ['商品', '详情'],
  137. opacity: 0,
  138. scrollY: 0,
  139. topArr: [],
  140. toView: '',
  141. height: 0,
  142. heightArr: [],
  143. lock: false,
  144. scrollTop: 0,
  145. tagStyle: {
  146. img: 'width:100%;display:block;',
  147. table: 'width:100%',
  148. video: 'width:100%'
  149. },
  150. navActive: 0,
  151. meunHeight: 0,
  152. backH: '',
  153. posters: false,
  154. weixinStatus: false,
  155. posterImageStatus: false,
  156. storeImage: '', //海报产品图
  157. PromotionCode: '', //二维码图片
  158. posterImage: '', //海报路径
  159. actionSheetHidden: false,
  160. cart_num: 1,
  161. returnShow: true,
  162. H5ShareBox: false, //公众号分享图片
  163. routineContact: 0,
  164. selectSku:{},
  165. skuArr:[]
  166. }
  167. },
  168. components: {
  169. productConSwiper,
  170. productWindow,
  171. "jyf-parser": parser,
  172. },
  173. /**
  174. * 用户点击右上角分享
  175. */
  176. // #ifdef MP
  177. onShareAppMessage: function() {
  178. let that = this;
  179. that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
  180. return {
  181. title: that.storeInfo.store_name || '',
  182. imageUrl: that.storeInfo.image || '',
  183. path: '/pages/points_mall/integral_goods_details?id=' + that.id + '&spid=' + that.uid,
  184. }
  185. },
  186. onShareTimeline: function() {
  187. let that = this;
  188. that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
  189. return {
  190. title: that.storeInfo.store_name || '',
  191. query: {
  192. id: that.id,
  193. spid: that.uid
  194. },
  195. imageUrl: that.storeInfo.image || ''
  196. }
  197. },
  198. // #endif
  199. onLoad(options) {
  200. let that = this
  201. let statusBarHeight = ''
  202. var pages = getCurrentPages();
  203. that.returnShow = pages.length === 1 ? false : true;
  204. //设置商品列表高度
  205. uni.getSystemInfo({
  206. success: function(res) {
  207. that.height = res.windowHeight
  208. statusBarHeight = res.statusBarHeight
  209. //res.windowHeight:获取整个窗口高度为px,*2为rpx;98为头部占据的高度;
  210. },
  211. });
  212. this.isLogin && silenceBindingSpread();
  213. // #ifndef APP-PLUS
  214. this.navH = app.globalData.navHeight
  215. // #endif
  216. // #ifdef APP-PLUS
  217. this.navH = 90
  218. // #endif
  219. // #ifdef MP
  220. let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
  221. this.meunHeight = menuButtonInfo.height
  222. this.backH = (that.navH / 2) + (this.meunHeight / 2)
  223. //扫码携带参数处理
  224. if (options.scene) {
  225. let value = this.$util.getUrlParams(decodeURIComponent(options.scene));
  226. if (value.id) {
  227. this.id = value.id;
  228. } else {
  229. return this.$util.Tips({
  230. title: '缺少参数无法查看商品'
  231. }, {
  232. tab: 3,
  233. url: 1
  234. });
  235. }
  236. //记录推广人uid
  237. if (value.pid) app.globalData.spid = value.pid;
  238. }
  239. // #endif
  240. if (options.id) {
  241. this.id = options.id
  242. this.status = options.status
  243. }
  244. this.getIntegralProductDetail();
  245. },
  246. onShow(){
  247. uni.removeStorageSync('form_type_cart');
  248. },
  249. methods: {
  250. // app分享
  251. // #ifdef APP-PLUS
  252. appShare(scene) {
  253. let that = this
  254. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  255. let curRoute = routes[routes.length - 1].$page.fullPath // 获取当前页面路由,也就是最后一个打开的页面路由
  256. uni.share({
  257. provider: "weixin",
  258. scene: scene,
  259. type: 0,
  260. href: `${HTTP_REQUEST_URL}${curRoute}`,
  261. title: that.storeInfo.store_name,
  262. imageUrl: that.storeInfo.image,
  263. success: function(res) {
  264. uni.showToast({
  265. title: '分享成功',
  266. icon: 'success'
  267. })
  268. that.posters = false;
  269. },
  270. fail: function(err) {
  271. uni.showToast({
  272. title: '分享失败',
  273. icon: 'none',
  274. duration: 2000
  275. })
  276. that.posters = false;
  277. }
  278. });
  279. },
  280. // #endif
  281. // 后退
  282. returns: function() {
  283. uni.navigateBack()
  284. },
  285. // 首页
  286. goHome() {
  287. uni.switchTab({
  288. url: '/pages/index/index'
  289. });
  290. },
  291. /**
  292. * 购物车手动填写
  293. *
  294. */
  295. iptCartNum: function(e) {
  296. this.$set(this.attribute.productSelect, 'cart_num', num);
  297. this.$set(this, "cart_num", num);
  298. },
  299. // 后退
  300. returns: function() {
  301. uni.navigateBack()
  302. },
  303. getIntegralProductDetail: function() {
  304. let that = this;
  305. getIntegralProductDetail(that.id).then(res => {
  306. this.dataShow = 1;
  307. let title = res.data.store_name;
  308. this.storeInfo = res.data;
  309. this.imgUrls = res.data.slider_image;
  310. this.limitNum = res.data.once_max_count;
  311. this.storeInfo.description = this.storeInfo.content.content.replace(/<img/gi,
  312. '<img style="max-width:100%;height:auto;float:left;display:block" ');
  313. this.attribute.productAttr = res.data.attr;
  314. this.productValue = res.data.sku;
  315. for(let key in res.data.productValue){
  316. let obj = res.data.productValue[key];
  317. that.skuArr.push(obj)
  318. }
  319. this.$set(this, "selectSku", that.skuArr[0]);
  320. this.reply = res.data.reply ? [res.data.reply] : [];
  321. uni.setNavigationBarTitle({
  322. title: title.substring(0, 7) + '...'
  323. });
  324. // #ifdef H5
  325. this.PromotionCode = res.data.code_base
  326. that.storeImage = that.storeInfo.image
  327. // #endif
  328. that.DefaultSelect();
  329. app.globalData.openPages = '/pages/activity/goods_seckill_details/index?id=' + that.id +
  330. '&scene=' + that.storeInfo.uid;
  331. // wxParse.wxParse('description', 'html', that.data.storeInfo.description || '', that, 0);
  332. // wxh.time(that.data.time, that);
  333. }).catch(err => {
  334. that.$util.Tips({
  335. title: err
  336. }, {
  337. tab: 3
  338. })
  339. });
  340. },
  341. setShare: function() {
  342. this.$wechat.isWeixin() &&
  343. this.$wechat.wechatEvevt([
  344. "updateAppMessageShareData",
  345. "updateTimelineShareData",
  346. "onMenuShareAppMessage",
  347. "onMenuShareTimeline"
  348. ], {
  349. desc: this.storeInfo.info,
  350. title: this.storeInfo.title,
  351. link: location.href,
  352. imgUrl: this.storeInfo.image
  353. }).then(res => {
  354. }).catch(err => {
  355. console.log(err);
  356. });
  357. },
  358. /**
  359. * 默认选中属性
  360. *
  361. */
  362. DefaultSelect: function() {
  363. let self = this
  364. let productAttr = self.attribute.productAttr;
  365. let value = [];
  366. for (var key in self.productValue) {
  367. if (self.productValue[key].stock > 0) {
  368. value = self.attribute.productAttr.length ? key.split(",") : [];
  369. break;
  370. }
  371. }
  372. for (let i = 0; i < productAttr.length; i++) {
  373. self.$set(productAttr[i], "index", value[i]);
  374. }
  375. //sort();排序函数:数字-英文-汉字;
  376. let productSelect = self.productValue[value.join(",")];
  377. if ((productSelect && productAttr.length) || (productSelect && !productAttr.length)) {
  378. self.$set(self.attribute.productSelect, "image", productSelect.image);
  379. self.$set(self.attribute.productSelect, "price", productSelect.price);
  380. self.$set(self.attribute.productSelect, "ot_price", productSelect.ot_price || 0);
  381. self.$set(self.attribute.productSelect, "stock", productSelect.stock);
  382. self.$set(self.attribute.productSelect, "unique", productSelect.unique);
  383. self.$set(self.attribute.productSelect, "cart_num", 1);
  384. self.$set(self, "attrValue", value.join(","));
  385. self.attrValue = value.join(",")
  386. } else if (!productSelect && productAttr.length) {
  387. self.$set(self.attribute.productSelect, "image", self.storeInfo.image);
  388. self.$set(self.attribute.productSelect, "price", self.storeInfo.price);
  389. self.$set(self.attribute.productSelect, "ot_price", self.storeInfo.ot_price || 0);
  390. self.$set(self.attribute.productSelect, "stock", 0);
  391. self.$set(self.attribute.productSelect, "unique", "");
  392. self.$set(self.attribute.productSelect, "cart_num", 0);
  393. self.$set(self, "attrValue", "");
  394. self.$set(self, "attrTxt", "请选择");
  395. } else if (!productSelect && !productAttr.length) {
  396. self.$set(self.attribute.productSelect, "image", self.storeInfo.image);
  397. self.$set(self.attribute.productSelect, "price", self.storeInfo.price);
  398. self.$set(self.attribute.productSelect, "ot_price", self.storeInfo.ot_price || 0);
  399. self.$set(self.attribute.productSelect, "stock", self.storeInfo.stock);
  400. self.$set(
  401. self.attribute.productSelect,
  402. "unique",
  403. self.storeInfo.unique || ""
  404. );
  405. self.$set(self.attribute.productSelect, "cart_num", 1);
  406. self.$set(self, "attrValue", "");
  407. self.$set(self, "attrTxt", "请选择");
  408. }
  409. self.$set(self.attribute.productSelect, "store_name", self.storeInfo.store_name);
  410. },
  411. selecAttr: function() {
  412. this.attribute.cartAttr = true
  413. },
  414. onMyEvent: function() {
  415. this.$set(this.attribute, 'cartAttr', false);
  416. this.$set(this, 'isOpen', false);
  417. },
  418. attrVal(val) {
  419. this.attribute.productAttr[val.indexw].index = this.attribute.productAttr[val.indexw].attr_values[val
  420. .indexn];
  421. },
  422. /**
  423. * 属性变动赋值
  424. *
  425. */
  426. ChangeAttr: function(res) {
  427. this.$set(this, 'cart_num', 1);
  428. let productSelect = this.productValue[res];
  429. if (productSelect) {
  430. this.$set(this.attribute.productSelect, "image", productSelect.image);
  431. this.$set(this.attribute.productSelect, "price", productSelect.price);
  432. this.$set(this.attribute.productSelect, "ot_price", productSelect.ot_price);
  433. this.$set(this.attribute.productSelect, "stock", productSelect.stock);
  434. this.$set(this.attribute.productSelect, "unique", productSelect.unique);
  435. this.$set(this.attribute.productSelect, "cart_num", 1);
  436. this.$set(this, "attrValue", res);
  437. this.attrTxt = "已选择"
  438. } else {
  439. this.$set(this.attribute.productSelect, "image", this.storeInfo.image);
  440. this.$set(this.attribute.productSelect, "price", this.storeInfo.price);
  441. this.$set(this.attribute.productSelect, "ot_price", this.storeInfo.ot_price);
  442. this.$set(this.attribute.productSelect, "stock", 0);
  443. this.$set(this.attribute.productSelect, "unique", "");
  444. this.$set(this.attribute.productSelect, "cart_num", 0);
  445. this.$set(this, "attrValue", "");
  446. this.attrTxt = "已选择"
  447. }
  448. },
  449. scroll: function(e) {
  450. var that = this,
  451. scrollY = e.detail.scrollTop;
  452. var opacity = scrollY / 200;
  453. opacity = opacity > 1 ? 1 : opacity;
  454. that.opacity = opacity
  455. that.scrollY = scrollY
  456. if (that.lock) {
  457. that.lock = false
  458. return;
  459. }
  460. for (var i = 0; i < that.topArr.length; i++) {
  461. if (scrollY < that.topArr[i] - (app.globalData.navHeight / 2) + that.heightArr[i]) {
  462. that.navActive = i
  463. break
  464. }
  465. }
  466. },
  467. tap: function(item, index) {
  468. var id = item.id;
  469. var index = index;
  470. var that = this;
  471. this.toView = id;
  472. this.navActive = index;
  473. this.lock = true;
  474. this.scrollTop = index > 0 ? that.topArr[index] - (app.globalData.navHeight / 2) : that.topArr[index]
  475. },
  476. /*
  477. * 下订单
  478. */
  479. goCat: function() {
  480. let taht = this;
  481. if(this.isLogin){
  482. var that = this;
  483. var productSelect = this.productValue[this.attrValue];
  484. //打开属性
  485. if (this.isOpen)
  486. this.attribute.cartAttr = true
  487. else
  488. this.attribute.cartAttr = !this.attribute.cartAttr
  489. //只有关闭属性弹窗时进行加入购物车
  490. if (this.attribute.cartAttr === true && this.isOpen == false) return this.isOpen = true
  491. //如果有属性,没有选择,提示用户选择
  492. if (this.attribute.productAttr.length && productSelect === undefined && this.isOpen == true) return app
  493. .$util.Tips({
  494. title: '请选择属性'
  495. });
  496. if (this.cart_num <= 0) {
  497. return app.$util.Tips({
  498. title: '请选择数量'
  499. });
  500. }
  501. this.isOpen = false
  502. let q = {
  503. is_new: 1,
  504. product_id: that.id,
  505. cart_num: that.attribute.productSelect.cart_num,
  506. product_attr_unique: that.attribute.productSelect !== undefined ? that.attribute.productSelect.unique : "",
  507. product_type: 20,
  508. };
  509. postCartAdd(q)
  510. .then(function(res) {
  511. that.isOpen = that.attribute.cartAttr = false;
  512. uni.navigateTo({
  513. url: `/pages/points_mall/integral_order?cartId=${res.data.cart_id}`
  514. });
  515. })
  516. .catch(res => {
  517. return that.$util.Tips({
  518. title: res
  519. });
  520. });
  521. }else{
  522. toLogin()
  523. }
  524. },
  525. }
  526. }
  527. </script>
  528. <style lang="scss" scoped>
  529. .product-con{
  530. position: relative;
  531. }
  532. .product-con .attribute{
  533. padding: 22rpx;
  534. }
  535. .p_center{
  536. text-align: center;
  537. }
  538. .generate-posters {
  539. width: 100%;
  540. height: 170rpx;
  541. background-color: #fff;
  542. position: fixed;
  543. left: 0;
  544. bottom: 0;
  545. z-index: 300;
  546. transform: translate3d(0, 100%, 0);
  547. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  548. border-top: 1rpx solid #eee;
  549. }
  550. .generate-posters.on {
  551. transform: translate3d(0, 0, 0);
  552. }
  553. .generate-posters .item {
  554. flex: 1;
  555. text-align: center;
  556. font-size: 30rpx;
  557. }
  558. .generate-posters .item .iconfont {
  559. font-size: 80rpx;
  560. color: #5eae72;
  561. }
  562. .generate-posters .item .iconfont.icon-haibao {
  563. color: #5391f1;
  564. }
  565. .navbar .header {
  566. height: 96rpx;
  567. font-size: 30rpx;
  568. color: #050505;
  569. background-color: #fff;
  570. /* #ifdef MP */
  571. padding-right: 95rpx;
  572. /* #endif */
  573. }
  574. .icon-xiangzuo {
  575. /* #ifdef H5 */
  576. top: 30rpx !important;
  577. /* #endif */
  578. }
  579. .navbar .header .item {
  580. position: relative;
  581. margin: 0 25rpx;
  582. }
  583. .navbar .header .item.on:before {
  584. position: absolute;
  585. width: 60rpx;
  586. height: 5rpx;
  587. background-repeat: no-repeat;
  588. content: "";
  589. background-image: linear-gradient(to right, #ff3366 0%, #ff6533 100%);
  590. bottom: -10rpx;
  591. left: 50%;
  592. margin-left: -28rpx;
  593. }
  594. .navbar {
  595. position: fixed;
  596. background-color: #fff;
  597. top: 0;
  598. left: 0;
  599. z-index: 99;
  600. width: 100%;
  601. }
  602. .navbar .navbarH {
  603. position: relative;
  604. }
  605. .navbar .navbarH .navbarCon {
  606. position: absolute;
  607. bottom: 0;
  608. height: 100rpx;
  609. width: 100%;
  610. }
  611. .product-con .nav {
  612. height: 100rpx;
  613. padding: 0 22rpx;
  614. box-sizing: border-box;
  615. background-color: #fff;
  616. margin-top: 22rpx;
  617. }
  618. .product-con .nav .money {
  619. font-size: 28rpx;
  620. color: var(--view-theme);
  621. display: flex;
  622. align-items: baseline;
  623. image {
  624. width: 26rpx;
  625. height: 26rpx;
  626. }
  627. }
  628. .product-con .nav .money .price-count {
  629. font-weight: normal;
  630. font-size: 22rpx;
  631. .num{
  632. font-weight: bold;
  633. margin-right: 8rpx;
  634. }
  635. }
  636. .product-con .nav .money .num {
  637. font-size: 34rpx;
  638. padding-left: 16rpx;
  639. }
  640. .product-con .nav .money .y-money {
  641. font-size: 26rpx;
  642. margin-left: 10rpx;
  643. text-decoration: line-through;
  644. }
  645. .product-con .nav .timeItem {
  646. font-size: 20rpx;
  647. color: #fff;
  648. text-align: center;
  649. }
  650. .product-con .nav .timeItem .timeCon {
  651. margin-top: 10rpx;
  652. }
  653. .product-con .nav .timeItem .timeCon .num {
  654. padding: 0 7rpx;
  655. font-size: 22rpx;
  656. color: #ff3d3d;
  657. background-color: #fff;
  658. border-radius: 2rpx;
  659. }
  660. .product-con .nav .timeState {
  661. font-size: 28RPX;
  662. color: #FFF;
  663. }
  664. .product-con .nav .iconfont {
  665. color: #fff;
  666. font-size: 30rpx;
  667. margin-left: 20rpx;
  668. }
  669. .product-con .wrapper {
  670. padding: 4rpx 22rpx 22rpx;
  671. box-sizing: border-box;
  672. background-color: #fff;
  673. }
  674. .product-con .wrapper .introduce {
  675. margin: 0;
  676. }
  677. .product-con .wrapper .introduce .iconfont {
  678. font-size: 37rpx;
  679. color: #515151;
  680. }
  681. .product-con .wrapper .label {
  682. display: flex;
  683. justify-content: space-between;
  684. margin: 18rpx 0 0 0;
  685. font-size: 24rpx;
  686. color: #82848f;
  687. }
  688. .product-con .footer {
  689. padding: 0 30rpx 0 44rpx;
  690. position: fixed;
  691. bottom: 0;
  692. width: 100%;
  693. box-sizing: border-box;
  694. background-color: #fff;
  695. z-index: 277;
  696. border-top: 1px solid #f0f0f0;
  697. display: flex;
  698. align-items: center;
  699. flex-wrap: nowrap;
  700. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  701. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  702. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  703. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  704. }
  705. .product-con .footer .item {
  706. width: 120rpx;
  707. font-size: 18rpx;
  708. color: #666;
  709. tex-align: center;
  710. margin-right: 30rpx;
  711. }
  712. .product-con .footer .item .iconfont {
  713. text-align: center;
  714. font-size: 32rpx;
  715. }
  716. .product-con .footer .item .iconfont.icon-shoucang1 {
  717. color: #f00;
  718. }
  719. .product-con .footer .item .iconfont.icon-gouwuche1 {
  720. font-size: 40rpx;
  721. position: relative;
  722. }
  723. .product-con .footer .item .iconfont.icon-gouwuche1 .num {
  724. color: #fff;
  725. position: absolute;
  726. font-size: 18rpx;
  727. padding: 2rpx 8rpx 3rpx;
  728. border-radius: 200rpx;
  729. top: -10rpx;
  730. right: -10rpx;
  731. }
  732. .product-con .footer .bnt {
  733. width: 100%;
  734. height: 76rpx;
  735. }
  736. .product-con .footer .bnt .bnts {
  737. width: 100%;
  738. text-align: center;
  739. line-height: 76rpx;
  740. color: #fff;
  741. font-size: 28rpx;
  742. }
  743. .product-con .footer .bnt .joinCart {
  744. border-radius: 50rpx 0 0 50rpx;
  745. background-image: linear-gradient(to right, #fea10f 0%, #fa8013 100%);
  746. }
  747. .product-con .footer .bnt .buy {
  748. border-radius: 50rpx;
  749. background-image: linear-gradient(90deg, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
  750. }
  751. .product-con .footer .bnt .no-goods {
  752. border-radius: 50rpx;
  753. background-color: #CCCCCC;
  754. }
  755. .product-con .conter {
  756. display: block;
  757. padding-bottom: 100rpx;
  758. }
  759. .product-con .conter img {
  760. display: block;
  761. }
  762. .bg-color-hui {
  763. background: #bbbbbb !important;
  764. }
  765. .canvas {
  766. width: 750px;
  767. height: 1190px;
  768. }
  769. .poster-pop {
  770. width: 450rpx;
  771. height: 714rpx;
  772. position: fixed;
  773. left: 50%;
  774. transform: translateX(-50%);
  775. z-index: 300;
  776. top:50%;
  777. margin-top: -559rpx;
  778. }
  779. .poster-pop image {
  780. width: 100%;
  781. height: 100%;
  782. display: block;
  783. }
  784. .poster-pop .close {
  785. width: 46rpx;
  786. height: 75rpx;
  787. position: fixed;
  788. right: 0;
  789. top: -73rpx;
  790. display: block;
  791. }
  792. .poster-pop .save-poster {
  793. background-color: #df2d0a;
  794. font-size: :22rpx;
  795. color: #fff;
  796. text-align: center;
  797. height: 76rpx;
  798. line-height: 76rpx;
  799. width: 100%;
  800. }
  801. .poster-pop .keep {
  802. color: #fff;
  803. text-align: center;
  804. font-size: 25rpx;
  805. margin-top: 10rpx;
  806. }
  807. .mask1 {
  808. position: fixed;
  809. top: 0;
  810. left: 0;
  811. right: 0;
  812. bottom: 0;
  813. background-color: #000;
  814. opacity: .5;
  815. z-index: 288;
  816. }
  817. .home-nav {
  818. /* #ifdef H5 */
  819. top: 20rpx !important;
  820. /* #endif */
  821. }
  822. .home-nav {
  823. color: #fff;
  824. position: fixed;
  825. font-size: 33rpx;
  826. width: 56rpx;
  827. height: 56rpx;
  828. z-index: 99;
  829. left: 33rpx;
  830. background: rgba(190, 190, 190, 0.5);
  831. border-radius: 50%;
  832. &.on {
  833. background: unset;
  834. color: #333;
  835. }
  836. }
  837. .home-nav .line {
  838. width: 1rpx;
  839. height: 24rpx;
  840. background: rgba(255, 255, 255, 0.25);
  841. }
  842. .home-nav .icon-xiangzuo {
  843. width: auto;
  844. font-size: 28rpx;
  845. }
  846. .share-box {
  847. z-index: 1000;
  848. position: fixed;
  849. left: 0;
  850. top: 0;
  851. width: 100%;
  852. height: 100%;
  853. }
  854. .share-box image {
  855. width: 100%;
  856. height: 100%;
  857. }
  858. .df {
  859. display: flex;
  860. align-items: center;
  861. flex-wrap: nowrap;
  862. }
  863. .head-wrapper {
  864. z-index: 999;
  865. display: flex;
  866. align-items: center;
  867. position: fixed;
  868. left: 30rpx;
  869. top: 0;
  870. /* #ifdef MP */
  871. height: 43px;
  872. /* #endif */
  873. /* #ifdef H5 */
  874. height: 114rpx;
  875. /* #endif */
  876. }
  877. .head-menu {
  878. display: flex;
  879. align-items: center;
  880. height: 54rpx;
  881. width: 140rpx;
  882. background: rgba(0, 0, 0, .25);
  883. border-radius: 27rpx;
  884. .iconfont {
  885. flex: 1;
  886. text-align: center;
  887. color: #fff;
  888. box-sizing: border-box;
  889. &.icon-xiangzuo {
  890. border-right: 1px solid #fff;
  891. }
  892. }
  893. }
  894. </style>