<!-- 优惠券列表 --> <div style="border:1px solid #FFF;position:relative"> <div class="couponList" v-show="couponFlag"> <el-checkbox-group v-model="checkList" @change="ChooseCouponList"> <div class="coupon-box grid" v-for="item in AccountCouponList" :key="item.id"> <div class="coupon-item-l grid flex_items grid_column flex_center"> <div style="color:#EB3434;font-size:26px;">¥<span style="font-size:56px">{{item.payDiscountValue}}</span></div> <div style="margin-top:10px;font-size:26px">满{{item.payThreshold}}可用</div> </div> <div class="coupon-item-r"> <div class="grid" style="height: 100%;"> <div class="u-2of3" style="height:100%"> <!-- <div style="font-weight:700;padding-left:40px;margin-bottom:15px">{{item.couponName}}</div> --> <div>1111111111</div> <div style="padding-left:40px;font-size:26px">有效期{{(item.expireTime).slice(0, 10)}}</div> </div> <div class="u-1of3" style="height: 100%;;text-align:center"> <!-- <el-checkbox class="custom-checkbox" :label="item.id"></el-checkbox> --> <!-- <img v-if="SelectRadio === index" src="../../assets/gouxuan_youhuiquan.png" alt="勾选"> <img v-else src="../../assets/gouxuan_youhuiquan_n.png" alt="未勾选"> --> </div> </div> </div> </div> </el-checkbox-group> </div> </div> 这段代码写法有没问题, 1111111111div容器的字段,在页面上显示不出来

时间: 2023-08-05 18:09:16 浏览: 50
根据你提供的代码,没有明显的语法错误。不过,有几个可能导致 `<div>1111111111</div>` 不显示的原因: 1. CSS 样式问题:请确保这个 `<div>` 元素的父元素或者其他相关元素没有设置了隐藏、透明度为 0、或者其他可能导致该元素不可见的 CSS 样式。 2. 数据问题:请检查 `AccountCouponList` 数组中的数据是否存在,并且确保 `item.couponName` 的值不为空。如果 `item.couponName` 是空的,那么 `<div>1111111111</div>` 中就不会显示任何内容。 3. 其他代码问题:请检查其他与该元素相关的代码,特别是可能会影响该元素显示的条件语句、指令、事件处理等。 如果以上检查都没有找到问题,你可以尝试在浏览器开发者工具中查看该元素是否存在,并检查是否有其他样式或错误信息影响了其显示。另外,你还可以尝试将该元素放置在其他位置或者与其他元素进行比较,看是否有不同的显示效果。
相关问题

<!-- 优惠券颜色 --> <label class="layui-form-item block relative"> <span class="help-label"><b>优惠券颜色</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> <input type="radio" name="colour" value="0" title="蓝色" checked lay-filter="colour"> <input type="radio" name="colour" value="1" title="红色" lay-filter="colour"> <input type="radio" name="colour" value="2" title="紫色" lay-filter="colour"> <input type="radio" name="colour" value="3" title="黄色" lay-filter="colour"> </label>无论选那个都返回第一个数据错误原因

根据您提供的代码片段,我发现您的单选按钮的名称(name 属性)都是相同的“colour”,这可能是导致问题的原因。请确保每个单选按钮的名称都不同,以便正确地传递表单数据。您可以像这样修改您的代码: ``` <!-- 优惠券颜色 --> <label class="layui-form-item block relative"> <span class="help-label"><b>优惠券颜色</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> <input type="radio" name="colour" value="0" title="蓝色" checked lay-filter="colour"> <input type="radio" name="colour" value="1" title="红色" lay-filter="colour1"> <input type="radio" name="colour" value="2" title="紫色" lay-filter="colour2"> <input type="radio" name="colour" value="3" title="黄色" lay-filter="colour3"> </label> ``` 在上面的代码中,我将第二个单选按钮的名称更改为“colour1”,第三个单选按钮的名称更改为“colour2”,第四个单选按钮的名称更改为“colour3”,以确保每个单选按钮的名称都不同。您可以根据需要进行修改。

<div class="right"> <span>券后价:</span> <el-input v-model="priceMin" placeholder="¥" :max="999" />~ <el-input v-model="priceMax" placeholder="¥" :max="999" /> </div>太宽了input然后中间的~要自适应

如果你想让输入框宽度自适应,并且让中间的`~`自适应位置,你可以使用Flex布局来实现。修改代码如下: ```html <div class="right" style="display: flex; align-items: center;"> <span style="margin-right: 5px;">券后价:</span> <el-input v-model="priceMin" placeholder="¥" :max="999" style="width: auto;" /> <span style="margin: 0 5px;">~</span> <el-input v-model="priceMax" placeholder="¥" :max="999" style="width: auto;" /> </div> ``` 通过设置`display: flex`来启用Flex布局,并使用`align-items: center`来垂直居中对齐。然后,将输入框的宽度设置为`auto`,这样它们就会自适应宽度。中间的`~`使用了`margin`来控制间距。你可以根据需要调整`margin`的值来达到你想要的效果。

相关推荐

<view class="swiper"> <swiper class="banner" indicator-dots indicator-color="rgb(255, 255, 255, 0.5)" indicator-active-color="#fff" autoplay interval="3000" circular> <swiper-item class="bannerItem"> <image src="../../img/swiper01.png" mode="widthFix"></image> </swiper-item> <swiper-item class="bannerItem"> <image src="../../img/swiper02.png" mode="widthFix"></image> </swiper-item> <swiper-item class="bannerItem"> <image src="../../img/swiper03.png" mode="widthFix"></image> </swiper-item> <swiper-item class="bannerItem"> <image src="../../img/swiper04.png" mode="widthFix"></image> </swiper-item> </swiper> </view> <view class="box"> <view class="box1"> <image class="box-img" src="../../img/自取.png"></image> <view class="box-text">自取</view> <view class="box-text2">下单免排队</view> </view> <view class="box2"> <image class="box-img" src="../../img/外卖.png"></image> <view class="box-text">外卖</view> <view class="box-text2">甜蜜送到家</view> </view> </view> <view class="content"> <image src="../../img/奶昔.png"></image> <view class="content-text">好友拼单</view> <view class="content-text2">呼朋唤友一起拼></view> </view> <view class='bottom'> <view class='bottom-son'> <image src="../../img/隐藏新喝法.png"></image> <view class="bottom-son-text">隐藏新喝法</view> </view> <view class='bottom-son'> <image src="../../img/领10元券红包.png"></image> <view class="bottom-son-text">领10元券</view> </view> <view class='bottom-son'> <image src="../../img/0元兑周边.png"></image> <view class="bottom-son-text">0元兑周边</view> </view> </view> 为这个文件编写wxss

代码片段:<view class="price_box_item"> <block v-for="(item,index) in priceData" :key="index" > <view class="item_con bg-image" :style="{'background-image':url(${OSSImgUrl}/images/20230403_newApp/box/offline_price_item_bg.png)}" @tap.stop="onSelectPrice(item, index)" > <view class="price_1">¥</view> <view class="price_2">{{item.price / 100}}</view> <image class="price_active" :src="${OSSImgUrl}/images/20230403_newApp/box/price_active.png" v-if="selectedPriceCode == item.priceCode" ></image> </view> </block> </view> <confirm-order ref="offlinePay" :payData="payData" payType="offline" @onPay="onPay" ></confirm-order>// 支付组件 import ConfirmOrder from '@/components/confirm-order/confirm-order.vue';// 选择价位 onSelectPrice(item, index){ var that = this; uni.$u.throttle( ()=> { if(item.priceCode == this.selectedPriceCode) return this.selectedPriceCode = item.priceCode; this.payData.price = item.price / 100; console.log('this.payData.price', index) this.priceIndex = index; this.payData.name = item.price / 100 + '元双盲盒大礼包' },1000) }, 怎么通过选择不同的价位,选择对应的优惠券,优惠券在支付组件中,以下是组件中的优惠券代码片段:async mounted() { this.getAddressList(); this.getCouponList1(); }, computed:{ discountPrice(){ //优惠金额 let selectedCoupon = this.selectedCoupon; let price = this.payData.price; if(selectedCoupon.type === 1){ //折扣 return (price * ((100 - selectedCoupon.discount) / 100)).toFixed(2) }else if(selectedCoupon.type === 2){ //满减 return (selectedCoupon.subPrice / 100).toFixed(2) }else{ return 0.00 } } },

最新推荐

recommend-type

优惠券网站调研分析-二维码,电子优惠券市场分析

对当前手机优惠券市场的一个调研,分析,总结,主要针对二维码优惠的市场,供大家参考
recommend-type

typora.zip

typora.zip
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

MATLAB柱状图在信号处理中的应用:可视化信号特征和频谱分析

![matlab画柱状图](https://img-blog.csdnimg.cn/3f32348f1c9c4481a6f5931993732f97.png) # 1. MATLAB柱状图概述** MATLAB柱状图是一种图形化工具,用于可视化数据中不同类别或组的分布情况。它通过绘制垂直条形来表示每个类别或组中的数据值。柱状图在信号处理中广泛用于可视化信号特征和进行频谱分析。 柱状图的优点在于其简单易懂,能够直观地展示数据分布。在信号处理中,柱状图可以帮助工程师识别信号中的模式、趋势和异常情况,从而为信号分析和处理提供有价值的见解。 # 2. 柱状图在信号处理中的应用 柱状图在信号处理
recommend-type

解释这行代码 c = ((double)rand() / RAND_MAX) * (a + b - fabs(a - b)) + fabs(a - b);

这行代码是用于生成 a 和 b 之间的随机数。首先,它使用 rand() 函数生成一个 [0,1) 之间的随机小数,然后将这个小数乘以 a、b 范围内的差值,再加上 a 和 b 中的较小值。这可以确保生成的随机数大于等于 a,小于等于 b,而且不会因为 a 和 b 之间的差距过大而导致难以生成足够多的随机数。最后,使用 fabs() 函数来确保计算结果是正数。
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。
recommend-type

"互动学习:行动中的多样性与论文攻读经历"

多样性她- 事实上SCI NCES你的时间表ECOLEDO C Tora SC和NCESPOUR l’Ingén学习互动,互动学习以行动为中心的强化学习学会互动,互动学习,以行动为中心的强化学习计算机科学博士论文于2021年9月28日在Villeneuve d'Asq公开支持马修·瑟林评审团主席法布里斯·勒菲弗尔阿维尼翁大学教授论文指导奥利维尔·皮耶昆谷歌研究教授:智囊团论文联合主任菲利普·普雷教授,大学。里尔/CRISTAL/因里亚报告员奥利维耶·西格德索邦大学报告员卢多维奇·德诺耶教授,Facebook /索邦大学审查员越南圣迈IMT Atlantic高级讲师邀请弗洛里安·斯特鲁布博士,Deepmind对于那些及时看到自己错误的人...3谢谢你首先,我要感谢我的两位博士生导师Olivier和Philippe。奥利维尔,"站在巨人的肩膀上"这句话对你来说完全有意义了。从科学上讲,你知道在这篇论文的(许多)错误中,你是我可以依
recommend-type

MATLAB柱状图在数据分析中的作用:从可视化到洞察

![MATLAB柱状图在数据分析中的作用:从可视化到洞察](https://img-blog.csdnimg.cn/img_convert/1a36558cefc0339f7836cca7680c0aef.png) # 1. MATLAB柱状图概述** 柱状图是一种广泛用于数据可视化的图表类型,它使用垂直条形来表示数据中不同类别或组别的值。在MATLAB中,柱状图通过`bar`函数创建,该函数接受数据向量或矩阵作为输入,并生成相应的高度条形。 柱状图的优点在于其简单性和易于理解性。它们可以快速有效地传达数据分布和组别之间的比较。此外,MATLAB提供了广泛的定制选项,允许用户调整条形颜色、
recommend-type

contos如何测试http

Contos可以使用各种工具来测试HTTP,以下是一些常用的方法: 1. 手动测试:使用浏览器、Postman等工具手动发送HTTP请求,并检查响应是否符合预期。 2. 单元测试:使用测试框架编写单元测试,测试HTTP API的输入输出是否正确。 3. 集成测试:使用自动化测试框架编写集成测试,测试整个HTTP系统的功能和性能是否正常。 4. 压力测试:使用压力测试工具对HTTP系统进行负载测试,测试系统在高并发和高负载情况下的性能表现。 5. 安全测试:使用安全测试工具对HTTP系统进行安全测试,测试系统是否存在漏洞和安全隐患。 无论使用哪种方法,都需要根据具体情况选择合适的工具