zoukankan      html  css  js  c++  java
  • 第三次尝试

    对三个文件进行了加工,主要是为了实现添加收支的界面

    app.json

    {
      "pages":[
        "pages/index/index",
        "pages/item/item"
      ],
      "window":{
        "backgroundTextStyle":"light",
        "navigationBarBackgroundColor": "#2297f1",
        "navigationBarTitleText": "灵犀账本",
        "navigationBarTextStyle":"white"
      }
    }
    

    item.wxml

    <!--item.wxml-->
    <view class="page">
        <view class="section">
            <view class="section__title">标题</view>
            <input bindinput="bindTitleInput" placeholder="内容" value="{{title}}" />
        </view>
        <view class="section">
            <view class="section__title">类型</view>
            <radio-group class="radio-group" bindchange="radioChange">
                <label class="radio">
                    <radio class="radio" value="income" checked="true"/>收入
                </label>
                <label class="radio">
                    <radio class="radio" value="cost"/>支出
                </label>
            </radio-group>
        </view>
        <view class="section">
            <view class="section__title">金额</view>
            <input bindinput="bindAccountInput" type="number" placeholder="请输入数字,不加正负号"/>
        </view>
        <button class="button" type="primary">添加</button>
    </view>
    

    item.wxss

    .page {
        min-height: 100%;
        flex: 1;
        background-color: #FBF9FE;
        font-size: 32rpx;
        font-family: -apple-system-font,Helvetica Neue,Helvetica,sans-serif;
        overflow: hidden;
    }
    
    .page input{
        padding: 20rpx 30rpx;
        background-color: #fff;
    }
    
    .section{
        margin:40rpx 0;
    }
    .section_gap{
        padding: 0 30rpx;
    }
    .section__title{
        margin-bottom: 16rpx;
        padding-left: 30rpx;
        padding-right: 30rpx;
    }
    .section_gap .section__title{
        padding-left: 0;
        padding-right: 0;
    }
    
    .radio-group {
        margin:50rpx;
        font-size:25rpx;
    }
    
    .radio{
        margin-right: 20rpx;
    }
    
    /**按钮**/
    .button {
        margin:10rpx;
    }
    是多疑还是去相信 谎言背后的忠心 或许是自己太执迷 命题游戏 沿着他的脚步 呼吸开始变得急促 就算看清了面目 设下埋伏 真相却居无定处 I swear I'll never be with the devil 用尽一生孤独 没有退路的路 你看不到我 眉眼焦灼却不明下落 命运的轮轴 伺机而动 来不及闪躲 沿着他的脚步 呼吸开始变得急促 就算看清了面目 设下埋伏 真相却居无定处 I swear I'll never be with the devil 用尽一生孤独 没有退路的路 你看不到我 眉眼焦灼却不明下落 命运的轮轴 伺机而动 来不及闪躲 你看不到我 眉眼焦灼却不明下落 命运的轮轴 伺机而动 来不及闪躲 黑夜和白昼 你争我夺 真相被蛊惑 心从不退缩 这天堂荒漠 留给孤独的猎手
  • 相关阅读:
    Linux C下的正则表达式
    中英文i18 vue参数传递
    es map的用法
    webpack中publicPath问题
    prop中如何获取vue data中的数据 中英文方案
    利用map reduce方法将对象转成数组
    WPF 踩坑笔记2
    WPF 踩坑笔记1
    RabbitMQ 高阶用法 之 x-expire 过期时间设置
    JANUSEC应用网关1.0发布,提供一站式安全交付能力
  • 原文地址:https://www.cnblogs.com/muailiulan/p/10414926.html
Copyright © 2011-2022 走看看