<!--pages/ageChange/ageChange.wxml--> <!-- <custom-navi text="年龄选择" back="{{true}}" home="{{false}}"></custom-navi> --> <image class='background-image' src='/img/registerBg.jpg' mode="aspectFill"></image> <view class="title" bindtap='back'> <image src="/img/left1.png" style="width:40px;height:40px;margin-right:5px"></image>年龄选择 </view> <view class='ageChange'> <image src='/img/logo1.png' mode="widthFix"></image> <text>请选择您的孩子的年龄段</text> <view style="background:{{age==1?'#d8477f':'transparent'}};color:{{age==1?'#fff':'#d8477f'}}" bindtap='selectAge' data-index="1">3~6 岁</view> <view style="background:{{age==2?'#d8477f':'transparent'}};color:{{age==2?'#fff':'#d8477f'}}" bindtap='selectAge' data-index="2">7 岁以上</view> <view style="background:{{age==0?'#d8477f':'transparent'}};color:{{age==0?'#fff':'#d8477f'}}" bindtap='selectAge' data-index="0">暂不选择</view> <view class='button' style='border:none;margin-top:10%;color:#fff;'> <view style="width:100%;height:100%;background:linear-gradient(to right, #e85c6d, #fb689b);border-radius: 20px;font-size: 18px;" bindtap="updateAge">提交</view> </view> </view>