<!--pages/ageChange/ageChange.wxml--> <custom-navi text="年龄选择" back="{{true}}" home="{{false}}"></custom-navi> <view class='ageChange'> <image src='../../img/2.jpg'></image> <text>请选择您的孩子的年龄段</text> <view style="background:{{age==1?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="1">3~6岁</view> <view style="background:{{age==2?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="2">7岁以上</view> <view style="background:{{age==0?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="0">暂不选择</view> <view class='button' style='border:none'> <view style="width:100%;height:100%;background:#0D76ED;color:#fff" bindtap="updateAge">提交</view> </view> </view>