图片轮播部分文章来源:https://www.toymoban.com/news/detail-517730.html
<view class="haibao">
<swiper indicator-dots="{
{indicatorDots}}" autoplay="{
{autoplay}}" interval="{
{interval}}" duration="{
{duration}}"
indicator-color="#f2f2f2" indicator-active-color="#C81623" style="height:350px;">
<block wx:for="{
{imgUrls}}" wx:key="imgUrls">
<swiper-item>
<!-- {
{item}} <image :src="{
{item}}" class="silde-image" mode="widthFix" /> -->
<image mode="widthFix" src="{
{item}}" mode="widthFix"/>
</swiper-item>
</block>
</swiper>
</view>
中间颜色尺寸数量文章来源地址https://www.toymoban.com/news/detail-517730.html
<view class="btn">
<view class="nowPrice">¥{
{good.nowPrice}}</view>
<view class="oldPrice">
<view class="old">¥{
{good.oldPrice}}</view>
<view classe="seckill"> 秒杀</view>
</view>
</view>
<view class="title"> {
{good.name}}</view>
<view class="hr"></view>
<block wx:if="{
{good.coupon.length > 0}}">
<view class="promotion">
<view>领券</view>
<block wx:for="{
{good.coupon}}">
<view class="item">{
{item}}</view>
</block>
</view>
<view class="hr"></view>
</block>
<block wx:if="{
{good.promotion.length > 0}}">
<view class="promotion">
<view>促销</view>
<block wx:for="{
{good.promotion}}">
<view class="item">{
{item}}</view>
</block>
</view>
<view class="hr"></view>
</block>
<view class="desc">已选
<block wx:if="{
{good.color.length > 0}}">
{
{good.color[0]}}
</block>
<block wx:if="{
{good.size.length > 0}}">
{
{good.size[0]}}
</block>
,1个
</view>
<view class="line"></view>
<block wx:if="{
{good.color.length > 0 }}">
<view class="condition">
<text class="conditionName">颜色</text>
<view class="tips">
<block wx:for="{
{good.color}}">
<view wx:if="{
{index ==0}}" class="tip select"> {
{item}} </view>
<view wx:else class="tip"> {
{item}} </view>
</block>
</view>
</view>
</block>
<block wx:if="{
{good.size.length > 0}}">
<view class="condition">
<text class="conditionName">尺寸</text>
<view class="tips">
<block wx:for="{
{good.size}}">
<view wx:if="{
{index ==0}}" class="tip select"> {
{item}} </view>
<view wx:else class="tip">{
{item}} <
到了这里,关于微信小程序(四)会员专区的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!