123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889 |
- <template>
- <view>
- <!-- 弹窗 v-model双向绑定值 mode弹出位置 border-radius弹出层圆角-->
- <u-popup v-model="discountshow" mode="bottom" border-radius="14" safe-area-inset-bottom="true">
- <view class="header-Discount">
- 优惠卷
- </view>
- <view class="body-Discount">
- <view class="collar">
- <!-- <view class="title-Discount">
- 领券
- </view> -->
- <scroll-view scroll-y="true" style="height: 550rpx;">
- <view class="couponList">
- <view class="couponItem" v-for="(item,index) in list" :key="index">
- <view class="couponItem-subject">
- <view class="couponItem-subject-left">
- <view class="couponItem-subject-price">
- <text class="couponItem-subject-icon">¥</text>
- <text class="couponItem-subject-price-min">{{item.money/100}}</text>
- <view class="couponItem-subject-price-reduce">{{item.name}}</view>
- </view>
- </view>
- <view class="couponItem-subject-right">
- <view class="couponItem-subject-right-header">
- <span class="couponItem-subject-right-header-icon">{{item.type==1?'满减':'折扣'}}</span>
- {{item.title}}
- </view>
- <button :data-index="index" @click="collectCoupons(item,index)" class="couponItem-subject-right-btn">使用</button>
- <view class="closing-date">
- {{item.start_time}} - {{item.end_time}}
- </view>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- </u-popup>
- <u-popup v-model="popupShow" mode="center" border-radius="14" width="80%" height="40%" close-icon-pos="top-left"
- :closeable="true" close-icon-color="#333333" negative-top="250">
- <view style="height: 100%;width: 100%;">
- <!-- 标题占20% -->
- <view style="height: 20%;width: auto;">
- <text style="font-size: 30rpx;font-weight: bold;display: flex;justify-content: center;align-items: flex-end;height: 100%;">超级妈力</text>
- </view>
- <!-- 金额占30% -->
- <view style="height: 30%;width: auto;border-bottom: 1rpx solid #EFEFEF;margin-left: 20rpx;margin-right: 20rpx;">
- <text style="font-size: 78rpx;font-weight: 700;display: flex;justify-content: center;align-items: center;height: 100%;">¥{{norderAmount}}</text>
- </view>
- <!-- 支付方式占20% -->
- <view style="height: 20%;width: auto;padding-left: 40rpx;">
- <view style="font-size: 30rpx;display: flex;align-items: center;height: 100%;">
- <text>余额支付 (余额¥{{info.balance/100}}元)</text>
- <!-- <text v-else>微信支付</text> -->
- </view>
- </view>
- <!-- 按钮占25% -->
- <!-- <view style="height: 25%;width: auto;">
- <view style="display: flex;justify-content: center;align-items: center;height: 100%;">
- <u-button type="primary" style="width: 100%;" @click="payment">确认支付</u-button>
- </view>
- </view> -->
- <u-message-input :maxlength="maxnum" :disabled-keyboard="true" :value="password" mode="bottomLine" :breathe="true"
- :focus="true" :dot-fill="true"></u-message-input>
- </view>
- </u-popup>
- <uni-list :border="false">
- <image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/caixian.png" style="width: 100%; height: 5rpx; background-color: #FFFFFF;"></image>
- <uni-list-item :border="false">
- <view slot="header" style="color:#666666 ; font-size: 28rpx;">
- <text v-if="infodata.product_type == '1' ">{{infodata.doctorname}} 电话咨询</text>
- <text v-if="infodata.product_type == '2' ">{{infodata.doctorname}} 图文咨询</text>
- <text v-if="infodata.product_type == '3' ">{{infodata.doctorname}} 门诊预约</text>
- <text v-if="infodata.product_type == '4' ">疫苗接种预约</text>
- <text v-if="infodata.product_type == '5' ">儿保预约</text>
- <text v-if="infodata.product_type == '6' ">服务包</text>
- </view>
- <view slot="footer" style="color:#FF4F61 ;font-weight: 500;">
- {{orderAmount}}
- </view>
- </uni-list-item>
- <!-- 线条 -->
- <u-line color="#EFEFEF" />
- <uni-list-item :border="false" :link="true" @click="discountshow = true">
- <view slot="header" style="color:#666666 ; font-size: 28rpx;">
- 优惠券
- </view>
- <view slot="footer" style="font-size: 30rpx;">
- {{coupon}}
- </view>
- </uni-list-item>
- </uni-list>
- <u-gap height="20" bg-color="#F6F6F6"></u-gap>
- <uni-list :border="false">
- <uni-list-item :border="false">
- <view slot="header" style="font-size: 28rpx; font-weight: 500;color: #666666;">支付方式</view>
- </uni-list-item>
- <!-- 加一个单选 -->
- <u-radio-group v-model="value" v-for="(item, index) in paymenMethod">
- <uni-list-item :border="false" @click="value=item.name" :clickable="true">
- <view slot="header">
- <text style="font-size: 28rpx;font-weight: 400;color: #333333;">{{item.name}}</text>
- </view>
- <view slot="footer">
- <u-radio @change="radioChange" :key="index" :name="item.name" :disabled="item.disabled">
- </u-radio>
- </view>
- </uni-list-item>
- <u-line color="#EFEFEF" />
- </u-radio-group>
- </uni-list>
- <!-- 按钮 -->
- <view class="cu-bar bg-white tabbar border shop" style="position: fixed; bottom: 0; z-index: 99;width: 100%;">
- <view class="" style="width:75%;">
- <text style="padding-left: 30rpx;font-size: 32rpx;">合计:</text>
- <text style="padding-left: 20rpx;font-size: 36;font-weight: 500;color: #FF4F61;">{{orderAmount}}</text>
- </view>
- <view class="submit text-white" @click="confirmpay" style="background-color: rgb(11,115,186); font-size: 32rpx;">确认支付</view>
- </view>
- <u-keyboard @change="valChange" @backspace="backspace" ref="uKeyboard" mode="number" v-model="popupShow" :tooltip="false"
- :mask="false"></u-keyboard>
- <u-no-network></u-no-network>
- </view>
- </template>
- <script>
- import store from '@/store'
- export default {
- onLoad(op) {
- this.infodata = JSON.parse(op.data)
- this.norderAmount = this.infodata.total_amount
- console.log(this.infodata)
- },
- onShow() {
- this.orderAmount = this.norderAmount + "元"
- this.getUserInfo()
- this.getcoupon()
- },
- data() {
- return {
- //医生名称
- doctorName: '',
- ndoctorName: '渣渣宝',
- //订单金额
- orderAmount: '',
- norderAmount: 19.9,
- //优惠券
- coupon: '不使用优惠券',
- // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
- value: '钱包余额支付',
- paymenMethod: [{
- name: '钱包余额支付',
- disabled: false
- }],
- //弹出层控制
- popupShow: false,
- //订单类型
- //支付数据类型
- infodata: {},
- info: {},
- show: false,
- maxnum: 6,
- password: "",
- discountshow: false,
- list: [],
- couponid: ""
- }
- },
- methods: {
- getcoupon: async function() {
- let res = await this.$request.post("/api/v1/coupon/userCouponList", {
- page: this.pageindex
- })
- console.log(res)
- if (res.status == 0) {
- if (this.pageindex > res.data.last_page) {
- uni.showToast({
- title: "没有更多了",
- icon: "none"
- })
- } else {
- this.list = this.list.concat(res.data.data)
- this.list.forEach(item => {
- item.start_time = this.$util.formatDate(item.start_time)
- item.end_time = this.$util.formatDate(item.end_time)
- })
- this.pageindex++
- }
- }
- },
- // 选中某个单选框时,由radio时触发
- discount() {
- },
- radioChange(e) {
- console.log(e);
- },
- // 选中任一radio时,由radio-group触发
- radioGroupChange(e) {
- // console.log(e);
- },
- //充值
- recharge(e) {
- },
- click(e) {
- console.log(e)
- },
- collectCoupons(item, index) {
- if (item.type == 1) {
- if (item.max_reduce_amount > this.infodata.total_amount * 100) {
- uni.showToast({
- title: "满减金额不够",
- icon: "none"
- })
- return false
- } else {
- this.coupon = item.name
- this.couponid = item.id
- let price = (this.norderAmount * 100) - item.money
- this.norderAmount = price
- this.$forceUpdate()
- }
- }
- },
- confirmpay() {
- if (this.info.balance < this.infodata.total_amount * 100) {
- uni.showModal({
- title: "错误提示",
- content: "余额不足,请先充值",
- confirmText: "去充值",
- success(res) {
- if (res.confirm) {
- uni.navigateTo({
- url: "../personal/recharge"
- })
- }
- }
- })
- } else {
- this.popupShow = true
- this.show = true
- }
- },
- getUserInfo: async function() {
- let res = await this.$request.post('/api/v1/user/userInfo')
- if (res.status == 0) {
- this.info = res.data
- console.log(this.info)
- }
- },
- payyuyue: async function() {
- let res = await this.$request.post("/api/v1/order/appointPlaceOrder", {
- product_type: this.infodata.product_type,
- docter_id: this.infodata.docter_id,
- patient_id: this.infodata.patient_id,
- total_amount: this.infodata.total_amount * 100,
- organization_id: this.infodata.organization_id,
- schedule_date: this.infodata.schedule_date,
- time_period_id: this.infodata.time_period_id,
- payment_type: this.infodata.payment_type,
- pay_password: this.password,
- user_coupon_id:this.couponid
- })
- if (res.status == 0) {
- this.popupShow = false
- this.show = false
- uni.showToast({
- title: "支付成功!",
- duration: 1500
- })
- setTimeout(() => {
- uni.redirectTo({
- url: "order?type=" + this.infodata.product_type
- })
- }, 1500)
- } else {
- if (res.message == '密码错误') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "重试",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- } else if (res.message == '未设置支付密码') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "设置",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- uni.navigateTo({
- url: "../index/paypassword"
- })
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- }
- }
- },
- paypacks: async function() {
- let res = await this.$request.post("/api/v1/order/packPlaceOrder", {
- patient_id: this.infodata.patient_id,
- total_amount: this.infodata.total_amount * 100,
- service_pack_id: this.infodata.service_pack_id,
- is_security: this.infodata.is_security,
- guardian_name: this.infodata.guardian_name,
- relationship_type: this.infodata.relationship_type,
- payment_type: this.infodata.payment_type,
- pay_password: this.password,
- user_coupon_id:this.couponid
- })
- console.log(res)
- if (res.status == 0) {
- this.popupShow = false
- this.show = false
- uni.showToast({
- title: "支付成功!",
- duration: 1500
- })
- setTimeout(() => {
- uni.redirectTo({
- url: "order?type=" + this.infodata.product_type
- })
- }, 1500)
- } else {
- if (res.message == '密码错误') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "重试",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- } else if (res.message == '未设置支付密码') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "设置",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- uni.navigateTo({
- url: "../index/paypassword"
- })
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- }
- }
- },
- payphone: async function() {
- let res = await this.$request.post("/api/v1/order/consultPlaceOrder", {
- product_type: this.infodata.product_type,
- docter_id: this.infodata.docter_id,
- patient_id: this.infodata.patient_id,
- total_amount: this.infodata.total_amount * 100,
- phone: this.infodata.phone,
- phone_minutes: this.infodata.phone_minutes,
- payment_type: 2,
- pay_password: this.password,
- user_coupon_id:this.couponid
- })
- if (res.status == 0) {
- this.popupShow = false
- this.show = false
- uni.showToast({
- title: "支付成功!",
- duration: 1500
- })
- setTimeout(() => {
- uni.redirectTo({
- url: "order?type=" + this.infodata.product_type
- })
- }, 1500)
- } else {
- if (res.message == '密码错误') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "重试",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- } else if (res.message == '未设置支付密码') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "设置",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- uni.navigateTo({
- url: "../index/paypassword"
- })
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- }
- }
- },
- paychat: async function() {
- let res = await this.$request.post("/api/v1/order/consultPlaceOrder", {
- product_type: this.infodata.product_type,
- docter_id: this.infodata.docter_id,
- patient_id: this.infodata.patient_id,
- total_amount: this.infodata.total_amount * 100,
- symptoms: this.infodata.symptoms,
- medical_imgs: JSON.stringify(this.infodata.medical_imgs),
- payment_type: 2,
- pay_password: this.password,
- user_coupon_id:this.couponid
- })
- if (res.status == 0) {
- this.popupShow = false
- this.show = false
- uni.showToast({
- title: "支付成功!",
- duration: 1500
- })
- setTimeout(() => {
- uni.redirectTo({
- url: "order?type=" + this.infodata.product_type
- })
- }, 1500)
- } else {
- if (res.message == '密码错误') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "重试",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- } else if (res.message == '未设置支付密码') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "设置",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- uni.navigateTo({
- url: "../index/paypassword"
- })
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- }
- }
- },
- payvaccines: async function() {
- let res = await this.$request.post("/api/v1/order/appointPlaceOrder", {
- product_type: this.infodata.product_type,
- patient_id: this.infodata.patient_id,
- total_amount: this.infodata.total_amount * 100,
- organization_id: this.infodata.organization_id,
- schedule_date: this.infodata.schedule_date,
- time_period_id: this.infodata.time_period_id,
- vaccine_id: this.infodata.vaccine_id,
- payment_type: this.infodata.payment_type,
- pay_password: this.password,
- user_coupon_id:this.couponid
- })
- if (res.status == 0) {
- this.popupShow = false
- this.show = false
- uni.showToast({
- title: "支付成功!",
- duration: 1500
- })
- setTimeout(() => {
- uni.redirectTo({
- url: "order?type=" + this.infodata.product_type
- })
- }, 1500)
- } else {
- if (res.message == '密码错误') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "重试",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- } else if (res.message == '未设置支付密码') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "设置",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- uni.navigateTo({
- url: "../index/paypassword"
- })
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- }
- }
- },
- paychildcare: async function() {
- console.log(this.infodata.nurse_ids)
- let res = await this.$request.post("/api/v1/order/appointPlaceOrder", {
- product_type: this.infodata.product_type,
- patient_id: this.infodata.patient_id,
- total_amount: this.infodata.total_amount * 100,
- organization_id: this.infodata.organization_id,
- schedule_date: this.infodata.schedule_date,
- time_period_id: this.infodata.time_period_id,
- nurse_ids: JSON.stringify(this.infodata.nurse_ids),
- payment_type: this.infodata.payment_type,
- pay_password: this.password,
- user_coupon_id:this.couponid
- })
- console.log(res)
- if (res.status == 0) {
- this.popupShow = false
- this.show = false
- uni.showToast({
- title: "支付成功!",
- duration: 1500
- })
- setTimeout(() => {
- uni.redirectTo({
- url: "order?type=" + this.infodata.product_type
- })
- }, 1500)
- } else {
- if (res.message == '密码错误') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "重试",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- } else if (res.message == '未设置支付密码') {
- uni.showModal({
- title: "提示",
- content: res.message,
- confirmText: "设置",
- success: (res) => {
- if (res.confirm) {
- this.password = ""
- uni.navigateTo({
- url: "../index/paypassword"
- })
- } else if (res.cancel) {
- this.popupShow = false
- this.show = false
- this.password = ""
- }
- },
- })
- }
- }
- },
- //点击确认支付
- payment(e) {
- if (this.infodata.product_type == 1) {
- this.payphone()
- } else if (this.infodata.product_type == 2) {
- this.paychat()
- } else if (this.infodata.product_type == 6) {
- this.paypacks()
- } else if (this.infodata.product_type == 3) {
- this.payyuyue()
- } else if (this.infodata.product_type == 4) {
- this.payvaccines()
- } else if (this.infodata.product_type == 5) {
- this.paychildcare()
- }
- },
- // 按键被点击(点击退格键不会触发此事件)
- valChange(val) {
- // 将每次按键的值拼接到value变量中,注意+=写法
- this.password += val;
- console.log(this.password)
- if (this.password.length == 6) {
- this.payment()
- }
- },
- // 退格键被点击
- backspace() {
- // 删除value的最后一个字符
- if (this.password.length) this.password = this.password.substr(0, this.password.length - 1);
- console.log(this.password);
- }
- },
- onHide() {
- this.popupShow = false
- },
- }
- </script>
- <style>
- /* 支付文字 */
- .paymentText {
- height: 60rpx;
- width: auto;
- background-color: #FFFFFF;
- padding: 30rpx 0 0 30rpx;
- font-size: 24rpx;
- }
- /* 优惠券样式 */
- .discount {
- position: relative;
- display: inline-block;
- margin-right: 5px;
- margin-left: 15px;
- padding: 0 9px 0 12px;
- border-top: 1px solid rgb(11, 115, 186);
- border-bottom: 1px solid rgb(11, 115, 186);
- height: 16px;
- line-height: 16px;
- color: rgb(11, 115, 186);
- font-size: 10px;
- }
- .discount::before {
- content: "";
- left: 0;
- width: 7px;
- position: absolute;
- top: -1px;
- height: 18px;
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAkCAMAAACpD3pbAAAAPFBMVEUAAAD////kOTzqaGr+9vb4zc32vL3sdXfnTE/mRUfxmpz87O3yn6HqZ2npXWDlQEP97e33xsf3xsbxl5nHV2NIAAAAAXRSTlMAQObYZgAAAJpJREFUOMvllEsSwiAQRMnjF8g/3v+uKhIrjhHK0l16B4+C7hlALS07qSyS2kVlKnHmCpqdNvwYwTdY6yKGX7AeKtb+jmN3jLuYMMEd5XYBUMZ6cO/BHHhr7ut6wizxHOhvM+kUT5S5I77ZsGWU1kbsExsmiSdMBVc3l9a0tJaDdR+CVcryWtRBFLXYkku1oae955Xnv5Y+j/UKs1MGwyraxf4AAAAASUVORK5CYII=);
- background-size: 15px 18px;
- background-repeat: no-repeat;
- }
- .discount::after {
- right: 0;
- width: 4px;
- background-position: -11px 0;
- content: "";
- position: absolute;
- top: -1px;
- height: 18px;
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAkCAMAAACpD3pbAAAAPFBMVEUAAAD////kOTzqaGr+9vb4zc32vL3sdXfnTE/mRUfxmpz87O3yn6HqZ2npXWDlQEP97e33xsf3xsbxl5nHV2NIAAAAAXRSTlMAQObYZgAAAJpJREFUOMvllEsSwiAQRMnjF8g/3v+uKhIrjhHK0l16B4+C7hlALS07qSyS2kVlKnHmCpqdNvwYwTdY6yKGX7AeKtb+jmN3jLuYMMEd5XYBUMZ6cO/BHHhr7ut6wizxHOhvM+kUT5S5I77ZsGWU1kbsExsmiSdMBVc3l9a0tJaDdR+CVcryWtRBFLXYkku1oae955Xnv5Y+j/UKs1MGwyraxf4AAAAASUVORK5CYII=);
- background-size: 15px 18px;
- background-repeat: no-repeat;
- }
- /* 优惠头部 */
- .header-Discount {
- position: relative;
- height: 46px;
- line-height: 46px;
- padding-left: 10px;
- font-size: 15px;
- color: #333;
- text-align: center;
- font-weight: 700;
- }
- .body-Discount {
- padding: 0 18px;
- font-size: 13px;
- color: #333;
- margin-bottom: 50px;
- }
- .body-Discount>.collar {
- position: relative;
- padding-bottom: 9px;
- }
- .body-Discount>.collar>.title-Discount {
- height: 40px;
- line-height: 40px;
- color: #262626;
- font-weight: 700;
- }
- .body-Discount>.collar .couponList>.couponItem {
- color: rgb(11, 115, 186);
- margin-bottom: 18px;
- padding: 12px 10px;
- border-top: 6px solid currentColor;
- box-shadow: 0 0 6px 0 rgba(0, 0, 0, .1);
- border-radius: 6px;
- }
- .body-Discount>.collar .couponList>.couponItem>.couponItem-subject {
- display: flex;
- min-height: 58px;
- color: rgb(11, 115, 186);
- }
- .body-Discount>.collar .couponList>.couponItem>.couponItem-subject>.couponItem-subject-left {
- width: 220rpx;
- margin-right: 10px;
- line-height: 1;
- text-align: center;
- display: flex;
- flex-direction: column;
- justify-content: center;
- overflow: hidden;
- }
- .couponItem-subject-price {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- line-height: 1;
- text-align: center;
- }
- .couponItem-subject-icon {
- font-size: 14px;
- display: inline-block;
- vertical-align: bottom;
- margin: 0 4px 3px 0;
- }
- .couponItem-subject-price-min {
- position: relative;
- top: 1px;
- font-size: 36px;
- letter-spacing: 0;
- }
- .couponItem-subject-price-reduce {
- font-size: 14px;
- margin-top: 5px;
- }
- .couponItem-subject-right {
- flex: 1;
- position: relative;
- }
- .couponItem-subject-right-header {
- height: 36px;
- line-height: 18px;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- font-size: 12px;
- color: #666;
- }
- .couponItem-subject-right-header-icon {
- background-color: rgb(11, 115, 186);
- color: #fff;
- font-size: 12px;
- display: inline-block;
- padding: 0 6px 0 12px;
- height: 14px;
- margin-right: 4px;
- line-height: 14px;
- position: relative;
- border-radius: 0 3px 3px 0;
- }
- .couponItem-subject-right-header-icon::before {
- position: absolute;
- z-index: 1;
- content: "";
- width: 0;
- top: 0;
- left: -7px;
- height: 0;
- border-top: 7px solid #fff;
- border-right: 7px solid transparent;
- border-bottom: 7px solid #fff;
- border-left: 7px solid #fff;
- }
- .couponItem-subject-right-header-icon::after {
- content: ".";
- position: absolute;
- color: #fff;
- left: 5px;
- top: -6px;
- font-size: 20px;
- }
- .couponItem-subject-right-btn {
- background-color: rgb(11, 115, 186);
- color: #fff;
- font-size: 12px;
- position: absolute;
- right: 0;
- bottom: 0;
- width: 68px;
- height: 20px;
- line-height: 20px;
- text-align: center;
- border-radius: 10px;
- box-sizing: border-box;
- z-index: 2;
- }
- .desc-style {
- padding: 5px 18px 10px 18px;
- line-height: 1.3;
- position: relative;
- font-size: 12px;
- max-height: 46px;
- overflow: hidden;
- color: #666;
- background-color: white;
- }
- .closing-date {
- padding-right: 68px;
- position: absolute;
- left: 0;
- bottom: 0;
- box-sizing: border-box;
- width: 100%;
- line-height: 20px;
- font-size: 10px;
- color: #8c8c8c;
- }
- </style>
|