binding.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <template>
  2. <view>
  3. <view class="main-between cross-center lp">
  4. <view class="name">世龙广场</view>
  5. <image src="https://t17.9026.com/web/statics/image/index/arrow-down-bottom.png" mode=""></image>
  6. </view>
  7. <view class="form-box">
  8. <view class="title">楼盘信息</view>
  9. <view class="main-between cross-center item" @click="selectBuild">
  10. <view class="title_1">楼盘名称</view>
  11. <view class="main-right cross-center">
  12. <text class="pla">请选择</text>
  13. <image class="arrow-right" src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode=""></image>
  14. </view>
  15. </view>
  16. <view class="line"></view>
  17. <picker mode="region" @change="bindPickerRegion">
  18. <view class="main-between cross-center item">
  19. <view class="title_1">区域信息</view>
  20. <view class="main-right cross-center">
  21. <text :class="{'val':region!=='请选择','pla':region==='请选择'}">{{region}}</text>
  22. <image class="arrow-right" src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode="">
  23. </image>
  24. </view>
  25. </view>
  26. </picker>
  27. <view class="line"></view>
  28. <picker mode="selector" @change="bindPickerNature" :range="natureList">
  29. <view class="main-between cross-center item">
  30. <view class="title_1">楼盘性质</view>
  31. <view class="main-right cross-center">
  32. <text :class="{'val':nature!=='请选择','pla':nature==='请选择'}">{{nature}}</text>
  33. <image class="arrow-right" src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode="">
  34. </image>
  35. </view>
  36. </view>
  37. </picker>
  38. <view class="line"></view>
  39. <view class="main-between cross-center item" @click="selectSale">
  40. <view class="title_1">绑定销售</view>
  41. <view class="main-right cross-center" >
  42. <text class="pla">请选择</text>
  43. <image class="arrow-right" src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode=""></image>
  44. </view>
  45. </view>
  46. </view>
  47. <button type="default" :class="{'add':true, 'allow-add':true, 'not-add':false}" :disabled="fasle">添加楼盘</button>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. region: '请选择',
  55. nature: '请选择',
  56. natureList: ['住宅用房', '非住宅用房']
  57. };
  58. },
  59. methods: {
  60. selectBuild() {
  61. uni.navigateTo({
  62. url: '/pages/sale/properties/addProperties'
  63. })
  64. },
  65. selectSale() {
  66. uni.navigateTo({
  67. url: '/pages/index/binding/bindingSale'
  68. })
  69. },
  70. bindPickerRegion(e) {
  71. console.log('地区',e)
  72. this.region = e.target.value.join('')
  73. },
  74. bindPickerNature(e) {
  75. this.nature = this.natureList[e.target.value]
  76. }
  77. }
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .page {
  82. min-height: 100vh;
  83. background: #F8F8F8;
  84. padding-top: 21rpx;
  85. }
  86. .lp {
  87. width: 678rpx;
  88. height: 100rpx;
  89. background: #FFFFFF;
  90. border-radius: 6rpx;
  91. padding: 0 43rpx 0 34rpx;
  92. margin: 0 auto;
  93. .name {
  94. font-size: 32rpx;
  95. font-weight: bold;
  96. color: #000000;
  97. }
  98. image {
  99. width: 18rpx;
  100. height: 11rpx;
  101. }
  102. }
  103. .form-box {
  104. width: 678rpx;
  105. height: auto;
  106. background: #FFFFFF;
  107. border-radius: 6rpx;
  108. margin: 21rpx auto;
  109. .title {
  110. font-size: 32rpx;
  111. font-weight: bold;
  112. color: #000000;
  113. border-bottom: 1rpx solid #E4E2E2;
  114. height: 99rpx;
  115. padding-left: 34rpx;
  116. line-height: 99rpx;
  117. }
  118. .item {
  119. height: 89rpx;
  120. padding: 0 32rpx 0 30rpx;
  121. }
  122. .title_1 {
  123. font-size: 28rpx;
  124. font-weight: bold;
  125. color: #000000;
  126. }
  127. .pla {
  128. font-size: 28rpx;
  129. font-weight: 500;
  130. color: #999999;
  131. margin-right: 20rpx;
  132. }
  133. .val {
  134. font-size: 28rpx;
  135. font-weight: 500;
  136. color: #232323;
  137. margin-right: 20rpx;
  138. }
  139. }
  140. .add {
  141. width: 678rpx;
  142. height: 90rpx;
  143. border-radius: 6rpx;
  144. margin: 0 auto;
  145. font-size: 32rpx;
  146. font-weight: bold;
  147. color: #FFFFFF;
  148. }
  149. .allow-add {
  150. background: #A18353;
  151. }
  152. .not-add {
  153. background-color: #bab994;
  154. }
  155. .line {
  156. width: 618rpx;
  157. height: 1rpx;
  158. background-color: #EAEAEA;
  159. margin: 0 auto;
  160. }
  161. .arrow-right {
  162. width: 12.8rpx;
  163. height: 22.8rpx;
  164. }
  165. </style>