addaddress.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!--pages/addaddress/addaddress.wxml-->
  2. <!-- 导航栏 -->
  3. <nav-bar navbar-data="{{navbarData}}"></nav-bar>
  4. <!-- 主体 -->
  5. <view class="body">
  6. <!-- 地点 -->
  7. <view class="group">
  8. <view class="group-content">
  9. <textarea placeholder-style="color:#989898;font-size:28rpx;font-weight: 400;" maxlength="100" class="jieshao-area" placeholder="请输入地址名称" value="{{address}}" bindinput="inputAddress"></textarea>
  10. </view>
  11. </view>
  12. <!-- 卡片 -->
  13. <view class="card">
  14. <!-- <view class="card-row">
  15. <view class="left">
  16. <text>门牌号</text>
  17. </view>
  18. <view class="right">
  19. <input type="text" value="{{address}}" bindinput="inputAddress" placeholder-style="color:#989898;font-size:32rpx;font-weight: 500;" placeholder="请输入门牌号" />
  20. </view>
  21. </view> -->
  22. <view class="card-row">
  23. <view class="left">
  24. <text style="color: red;">*</text>
  25. <text>姓名</text>
  26. </view>
  27. <view class="right">
  28. <input type="text" value="{{receiving_name}}" bindinput="inputName" placeholder-style="color:#989898;font-size:32rpx;font-weight: 500;" placeholder="请输入姓名" />
  29. </view>
  30. <view class="radio-button">
  31. <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'}};">
  32. <text>{{item}}</text>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="card-row">
  37. <view class="left">
  38. <text style="color: red;">*</text>
  39. <text>手机号</text>
  40. </view>
  41. <view class="right">
  42. <input type="text" value="{{receiving_phone}}" bindinput="inputPhone" placeholder-style="color:#989898;font-size:32rpx;font-weight: 500;" placeholder="请输入手机号" />
  43. </view>
  44. </view>
  45. <!-- 按钮 -->
  46. <button class="button" bindtap="submitAdd" wx:if="{{type === 'add'}}">保存地址</button>
  47. <button class="button" bindtap="submitEdit" wx:if="{{type === 'edit'}}">修改地址</button>
  48. </view>
  49. </view>