12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082 |
- <template>
- <view class="content">
-
- <!-- #ifdef APP-PLUS -->
- <es-nav-title title="疗法详情"></es-nav-title>
- <!-- #endif -->
- <!-- 购买轮播列表 -->
- <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 class="huabei-box x-c">
- <image class="huabei" src="@/static/images/huabei-icon.png" mode="aspectFill"></image>
- <text style="padding: 0 5rpx;">花呗</text>
- <text class="huabei-red">分期</text>
- </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">
-
- <!-- <text class="unit">¥</text>
- <text class="num">{{product.price.toFixed(2)}}</text> -->
- </view>
- <!-- <view class="amount">x{{product.count}}</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" style="flex-shrink: 0;"></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 share" v-if="!isH5" @click="doShare()">分享</view>
- <view class="btn buy" @click="doSubmit()">提交需求</view>
- </view>
- <!-- 待支付订单 -->
- <view class="message-box x-bc" v-if="messageShow">
- <view class="left x-c">
- <uni-icons type="close" size="22" color="#FF6633" style="margin-right: 18rpx;" @click="messageShow=false"></uni-icons>
- <view class="text ellipsis">您有{{count1}}个待支付订单</view>
- </view>
- <view class="btn x-c" @click="showOrder()">查看</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>
-
- <!-- 分享弹窗 -->
- <u-popup :show="showShare" @close="showShare = false" >
- <share-box :shareItem="shareItem" @closeShare='showShare = false' ></share-box>
- </u-popup>
-
- </view>
- </template>
- <script>
- import { caculateTimeago } from '@/utils/tools.js';
- import {create,getMyPackageOrderList} from '@/api/packageOrder.js'
- import {bindCompanyUser} from '@/api/companyUser.js'
- import {getPackageById,getPackageDoctorList,getNewOrderByPackageId} from '@/api/package.js'
- export default {
- data() {
- return {
- // 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,
- showShare:false,
- isH5:false,
- shareItem:{ imageUrl:"",title:"",path:""},
- count1:0,
- messageShow:false,
- boxHeight: 94,
- marginTop: 30,
- animate:false,
- timer:null,
- notics:[],
- choose: 0
- };
- },
- onLoad(option) {
- this.choose = option.choose || 0
- this.packageId=option.packageId;
- if(!this.$isEmpty(option.companyId)){
- this.companyId=option.companyId
- }
- if(!this.$isEmpty(option.companyUserId)){
- this.companyUserId=option.companyUserId
- }
- //#ifdef H5
- this.isH5=true;
- //#endif
- },
- onReady() {
- this.getNewOrderByPackageId()
- },
- onUnload() {
- if(this.timer) clearInterval(this.timer)
- },
- onShow() {
- if(this.$isLogin()){
- let data = {companyUserId:this.companyUserId};
- bindCompanyUser(data).then(
- res => {
- if(res.code==200){
- }
- },
- rej => {}
- );
- this.getOrder()
- } else {
- uni.navigateTo({
- url: '/pages/auth/loginIndex'
- })
- }
- this.getPackageById();
- this.getPackageDoctorList();
- },
- onShareAppMessage(res) {
- return {
- title: this.item.packageName,
- path: '/pages_index/packageDetails?packageId='+this.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId,
- imageUrl: this.item.imgUrl //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
- }
-
- },
-
- methods:{
- 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();
- },
- 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.$nextTick(()=>{
- this.getText()
- this.timer = setInterval(this.scroll, 1200);
- })
- }
- } else {
- this.notics = []
- }
- })
- },
- showOrder(){
- if(this.$isLogin()) {
- uni.navigateTo({
- url: '/pages/store/packageOrderList?status=1'
- })
- }
- },
- getOrder() {
- const data = {
- status: 1,
- pageNum: 1,
- pageSize: 10
- };
- getMyPackageOrderList(data).then(res => {
- if(res.code==200){
- this.count1 = res.data.total
- this.messageShow = res.data.total > 0
- }
- });
- },
- 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
- if(!this.$isLogin()){
- this.$showLoginPage();
- return;
- }
- that.submit();
- },
- submit(){
- if(this.doctors.length>0&&this.doctorId==null){
- this.doctorShow=true;
- }
- else{
- const choose = this.choose || ''
- uni.navigateTo({
- url:"/pages/store/packageForm?packageId="+this.packageId+"&doctorId="+this.doctorId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId+'&choose='+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,
- }
-
- //#ifdef APP-PLUS
- data.source=2;
- //#endif
- //#ifdef H5
- data.source=3;
- //#endif
-
- 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 => {}
- );
- },
- doShare(){
- if(this.isH5){
- return;
- }
- const that = this
- that.shareItem.title=that.item.packageName;
- that.shareItem.imageUrl=this.item.imgUrl;
- this.shareItem.compressImage = 1
- that.shareItem.summary=!that.$isEmpty(that.item.description)?that.item.description:"";
- that.shareItem.isMini=true;
- that.shareItem.path="/pages_index/packageDetails?packageId="+that.packageId+"&companyId="+that.companyId+"&companyUserId="+that.companyUserId;
- let cdn=uni.getStorageSync('h5Path');
- that.shareItem.url=cdn+"/pages/store/packageDetails?packageId="+that.packageId+"&companyId="+that.companyId+"&companyUserId="+that.companyUserId;
- that.showShare=true;
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- page{
- height: 100%;
- }
- .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%;
- overflow: hidden;
- background-color: rgba(0, 0, 0, 0.35);
- border-radius: 10rpx;
- padding: 0 20rpx;
- box-sizing: border-box;
- }
- .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: 34rpx;
- 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: 26rpx;
- font-family: PingFang SC;
- color: #FF5C03;
- }
- .duration{
- margin-left: 10rpx;
- background-color: #eee;
- border-radius: 30rpx;
- padding: 5rpx 15rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- color: #FF5C03;
- }
- .huabei-box {
- font-size: 26rpx;
- font-family: PingFang SC;
- color: #403c3b;
- font-weight: 600;
- padding: 5rpx 15rpx;
- }
- .huabei {
- width: 30rpx;
- height: 30rpx;
- }
- .huabei-red {
- background-color: #e83944;
- color: #fff;
- border-radius: 8rpx 8rpx 8rpx 0;
- display: inline-block;
- padding: 0 5rpx;
- font-size: 24rpx;
- }
- }
- .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: #FF5C03;
- border-radius: 30rpx;
- font-size: 20rpx;
- font-family: PingFang SC;
- color: #ffffff;
- }
- }
- .count{
- font-size: 24rpx;
- 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: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .line{
- margin-right: 15rpx;
- height: 30rpx;
- width: 6rpx;
- background-color: #FF5C03;
-
- }
-
- }
- .desc{
- margin-top: 15rpx;
- font-size: 28rpx;
- 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: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .line{
- margin-right: 15rpx;
- height: 30rpx;
- width: 6rpx;
- background-color: #FF5C03;
-
- }
-
- }
- .drug-list{
- margin-top: 15rpx;
- .drug-item{
- .drug{
- padding-bottom: 15rpx;
- border-bottom: 1px soli #F0F0F0;
- display: flex;
- align-items: center;
- .img-box{
- width: 160rpx;
- height: 160rpx;
- margin-right: 30rpx;
- flex-shrink: 0;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .drug-info{
- width: calc(100% - 190rpx);
- height: 160rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .name-box{
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 40rpx;
- .tag{
- display: inline-block;
- padding: 0 6rpx;
- height: 30rpx;
- background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
- border-radius: 4rpx;
- margin-right: 10rpx;
- font-size: 22rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 30rpx;
- float: left;
- margin-top: 7rpx;
- }
- }
- .spec{
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- margin-top: 10rpx;
- }
- .num-box{
- display: flex;
- align-items: center;
- justify-content: space-between;
- .price{
- display: flex;
- align-items: flex-end;
- .unit{
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 1.2;
- margin-right: 4rpx;
- }
- .num{
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 1;
- }
- }
- .use{
- font-size: 24rpx;
- font-family: PingFang SC;
- color: #999999;
- }
- .amount{
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- }
- }
- }
- }
-
- }
- }
- .display-more{
- font-size: 24rpx;
- 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: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- }
-
- }
- }
- }
-
- .btn-foot{
- box-sizing: border-box;
- width: 100%;
- min-height: 121rpx;
- background: #FFFFFF;
- padding: 0 32rpx 0 28rpx;
- 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: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF6633;
- }
- .p-price{
- margin-left: 10rpx;
- color: #FF6633;
- font-size: 38rpx;
- font-family: PingFang SC;
- font-weight: bold;
-
- }
- }
-
- .btn-box{
- display: flex;
- align-items: center;
- .btn{
- min-width: 200rpx;
- min-height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- border-radius: 44rpx;
- margin-left: 20rpx;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- &:first-child{
- margin-left: 0;
- }
- &.share{
- background: #2BC7B9;
-
- }
- &.buy{
- background: #FF5C03;
- }
- }
- }
- }
- .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: 650rpx;
- }
- .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: 28rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
-
- }
- .doc-position{
- margin-left: 50rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- color: #2d2b36;
- }
- }
- .hospital{
- margin-top: 10rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- color: #9a9a9c;
- }
- }
- }
- .btn{
- padding: 10rpx 30rpx;
- text-align: center;
- border-radius: 30rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- color: #FF5C03;
- border:1rpx solid #FF5C03;
-
- }
-
- }
-
- }
- }
- .goods-banner{
- height: 756rpx;
- background-color: #FFFFFF;
- position: relative;
- .swiper-item{
- box-sizing: border-box;
- }
- .swiper,
- .swiper-item,
- .swiper-item image{
- width: 100%;
- height: 100%;
- }
- .num-box{
- width: 80rpx;
- height: 44rpx;
- line-height: 44rpx;
- text-align: center;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- background: rgba(0, 0, 0, .3);
- border-radius: 22rpx;
- position: absolute;
- right: 30rpx;
- bottom: 30rpx;
- z-index: 10;
- }
- }
- .message-box{
- box-sizing: border-box;
- width: 693rpx;
- min-height: 84rpx;
- background: #fff3ee;
- border: 1px solid #FF6633;
- box-shadow: 0px 4rpx 12rpx 0px rgba(255, 102, 51, 0.08);
- border-radius: 16rpx;
- position: fixed;
- left: 50%;
- transform: translateX(-50%);
- bottom: 128rpx;
- z-index: 99;
- padding: 0 20rpx 0 30rpx;
- .left{
- width: 80%;
- .text{
- width: 90%;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF6633;
- }
- }
- .btn{
- width: 100rpx;
- min-height: 48rpx;
- line-height: 48rpx;
- text-align: center;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- background: linear-gradient(135deg, #FF6633 0%, #FF6633 100%);
- border-radius: 24rpx;
- margin-left: 30rpx;
- }
- }
- </style>
|