vue排版中间加小三角
Posted fkcqwq
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue排版中间加小三角相关的知识,希望对你有一定的参考价值。
<template> <div class="buyService"> <!-- 图片介绍 --> <section class="docPro"> <div class="docMessage"> <div class="docLeft"> <img :src="docUrl ? docUrl : default_img" alt /> <div class="text"> <h4> {{docName}} <span v-if="orderType==4">在线复诊服务</span> <span v-else-if="orderType==7">电话复诊服务</span> <span v-else-if="orderType==6">在线咨询服务</span> </h4> <p>可和医生进行无限制交流</p> </div> </div> <div class="docRight"> <span>¥{{price}}</span> /{{serverCount | regAir}}次 </div> </div> <div class="promise"> <ul> <li> <img src="../../assets/img/doctor/buyPicB1_1.png" alt /> <p> 100%医生本人 </p> </li> <li> <img src="../../assets/img/doctor/buyPicB1_2.png" alt /> <p> 免排队 </p> </li> <li> <img src="../../assets/img/doctor/buyPicB1_3.png" alt /> <p> 48小时超长服务 </p> </li> <li> <img src="../../assets/img/doctor/buyPicB1_4.png" alt /> <p> 未回复可退 </p> </li> </ul> </div> </section> <!-- 承诺 --> <section class="promiseBox"> <ul> <li> <img v-if="orderType==4 || orderType==6" src="../../assets/img/doctor/buyIcon4-1.png" /> <img v-else src="../../assets/img/doctor/buyIcon4.png" /> <p v-if="orderType==4">不限次数 线上沟通</p> <p v-else-if="orderType==7">30分钟通话时间</p> <p v-else-if="orderType==6">和医生进行交流</p> </li> <li> <i class="iconfont icon-triangleRight"></i> </li> <li> <img src="../../assets/img/doctor/buyIcon5.png" /> <p>医生为您诊断开方</p> </li> <li> <i class="iconfont icon-triangleRight"></i> </li> <li> <img src="../../assets/img/doctor/buyIcon6.png" /> <p>道地药材 顺丰到家</p> </li> </ul> </section> <!-- 支付方式 --> <section class="payWay"> <h3 class="payLeft">支付方式</h3> <div class="payRight" @click="showPopup()"> <img :src="payWay[payIndex].img" alt /> <span>{{payWay[payIndex].text}}</span> <i class="iconfont icon-more"></i> </div> <van-popup v-model="show" position="bottom"> <div class="payBox"> <h2>选择支付方式</h2> <ul> <li v-for="(item,index) in payWay" :key="index" @click="choosepay(index)"> <img :src="item.img" /> <span>{{item.text}}</span> </li> <li @click="closePopup()"> <span>取消</span> </li> </ul> </div> </van-popup> </section> <!-- 温馨提示 --> <section class="warmTip"> <h2>— 温馨提示 —</h2> <div> <i>·</i> <p>互联网医疗仅适用常见病、慢性病复诊患者,急重症患者、首诊 患者请前往实体医疗机构就诊。</p> </div> <div> <i>·</i> <p>医生将在3小时内回复您,逾期未回复您可继续等待或联系客服。</p> </div> <div> <i>·</i> <p>您可通过图片、文字的方式与医生进行交流。</p> </div> <div> <i>·</i> <p>医生将根据就诊人的实际情况开具调理方案。</p> </div> <div> <i>·</i> <p>购买成功后请您如实填写症状描述,医生发给您的问诊单。</p> </div> <div> <i>·</i> <p> 本次服务有效时间为48小时 <strong v-show="orderType!=7">,医生首次回复您之后开始计时</strong>。 </p> </div> <div> <i>·</i> <p> 购买即视为同意 <span @click="jumpAgreement()">《用户注册协议》</span> </p> </div> </section> <footer> <!-- 有默认就诊人和就诊人数量的时候就可以显示出来 --> <div v-if="haveVisitingPerson!=0" class="VisitingPersonPro"> <div class="VisitingLeft"> <span v-show="name">{{name}}</span> <span v-show="age">{{age}}岁</span> <span v-show="phone">{{phone}}</span> </div> <div v-show="(patientList && patientList.length>0) || isHavePersonFlag==1" class="VisitingRight" @click="jumpChooseVisitingPerson()" > <span>更换就诊人</span> <i class="iconfont icon-arrowLeft"></i> </div> </div> <div class="footer"> <div class="footerLeft"> <img src="../../assets/img/doctor/buyIcon7.png" alt /> 联系客服 </div> <div class="footerCenter"> 实付: <span>¥{{price}}</span> </div> <div class="footerRight" @click="goBuy()">购买</div> </div> </footer> </div> </template> <style rel=‘stylesheet/scss‘ lang=‘scss‘ scoped> .buyService { height: 100%; overflow: auto; background-color: #f5f5f5; .docPro { background-color: #fff; padding: 0.6rem 0.25rem 0.7rem 0.25rem; .docMessage { display: flex; justify-content: space-between; .docLeft { display: flex; align-items: center; img { width: 0.98rem; height: 0.98rem; border: 2px solid #cdced5; border-radius: 50%; background-color: #cdced5; margin-right: 0.3rem; } .text { h4 { font-size: 0.3rem; font-weight: 500; line-height: 0.42rem; } p { font-size: 0.26rem; color: #999; line-height: 0.42rem; } } } .docRight { font-size: 0.27rem; margin-top: 0.13rem; span { color: #da0428; font-size: 0.34rem; } } } .promise { margin-top: 0.6rem; ul { display: flex; li { flex: 1; color: #333; text-align: center; font-size: 0.24rem; img { height: .58rem; margin-bottom: .2rem; } i { font-size: 0.2rem; } } } } } .promiseBox { padding: 0.7rem 0.25rem; ul { display: flex; color: #999; font-size: 0.22rem; li { text-align: center; &:nth-child(odd) { width: calc((100% - 1rem) / 3); } &:nth-child(even) { color: #e4e4e4; margin: 0 0.2rem; } img { width: 0.4rem; height: 0.4rem; vertical-align: text-top; margin-right: 3px; } p { margin-top: 0.2rem; } i { position: relative; top: 0.1rem; } } } } .payWay { display: flex; justify-content: space-between; padding: 0.28rem 0.25rem; background-color: #fff; .payLeft { font-size: 0.32rem; font-weight: 500; } .payRight { display: flex; align-items: center; color: #444; font-weight: 400; font-size: 0.3rem; img { width: 0.42rem; height: 0.42rem; } span { display: inline-block; margin: 0 0.1rem; } i { font-size: 0.35rem; color: #333; position: relative; top: 0.05rem; } } .payBox { h2 { width: 100%; font-size: 0.3rem; color: #333; background: #f7f9fa; font-weight: normal; padding: 0.15rem 0; text-align: center; border-bottom: 1px solid #ccc; } li { background: #fff; border-bottom: 1px solid #ccc; padding: 0.29rem 0; text-align: center; img { width: 0.54rem; height: 0.54rem; margin-right: 0.2rem; vertical-align: middle; } span { font-size: 0.3rem; min-width: 1.2rem; white-space: nowrap; display: inline-block; vertical-align: middle; } &:last-child { border-top: 5px solid rgba(0, 0, 0, 0.5); } } } } .warmTip { padding: 0.4rem 0.35rem 2.4rem 0.35rem; line-height: 0.4rem; color: #666; font-size: 0.24rem; overflow: hidden; h2 { line-height: 0.72rem; font-size: 0.28rem; text-align: center; font-weight: normal; } i { float: left; width: 0.2rem; } p { float: left; width: calc(100% - 0.2rem); span { color: #da0428; } strong { font-weight: normal; } } } footer { width: 100%; left: 0; position: fixed; bottom: 0; .VisitingPersonPro { padding: 0 0.25rem; line-height: 1rem; display: flex; justify-content: space-between; height: 1rem; background-color: #fffbf4; font-size: 0.28rem; color: #8f5f3b; .VisitingLeft { span { margin-right: 0.15rem; } } } .footer { display: flex; height: 1rem; justify-content: center; align-items: center; background-color: #fff; div { flex: 1; color: #666; line-height: 1rem; } .footerLeft { font-size: 0.24rem; padding-left: 0.25rem; img { width: 0.31rem; height: 0.32rem; vertical-align: sub; } } .footerCenter { font-size: 0.28rem; span { color: #da0428; } } .footerRight { background-color: #da0428; color: #fff; display: flex; justify-content: center; align-items: center; font-size: 0.34rem; } } } .myslefMessage { .tip { padding: 20px 0.25rem 24px 0.25rem; font-size: 0.28rem; color: #666; } .buttonConfirm { display: flex; border-top: 1px solid #ebedf0; .btn { flex: 1; line-height: 1rem; height: auto; font-size: 0.3rem; color: #da0428; &:nth-child(1) { border-right: 1px solid #ebedf0; color: #333; } } } } } </style>
以上是关于vue排版中间加小三角的主要内容,如果未能解决你的问题,请参考以下文章