zoukankan      html  css  js  c++  java
  • wx:if

    <!--pages/index39/index39.wxml-->
    <page>
    <view class='box'>

    <block wx:for="{{box}}" wx:for-index="box_map">
    <view class='nr'>

    <view class='left'>
    <image src='{{item.src}}'></image>
    </view>

    <view class='xianmian' wx:if="{{box_map == 0}}">
    <text>限免</text>
    </view>

    <view class='right'>
    <text class='text1'>{{item.text1}}</text>
    <text class='text2'>{{item.text2}}</text>
    </view>

    </view>
    </block>
    </view>

    </page>
    /* pages/index39/index39.wxss */

    page {
    750rpx;
    background: #fff;
    }

    page .box .nr {
    750rpx;
    height: 170rpx;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    }

    page .box .nr .left {
    90rpx;
    height: 90rpx;
    background: rgba(66, 198, 171, 1);
    border-radius: 8rpx;
    margin: 40rpx 30rpx;
    }

    page .box .nr .left image {
    50rpx;
    height: 50rpx;
    display: block;
    margin: 20rpx auto;
    }

    page .box .nr .right {
    580rpx;
    border-bottom: 1px solid #ddd;
    margin-top: 40rpx;
    }

    page .box .nr:last-child {
    padding-bottom: 100rpx;
    }

    page .box .nr .right .text1 {
    display: block;
    height: 30rpx;
    font-size: 30rpx;
    font-family: MicrosoftYaHei;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
    line-height: 30rpx;
    }

    page .box .nr .right .text2 {
    display: block;
    height: 25rpx;
    font-size: 24rpx;
    font-family: MicrosoftYaHei;
    font-weight: 400;
    color: rgba(153, 153, 153, 1);
    line-height: 25rpx;
    margin-top: 30rpx;
    }

    page .box .nr {
    position: relative;
    }

    page .box .nr .xianmian {
    position: absolute;
    top: 30rpx;
    right: 30rpx;
    120rpx;
    height: 50rpx;
    border: 1rpx solid rgba(27, 188, 155, 1);
    border-radius: 8rpx;
    font-size: 24rpx;
    font-family: MicrosoftYaHei;
    font-weight: 400;
    color: rgba(27, 188, 155, 1);
    line-height: 50rpx;
    text-align: center;
    }
  • 相关阅读:
    (转)C#中String跟string的“区别”
    C#中的this关键字
    (转)VS2015基础 指定一个或多个项目执行
    C# 中如何输出双引号(转义字符的使用)
    (转) C#中使用throw和throw ex抛出异常的区别
    springboot
    Zookeeper
    Maven
    springboot
    springboot
  • 原文地址:https://www.cnblogs.com/ylblogs/p/9570534.html
Copyright © 2011-2022 走看看