12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151 |
- <template>
- <view class="container">
-
- <top-swiper :imgList="imgList"></top-swiper>
- <view class="sckill-top" v-if="isSckill">
- <view class="top-left">
- <view class="left-top">限时秒杀价</view>
- <view class="left-btm">
- ¥
- <text class="now-pri">{{ sckillGoodInfo.price }}</text>
- <text class="old-pri">¥{{ sckillGoodInfo.ot_price }}</text>
- </view>
- </view>
- <view class="top-right">
- <view class="right-top">距离本场结束还剩</view>
- <uni-countdown
- class="timeBox"
- color="#901b21"
- background-color="#fff"
- splitor-color="#fff"
- :show-day="false"
- :hour="stopTimes.hours"
- :minute="stopTimes.minutes"
- :second="stopTimes.seconds"
- ></uni-countdown>
- </view>
- </view>
-
- <view class="introduce-section" v-if="!isSckill">
-
- <button open-type="share" class="shareDate" style="border: none;">
- <image class="share-img" src="../../static/icon/share.png"></image>
- </button>
- <view class="price-box">
- <text class="price-tip">¥</text>
- <view class="price">
- {{ goodInfo.price }}
- <text class="m-price" v-if="goodInfo.ot_price*1 > goodInfo.price*1">¥{{ goodInfo.ot_price }}</text>
- </view>
- </view>
- <text class="title clamp2" v-if="goodInfo.title">{{ goodInfo.title }}</text>
- <text class="title clamp2" v-else>{{ goodInfo.store_name }}</text>
- </view>
- <product-content :goodsObjact="goodInfo"</product-content>
- <view class="good-title clamp2" v-if="isSckill">{{ sckillGoodInfo.title }}</view>
-
-
- {{ goodsNumber || '请选择' }}
-
-
-
-
-
- <view class="shop-info">
- <view class="shop-logo"><image :src="shopInfo.mer_avatar" mode=""></image></view>
- <view class="shop-base">
- <view class="base-name">{{ shopInfo.mer_name }}</view>
- <view class="base-addr clamp">{{ shopInfo.mer_address }}</view>
- </view>
- <view class="shop-dis">
- <image src="../../static/icon/base_addr.png" mode="aspectFill"></image>
- 距离200m
- </view>
- </view>
-
- <estimate @navTo="navTo('/pages/product/reply?id=' + product_id)" v-if="reply" :reply="reply" :list="list"></estimate>
-
-
-
- <content-text :description="description"></content-text>
-
- <view class="contentBottomHeight"></view>
-
- <product-bottom @buy="buy" :goodsid="goodsid" @specOPne="specOPne"></product-bottom>
-
- <view class="popup spec" :class="specClass" @touchmove.stop.prevent="stopPrevent" @click="toggleSpec">
-
- <view class="mask"></view>
- <view class="layer attr-content" @click.stop="stopPrevent">
- <view class="a-t">
- <image :src="actionImage"></image>
- <view class="right">
- <text class="name">{{ sckillGoodInfo.title }}</text>
- <text class="price">¥{{ actionPrice * goodsNumber }}</text>
- <text class="stock">库存:{{ goodsStore }}件</text>
- <view class="selected" v-if="specList != ''">
- 已选:
- <text class="selected-text" v-for="(sItem, sIndex) in specSelected" :key="sIndex">{{ sItem }}</text>
- </view>
- </view>
- </view>
- <view v-for="(item, index) in specList" :key="index" class="attr-list">
- <text>{{ item.attr_name }}</text>
- <view class="item-list">
- <text
- v-for="(childItem, childIndex) in item.attr_value"
- :key="childIndex"
- class="tit"
- :class="{ selected: childItem.check }"
- @click="selectSpec(childItem, item, index)"
- >
- {{ childItem.attr }}
- </text>
- </view>
- </view>
- <view class="attr-list">
- <text>购买数量</text>
- <view class="item-list">
- <uni-number-box class="step" :isMin="true" :value="goodsNumber" :min="1" :max="goodsNumberMax" @eventChange="numberChange"></uni-number-box>
- </view>
- </view>
- <button class="btn" @click.stop="buy" v-show="buys_show">完成</button>
- <button class="btn" style="background-color: #999999;" v-show="buys_shows">售罄</button>
- </view>
- </view>
- </view>
- </template>
- <script>
- import { goodsDetail, cartAdd, seckillGoods, getSeckillProductDetail, getStoreDetail ,getProductDetail} from '@/api/product.js';
- import { mapState } from 'vuex';
- import store from '@/store/index.js';
- import { saveUrl } from '@/utils/loginUtils.js';
- import { weixindata } from '@/utils/wxAuthorized';
- import topSwiper from './common/topSwiper.vue';
- import productContent from './common/productContent.vue';
- import discounts from './common/discounts.vue';
- import freshDetail from './common/freshDetail.vue';
- import contentText from './common/contentText.vue';
- import productBottom from './common/productBottom.vue';
- import guessLike from './common/guessLike.vue';
- import estimate from './common/estimate.vue';
- import uniNumberBox from '@/components/uni-number-box.vue';
- import { timeComputed } from '@/utils/rocessor.js';
- export default {
- components: {
- guessLike,
- topSwiper,
- productContent,
- discounts,
- freshDetail,
- contentText,
- productBottom,
- estimate,
- uniNumberBox
- },
- data() {
- return {
- goodsStore: 0,
- specList: [],
- buys_show: true,
- buys_shows: false,
- specSelected: [],
- specClass: 'none',
- many: 1,
- reply: '',
- list: '',
- type: 1,
- goodsType: 0,
- goodsNumber: 1,
- goodsid: '',
- description: '',
- goodsObjact: {
- percent: 1
- },
-
- imgList: [],
-
- actionPrice: 0,
- actionImage: '',
- good_list: '',
- goodsNumberMax: 1,
-
- seckillObj: {
- stopTime: 0,
- stop: false,
- stopTimeH: 0,
- stopTimeM: 0,
- stopTimeS: 0,
- stopTimeD: 0,
- upTime: 0
- },
-
- pink: {
- id: '',
- uid: '',
- people: '',
- price: '',
- stop_time: '',
- nickname: '',
- avatar: '',
- count: '',
- h: '',
- i: '',
- s: ''
- },
- userInfo: '',
- isSckill: false,
- stopTimes: {
- hours: 0,
- minutes: 0,
- seconds: 0,
- day: 0,
- tpye: false
- },
- product_id: 0,
- sckillGoodInfo: {},
- shopInfo: {},
- product_type: 0,
- goodInfo: {}
- };
- },
- filters: {
- parseIntTo(percent) {
- percent = +percent * 100;
- if (percent % 1 === 0) {
- return percent;
- } else {
- percent = percent.toFixed(1);
- return percent;
- }
- }
- },
- async onLoad(options) {
- console.log(options);
- let obj = this;
- obj.userInfo = uni.getStorageSync('userInfo');
-
- this.goodsid = options.id;
-
- this.product_id = options.id;
- this.goodsType = options.type;
-
- if (options.spread) {
-
- uni.setStorageSync('spread', options.spread);
- }
- saveUrl();
-
-
-
-
-
-
-
-
-
- if (options.type === '1') {
- obj.isSckill = true;
- this.getGoodsDetails();
- }else if(options.type === '0' ){
- this.getProductDetail()
- }
-
-
- let bool = uni.getStorageSync('weichatBrowser') || '';
- if (bool) {
- weixindata();
- }
-
- },
- computed: {
- ...mapState(['weichatObj', 'baseURL', 'urlFile'])
- },
-
- onShareAppMessage(options) {
-
- let pages = getCurrentPages();
- let currentPage = pages[pages.length - 1];
- let url = currentPage.route;
- let item = currentPage.options;
- let shareObj = {
- title: this.goodsObjact.store_name + ' 价格:' + this.goodsObjact.price,
- path: url + '?id=' + item.id + '&spread=' + this.userInfo.uid,
- imageUrl: this.goodsObjact.image,
- success: function(res) {
-
- if (res.errMsg == 'shareAppMessage:ok') {
- }
- },
- fail: function() {
-
- if (res.errMsg == 'shareAppMessage:fail cancel') {
-
- } else if (res.errMsg == 'shareAppMessage:fail') {
-
- }
- }
- };
- return shareObj;
- },
- methods: {
-
- selectSpec(item, arr, ind) {
- arr.attr_value.forEach(function(e) {
- e.check = false;
- });
- item.check = true;
- let obj = this;
- obj.specSelected[ind] = item.attr;
- let str = obj.specSelected.join(',');
-
- if (obj.productValue[str]) {
- obj.buys_show = true;
- obj.buys_shows = false;
- obj.actionPrice = obj.productValue[str].price;
- obj.goodsNumberMax = obj.productValue[str].stock;
- obj.actionImage = obj.productValue[str].image;
- obj.uniqueId = obj.productValue[str].unique;
- obj.goodsStore = obj.productValue[str].stock;
- console.log(obj.uniqueId, '++++++++obj.uniqueId');
- } else {
- obj.buys_show = false
- obj.buys_shows = true
- }
- if (obj.goodsStore == 0) {
- obj.buys_show = false;
- obj.buys_shows = true;
- }
- obj.specSelected[ind] = item.attr;
- },
-
- specOPne(type = 1) {
- console.log(type,'type+++++++++++++++++++++')
- let obj = this;
- obj.specClass = 'show';
- obj.type = type;
- },
-
- toggleSpec(str) {
- if (this.specClass === 'show') {
- this.specClass = 'hide';
- setTimeout(() => {
- this.specClass = 'none';
- }, 250);
- } else if (this.specClass === 'none') {
- this.specClass = 'show';
- }
-
- this.type = str;
- },
-
- Getcoupon() {
- uni.navigateTo({
- url: '/pages/coupon/getcoupon'
- });
- },
-
- navToDetailPage(item) {
- let id = item.id;
- uni.navigateTo({
- url: '/pages/product/product?id=' + id
- });
- },
-
- navTo(url) {
- uni.navigateTo({
- url
- });
- },
-
- Addcar(item) {
- let obj = this;
- console.log('加入购物车', obj.goodsNumber);
- cartAdd({
-
- cartNum: obj.goodsNumber,
- uniqueId: '',
- new: 0,
- mer_id: '',
- productId: item.id
- })
- .then(function(e) {
- uni.showToast({
- title: '成功加入购物车',
- type: 'top',
- duration: 500,
- icon: 'none'
- });
- obj.goodsDetail();
- })
- .catch(e => {
- console.log(e);
- });
- },
- goodsDetail() {
- let obj = this;
-
- goodsDetail({}, this.goodsid).then(function({ data }) {
- obj.list = data;
- console.log(data);
- obj.good_list = data.good_list;
- obj.reply = data.reply;
- let goods = data.storeInfo;
- obj.goodsObjact = goods;
- console.log(obj.goodsObjact, '++++++++++++++');
- if (obj.goodsObjact.description != null) {
- obj.description = obj.goodsObjact.description.replace(/\<img/gi, '<img class="rich-img"');
- }
- obj.imgList = goods.slider_image;
- obj.specList = data.productAttr;
- if (Array.isArray(data.productValue) != true) {
- obj.many = 2;
- obj.specList = data.productAttr;
- obj.productValue = data.productValue;
- obj.specSelected = [];
- for (let i = 0; i < obj.specList.length; i++) {
-
- let attrValue = obj.specList[i].attr_value[0];
- attrValue.check = true;
- obj.specSelected.push(attrValue.attr);
- }
- let str = obj.specSelected.join(',');
- console.log(str, 'str');
-
- obj.actionPrice = obj.productValue[str].price;
- obj.goodsNumberMax = obj.productValue[str].stock;
- obj.actionImage = obj.productValue[str].image;
- obj.uniqueId = obj.productValue[str].unique;
- obj.goodsStore = obj.productValue[str].quota;
- } else {
- obj.many = 1;
- }
- obj.productValue = data.productValue;
- obj.actionPrice = goods.price;
- obj.actionImage = goods.image_base;
- obj.goodsNumberMax = goods.stock;
- obj.shopId = data.mer_id;
- });
- },
- getGoodInfo() {
- let obj = this;
-
- seckillGoods({}, this.goodsid).then(function({ data }) {
- console.log(data);
- obj.list = data;
- obj.good_list = data.good_list;
- obj.reply = data.reply;
- let goods = data.storeInfo;
- obj.goodsObjact = goods;
- obj.goodsObjact.title = goods.title;
- obj.stopTimes = timeComputed(obj.list.isSeckillEnd.stop * 1000);
- console.log(obj.stopTimes, 'dddddddddd');
- if (obj.goodsObjact.description != null) {
- obj.description = obj.goodsObjact.description.replace(/\<img/gi, '<img class="rich-img"');
- }
- obj.imgList = goods.images;
- obj.specList = data.productAttr;
- if (Array.isArray(data.productValue) != true) {
- obj.many = 2;
- obj.specList = data.productAttr;
- obj.productValue = data.productValue;
- console.log(obj.productValue, 'obj.productValue++++++++');
- obj.specSelected = [];
- for (let i = 0; i < obj.specList.length; i++) {
-
- let attrValue = obj.specList[i].attr_value[0];
- attrValue.check = true;
- obj.specSelected.push(attrValue.attr);
- }
- let str = obj.specSelected.join(',');
- console.log(str, 'str');
-
- obj.actionPrice = obj.productValue[str].price;
- obj.goodsNumberMax = obj.productValue[str].stock;
- obj.actionImage = obj.productValue[str].image;
- obj.uniqueId = obj.productValue[str].unique;
- console.log(obj.uniqueId, 'obj.uniqueId+++默认');
- obj.goodsStore = obj.productValue[str].quota;
- } else {
- obj.many = 1;
- }
- obj.productValue = data.productValue;
- obj.actionPrice = goods.price;
- obj.actionImage = goods.image_base;
- obj.goodsNumberMax = goods.stock;
- obj.shopId = data.mer_id;
- });
- },
-
- buy() {
- let obj = this;
-
- let goodId = obj.goodsid;
- console.log('添加的数量', obj.goodsNumber);
-
-
-
-
-
-
- let is_new = 0
- if(obj.type == 1){
- is_new = 1
- }
- let data = {
- product_id: goodId,
- product_attr_unique: obj.uniqueId,
- cart_num: obj.goodsNumber,
- product_type: obj.product_type,
- is_new: is_new
- }
- console.log("立即购买++++++",data);
- cartAdd(data)
- .then(function(e) {
- console.log(e,"立即购买++++++fanhui")
- let da = e.data;
- if (obj.type == 1) {
-
- uni.navigateTo({
- url: '/pages/order/createOrder?id=' + da.cart_id
- });
- }
- if (obj.type == 2) {
- uni.showToast({
- title: '成功加入购物车',
- type: 'top',
- duration: 2000,
- icon: 'none'
- });
- obj.getProductDetail();
- }
- obj.toggleSpec();
- })
- .catch(e => {
- console.log(e);
- });
- },
-
- stopPrevent() {},
- bindChange(e) {
- this.goodsNumber = this.choNum[e.detail.value] * 1;
- console.log(this.goodsNumber);
- },
- numberChange(e) {
-
- this.chooseGoodsNumber = e.number;
- this.goodsNumber = e.number;
- },
-
-
-
-
- getGoodsDetails() {
- let obj = this;
- getSeckillProductDetail({}, this.goodsid).then(({ data }) => {
- console.log(data, 'goodInfo6666666666666');
- obj.imgList = data.slider_image;
- obj.sckillGoodInfo.title = data.store_name;
- obj.sckillGoodInfo.price = data.price;
- obj.sckillGoodInfo.ot_price = data.ot_price;
- obj.stopTimes = timeComputed(data.stop * 1000);
- obj.product_type = data.product_type
-
- if (data.content.content !== null) {
- obj.description = data.content.content.replace(/\<img/gi, '<img class="rich-img"');
- }
-
- getStoreDetail(data.mer_id).then(({ data }) => {
- console.log(data, 'shop data');
- obj.shopInfo = data;
- });
-
- obj.specList = data.attr;
- if (data.attr.length != 0) {
- console.log("有好多属性")
- obj.many = 2;
- obj.specList = data.attr;
- obj.productValue = data.sku;
- obj.specSelected = [];
- for (let i = 0; i < obj.specList.length; i++) {
-
- let attrValue = obj.specList[i].attr_value[0];
- attrValue.check = true;
- obj.specSelected.push(attrValue.attr);
- }
- let str = obj.specSelected.join(',');
- console.log(str, 'str');
-
- obj.actionPrice = obj.productValue[str].price;
- obj.goodsNumberMax = obj.productValue[str].stock;
- obj.actionImage = obj.productValue[str].image;
- obj.uniqueId = obj.productValue[str].unique;
- obj.goodsStore = obj.productValue[str].stock;
- } else {
- console.log("zhiyou yige shuxing")
- obj.many = 1;
- obj.productValue = data.sku[''];
- console.log(obj.productValue,'obj.productValue11111111111')
- obj.actionPrice =obj.productValue.price;
- obj.actionImage = obj.productValue.image;
- obj.goodsNumberMax = data.stock;
-
- obj.goodsStore = data.stock
- obj.uniqueId = obj.productValue.unique
- console.log(obj.uniqueId)
-
- }
- });
- },
- getProductDetail() {
- let obj = this
- getProductDetail(this.goodsid,{}).then(({data})=> {
- console.log(data,"putong+++++++++++++++")
-
- obj.imgList = data.slider_image;
- obj.goodInfo.title = data.store_name;
- obj.goodInfo.price = data.price;
- obj.goodInfo.ot_price = data.ot_price;
- console.log(obj.goodInfo,'goodInfo++++++++++++++')
-
- obj.stopTimes = timeComputed(data.stop * 1000);
- obj.product_type = data.product_type
-
- if (data.content.content !== null) {
- obj.description = data.content.content.replace(/\<img/gi, '<img class="rich-img"');
- }
-
- getStoreDetail(data.mer_id).then(({ data }) => {
- console.log(data, 'shop data');
- obj.shopInfo = data;
- });
-
- obj.specList = data.attr;
- if (data.attr.length != 0) {
- console.log("有好多属性")
- obj.many = 2;
- obj.specList = data.attr;
- obj.productValue = data.sku;
- obj.specSelected = [];
- for (let i = 0; i < obj.specList.length; i++) {
-
- let attrValue = obj.specList[i].attr_value[0];
- attrValue.check = true;
- obj.specSelected.push(attrValue.attr);
- }
- let str = obj.specSelected.join(',');
- console.log(str, 'str');
-
- obj.actionPrice = obj.productValue[str].price;
- obj.goodsNumberMax = obj.productValue[str].stock;
- obj.actionImage = obj.productValue[str].image;
- obj.uniqueId = obj.productValue[str].unique;
- obj.goodsStore = obj.productValue[str].stock;
- } else {
- console.log("zhiyou yige shuxing")
- obj.many = 1;
-
- obj.productValue = data.sku[''];
- console.log(obj.productValue,'obj.productValue11111111111')
- obj.actionPrice =obj.productValue.price;
- obj.actionImage = obj.productValue.image;
- obj.goodsNumberMax = data.stock;
-
- obj.goodsStore = data.stock
- obj.uniqueId = obj.productValue.unique
- console.log(obj.uniqueId)
-
- }
- })
- }
- }
- };
- </script>
- <style lang="scss">
- /* 弹出层 */
- .popup {
- position: fixed;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- z-index: 99;
- &.show {
- display: block;
- .mask {
- animation: showPopup 0.2s linear both;
- }
- .layer {
- animation: showLayer 0.2s linear both;
- }
- }
- &.hide {
- .mask {
- animation: hidePopup 0.2s linear both;
- }
- .layer {
- animation: hideLayer 0.2s linear both;
- }
- }
- &.none {
- display: none;
- }
- .mask {
- position: fixed;
- top: 0;
- width: 100%;
- height: 100%;
- z-index: 1;
- background-color: rgba(0, 0, 0, 0.4);
- }
- .layer {
- position: fixed;
- z-index: 99;
- bottom: 0;
- width: 100%;
- min-height: 35vh;
- border-radius: 10rpx 10rpx 0 0;
- background-color: #fff;
- .btn {
- height: 66rpx;
- line-height: 66rpx;
- border-radius: 100rpx;
- background: #901b21;
- font-size: $font-base + 2rpx;
- color: #fff;
- margin: 30rpx auto 20rpx;
- }
- }
- @keyframes showPopup {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- @keyframes hidePopup {
- 0% {
- opacity: 1;
- }
- 100% {
- opacity: 0;
- }
- }
- @keyframes showLayer {
- 0% {
- transform: translateY(120%);
- }
- 100% {
- transform: translateY(0%);
- }
- }
- @keyframes hideLayer {
- 0% {
- transform: translateY(0);
- }
- 100% {
- transform: translateY(120%);
- }
- }
- }
- /* 规格选择弹窗 */
- .attr-content {
- padding: 25rpx 30rpx;
- .a-t {
- display: flex;
- image {
- width: 170rpx;
- height: 170rpx;
- flex-shrink: 0;
- border-radius: 8rpx;
- }
- .right {
- display: flex;
- flex-direction: column;
- padding-left: 24rpx;
- font-size: $font-sm + 2rpx;
- color: $font-color-base;
- line-height: 42rpx;
- width: 75%;
- .price {
- font-size: $font-lg;
- color: #901b21;
- margin: 10rpx 0rpx;
- }
- .name {
- font-size: 32rpx;
- color: $font-color-dark;
- height: 50rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- display: block;
- }
- .selected-text {
- margin-right: 10rpx;
- }
- }
- }
- .attr-list {
- display: flex;
- flex-direction: column;
- font-size: $font-base + 2rpx;
- color: $font-color-base;
- padding-top: 30rpx;
- padding-left: 10rpx;
- }
- .item-list {
- padding: 20rpx 0 0;
- display: flex;
- flex-wrap: wrap;
- text {
- display: flex;
- align-items: center;
- justify-content: center;
- background: #eee;
- margin-right: 20rpx;
- margin-bottom: 20rpx;
- border-radius: 100rpx;
- min-width: 60rpx;
- height: 60rpx;
- padding: 0 20rpx;
- font-size: $font-base;
- color: $font-color-dark;
- }
- .selected {
- background: #ddffdf;
- color: $uni-color-primary;
- }
- }
- }
- //默认商品底部高度
- .goodsBottom {
- height: 160rpx;
- }
- page {
- background: #f0f0f0;
- }
- //秒杀、拼团底部高度
- .contentBottomHeight {
- height: 130rpx;
- }
- //默认商品底部高度
- .goodsBottom {
- height: 160rpx;
- }
- /deep/ .iconenter {
- font-size: $font-base + 2rpx;
- color: #888;
- }
- /deep/ .con_image {
- width: 130rpx;
- height: 130rpx;
- display: inline-block;
- padding: 15rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- /* 商品详情中限制图片大小 */
- /deep/ .rich-img {
- width: 100% !important;
- height: auto;
- }
- .cho-num {
- margin: 20rpx 0;
- width: 750rpx;
- height: 83rpx;
- background: #ffffff;
- padding: 29rpx 24rpx 30rpx 25rpx;
- font-size: 26rpx;
- font-weight: 500;
- color: #606972;
- }
- .row {
- display: flex;
- align-items: center;
- position: relative;
- padding: 0 30rpx;
- height: 110rpx;
- background: #fff;
- .refund {
- font-size: 30rpx;
- color: $font-color-dark;
- padding-left: 128rpx;
- }
- .noRefund {
- font-size: 30rpx;
- color: $font-color-light;
- padding-left: 128rpx;
- }
- .tit {
- flex-shrink: 0;
- width: 120rpx;
- font-size: 30rpx;
- color: $font-color-dark;
- }
- .input {
- flex: 1;
- font-size: 30rpx;
- color: $font-color-dark;
- padding-left: 128rpx;
- &.payColor {
- color: $color-red;
- }
- }
- .iconlocation {
- font-size: 36rpx;
- color: $font-color-light;
- }
- }
- .shop-info {
- width: 750rpx;
- height: 140rpx;
- margin: 20rpx 0;
- padding: 28rpx 24rpx 22rpx 16rpx;
- background-color: #fff;
- display: flex;
- position: relative;
- .shop-logo {
- width: 90rpx;
- height: 90rpx;
- border-radius: 50%;
- // background-color: red;
- // overflow: hidden;
- image {
- width: 90rpx;
- height: 90rpx;
- }
- }
- .shop-base {
- padding-left: 15rpx;
- // width: 376rpx;
- width: 100%;
- font-size: 24rpx;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- .base-name {
- padding-top: 14rpx;
- font-size: 30rpx;
- padding-bottom: 16rpx;
- font-weight: 500;
- color: #333333;
- }
- }
- .shop-dis {
- padding-top: 31rpx;
- position: absolute;
- font-size: 24rpx;
- font-weight: 500;
- color: #901b21;
- // line-height: 140rpx;
- right: 24rpx;
- image {
- padding-right: 5rpx;
- width: 21rpx;
- height: 21rpx;
- }
- }
- }
- .sckill-top {
- width: 750rpx;
- height: 165rpx;
- background-image: url(../../static/img/base-sckill.png);
- background-size: 100% 100%;
- position: relative;
- top: -40rpx;
- margin-bottom: -40rpx;
- display: flex;
- justify-content: space-between;
- .top-left {
- line-height: 1;
- .left-top {
- padding: 35rpx 0 23rpx 22rpx;
- font-size: 44rpx;
- font-weight: 500;
- color: #ffffff;
- line-height: 1;
- }
- .left-btm {
- line-height: 1;
- font-size: 30rpx;
- font-weight: 500;
- // text-decoration: line-through;
- color: #ffffff;
- .now-pri {
- display: inline-block;
- padding-right: 8rpx;
- font-size: 44rpx;
- font-weight: 800;
- color: #ffffff;
- }
- .old-pri {
- text-decoration: line-through;
- }
- }
- }
- .top-right {
- padding: 67rpx 20rpx 18rpx 0;
- .right-top {
- font-size: 22rpx;
- font-weight: 400;
- color: #ffffff;
- line-height: 1;
- padding-bottom: 8rpx;
- }
- }
- }
- .good-title {
- background-color: #fff;
- // height: 142rpx;
- padding: 24rpx 19rpx 24rpx 34rpx;
- line-height: 1.5;
- font-size: 36rpx;
- font-weight: 800;
- color: #333333;
- }
- .introduce-section {
- position: relative;
- background: #fff;
- padding: 35rpx 0rpx;
- padding-left: 20rpx;
- .title {
- font-size: 32rpx;
- color: $font-color-dark;
- padding-right: 34rpx;
- .tip-o {
- color: #ff3334;
- padding-left: 15rpx;
- }
- }
- .shareDate {
- position: absolute;
- top: 25rpx;
- right: 10rpx;
- font-size: 26rpx;
- color: #3d3f46;
- border-radius: 15rpx;
- background-color: #ffffff;
- height: 60rpx;
- line-height: 60rpx;
- &::after {
- border: none;
- }
- }
- .share-img {
- width: 30rpx;
- height: 30rpx;
- position: relative;
- top: 5rpx;
- left: 0;
- margin-right: 10rpx;
- }
- .info {
- color: #999999;
- font-size: 26rpx;
- padding-bottom: 15rpx;
- }
- .progress-box {
- width: 260rpx;
- position: relative;
- margin-top: 15rpx;
- line-height: 10px;
- .number {
- font-size: 17rpx;
- position: absolute;
- z-index: 999;
- top: 3rpx;
- left: 15rpx;
- color: #ffffff;
- }
- }
- .price-box {
- display: flex;
- align-items: baseline;
- height: 64rpx;
- padding: 10rpx 0;
- font-size: 27rpx;
- color: #EF041F;
- }
- .price {
- font-size: $font-lg + 6rpx;
- .text {
- padding-left: 5rpx;
- color: #b0b0b0;
- font-size: 22rpx !important;
- }
- }
- .price-green {
- color: #2dbd59;
- font-size: 28rpx !important;
- text {
- background: #2dbd59;
- color: #ffffff;
- padding: 0rpx 10rpx;
- border-radius: 5rpx;
- font-size: 22rpx !important;
- margin-left: 15rpx;
- }
- }
- .m-price {
- margin: 0 12rpx;
- color: $font-color-light;
- text-decoration: line-through;
- margin-left: 25rpx;
- font-size: 24rpx;
- }
- }
- </style>
|