info.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <app-layout :haveBackground="false">
  3. <view class="main-between info_card" v-show="info">
  4. <view class="main-left">
  5. <image style="width: 91rpx;height: 91rpx;border-radius: 50%;margin-right: 25rpx;" :src="info.avatar" mode=""></image>
  6. <view class="main-between-y">
  7. <view class="main-left name cross-center t-omit">{{info.name}}
  8. <image style="width: 21rpx;height: 29rpx;margin: 0 28rpx 0 7rpx;" src="https://t17.9026.com/web/statics/image/sale/sex0.png" mode=""></image>
  9. <!-- <image style="width: 21rpx;height: 29rpx;margin: 0 28rpx 0 7rpx;" src="https://t17.9026.com/web/statics/image/sale/sex1.png" mode=""></image> -->
  10. <image style="width: 96rpx;height: 31rpx;" :src="info.is_verify==1?'https://t17.9026.com/web/statics/image/index/ysm.png':''" mode=""></image>
  11. </view>
  12. <view>{{info.mobile}}</view>
  13. </view>
  14. </view>
  15. <navigator :url="`/pages/sale/cusmter/addCustomer?id=${info.id}`" hover-class="none">
  16. <view class="cross-center edit">
  17. <image style="width: 27rpx;height: 26rpx;" src="https://t17.9026.com/web/statics/image/sale/edit.png" mode=""></image>编辑
  18. </view>
  19. </navigator>
  20. </view>
  21. <view class="lp_info" v-show="info">
  22. <view class="title">楼盘信息</view>
  23. <view class="main-between item">
  24. <view class="left t-omit">区域信息</view>
  25. <view class="right t-omit-two" >{{userEstate.estate.address}}</view>
  26. </view>
  27. <view class="main-between item">
  28. <view class="left t-omit">楼盘名称</view>
  29. <view class="right t-omit-two">{{userEstate.estate.name}}</view>
  30. </view>
  31. <view class="main-between item">
  32. <view class="left t-omit">楼盘性质</view>
  33. <view class="right t-omit">{{userEstate.estate.property==1?'住宅用房':'非住宅用房'}}</view>
  34. </view>
  35. <view class="main-between item">
  36. <view class="left t-omit">户号</view>
  37. <view class="right t-omit-two">{{userEstate.estate_no}}{{userEstate.room_no}}</view>
  38. </view>
  39. </view>
  40. <u-popup v-model="show" mode="center" border-radius="14" @close="show = false">
  41. <view class="model">
  42. <view class="tei">是否确认并认证该用户楼盘信息?</view>
  43. <view class="main-between">
  44. <navigator :url="`/pages/sale/cusmter/addCustomer?id=${info.id}`" @click="show = false" hover-class="none">
  45. <view class=" btn left">去认证</view>
  46. </navigator>
  47. <view class=" btn right" @click="show = false">信息有误</view>
  48. </view>
  49. <view class="qx" @click="show = false">取消认证</view>
  50. </view>
  51. </u-popup>
  52. <!-- <navigator url="" hover-class="navigator-hover"> -->
  53. <button class="addPro" v-if="info.is_verify!=1" type="default" @click="show=true">客户楼盘信息认证</button>
  54. <!-- </navigator> -->
  55. </app-layout>
  56. </template>
  57. <script>
  58. import uPopup from '../../../components/basic-component/u-popup/u-popup.vue';
  59. export default {
  60. components:{
  61. uPopup
  62. },
  63. data() {
  64. return {
  65. id:'',
  66. show:false,
  67. info:'',
  68. userEstate:'',
  69. };
  70. },
  71. onShow() {
  72. this.$showLoading()
  73. this.$request({
  74. url:this.$api.sale.customer_detail,
  75. data:{
  76. sale_customer_id:this.id
  77. },
  78. method:'post'
  79. }).then(res=>{
  80. if(res.code===0){
  81. this.info=res.data
  82. this.userEstate=res.data.userEstate[res.data.userEstate.length-1]
  83. }
  84. this.$hideLoading()
  85. })
  86. },
  87. onLoad(option) {
  88. this.id=option.id
  89. }
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. .model{
  94. width: 631rpx;
  95. height: 371rpx;
  96. background: #FFFFFF;
  97. border-radius: 10rpx;
  98. padding: 60rpx 40rpx 30rpx;
  99. .tei{
  100. font-size: 32rpx;
  101. font-weight: bold;
  102. color: #222222;
  103. text-align: center;
  104. }
  105. .btn{
  106. width: 256rpx;
  107. height: 80rpx;
  108. border-radius: 40rpx;
  109. font-size: 28rpx;
  110. font-weight: bold;
  111. text-align: center;
  112. line-height: 80rpx;
  113. margin: 45rpx 0 75rpx;
  114. }
  115. .left{
  116. background: #A18353;
  117. color: #FFFFFF;
  118. }
  119. .right{
  120. border: 2px solid #A18353;
  121. color: #A18353;
  122. }
  123. .qx{
  124. font-size: 32rpx;
  125. font-weight: bold;
  126. color: #999999;
  127. text-align: center;
  128. }
  129. }
  130. .addPro {
  131. position: fixed;
  132. bottom: 0;
  133. width: 100%;
  134. height: 100rpx;
  135. background: #999999;
  136. font-size: 32rpx;
  137. font-family: PingFang SC;
  138. font-weight: bold;
  139. color: #FFFFFF;
  140. }
  141. .info_card{
  142. width: 678rpx;
  143. height: 167rpx;
  144. background: #FFFFFF;
  145. border-radius: 10rpx;
  146. padding: 33rpx 38rpx;
  147. margin: 24rpx auto;
  148. .name{
  149. width: 360rpx;
  150. font-size: 40rpx;
  151. font-family: PingFang SC;
  152. font-weight: bold;
  153. color: #222222;
  154. }
  155. .phone{
  156. font-size: 28rpx;
  157. font-family: PingFang SC;
  158. font-weight: 500;
  159. color: #222222;
  160. }
  161. .edit{
  162. image{
  163. width: 27rpx;
  164. height: 26rpx;
  165. margin-right: 13rpx;
  166. }
  167. font-size: 26rpx;
  168. font-weight: 500;
  169. color: #838584;
  170. line-height: 70rpx;
  171. }
  172. }
  173. .lp_info{
  174. width: 678rpx;
  175. height: auto;
  176. background: #FFFFFF;
  177. border-radius: 10rpx;
  178. padding: 31rpx 33rpx;
  179. margin: 0 auto;
  180. .title{
  181. font-size: 34rpx;
  182. font-family: PingFang SC;
  183. font-weight: bold;
  184. color: #222222;
  185. }
  186. .item{
  187. min-height: 45rpx;
  188. line-height: 45rpx;
  189. padding: 23rpx 0;
  190. .left{
  191. width: 170rpx;
  192. font-size: 28rpx;
  193. font-family: PingFang SC;
  194. font-weight: 500;
  195. color: #666666;
  196. }
  197. .right{
  198. width: 460rpx;
  199. font-size: 28rpx;
  200. font-family: PingFang SC;
  201. font-weight: 500;
  202. color: #222222;
  203. }
  204. }
  205. }
  206. </style>