123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851 |
- <template>
- <view class="">
- <view class="content">
- <!-- <view class="share-box centerV ">
- <image class="w48 h48 " src="" mode=""></image>
- <text class="color-text mt8 weight-500 fs20">微信分享</text>
- </view> -->
- <!-- 商品轮播图片 -->
- <!-- <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="">
- <swiper-item class="swiper-item" v-for="(item,index) in banner" :key="index">
- <image :src="item" mode="aspectFill"></image>
- <view class="cf-box" v-if="product.productType==2">
- <view class="title">处方药</view>
- <view class="subTitle">请在医师指导下使用</view>
- </view>
- </swiper-item>
- </swiper>
-
- 底部遮罩
- <view class="banner-mask"></view>
- 数量
- <view class="num-box"><text class="weight-500">{{ activeBanner }}</text>/{{ banner.length }}</view>
- </view> -->
- <view class="shop-banner">
- <view class="swiper">
- <view class="swiper-item">
- <image :src="goosDetail.imgUrl" mode="aspectFill"></image>
- <view class="cf-box" v-if="product.productType==2">
- <view class="title">处方药</view>
- <view class="subTitle">请在医师指导下使用</view>
- </view>
- </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>
- </view>
- <view class="guige">
- <view class="guige-gg">
- <text class="gg-text">规格</text>
- <text class="gg-text2">云南白药气雾剂 85g+30g *1 、说明书*1</text>
- </view>
- <view class="safe-box">
- <text class="text">服务</text>
- <view class="box">
- <view v-for="(item,index) in serviceList" :key="index">
- <image src="/static/images/googs_service.png" mode=""></image>
- <text>{{item}}</text>
- </view>
- <view @click="openEditMoney()">
- <image class='w48 h48' src="/static/images/right_arrow.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()">
- <image class='w48 h48' src="" mode=""></image>
- </view>
- </view>
- <view class="line"></view>
- <view class="form-box">
- <view class="form-item2">
- <view class="form-item-box">
- <image class='w28 h28' src="" mode=""></image>
- <text>免邮发货</text>
- </view>
- <view class="form-content">
- 订单支付成功后48小时内发货,若未在48小时内发货,平台审核后消费者将会收到至少3元无门槛红包(特殊商品及不可抗力因素除外)
- </view>
- </view>
- <view class="form-item2">
- <view class="form-item-box">
- <image class='w28 h28' src="" mode=""></image>
- <text>药师服务</text>
- </view>
- <view class="form-content">
- 用药关怀认证药师,24小时专业用药咨询
- </view>
- </view>
- <view class="form-item2">
- <view class="form-item-box">
- <image class='w28 h28' src="" mode=""></image>
- <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="shop-box" v-if="storeInfo">
- <view class=""
- style="flex: 1;overflow: hidden; display: flex; justify-content: space-between; align-items: center;">
- <!-- 店铺图片logo -->
- <view class="logo">
- <image :src="storeInfo?.logoUrl || $img.img" mode="aspectFill"></image>
- </view>
- <view class="txtBox">
- <view class="name">{{storeInfo?.storeName}}</view>
- <view class="desc">24小时营业 · 月售{{storeInfo?.salesCount }} · 支持预订</view>
- </view>
- </view>
- <button class="goShop" @click="navgetTo('/pages_shop/store?liveId='+liveId+ '&storeId=' +storeId)">进店</button>
- </view>
- <!-- 图文详情 -->
- <view class="det-box">
- <view class="title">药品详情</view>
- <view class="det-title">
- <view class="tt">说明书</view>
- <view class="det-right">
- <text>查看详情</text>
- <image class='w48 h48' src=""></image>
- </view>
- </view>
- <view class="det-table">
- <view class="row">
- <text class="cell cell-1">通用名称</text>
- <text class="cell cell-2">云南白药气雾剂</text>
- </view>
- <view class="row">
- <text class="cell cell-1">成份</text>
- <text class="cell cell-2">国家保密方,本品含草乌(制)、雪上一枝蒿(制),其余成份略。</text>
- </view>
- <view class="row">
- <text class="cell cell-1">性状</text>
- <text class="cell cell-2">云南白药气雾剂为非定量阀门气雾剂,在耐压容器中的药液为淡黄...</text>
- </view>
- </view>
- <view class="inner">
- <view v-html="product.description" style="font-size:0"></view>
- </view>
- </view>
- <!-- 底部按钮 -->
- <view class="btn-foot">
- <view class="menu-box">
- <view class="item" @click="navgetTo('/pages_shop/store?liveId='+liveId+ '&storeId=' +storeId)">
- <image src="/static/images/googs1.png" mode=""></image>
- <text class="label">店铺</text>
- </view>
- <!-- <view class="item" @click="navgetTo('pages/home/living')" style="position: relative;">
- <image src="/static/images/googs2.png" mode=""></image>
- <text class="label">直播间</text>
- <button class="contact-btn" open-type="contact"></button>
- </view> -->
- <!-- <view class="item" style="position: relative;">
- <image src="/static/images/googs2.png" mode=""></image>
- <text class="label">咨询</text>
- <button class="contact-btn" open-type="contact"></button>
- </view> -->
- <view class="item" @click="navgetTo('./cart')">
- <uni-badge size="small" :text="cartCount" absolute="rightTop" type="error">
- <image src="/static/images/googs3.png" mode=""></image>
- </uni-badge>
- <text class="label">购物车</text>
- </view>
- </view>
- <view class="btn-box">
- <view class="btn cart" @click="addCart('cart')">加入购物车</view>
- <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?.imgUrl ||$img.img " 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 ? goosDetail.price.toFixed(2) : '0.00' }}</text>
- </view>
- <view class="desc-box">
- <text class="text">月售{{goosDetail.sales}}件</text>
- </view>
- </view>
- </view>
- <!-- 选择健康管理师 -->
- <!-- <view class="tech-pBox" style="margin-top: 20rpx;">
- <view class="label">选择健康管理师</view>
- <view v-for="(item,index) in storePriceList.slice(0,2)" :key="index"
- :class="productValueSelect.storeId == item.storeId ? 'item hover':'item'"
- @click="storeChange(item,index)">
- <image mode="aspectFill"
- :src="productValueSelect.image==null||productValueSelect.image==''?product.image:productValueSelect.image">
- </image>
- <view class="tech-right">
- <view class="tech-right-top">
- <text class="title-1">秦宇</text>
- <text class="title-2">健康管理师/执业药师</text>
- </view>
- <view class="tech-right-bottom">{{item.storeName}}</view>
- </view>
- </view>
- </view> -->
- <u-popup :show="showStorePicker" :round="16" mode="bottom">
- <view class="storepopup">
- <view class="storepopup-title">
- 选择店铺
- <image class="close-icon" src="" mode="widthFix"></image>
- </view>
- <scroll-view enable-flex class="shop-pBox storepopup-box" scroll-y="true">
- <view v-for="(item,index) in storePriceList" :key="index"
- :class="productValueSelect.storeId == item.storeId ? 'item hover':'item'"
- @click="pickerStore(item,index)">
- <view class="top x-bc">
- <view class="price"><text class="strong">¥</text>{{ item.price.toFixed(2) }}</view>
- <view class="num">销售{{utils.formatSalesNum(item.sales) }}</view>
- </view>
- <view class="bot x-bc shop-pBox-name">
- <view class="name">{{item.storeName}}</view>
- <u-icon name="arrow-right" color="#000" size="14"></u-icon>
- </view>
- </view>
- </scroll-view>
- </view>
- </u-popup>
- <!-- <view class="spec-box">
- <view v-for="(item,index) in attrs">
- <view class="title">{{item.attrName}}</view>
- <view class="spec-list">
- <view v-for="(subItem,subindex) in item.values" :key="subindex"
- :class="subindex==item.index?'item active':'item'">
- {{ subItem }}
- </view>
- </view>
- </view>
- </view> -->
- <view class="price-num">
- <view class="label">数量</view>
- <u-number-box bgColor="#ececec" v-model="goodsNum" @change="goodsNumChange"></u-number-box>
- </view>
- <view class="sub-btn" @click="submit">确定</view>
- </view>
- </popupBottom>
- <!-- <view class="loadding" v-if="loadding==true">
- <image src=""></image>
- <text class="text">加载中...</text>
- </view> -->
- <!-- <u-modal :show="showModal" title="温馨提示" content="处方药须凭处方在药师指导下购买和使用" @confirm="hideModal()"></u-modal> -->
- <!-- <view>
- <view @click="operateOrder(0)" style="background-color: aqua; padding: 100rpx;">取消</view>
- <view @click="operateOrder(1)" style="background-color: #ff0004;padding: 150rpx;">确认</view>
- </view> -->
- </view>
- </template>
- <script>
- import {
- store //查询店铺
- } from '@/api/live'
- import {
- liveCartDetails, //获取购物车详情
- updateConfirm, // 点击取消/支付订单
- updateLiveOrder, // 取消/支付订单
- liveOrderKey, // 生成订单key
- addLiveCart // 新增购物车
- } from "@/api/order.js"
- import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
- import {
- liveGoodsDetail
- } from "@/api/live.js"
- export default {
- components: {
- popupBottom
- },
- data() {
- return {
- storeInfo:{},
- goodsId: null,
- totalNum: 1,
- orderKey: null,
- type: null,
- liveOrderList: [], //下订单的 不在这个页面
- liveId: null,
- storeId:null,
- serviceList: ['免邮发货', '药师服务', '隐私保护'],
- editShow: false,
- productId: null,
- goosDetail: {}, //商品详情
- loadding: true,
- buyText: "立即购买",
- showStorePicker: false,
- 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,
- // 所选规格门店店铺价格
- storePriceList: [],
- // 所选店铺
- storeSelectInfo: {},
- // 保存选的规格
- choseSpecSubIndex: 0,
- choseSpecIndex: 0,
- };
- },
- onLoad(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"
- })
- }
- // console.log("options", JSON.stringify(options))
- // if (options.param) {
- // console.log("param", JSON.stringify(param))
- // this.productId = options.param.productId;
- // this.liveId = options.param.liveId;
- // this.storeId = options.param.storeId;
- // // this.productId = decodeURIComponent(options.productId);
- // console.log("接收到的productId:", this.productId);
- // }
- },
- mounted() {
- this.getliveGoods()
- var userInfo = uni.getStorageSync("userInfo")
- console.log("之前的数据在这里", userInfo)
- this.getSearchStore() //查询店铺
- },
- onShow() {
- },
- methods: {
- //查询店铺
- getSearchStore() {
- let key=""
- store(this.storeId,key).then(res => {
- if (res.code == 200) {
- console.log("查询店铺>>>>", res)
- this.storeInfo=res.data
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
-
- //店铺展示
- 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 => {}
- );
- },
- // getLiveCartDetails() {
- // let data = {
- // productId: this.productId,
- // liveId: this.liveId,
- // goodsId: this.goodsId,
- // cartNum: this.totalNum,
- // };
- // liveCartDetails(data).then(
- // res => {
- // if (res.code == 200) {
- // console.log("加购物车啦", res)
- // this.cartCount = cartRes.data;
- // }
- // },
- // rej => {}
- // );
- // },
- doAddCart(type) {
- if (this.totalNum == 0) {
- uni.showToast({
- icon: 'none',
- title: "库存不足",
- });
- return;
- }
- var isBuy = type == "buy" ? 1 : 0;
- // let data = {
- // isBuy: isBuy,
- // cartNum: this.totalNum,
- // productId: this.productId,
- // };
- 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_shop/confirmCreateOrder?type=goods&orderKey=' + this.orderKey +
- '&liveId=' +
- this.liveId + '&productId=' + this.productId + '&totalNum=' + this
- .totalNum + '&price=' + this.goosDetail.price
- })
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- // 点击取消/支付订单
- operateOrder(type) {
- // console.log("this.liveOrderList" ,JSON.parse( this.liveOrderList.orderId));
- let orderId = this.liveOrderList
- console.log("orderId>>", orderId)
- // updateConfirm(orderId, type).then(res => {
- // if (res.code == 200) {
- // console.log("点击取消/支付订单>>>>", res)
- // } 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) {
- console.log("跳转")
- uni.navigateTo({
- url: url
- })
- },
- openEditMoney() {
- this.editShow = true;
- },
- //商品详情
- getliveGoods() {
- liveGoodsDetail(this.productId).then(res => {
- if (res.code == 200) {
- console.log("小黄车 商品详情>>>>", res)
- this.goosDetail = res.data
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- }
- }
- </script>
- <style lang="scss">
- .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-image: url(../../static/images/black_mask.png);
- 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: #008FD3;
- 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;
- }
- }
- // .share-box{
- // width: 120rpx;
- // height: 46rpx;
- // border: 1px solid #0bb3f2;
- // border-radius: 23rpx;
- // display: flex;
- // align-items: center;
- // justify-content: center;
- // position: relative;
- // .text{
- // font-size: 26rpx;
- // font-family: PingFang SC;
- // font-weight: 500;
- // color: #0bb3f2;
- // }
- // image{
- // margin-left: 2rpx;
- // width: 25rpx;
- // height: 24rpx;
- // }
- // .share{
- // display: inline-block;
- // position: absolute;
- // top: 0;
- // left: 0;
- // width: 100%;
- // height: 100%;
- // opacity: 0;
- // }
- // }
- .spec {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 36rpx;
- }
- }
- // .name-box {
- // font-size: 32rpx;
- // font-family: PingFang SC;
- // 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 {
- // box-sizing: border-box;
- // padding: 20rpx 30rpx;
- // background: #FFFFFF;
- // font-size: 28rpx;
- // font-family: PingFang SC;
- // font-weight: 500;
- // color: #666666;
- // line-height: 1.8;
- // margin-top: 10rpx;
- // background: url(../../static/images/chu_query.png) no-repeat center center / cover;
- 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;
- // padding: 40rpx 30rpx 130rpx 30rpx;
- // background-color: #FFFFFF;
- 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;
- }
- .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: #008FD3;
- }
- }
- }
- }
- .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;
- }
- }
- }
- }
- }
- .spec-box {
- padding-top: 50rpx;
- .title {
- font-size: 26rpx;
- font-weight: bold;
- color: #111111;
- line-height: 1;
- }
- .spec-list {
- display: flex;
- flex-wrap: wrap;
- margin-top: 30rpx;
- .item {
- box-sizing: border-box;
- height: 64rpx;
- padding: 0 30rpx;
- line-height: 64rpx;
- font-size: 24rpx;
- font-weight: 500;
- color: #111111;
- background: #F7F7F7;
- border: 1px solid #F7F7F7;
- border-radius: 32rpx;
- margin-right: 20rpx;
- margin-bottom: 30rpx;
- &.active {
- background: #F1FFFE;
- border: 1px solid #008FD3;
- color: #008FD3;
- }
- }
- }
- }
- .price-num {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 14rpx;
- .label {
- font-size: 26rpx;
- font-weight: bold;
- color: #111111;
- }
- // .num-box {
- // display: flex;
- // align-items: center;
- // .img-box {
- // width: 60rpx;
- // height: 60rpx;
- // border: 1px solid #dddddd;
- // display: flex;
- // align-items: center;
- // justify-content: center;
- // image {
- // width: 25rpx;
- // height: 25rpx;
- // }
- // }
- // input {
- // width: 60rpx;
- // height: 60rpx;
- // line-height: 60rpx;
- // font-size: 28rpx;
- // font-weight: 500;
- // color: #111111;
- // // border-radius: 4rpx;
- // border-top: 1px solid #dddddd;
- // border-bottom: 1px solid #dddddd;
- // text-align: center;
- // // margin: 0 16rpx;
- // }
- // }
- }
- .sub-btn {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- font-size: 32rpx;
- font-weight: bold;
- color: #FFFFFF;
- background: #008FD3;
- 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>
|