uniapp 微信小程序 金额展示套餐

html

html 复制代码
			<view class="gradelist">
							<view class="flex jsb ac">
								<text class="gradelisTitle">喜欢作者</text>
								<!-- <text class="gradelisOtherPrice" @click="otherPiceButton(1)">其他金额</text> -->
							</view>
							<view class="gradelis flex flexwrap">
								<view class="gradeli flex jc ac" v-for="(item,index) in rewardPriceList" :key="index"
									@click.stop="fun_reward(item)" >
									¥{{item}}</view>
							</view>
						</view>

js

javascript 复制代码
			//打赏
			async fun_reward(price) {
				//里面写逻辑
			},

css

css 复制代码
		.gradelist {
			padding: 30rpx;
			background: #f5f5f5;
			border-radius: 8rpx;
			box-sizing: border-box;
			border-radius: 12rpx;
			margin-top: 30rpx;

			.gradelisTitle {
				color: #999;
				font-size: 28rpx;

			}

			.gradelisOtherPrice {
				color: steelblue;
				font-size: 28rpx;

			}

			.gradelis {
				width: 100%;
				margin-top: 30rpx;
			}

			.gradeli {
				width: 31%;
				height: 100rpx;
				background: #fff;
				margin-right: 3%;
				border-radius: 8rpx;
				margin-bottom: 20rpx;
				font-size: 28rpx;
				font-weight: bold;
			}

			.gradeli:nth-child(3n+3) {
				margin-right: 0 !important;
			}

		}
相关推荐
wuxia21187 小时前
微信小程序单击元素切换元素的显示和隐藏
javascript·微信小程序·setdata
游九尘9 小时前
JavaScript 实现三段式版本号对比函数(app升级用)
javascript·uni-app
2501_916007479 小时前
前端开发常用软件与工具全面指南
android·ios·小程序·https·uni-app·iphone·webview
2501_9159090614 小时前
iOS应用性能优化:十大策略提升用户体验与开发效率
android·ios·小程序·https·uni-app·iphone·webview
2601_9567436817 小时前
上海小程序开发公司技术选型指南:Serverless架构如何影响交付质量与长期成本
云原生·小程序·架构·serverless·开发经验·上海
silvia_Anne19 小时前
微信小程序之渲染商品列表
微信小程序·小程序
万能小林子20 小时前
如何将网页在线转APP?5种打包工具对比速成指南(含在线/手机/电脑方案)
android·ios·uni-app·web app·wap2app·app打包·app封装
海兰2 天前
【文字三国志:第六篇】天命重构,UI组件设计细节
人工智能·ui·语言模型·小程序
草根站起来2 天前
微信小程序request net:ERR_CERT_DATE_INVALID
微信小程序·小程序
小北的AI科技分享2 天前
广州小程序平台推荐:2026年本地商家数字化选型深度测评
小程序·广州小程序平台