12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <!--pages/addaddress/addaddress.wxml-->
- <!-- 导航栏 -->
- <nav-bar navbar-data="{{navbarData}}"></nav-bar>
- <!-- 主体 -->
- <view class="body">
- <!-- 地点 -->
- <view class="group">
- <view class="group-content">
- <textarea placeholder-style="color:#989898;font-size:28rpx;font-weight: 400;" maxlength="100" class="jieshao-area" placeholder="请输入地址名称" value="{{address}}" bindinput="inputAddress"></textarea>
- </view>
- </view>
- <!-- 卡片 -->
- <view class="card">
- <!-- <view class="card-row">
- <view class="left">
- <text>门牌号</text>
- </view>
- <view class="right">
- <input type="text" value="{{address}}" bindinput="inputAddress" placeholder-style="color:#989898;font-size:32rpx;font-weight: 500;" placeholder="请输入门牌号" />
- </view>
- </view> -->
- <view class="card-row">
- <view class="left">
- <text style="color: red;">*</text>
- <text>姓名</text>
- </view>
- <view class="right">
- <input type="text" value="{{receiving_name}}" bindinput="inputName" placeholder-style="color:#989898;font-size:32rpx;font-weight: 500;" placeholder="请输入姓名" />
- </view>
- <view class="radio-button">
- <view class="radio-button-item" catchtap="selectGender" wx:for="{{genders}}" wx:key="index" data-index="{{index}}" style="color: {{genderIndex === index ? '#FFFFFF' : '#989898'}};background-color: {{genderIndex === index ? '#FF874E' : '#FFFFFF'}};border: 1px solid {{genderIndex === index ? '#FF874E' : '#989898'}};">
- <text>{{item}}</text>
- </view>
- </view>
- </view>
- <view class="card-row">
- <view class="left">
- <text style="color: red;">*</text>
- <text>手机号</text>
- </view>
- <view class="right">
- <input type="text" value="{{receiving_phone}}" bindinput="inputPhone" placeholder-style="color:#989898;font-size:32rpx;font-weight: 500;" placeholder="请输入手机号" />
- </view>
- </view>
- <!-- 按钮 -->
- <button class="button" bindtap="submitAdd" wx:if="{{type === 'add'}}">保存地址</button>
- <button class="button" bindtap="submitEdit" wx:if="{{type === 'edit'}}">修改地址</button>
- </view>
- </view>
|