Commit 17f11cb9 authored by 罗超's avatar 罗超

修改样式

parent 9562d7e8
<template> <template>
<u-popup mode="bottom" border-radius="20" :popup="false" v-model="show" :maskCloseAble="true" length="auto" <u-popup mode="bottom" border-radius="20" :popup="false" v-model="show" :maskCloseAble="true" length="auto"
:safeAreaInsetBottom="true" @close="popupClose" :z-index="9999" close-icon="cross" :closeable="true"> :safeAreaInsetBottom="true" @close="popupClose" :z-index="9999" close-icon="cross" :closeable="true">
<view class="coupon"> <view class="coupon column" style="height: 70vh;">
<scroll-view :scroll-y="true" style="max-height: 70vh;">
<view class="title">优惠券</view> <view class="title">优惠券</view>
<view class="chosentips">请选择要使用的优惠券</view> <view class="chosentips">请选择要使用的优惠券</view>
<scroll-view :scroll-y="true" class="col" style="height: 1px;">
<view class="details"> <view class="details">
<view class="item" v-for="(x, i) in ts" :key="i" :style="{'margin-bottom':ts.length==i+1?'50px':'10px'}"> <view class="item" v-for="(x, i) in ts" :key="i" :style="{'margin-bottom':ts.length==i+1?'50px':'10px'}">
<view class="ticket"> <view class="ticket">
...@@ -224,6 +225,7 @@ ...@@ -224,6 +225,7 @@
</script> </script>
<style> <style>
@import url("../../asset/css/flex.css");
.coupon { .coupon {
max-height: 70vh; max-height: 70vh;
background: #f5f5f5; background: #f5f5f5;
...@@ -352,15 +354,10 @@ ...@@ -352,15 +354,10 @@
left: -6px; left: -6px;
} }
.pesongBox .btton-box { .coupon .btton-box {
height: 50px; height: 50px;
display: flex;
padding: 5px 10px; padding: 5px 10px;
border-top: 1px solid #f5f5f5; border-top: 1px solid #f1f2f4;
position: fixed;
bottom: 0;
left: 0;
right: 0;
align-items: center; align-items: center;
background: #fff; background: #fff;
} }
......
...@@ -128,7 +128,12 @@ ...@@ -128,7 +128,12 @@
methods:{ methods:{
setCheckStatusHandle(x){ setCheckStatusHandle(x){
if(!x.Checked && !this.canChecked && x.year>1) return if(!x.Checked && !this.canChecked && x.year>1) return
x.Checked = !x.Checked
const g = this.guests.find(t=>x.Id==t.Id)
if(g){
g.Checked = !g.Checked
}
//console.log('setCheckStatusHandle',x.Checked)
}, },
guestChangeHandle(val){ guestChangeHandle(val){
this.guests = val this.guests = val
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment