| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541 |
- <template>
- <view class="">
- <view class="content" v-cloak>
- <view class="shop-banner">
- <view class="shop-banner" @click="showImg()">
- <swiper class="swiper" :indicator-dots="false" :circular="true" :autoplay="true" :interval="3000"
- :duration="1000" indicator-color="rgba(255, 255, 255, 0.6)" indicator-active-color="#ffffff"
- @change="swiperChange">
- <swiper-item class="swiper-item" v-for="(item,index) in banner" :key="index">
- <image :src="item" mode="aspectFill"></image>
- </swiper-item>
- </swiper>
- <!-- 底部遮罩 -->
- <view class="banner-mask"></view>
- <!-- 数量 -->
- <view class="num-box">{{ activeBanner }}/{{ banner.length }}</view>
- </view>
- </view>
- <!-- 详细信息 -->
- <view class="det-info">
- <view class="price-box">
- <view class="price">
- <text class="label">会员价</text>
- <text class="unit">¥</text>
- <text class="num">{{goosDetail.price}}</text>
- <text class="fs24 color-text2">零售价</text>
- <text class="old">¥{{goosDetail.otPrice}}</text>
- </view>
- <text class="fs24 color-text2">月售{{goosDetail.sales}}件</text>
- </view>
- <view class="name-box">
- {{goosDetail.productName}}
- </view>
- </view>
- </view>
- <view class="guige">
- <view class="safe-box">
- <text class="text">服务</text>
- <view class="box">
- <image class="mr20" src="/static/images/safe.png" mode=""></image>
- <view class="mr30" v-for="(item,index) in serviceList" :key="index">
- <text>{{item}}</text>
- </view>
- <!-- <view @click="openEditMoney()">
- <image class='w48 h48' src="/static/images/arrow4.png"></image>
- </view> -->
- </view>
- </view>
- <!-- 点击服务,出现弹窗-->
- <!-- <view class="popup-box" v-if="editShow">
- <view class="info-mask" @tap="cancelEditMoney()"></view>
- <view class="info-form">
- <view class="top">
- <view class="title">服务</view>
- <view class="close" @click="cancelEditMoney()">
- </view>
- </view>
- <view class="line"></view>
- <view class="form-box">
- <view class="form-item2">
- <view class="form-item-box">
- <text>免邮发货</text>
- </view>
- <view class="form-content">
- 订单支付成功后48小时内发货,若未在48小时内发货,平台审核后消费者将会收到至少3元无门槛红包(特殊商品及不可抗力因素除外)
- </view>
- </view>
- <view class="form-item2">
- <view class="form-item-box">
- <text>药师服务</text>
- </view>
- <view class="form-content">
- 用药关怀认证药师,24小时专业用药咨询
- </view>
- </view>
- <view class="form-item2">
- <view class="form-item-box">
- <text>隐私保护</text>
- </view>
- <view class="form-content">
- 除患者本人或其授权的代理人外,其他人员未经允许不得随意查阅患者的医疗记录
- </view>
- </view>
- </view>
- <view class="btns">
- <view class="sub-btn" @click="cancelEditMoney()">确定</view>
- </view>
- </view>
- </view> -->
- </view>
- <!-- 购买人数、库存 -->
- <view class="det-box">
- <view class="title">图文详情</view>
- <view class="inner">
- <view v-html="goosDetail.description" style="font-size:0"></view>
- </view>
- </view>
- <!-- 底部按钮 -->
- <view class="btn-foot">
- <view class="menu-box">
- <!-- <view class="item" @click="navgetTo('./storeOrderRefundList?liveId='+liveId)"
- style="position: relative;">
- <image src="/static/images/consult_small.png" mode=""></image>
- <text class="label">售后</text>
- </view> -->
- </view>
- <view class="btn-box">
- <view class="btn buy" @click="addCart('buy')">{{buyText}}</view>
- </view>
- </view>
- <!-- 选择药品规格弹窗 -->
- <popupBottom ref="popup" :visible.sync="specVisible" title=" " radius="32" maxHeight="800">
- <view class="product-spec">
- <view class="pro-info">
- <view class="img-box">
- <image :src="goosDetail.image ||'/static/images/img.png'" mode="aspectFill"></image>
- </view>
- <view class="info-text">
- <view class="info-title">{{goosDetail.productName}}</view>
- <view class="price">
- <view class="label">会员价</view>
- <text class="unit">¥</text>
- <text class="num">{{ goosDetail.price}}</text>
- </view>
- <view class="desc-box">
- <text class="text">月售{{goosDetail.sales}}件</text>
- </view>
- </view>
- </view>
- <view class="price-num">
- <view class="label">数量</view>
- <u-number-box bgColor="#f3f3f3" v-model="goodsNum" @change="goodsNumChange"></u-number-box>
- </view>
- <view class="sub-btn" @click="submit">确定</view>
- </view>
- </popupBottom>
- </view>
- </template>
- <script>
- import {
- liveGoodsDetail
- } from '@/api/living'
- import {
- liveCartDetails, //获取购物车详情
- updateConfirm, // 点击取消/支付订单
- updateLiveOrder, // 取消/支付订单
- liveOrderKey, // 生成订单key
- addLiveCart // 新增购物车
- } from "@/api/order.js"
- import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
- export default {
- components: {
- popupBottom
- },
- data() {
- return {
- banner: [],
- storeInfo: {},
- goodsId: null,
- totalNum: 1,
- orderKey: null,
- type: null,
- liveOrderList: [], //下订单的 不在这个页面
- liveId: null,
- storeId: null,
- serviceList: ['品质保障', '药师服务', '隐私保护'],
- // editShow: false,
- productId: null,
- goosDetail: {}, //商品详情
- loadding: true,
- buyText: "立即购买",
- goodsNum: 0, //商品选择数量
- attrs: [],
- values: [],
- stores: [],
- storeNames: [],
- storeIdx: 0,
- storeName: "",
- product: {
- price: 0,
- otPrice: 0,
- },
- showModal: false,
- // 当前轮播的图片
- activeBanner: 1,
- // 购物车数量
- cartCount: 0,
- // 规格弹窗
- specVisible: false,
- // // 规格数量
- // specNum: 1,
- config: null,
- showServiceFee: false,
- selectVal: "",
- // 链接带的storeId
- urlStoreId: undefined,
- // 所选店铺
- storeSelectInfo: {},
- // 保存选的规格
- choseSpecSubIndex: 0,
- choseSpecIndex: 0,
- };
- },
- onLoad(options) {
- console.log("商品详情options", options)
- if (options.productId) {
- this.productId = options.productId;
- }
- this.liveId = options.liveId
- this.goodsId = options.goodsId
- if (options.storeId) {
- this.storeId = options.storeId || ""
- } else {
- uni.showToast({
- title: "storeId不存在~",
- icon: "none"
- })
- }
- },
- mounted() {
- this.getliveGoods()
- var userInfo = uni.getStorageSync("userInfo")
- },
- methods: {
- // swiper变化事件
- swiperChange(event) {
- this.activeBanner = event.detail.current + 1
- },
- // //店铺展示
- // getliveStore() {
- // let data = {
- // pageSize: 10,
- // page: 1
- // }
- // liveStore(this.liveId, data).then(res => {
- // if (res.code == 200) {
- // console.log("小黄车 店铺展示>>>>", res)
- // this.products = res.data
- // } else {
- // uni.showToast({
- // title: res.msg,
- // icon: 'none'
- // });
- // }
- // },
- // rej => {}
- // );
- // },
- doAddCart(type) {
- if (this.totalNum == 0) {
- uni.showToast({
- icon: 'none',
- title: "库存不足",
- });
- return;
- }
- var isBuy = type == "buy" ? 1 : 0;
- if (type == "buy") {
- this.getKey()
- } else {
- this.getCartCount()
- uni.showToast({
- icon: 'success',
- title: "添加成功",
- });
- }
- },
- getCartCount() {
- let data = {
- productId: this.productId,
- liveId: this.liveId,
- goodsId: this.goodsId || "",
- cartNum: this.totalNum,
- };
- addLiveCart(data).then(
- res => {
- if (res.code == 200) {
- console.log("加购物车啦", res)
- this.cartCount = res.data;
- }
- },
- rej => {}
- );
- },
- // 获得key
- getKey() {
- liveOrderKey().then(res => {
- if (res.code == 200) {
- console.log("下订单的key>>>>", res)
- this.orderKey = res.orderKey
- console.log("key>>>>", this.orderKey)
- uni.navigateTo({
- url: '/pages_shopping/live/confirmCreateOrder?&orderKey=' + this.orderKey +
- '&liveId=' + this.liveId + '&goodsId=' + this.goodsId +
- '&productId=' + this.productId + '&totalNum=' + this
- .totalNum
- })
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- // 选择商品数量
- goodsNumChange(e) {
- console.log('当前选择商品数量为: ' + e.value)
- this.totalNum = e.value
- },
- // 提交
- submit() {
- this.specVisible = false
- this.doAddCart(this.type);
- },
- // 加入购物车
- addCart(type) {
- this.type = type;
- this.specVisible = true
- },
- // 跳转页面
- navgetTo(url) {
- uni.navigateTo({
- url: url
- })
- },
- // openEditMoney() {
- // this.editShow = true;
- // },
- // cancelEditMoney(){
- // this.editShow = false;
- // },
- //商品详情
- getliveGoods() {
- if (!this.productId) return;
- uni.showLoading({
- title: '加载中'
- });
- liveGoodsDetail(this.productId).then(res => {
- uni.hideLoading()
- if (res.code == 200) {
- // console.log("小黄车 商品详情>>>>", res)
- this.goosDetail = res.data
- this.banner = res.data.sliderImage.split(',');
- // console.log("轮播图",this.banner)
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- }
- }
- </script>
- <style lang="scss">
- [v-cloak] {
- display: none;
- }
- .content {
- font-family: PingFang SC;
- }
- .share-box {
- position: fixed;
- right: 24rpx;
- top: 70%;
- z-index: 99;
- width: 112rpx;
- height: 112rpx;
- border-radius: 16rpx 16rpx 16rpx 16rpx;
- border: 1rpx solid #EFF3F7;
- background-color: #FFFFFF;
- }
- .shop-banner {
- height: 756rpx;
- background-color: #FFFFFF;
- position: relative;
- .swiper-item {
- box-sizing: border-box;
- position: relative;
- }
- .swiper,
- .swiper-item,
- .swiper-item image {
- width: 100%;
- height: 100%;
- }
- .banner-mask {
- width: 100%;
- height: 44rpx;
- position: absolute;
- left: 0;
- bottom: 0;
- z-index: 9;
- background-size: 20rpx 44rpx;
- background-repeat: repeat-x;
- }
- .num-box {
- width: 80rpx;
- height: 40rpx;
- line-height: 40rpx;
- text-align: center;
- font-size: 24rpx;
- color: #FFFFFF;
- background: rgba(0, 0, 0, .7);
- border-radius: 20rpx;
- position: absolute;
- right: 40rpx;
- bottom: 34rpx;
- z-index: 10;
- }
- .cf-box {
- position: absolute;
- z-index: 10;
- left: 0;
- right: 0;
- top: calc(50% - 200rpx);
- bottom: calc(50% - 200rpx);
- background-color: rgba(0, 0, 0, 0.3);
- backdrop-filter: blur(2rpx);
- /* 背景模糊度 */
- display: flex;
- flex-direction: column;
- flex: 1;
- justify-content: center;
- align-items: center;
- color: #EDEEEF;
- .title {
- font-size: 40rpx;
- font-weight: bold;
- }
- .subTitle {
- font-size: 28rpx;
- font-weight: bold;
- margin-top: 10rpx;
- }
- }
- }
- .guige {
- padding: 24rpx;
- border-radius: 16rpx;
- background: #fff;
- width: auto;
- font-size: 24rpx;
- color: #222426;
- margin: 24rpx;
- .guige-gg {
- .gg-text {
- color: #898E91;
- margin-right: 40rpx;
- }
- }
- .safe-box {
- display: flex;
- align-items: center;
- padding-top: 24rpx;
- font-size: 24rpx;
- color: #222426;
- .text {
- color: #999999;
- margin-right: 40rpx;
- }
- .box {
- display: flex;
- align-items: center;
- image {
- width: 28rpx;
- height: 28rpx;
- margin-right: 10rpx;
- }
- view {
- display: flex;
- align-items: center;
- margin-right: 40rpx;
- &:last-child {
- margin-right: 0;
- image {
- margin-right: 0;
- }
- }
- }
- }
- }
- .popup-box {
- position: fixed;
- top: 0;
- right: 0;
- left: 0;
- bottom: 0;
- z-index: 999;
- display: flex;
- justify-content: center;
- align-items: flex-end;
- .info-mask {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background-color: rgba($color: #000000, $alpha: 0.5);
- z-index: 999;
- }
- .info-form {
- z-index: 1000;
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- padding: 0 30rpx 60rpx;
- background: #FFFFFF;
- border-radius: 40rpx;
- .top {
- display: flex;
- }
- .line {
- border-top: 1px solid #F1F1F1;
- width: 100%;
- }
- .title {
- padding: 30rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 36rpx;
- font-weight: bold;
- line-height: 44rpx;
- color: #222222;
- }
- .close {
- padding-top: 30rpx;
- position: absolute;
- right: 30rpx;
- }
- .form-box {
- width: 100%;
- padding-top: 30rpx;
- .form-item2 {
- padding-bottom: 30rpx;
- // display: flex;
- // align-items: flex-start;
- // border-bottom: 1px solid #F1F1F1;
- .form-item-box {
- display: flex;
- align-items: center;
- text {
- font-size: 28rpx;
- color: #222426;
- margin-left: 10rpx;
- font-weight: bold;
- }
- }
- .form-content {
- font-size: 24rpx;
- text-align: left;
- color: #626468;
- margin-top: 20rpx;
- line-height: 40rpx;
- }
- }
- }
- .btns {
- width: 100%;
- height: 120rpx;
- padding: 20rpx 30rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- .sub-btn {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- font-size: 36rpx;
- font-weight: bold;
- color: #FFFFFF;
- background: #2BC7B9;
- border-radius: 44rpx;
- }
- }
- }
- }
- }
- .det-info {
- // background: #FFFFFF;
- // padding: 36rpx 30rpx 25rpx;
- background: #FFFFFF;
- padding: 24rpx;
- margin: 24rpx;
- border-radius: 16rpx;
- .price-box {
- display: flex;
- align-items: flex-end;
- justify-content: space-between;
- .price {
- display: flex;
- align-items: flex-end;
- .label {
- font-weight: 500;
- font-size: 24rpx;
- color: #FF5030;
- line-height: 1.3;
- margin-right: 10rpx;
- }
- .unit {
- font-size: 26rpx;
- font-weight: bold;
- color: #FF6633;
- line-height: 1.3;
- }
- .num {
- font-size: 48rpx;
- font-weight: bold;
- color: #FF5030;
- margin-right: 20rpx;
- line-height: 1;
- }
- .old {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 400;
- text-decoration: line-through;
- color: #898E91;
- margin-left: 10rpx;
- line-height: 1.3;
- }
- }
-
- .spec {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 36rpx;
- }
- }
- .name-box {
- font-size: 32rpx;
- font-weight: bold;
- color: #111111;
- line-height: 44rpx;
- margin-top: 32rpx;
- .tag {
- display: inline-block;
- padding: 2rpx 8rpx;
- height: 32rpx;
- background: #F5A623;
- border-radius: 4rpx;
- margin-right: 10rpx;
- font-weight: 400;
- font-size: 20rpx;
- color: #FFFFFF;
- line-height: 30rpx;
- float: left;
- margin-top: 7rpx;
- }
- }
- .intro {
- font-size: 26rpx;
- font-weight: 500;
- color: #999999;
- line-height: 36rpx;
- padding: 18rpx 0 23rpx;
- }
- .intro-box {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 20rpx;
- border-radius: 16rpx;
- background: #F5F7FA;
- width: auto;
- .title-1 {
- font-size: 24rpx;
- color: #222426;
- font-weight: bold;
- width: 40%;
- text-align: center;
- }
- .title-2 {
- font-size: 24rpx;
- color: #222426;
- font-weight: bold;
- display: block;
- }
- .intro-text {
- // padding: 0 20rpx;
- }
- .intro-text2 {
- width: 50%;
- }
- .intro-content {
- color: #898E91;
- font-size: 24rpx;
- }
- .line {
- width: 1px;
- height: 40rpx;
- background: #EDEEEF;
- margin: 0 20rpx;
- }
- }
- .safe-box {
- display: flex;
- align-items: center;
- padding-top: 24rpx;
- image {
- width: 20rpx;
- height: 24rpx;
- margin-right: 20rpx;
- }
- .text {
- font-size: 22rpx;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- }
- .line {
- width: 1px;
- height: 23rpx;
- background: #EDEEEF;
- margin: 0 20rpx;
- }
- }
- }
- .inventor {
- height: 88rpx;
- padding: 0 39rpx 0 30rpx;
- margin-top: 10rpx;
- background: #FFFFFF;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- display: flex;
- align-items: center;
- .head-box {
- margin-right: 27rpx;
- display: flex;
- align-items: center;
- .head {
- width: 48rpx;
- height: 48rpx;
- border-radius: 50%;
- overflow: hidden;
- box-shadow: 0 0 0 1px #fff;
- margin-right: -10rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
- .num-box {
- font-size: 24rpx;
- font-weight: 500;
- color: #999999;
- .text {
- font-size: 24rpx;
- font-weight: 500;
- color: #999999;
- }
- }
- }
- .right {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- .text {
- font-size: 24rpx;
- font-weight: 500;
- color: #666666;
- }
- }
- }
- .effect {
- box-sizing: border-box;
- padding: 20rpx 30rpx;
- background: #FFFFFF;
- font-size: 28rpx;
- font-weight: 500;
- color: #666666;
- line-height: 1.8;
- margin-top: 10rpx;
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- .label {
- font-size: 28rpx;
- font-weight: 500;
- color: #111111;
- line-height: 1.8;
- }
- }
- .shop-box {
- display: flex;
- justify-content: space-between;
- align-items: center;
- background: #FFFFFF;
- font-size: 28rpx;
- font-weight: 500;
- color: #666666;
- line-height: 1.8;
- padding: 24rpx;
- margin: 24rpx;
- border-radius: 16rpx;
- .logo {
- flex-shrink: 0;
- width: 100rpx;
- height: 100rpx;
- border-radius: 16rpx;
- overflow: hidden;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .txtBox {
- flex: 1;
- overflow: hidden;
- margin: 0 30rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- .name {
- font-size: 32rpx;
- font-weight: 600;
- color: #333;
- text-align: left;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .desc {
- font-size: 24rpx;
- font-weight: normal;
- color: #222426;
- text-align: left;
- }
- .goShop {
- flex-shrink: 0;
- width: 96rpx;
- height: 56rpx;
- background: #fff;
- border-radius: 30rpx;
- color: #008FD3;
- font-size: 24rpx;
- margin: 0;
- border: 1px solid #008FD3;
- padding: 0;
- line-height: 56rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- .tech-pBox {
- box-sizing: border-box;
- padding: 0rpx 0rpx;
- background: #FFFFFF;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- .label {
- font-weight: bold;
- font-size: 26rpx;
- color: #222426;
- text-align: left;
- padding: 24rpx 0;
- }
- .item {
- border: 1px solid #fff;
- border-radius: 12rpx;
- padding: 30rpx;
- border: 1px solid #EFF3F7;
- display: flex;
- align-items: center;
- margin-bottom: 20rpx;
- .price {
- font-size: 42rpx;
- font-weight: bold;
- color: #FF6633;
- display: flex;
- flex: 1;
- }
- .num {
- font-size: 28rpx;
- font-weight: normal;
- color: #999;
- width: 200rpx;
- text-align: right;
- }
- .name {
- max-width: 60%;
- margin-right: 10rpx;
- font-size: 28rpx;
- font-weight: normal;
- color: #333;
- text-align: left;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- image {
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
- margin-right: 30rpx;
- }
- .tech-right {
- flex: 1;
- &-bottom {
- color: #898E91;
- font-size: 24rpx;
- }
- &-top {
- display: flex;
- align-items: flex-end;
- margin-bottom: 10rpx;
- .title-1 {
- font-size: 32rpx;
- color: #222426;
- margin-right: 14rpx;
- }
- .title-2 {
- font-weight: 400;
- font-size: 24rpx;
- color: #222426;
- }
- }
- }
- }
- .hover {
- border: 1rpx solid #008FD3;
- background: #F0FAFF;
- }
- .shop-morebtn {
- margin-top: 14rpx;
- box-sizing: border-box;
- padding: 12rpx 30rpx;
- font-size: 28rpx;
- font-weight: 500;
- color: #111111;
- background: #F7F7F7;
- border-radius: 32rpx;
- text-align: center;
- text {
- color: #999;
- }
- }
- }
- .shop-pBox {
- box-sizing: border-box;
- padding: 0rpx 0rpx;
- background: #FFFFFF;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- .item {
- border: 1px solid #fff;
- border-radius: 12rpx;
- padding: 18rpx 20rpx 24rpx;
- .price {
- font-size: 42rpx;
- font-weight: bold;
- color: #FF6633;
- display: flex;
- flex: 1;
- .strong {
- font-size: 30rpx;
- line-height: 46rpx;
- margin-top: 14rpx;
- }
- }
- .num {
- font-size: 28rpx;
- font-weight: normal;
- color: #999;
- width: 200rpx;
- text-align: right;
- }
- .name {
- max-width: 60%;
- margin-right: 10rpx;
- font-size: 28rpx;
- font-weight: normal;
- color: #333;
- text-align: left;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- .hover {
- border: 1rpx solid #FF6633;
- }
- .shop-morebtn {
- margin-top: 14rpx;
- box-sizing: border-box;
- padding: 12rpx 30rpx;
- font-size: 28rpx;
- font-weight: 500;
- color: #111111;
- background: #F7F7F7;
- border-radius: 32rpx;
- text-align: center;
- text {
- color: #999;
- }
- }
- }
- .shop-pBox-name {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- }
- .storepopup {
- padding: 40rpx 20rpx 20rpx 20rpx;
- .storepopup-title {
- text-align: center;
- margin-bottom: 30rpx;
- position: relative;
- .close-icon {
- width: 40rpx;
- height: 40rpx;
- position: absolute;
- right: 0;
- top: 50%;
- transform: translate(0, -50%);
- }
- }
- .storepopup-box {
- height: 60vh;
- }
- }
- .det-box {
- margin-top: 10rpx;
- background-color: #FFFFFF;
- padding: 24rpx;
- margin: 24rpx 24rpx 175rpx 24rpx;
- border-radius: 16rpx;
- .title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333333;
- line-height: 60rpx;
- margin-bottom: 30rpx;
- padding-bottom: 24rpx;
- border-bottom: 1px solid #ECECEC;
- }
- .inner {
- margin-bottom: 100rpx;
- }
- .det-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .tt {
- font-size: 28rpx;
- font-weight: bold;
- color: #222426;
- }
- }
- .det-right {
- display: flex;
- font-size: 24rpx;
- color: #898E91;
- align-items: center;
- }
- .det-table {
- width: 100%;
- margin: 24rpx 0;
- background: #FFFFFF;
- border-radius: 16rpx 16rpx 16rpx 16rpx;
- border: 1rpx solid #ECECEC;
- overflow: hidden;
- font-size: 24rpx;
- .row {
- display: table-row;
- }
- .row:last-child .cell-1,
- .row:last-child .cell-2 {
- border-bottom: 0;
- }
- .cell {
- display: table-cell;
- padding: 24rpx;
- &.cell-1 {
- width: 30%;
- text-align: center;
- color: #626468;
- background: #F5F7FA;
- border-right: 1rpx solid #ECECEC;
- border-bottom: 1rpx solid #ECECEC;
- }
- &.cell-2 {
- color: #222426;
- text-align: center;
- border-bottom: 1rpx solid #ECECEC;
- }
- }
- }
- }
- .btn-foot {
- box-sizing: border-box;
- width: 100%;
- height: 151rpx;
- background: #FFFFFF;
- padding: 0 24rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- position: fixed;
- left: 0;
- bottom: 0;
- z-index: 99;
- .menu-box {
- display: flex;
- align-items: center;
- .item {
- display: flex;
- align-items: center;
- flex-direction: column;
- margin-right: 48rpx;
- &:last-child {
- margin-right: 0;
- }
- image {
- width: 40rpx;
- height: 40rpx;
- margin-bottom: 10rpx;
- }
- .label {
- font-size: 20rpx;
- font-weight: 500;
- color: #626468;
- text-align: center;
- }
- }
- }
- .btn-box {
- display: flex;
- align-items: center;
- .btn {
- width: 200rpx;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- border-radius: 44rpx;
- margin-left: 20rpx;
- font-size: 28rpx;
- font-weight: bold;
- color: #FFFFFF;
- &:first-child {
- margin-left: 0;
- }
- &.cart {
- background: #FF5030;
- }
- &.buy {
- background: #2bc7b9;
- }
- }
- }
- }
- .product-spec {
- padding-bottom: 30rpx;
- .pro-info {
- display: flex;
- align-items: center;
- .img-box {
- width: 200rpx;
- height: 200rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- overflow: hidden;
- margin-right: 30rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .info-text {
- height: 200rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .info-title {
- font-family: PingFang SC;
- font-weight: 600;
- font-size: 28rpx;
- color: #222426;
- text-align: left;
- }
- .price {
- display: flex;
- align-items: flex-end;
- .label {
- font-weight: 500;
- font-size: 24rpx;
- color: #FF5030;
- line-height: 1.3;
- margin-right: 10rpx;
- }
- .unit {
- font-size: 32rpx;
- font-weight: bold;
- color: #FF6633;
- line-height: 1.2;
- margin-right: 10rpx;
- }
- .num {
- font-size: 50rpx;
- font-weight: bold;
- color: #FF6633;
- line-height: 1;
- }
- }
- .desc-box {
- display: flex;
- flex-direction: column;
- padding-bottom: 9rpx;
- .text {
- font-size: 26rpx;
- font-weight: 500;
- color: #999999;
- margin-top: 27rpx;
- line-height: 1;
- &:first-child {
- margin-top: 0;
- }
- }
- }
- }
- }
- .price-num {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 30rpx;
- .label {
- font-size: 36rpx;
- font-weight: bold;
- color: #111111;
- }
- }
- .sub-btn {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- font-size: 32rpx;
- font-weight: bold;
- color: #FFFFFF;
- background: #2BC7B9;
- border-radius: 44rpx;
- margin-top: 30rpx;
- // margin-bottom: 30rpx;
- }
- }
- .contact-btn {
- display: inline-block;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
- z-index: 9999;
- }
- .loadding {
- background-color: #fff;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 9999;
- image {
- border-radius: 50%;
- animation: load linear 1s infinite;
- width: 120rpx;
- height: 120rpx;
- }
- .text {
- font-size: 28rpx;
- margin-top: 20rpx;
- }
- }
- .form-item {
- padding: 30rpx 0;
- display: flex;
- align-items: flex-start;
- border-bottom: 1px solid #F1F1F1;
- &:last-child {
- border-bottom: none;
- }
- .label {
- width: 180rpx;
- text-align: left;
- font-size: 30rpx;
- line-height: 44rpx;
- font-weight: 500;
- color: #222222;
- flex-shrink: 0;
- }
- input {
- text-align: left;
- }
- .form-input {
- font-size: 30rpx;
- font-weight: 500;
- color: #999999;
- text-align: left;
- }
- .form-textarea {
- font-size: 30rpx;
- color: #999999;
- height: 100rpx;
- padding: 4rpx 0;
- }
- .birth-picker {
- flex: 1;
- display: flex;
- align-items: center;
- .right-box {
- width: 100%;
- display: flex;
- align-items: center;
- .input-box {
- width: 470rpx;
- }
- .arrow {
- width: 13rpx;
- height: 23rpx;
- margin-left: 20rpx;
- }
- }
- }
- }
- </style>
|