1 |
- <view class="content"><view class="row b-b"><input class="input" type="text" placeholder="省,城市,区县" placeholder-class="placeholder" data-event-opts="{{[['tap',[['changeshow',['$event']]]],['input',[['__set_model',['$0','addressName','$event',[]],['addressData']]]]]}}" value="{{addressData.addressName}}" bindtap="__e" bindinput="__e"/></view><view class="row b-b"><input class="input" type="text" placeholder="详细地址,如街道,楼牌号等" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','area','$event',[]],['addressData']]]]]}}" value="{{addressData.area}}" bindinput="__e"/></view><view class="row b-b"><input class="input" type="text" placeholder="姓名" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['addressData']]]]]}}" value="{{addressData.name}}" bindinput="__e"/></view><view class="row b-b"><input class="input" type="number" placeholder="电话" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','mobile','$event',[]],['addressData']]]]]}}" value="{{addressData.mobile}}" bindinput="__e"/></view><button data-event-opts="{{[['tap',[['confirm',['$event']]]]]}}" class="add-btn" bindtap="__e">保存</button><block wx:if="{{show}}"><view class="over"></view></block><block wx:if="{{show}}"><view class="overadress" style="position:fixed;bottom:0;width:100%;height:50%;background-color:#fff;"><view style="display:flex;flex-direction:row;justify-content:space-between;padding:40rpx 32rpx;"><view>请选择</view><view>{{adress}}</view><view>确定</view></view><scroll-view style="height:100%;" scroll-top="{{scrollTop}}" scroll-y="true" refresher-enabled="true" data-event-opts="{{[['scroll',[['scroll',['$event']]]],['scrolltoupper',[['upper',['$event']]]],['scrolltolower',[['lower',['$event']]]]]}}" bindscroll="__e" bindscrolltoupper="__e" bindscrolltolower="__e"><block wx:for="{{areaList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['chosecity',['$0'],[[['areaList','',index]]]]]]]}}" style="padding:30rpx 34rpx;border-bottom:1px solid #eee;" bindtap="__e">{{''+item.area_name+''}}</view></block></scroll-view></view></block></view>
|