球星卡微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
3.4 KiB

  1. <template>
  2. <view style="flex-direction: column;">
  3. <scroll-view>
  4. <view class="addressItem">
  5. <view class="addressItemTop">
  6. <text class="addrName">名字</text>
  7. <text class="addrTel">18688888888</text>
  8. </view>
  9. <text class="addr">地址地址</text>
  10. <view class="line"></view>
  11. <view class="optionsPanel">
  12. <view>
  13. <image class="checkBtn" src="../../static/勾选.png"></image>
  14. <text>设置为默认地址</text>
  15. </view>
  16. <view class="rightPanel">
  17. <image class="optionsBtn" src="../../static/删除.png"></image>
  18. <image class="optionsBtnEdit" src="../../static/编辑.png"></image>
  19. </view>
  20. </view>
  21. <view style="height: 30rpx;background-color: #F6F6F6;"></view>
  22. </view>
  23. <view class="addressItem">
  24. <view class="addressItemTop">
  25. <text class="addrName">名字</text>
  26. <text class="addrTel">18688888888</text>
  27. </view>
  28. <text class="addr">地址地址</text>
  29. <view class="line"></view>
  30. <view class="optionsPanel">
  31. <view>
  32. <image class="checkBtn" src="../../static/勾选.png"></image>
  33. <text>设置为默认地址</text>
  34. </view>
  35. <view class="rightPanel">
  36. <image class="optionsBtn" src="../../static/删除.png"></image>
  37. <image class="optionsBtnEdit" src="../../static/编辑.png"></image>
  38. </view>
  39. </view>
  40. <view style="height: 30rpx;background-color: #F6F6F6;"></view>
  41. </view>
  42. <view class="addressItem">
  43. <view class="addressItemTop">
  44. <text class="addrName">名字</text>
  45. <text class="addrTel">18688888888</text>
  46. </view>
  47. <text class="addr">地址地址</text>
  48. <view class="line"></view>
  49. <view class="optionsPanel">
  50. <view>
  51. <image class="checkBtn" src="../../static/勾选.png"></image>
  52. <text>设置为默认地址</text>
  53. </view>
  54. <view class="rightPanel">
  55. <image class="optionsBtn" src="../../static/删除.png"></image>
  56. <image class="optionsBtnEdit" src="../../static/编辑.png"></image>
  57. </view>
  58. </view>
  59. <view style="height: 30rpx;background-color: #F6F6F6;"></view>
  60. </view>
  61. </scroll-view>
  62. <view class="addNewAddr" @click="toNewAddr">
  63. <view></view>
  64. <text>新增地址</text>
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. export default {
  70. data() {
  71. return {
  72. }
  73. },
  74. methods: {
  75. toNewAddr(){
  76. uni.navigateTo({
  77. url:"../addAddress/addAddress"
  78. })
  79. }
  80. }
  81. }
  82. </script>
  83. <style>
  84. .checkBtn{
  85. width: 44rpx;
  86. height: 44rpx;
  87. margin-right: 14rpx;
  88. }
  89. .addressItemTop{
  90. align-items: center;
  91. margin-top: 20rpx;
  92. margin-bottom: 20rpx;
  93. }
  94. .addressItem{
  95. flex-direction: column;
  96. }
  97. .line{
  98. height: 1rpx;
  99. background-color: #D8D8D8;
  100. margin-left: 32rpx;
  101. margin-right: 32rpx;
  102. margin-top: 20rpx;
  103. margin-bottom: 20rpx;
  104. }
  105. .addrName{
  106. margin-left: 32rpx;
  107. font-size: 36rpx;
  108. font-weight: bold;
  109. margin-right: 40rpx;
  110. }
  111. .addr{
  112. margin-left: 32rpx;
  113. }
  114. .optionsPanel{
  115. margin-left: 32rpx;
  116. margin-bottom: 40rpx;
  117. align-items: center;
  118. justify-content: space-between;
  119. }
  120. .rightPanel{
  121. align-items: center;
  122. justify-content: center;
  123. margin-right: 32rpx;
  124. }
  125. .optionsBtn{
  126. width: 44rpx;
  127. height: 44rpx;
  128. margin-right: 50rpx;
  129. }
  130. .optionsBtnEdit{
  131. width: 38rpx;
  132. height: 38rpx;
  133. }
  134. .addNewAddr{
  135. height: 96rpx;
  136. width: 90%;
  137. border: #E7A23F 1rpx solid;
  138. border-radius: 8rpx;
  139. position: fixed;
  140. bottom: 200rpx;
  141. justify-content: center;
  142. align-items: center;
  143. align-self: center;
  144. }
  145. </style>