1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042 |
- <template>
- <view class="content">
- <!-- <view class="img-box" @click="showImg()">
- <image :src="item.imgUrl"></image>
- </view> -->
- <!-- 购买轮播列表 -->
- <view class="buy-lists" v-if="notics&¬ics.length>0" :style="{height: boxHeight+'px'}">
- <view :class="{'buy-top': animate == true }" :style="{marginTop: animate == true ? `-${marginTop}px`:'0'}">
- <view class="buy-list buy-txtbox" v-for="(item,index) in notics" :key="index">
- <view class="buy-item"><text class="textOne buy-name" >{{item.fsUserName|| ''}}</text><text>{{item.timeTxt}} 已下单</text></view>
- </view>
- </view>
- </view>
- <view class="cont-box">
- <view class="goods-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 imgs" :key="index">
- <image :src="item" mode="aspectFit"></image>
- </swiper-item>
- </swiper>
- <!-- 数量 -->
- <view class="num-box">{{ activeImg }}/{{ imgs.length }}</view>
- </view>
- <view class="package-box">
- <view class="title">{{item.packageName}}</view>
- <view class="desc">
- <view class="cycle" v-if="item.cycle>0">服务周期{{item.cycle}}天</view>
- <view class="duration" v-if="item.duration>0">签约时长{{item.duration}}天</view>
- </view>
- <view class="num-box">
- <view class="price-box">
- <view class="price" v-if="item!=null">¥{{item.price.toFixed(2)}}元/日</view>
- <view class="price" v-if="item!=null&&item.packageSubType==1">咨询包</view>
- <view class="price" v-if="item!=null&&item.packageSubType==2">治疗包</view>
- <view class="price" v-if="item!=null&&item.packageSubType==3">产品包</view>
-
- </view>
- <view class="count">{{item.sales}}人已购</view>
- </view>
-
- </view>
- <!-- <view class="drug-box" v-if="products.length>0 ">
- <view class="title-box">
- <view class="line"></view>
- <view class="title">产品列表</view>
- </view>
- <view class="drug-list" >
- <view v-for="(product,index) in products" class="drug-item" >
- <view class="drug" v-if="displayMore==0?index<2:true" >
- <view class="img-box">
- <image :src="product.image" mode="aspectFill"></image>
- </view>
- <view class="drug-info" >
- <view>
- <view class="name-box ellipsis2">
- {{product.productName}}
- </view>
- <view class="spec">{{product.sku}}</view>
- </view>
- <view class="num-box">
- <view class="use">
- {{product.usageMethod}}
- </view>
- <view class="price">
- </view>
- </view>
- </view>
- </view>
-
- </view>
- </view>
- <view v-if="products.length>2" class="display-more" @click="showMore()" >{{displayText}}</view>
- <view class="tip">
- <image class="img" src="../static/images/dui.png"></image>
- <view class="text">本疗法所包含药品由{{storeName}}配送</view>
- </view>
- </view> -->
-
- <view class="desc-box" v-if="describe.use!=null">
- <view class="title-box">
- <view class="line"></view>
- <view class="title">疗程</view>
- </view>
- <view class="desc" v-if="describe!=null" v-html="describe.use">
- </view>
- </view>
- <view class="desc-box" v-if="item.indication!=null">
- <view class="title-box">
- <view class="line"></view>
- <view class="title">功能主治</view>
- </view>
- <view class="desc" v-if="item!=null" v-html="item.indication">
- </view>
- </view>
- <view class="desc-box" v-if="describe.usageMethod!=null">
- <view class="title-box">
- <view class="line"></view>
- <view class="title">服用/使用方式</view>
- </view>
- <view class="desc" v-html="describe.usageMethod">
- </view>
- </view>
- <view class="desc-box" v-if="describe.forPeople!=null">
- <view class="title-box">
- <view class="line"></view>
- <view class="title">适宜人群</view>
- </view>
- <view class="desc" v-html="describe.forPeople">
- </view>
- </view>
- <view class="desc-box" v-if="describe.tabooPeople!=null">
- <view class="title-box">
- <view class="line"></view>
- <view class="title">禁忌人群</view>
- </view>
- <view class="desc" v-html="describe.tabooPeople">
- </view>
- </view>
- <view class="desc-box" v-if="item.explain!=null">
- <view class="title-box">
- <view class="line"></view>
- <view class="title">方解/搭配优势</view>
- </view>
- <view class="desc" v-html="item.explain">
- </view>
- </view>
- <view class="desc-box">
- <view class="title-box">
- <view class="line"></view>
- <view class="title">疗法详情</view>
- </view>
- <view class="html" v-html="item.desc">
- </view>
- </view>
- </view>
- <view class="btn-foot">
- <view class="p-price-box">
- <view class="p-name">¥</view>
- <view class="p-price" v-if="item!=null">{{item.totalPrice.toFixed(2)}}</view>
- </view>
- <view class="btn-box">
- <view class="btn buy" @click="doSubmit()">提交需求</view>
- </view>
- </view>
- <u-popup bgColor="#f6f6f6" :round="10" mode="bottom" :show="doctorShow" @open="doctorOpen()" @close="doctorClose()">
- <view class="doctors">
- <scroll-view class="scroll-list" scroll-y="true" @scrolltolower="lower" >
-
- <view class="doctor" @click="navTo('/pages_doctor/doctorDetails?doctorId='+item.doctorId)" v-for="(item,index) in doctors">
- <view class="item">
- <view class="left">
- <image mode="aspectFill" class="doc-img" :src="item.avatar"></image>
- <view class="right">
- <view class="doc-box">
- <view class="doc-name">
- {{item.doctorName}}
- </view>
- <view class="doc-position">{{item.position}}</view>
- </view>
- <view class="hospital">
- {{item.hospitalName}} {{item.deptName}}
- </view>
-
- </view>
- </view>
- <view class="btn" @click="handleDoctorClick(item)">选择</view>
- </view>
- </view>
- </scroll-view>
- </view>
-
- </u-popup>
- <view class="message-box" v-if="orderCount>0">
- <view class="left">
- <image src="/static/images/close.png" mode="" @click="closeOrder()" ></image>
- <view class="text ellipsis">您有{{orderCount}}个待支付订单</view>
- </view>
- <view class="btn" @click="showOrder()">查看</view>
- </view>
- </view>
- </template>
- <script>
- import { caculateTimeago } from '@/pages/TUIKit/utils/date.ts';
- import {create,getOrderCount} from '@/api/packageOrder.js'
- import {bindCompanyUser} from '@/api/companyUser.js'
- import {getPackageById,getPackageDoctorList,getNewOrderByPackageId} from '@/api/package.js'
- export default {
- data() {
- return {
- orderCount:0,//未支付订单
- // isDrug:0,
- storeName:"",
- displayText:"查看更多",
- displayMore:0,
- imgs:[],
- activeImg: 1,
- doctorShow:false,
- doctors:[],
- products:[],
- packageId:null,
- item:{},
- describe:null,
- doctorId:null,
- doctorPageNum:1,
- doctorLastPage:false,
- doctorTotal:0,
- companyUserId:null,
- companyId:null,
- choose: 0,
- boxHeight: 94,
- marginTop: 30,
- animate:false,
- timer:null,
- notics:[],
- };
- },
- onLoad(option) {
- this.packageId=option.packageId;
- this.choose = option.choose || 0
- if(!this.$isEmpty(option.companyId)){
- this.companyId=option.companyId
- }
- if(!this.$isEmpty(option.companyUserId)){
- this.companyUserId=option.companyUserId
- }
- },
- onReady() {
-
- },
- onUnload() {
- if(this.timer) clearInterval(this.timer)
- },
- onShow() {
- var that=this;
- this.$isLogin().then(
- res => {
- if(res){
- this.getNewOrderByPackageId()
- var data = {companyUserId:this.companyUserId};
- bindCompanyUser(data).then(
- res => {
- if(res.code==200){
- }
- },
- rej => {}
- );
- //获取订单数
- data = {};
- getOrderCount(data).then(
- res => {
- if(res.code==200){
- that.orderCount=res.count;
- }
- },
- rej => {}
- );
- }
- else{
- // uni.navigateTo({
- // url:'/pages/auth/login'
- // })
- }
- }
- );
- this.getPackageById();
- this.getPackageDoctorList();
- },
- onShareAppMessage(res) {
- return {
- title: this.item.packageName,
- path: '/pages_index/packageDetails?packageId='+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId+"&choose="+this.choose || '',
- imageUrl: this.item.imgUrl //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
- }
-
- },
- methods:{
- getNewOrderByPackageId() {
- if(this.timer) clearInterval(this.timer)
- getNewOrderByPackageId({packageId:this.packageId}).then(res=>{
- if(res.code== 200) {
- this.notics = res.data
- if(res.data&&res.data.length > 0) {
- this.notics = res.data.map(item=>({
- ...item,
- timeTxt: caculateTimeago(new Date(item.payTime).getTime(),1)
- }))
-
- this.getText()
- this.timer = setInterval(this.scroll, 1200);
- }
- } else {
- this.notics = []
- }
- })
- },
- scroll() {
- this.animate = true;
- setTimeout(() => {
- this.notics.push(this.notics[0]);
- this.notics.shift();
- this.animate = false;
- }, 1000);
- },
- getText() {
- const query = uni.createSelectorQuery().in(this);
- query
- .select(".buy-txtbox")
- .boundingClientRect((data) => {
- this.marginTop = data.height + 7
- if(this.notics.length>2) {
- this.boxHeight = this.marginTop * 3 + 4
- } else {
- this.boxHeight = this.marginTop * this.notics.length + 4
- }
- })
- .exec();
- },
- closeOrder(){
- this.messageShow=false;
- },
- showOrder(){
- uni.navigateTo({
- url:'/pages_order/packageOrderList?status=1'
- })
- },
- showMore(){
- this.displayMore=this.displayMore==1?0:1;
- this.displayText=this.displayMore==1?'收起':'查看更多'
- console.log(this.displayText)
- },
- swiperChange(event) {
- this.activeImg = event.detail.current + 1
- },
- handleDoctorClick(item){
- this.doctorShow=false;
- this.doctorId=item.doctorId
- this.doSubmit();
- },
- lower(event) {
- if(this.doctorTotal>this.doctors.length){
- this.doctorPageNum++;
- this.getPackageDoctorList();
- }
- },
- doSubmit(){
- var that=this
- this.$isLogin().then(
- res => {
- if(res){
- that.submit();
- }
- else{
- uni.navigateTo({
- url:'/pages/auth/login'
- })
- }
- }
- );
- },
- submit(){
- if(this.doctors.length>0&&this.doctorId==null){
- this.doctorShow=true;
- }
- else{
- uni.navigateTo({
- url:"/pages_index/packageForm?packageId="+this.packageId+"&doctorId="+this.doctorId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId+"&choose="+this.choose || '',
- })
- // if(this.isDrug==1){
-
- // }
- // else{
- // this.createOrder();
- // }
-
- }
-
- },
- createOrder(){
- uni.showLoading({
- title:"处理中..."
- })
- var data={
- companyId:this.companyId,
- companyUserId:this.companyUserId,
- packageId:this.packageId,
- doctorId:this.doctorId,
- }
- var that=this;
- create(data).then(res => {
- uni.hideLoading()
- if(res.code==200){
- uni.navigateTo({
- url: '/pages_order/packageOrderPay?orderId='+res.order.orderId
- })
- }else{
- uni.showToast({
- icon:'none',
- title: res.msg,
- });
- }
- });
-
- },
- doctorOpen(){
- this.doctorShow=true;
- },
- doctorClose(){
- this.doctorShow=false;
- },
- showImg() {
- //预览图片
- uni.previewImage({
- urls: this.imgs,
- current: this.imgs[0]
- });
- },
- getPackageDoctorList(){
- if(this.doctorLastPage){
- return;
- }
- var data = {
- packageId:this.packageId,
- pageNum: this.doctorPageNum,
- pageSize: 10
- };
- var that=this;
- getPackageDoctorList(data).then(
- res => {
- if(res.code==200){
- //设置列表数据
- if (this.doctorPageNum == 0) {
- that.doctors = res.data.list;
-
- } else {
- that.doctors = that.doctors.concat(res.data.list);
-
- }
- this.doctorLastPage=res.data.isLastPage;
- this.doctorTotal=res.data.total
- console.log(that.doctors)
-
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- getPackageById(){
- var that=this;
- let data = {packageId:this.packageId};
- getPackageById(data).then(
- res => {
- if(res.code==200){
- this.item=res.data;
- this.storeName=res.storeName;
- if(res.data.images!=null){
- this.imgs=res.data.images.split(",")
- }
- else{
- this.activeImg=0;
- }
- this.describe=JSON.parse(this.item.describeJson);
- if(this.item.productJson!=null){
- this.products=JSON.parse(this.item.productJson);
- // this.isDrug=0;
- // this.products.forEach(function(element) {
- // if(element.isDrug!=null&&element.isDrug==1){
- // that.isDrug=1;
- // }
- // });
-
- }
- console.log(this.imgs)
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- }
- }
- </script>
- <style lang="scss">
- page{
- height: 100%;
- }
- .textOne {
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .buy-lists{
- height: 94px;
- background-color:transparent;
- overflow: hidden;
- width: 60%;
- position: absolute;
- z-index: 99;
- top: 20vh;
- left: 20rpx;
- }
- .buy-list{
- height: 23px;
- font-size: 26rpx;
- margin-top: 7px;
- overflow: hidden;
- color: #fff;
- .buy-item {
- display: inline-flex;
- align-items: center;
- height: 100%;
- line-height: 100%;
- overflow: hidden;
- background-color: rgba(0, 0, 0, 0.35);
- border-radius: 10rpx;
- padding: 0 20rpx;
- box-sizing: border-box;
- word-break: break-all;
- white-space: nowrap;
- }
- .buy-name {
- width: 50%;
- margin-right: 10rpx;
- }
- text {
- word-break: break-all;
- white-space: nowrap;
- }
- }
- .buy-top {
- transition: all 0.8s ease-in;
- margin-top: -30px;
- }
- .content{
- height: 100%;
- display: flex;
- flex-direction: column;
-
- .cont-box{
- padding-bottom: 121rpx;
- .package-box{
- background-color: #fff;
- padding: 20rpx;
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
-
- .title{
- font-weight: bold;
- font-size: 34upx;
- font-family: PingFang SC;
- color: #111;
- }
- .desc{
- margin-top: 15rpx;
- display: flex;
- align-items: flex-start;
- justify-content: flex-start;
- .cycle{
- background-color: #eee;
- border-radius: 30rpx;
- padding: 5rpx 15rpx;
- font-size: 26upx;
- font-family: PingFang SC;
- color: #C39A58;
- }
- .duration{
- margin-left: 10rpx;
- background-color: #eee;
- border-radius: 30rpx;
- padding: 5rpx 15rpx;
- font-size: 26upx;
- font-family: PingFang SC;
- color: #C39A58;
- }
-
- }
- .num-box{
- margin-top: 15rpx;
- flex: 1;
- display: flex;
- align-items: flex-end;
- justify-content: space-between;
- width: 100%;
- .price-box{
- display: flex;
- align-items: center;
- justify-content: flex-start;
- .price{
- margin-right: 10rpx;
- padding: 5rpx 10rpx;
- background-color: #C39A58;
- border-radius: 30rpx;
- font-size: 20upx;
- font-family: PingFang SC;
- color: #ffffff;
- }
- }
- .count{
- font-size: 24upx;
- font-family: PingFang SC;
- color: #333333;
- }
-
- }
-
-
- }
- .desc-box{
- background-color: #fff;
- padding: 20rpx;
- margin-top: 10rpx;
- .title-box{
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .line{
- margin-right: 15rpx;
- height: 30rpx;
- width: 6rpx;
- background-color: #C39A58;
-
- }
-
- }
- .desc{
- margin-top: 15rpx;
- font-size: 28upx;
- font-family: PingFang SC;
- color: #9a9a9c;
- }
- .html{
- margin-top: 15rpx;
- font-size: 0px;
- vertical-align: middle;
- }
- }
- .drug-box{
- background-color: #fff;
- padding: 20rpx;
- margin-top: 10rpx;
- .title-box{
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .line{
- margin-right: 15rpx;
- height: 30rpx;
- width: 6rpx;
- background-color: #C39A58;
-
- }
-
- }
- .drug-list{
- margin-top: 15rpx;
- .drug-item{
- .drug{
- padding-bottom: 15upx;
- border-bottom: 1px soli #F0F0F0;
- display: flex;
- align-items: center;
- .img-box{
- width: 160upx;
- height: 160upx;
- margin-right: 30upx;
- flex-shrink: 0;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .drug-info{
- width: calc(100% - 190upx);
- height: 160upx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .name-box{
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 40upx;
- .tag{
- display: inline-block;
- padding: 0 6upx;
- height: 30upx;
- background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
- border-radius: 4upx;
- margin-right: 10upx;
- font-size: 22upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 30upx;
- float: left;
- margin-top: 7upx;
- }
- }
- .spec{
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- margin-top: 10upx;
- }
- .num-box{
- display: flex;
- align-items: center;
- justify-content: space-between;
- .price{
- display: flex;
- align-items: flex-end;
- .unit{
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 1.2;
- margin-right: 4upx;
- }
- .num{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 1;
- }
- }
- .use{
- font-size: 24upx;
- font-family: PingFang SC;
- color: #999999;
- }
- .amount{
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- }
- }
- }
- }
-
- }
- }
- .display-more{
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tip{
- margin-top: 10rpx;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- .img{
- width: 20rpx;
- height:20rpx;
- }
- .text{
- margin-left: 10rpx;
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- }
-
- }
- }
- }
-
- .btn-foot{
- box-sizing: border-box;
- width: 100%;
- height: 121upx;
- background: #FFFFFF;
- padding: 0 32upx 0 28upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- position: fixed;
- left: 0;
- bottom: 0;
- z-index: 99;
- .p-price-box{
- display: flex;
- align-items: center;
- .p-name{
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF6633;
- }
- .p-price{
- margin-left: 10rpx;
- color: #FF6633;
- font-size: 38upx;
- font-family: PingFang SC;
- font-weight: bold;
-
- }
- }
-
- .btn-box{
- display: flex;
- align-items: center;
- .btn{
- width: 200upx;
- height: 88upx;
- line-height: 88upx;
- text-align: center;
- border-radius: 44upx;
- margin-left: 20upx;
- font-size: 30upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- &:first-child{
- margin-left: 0;
- }
-
- &.buy{
- background: #C39A58;
- }
- }
- }
- }
- .doctors{
- overflow-y: auto;
- padding: 20rpx;
- height: 650rpx;
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- box-sizing: border-box;
- .scroll-list{
- height: 650upx;
- }
- .doctor{
- width: 100%;
- margin-bottom: 15rpx;
- background: #f9f8fe;
- padding: 20rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- &:last-child{
- margin-bottom: 0rpx;
- }
- .item{
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left{
- flex: 1;
- width: 100%;
- display: flex;
- align-items: flex-start;
- justify-content: flex-start;
- .doc-img{
- width:80rpx;
- height:80rpx;
- border-radius: 50%;
- }
- .right{
- width: calc(100% - 100rpx);
- margin-left: 20rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- .doc-box{
- display: flex;
- align-items: center;
- justify-content: space-between;
- .doc-name{
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
-
- }
- .doc-position{
- margin-left: 50rpx;
- font-size: 26upx;
- font-family: PingFang SC;
- color: #2d2b36;
- }
- }
- .hospital{
- margin-top: 10rpx;
- font-size: 24upx;
- font-family: PingFang SC;
- color: #9a9a9c;
- }
- }
- }
- .btn{
- padding: 10rpx 30rpx;
- text-align: center;
- border-radius: 30upx;
- font-size: 28upx;
- font-family: PingFang SC;
- color: #C39A58;
- border:1rpx solid #C39A58;
-
- }
-
- }
-
- }
- }
- .goods-banner{
- height: 756upx;
- background-color: #FFFFFF;
- position: relative;
- .swiper-item{
- box-sizing: border-box;
- }
- .swiper,
- .swiper-item,
- .swiper-item image{
- width: 100%;
- height: 100%;
- }
- .num-box{
- width: 80upx;
- height: 44upx;
- line-height: 44upx;
- text-align: center;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- background: rgba(0, 0, 0, .3);
- border-radius: 22upx;
- position: absolute;
- right: 30upx;
- bottom: 30upx;
- z-index: 10;
- }
- }
- .message-box{
- box-sizing: border-box;
- width: 693upx;
- height: 84upx;
- background: #ffffff;
- opacity: 0.9;
- border: 1px solid #E2C99E;
- // box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
- border-radius: 16upx;
- position: fixed;
- left: 50%;
- transform: translateX(-50%);
- bottom: 128upx;
- z-index: 99;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 20upx 0 30upx;
- .left{
- width: 80%;
- display: flex;
- align-items: center;
- image{
- width: 24upx;
- height: 24upx;
- margin-right: 18upx;
- }
- .text{
- width: 90%;
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #C39A58;
- }
- }
- .btn{
- width: 100upx;
- height: 48upx;
- line-height: 48upx;
- text-align: center;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- border: 1px solid #D2E6FF;
- background: linear-gradient(135deg, #C39A58 0%, #E2C99E 100%);
- border-radius: 24upx;
- margin-left: 30upx;
- }
- }
- </style>
|