index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <view>
  3. <z-navbar title="咨询详情" back>
  4. <view slot="right" class="iconfont iconjuxing13" @click="gotoPage(0)"></view>
  5. </z-navbar>
  6. <template>
  7. <z-cell label="客户姓名" :content="info.customName"></z-cell>
  8. <z-cell label="客户电话" :content="info.phone||'无'"></z-cell>
  9. <z-cell label="微信号" :content="info.wechatNo||'无'"></z-cell>
  10. <z-cell label="意向日期" :content="info.wantDate+' '+(info.wantBeginTime?(info.wantBeginTime+'-'+info.wantEndTime):'')"></z-cell>
  11. <z-cell label="意向数量" :content="info.userCount"></z-cell>
  12. <z-cell label="意向场地" :content="info.wantHouseInfo||'无'"></z-cell>
  13. <z-cell label="预算金额" :content="(info.budgetStart||'未填')+'~'+(info.budgetEnd||'未填')"></z-cell>
  14. <z-cell label="意向度" content="高"></z-cell>
  15. <z-cell label="客户来源" :content="info.customFromName"></z-cell>
  16. <z-cell label="提醒日期" :content="info.alertDate||'无'"></z-cell>
  17. <z-cell label="最后更新" :content="info.updateTime" hideline></z-cell>
  18. </template>
  19. <view class="common_handle_style_zw"></view>
  20. <view class="common_handle_style shadow-2 flex-n fac fja">
  21. <view class="common_handle_style_item " @click="gotoPage(1)" v-if="info.alertDate">
  22. <view class="common_handle_style_img iconfont iconjuxing26kaobei2"></view>
  23. <view class="common_handle_style_text">处理咨询</view>
  24. </view>
  25. <view class="common_handle_style_item " @click="gotoPage(2)">
  26. <view class="common_handle_style_img iconfont iconjuxing21"></view>
  27. <view class="common_handle_style_text">编辑咨询</view>
  28. </view>
  29. <view class="common_handle_style_item" @click="gotoPage(3)">
  30. <view class="common_handle_style_img iconfont iconjuxing23"></view>
  31. <view class="common_handle_style_text">转为预定</view>
  32. </view>
  33. <!-- <view class="common_handle_style_item" @click="gotoPage('share')">
  34. <view class="common_handle_style_img iconfont iconjuxing22kaobei"></view>
  35. <view class="common_handle_style_text">分享预定</view>
  36. </view> -->
  37. </view>
  38. <u-toast ref="uToast"></u-toast>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. id:'',
  46. info:{},
  47. stateTab: 0,
  48. wantDate:''
  49. }
  50. },
  51. mounted() {
  52. },
  53. onLoad(option) {
  54. console.log(option)
  55. this.id=option.id;
  56. },
  57. onShow() {
  58. this.getData(this.id);
  59. },
  60. methods: {
  61. getData(askId){
  62. this.$axios.get('app/preUserAsk/findById/'+askId).then(res=>{
  63. console.log(res)
  64. this.info=res.data;
  65. var wantHouseInfo='';
  66. for(var i in res.data.wantHouse){
  67. if(res.data.wantHouse[i])
  68. wantHouseInfo += res.data.wantHouse[i].houseName+'、';
  69. }
  70. if(wantHouseInfo.length>0){
  71. wantHouseInfo=wantHouseInfo.substring(0,wantHouseInfo.length-1)
  72. }
  73. this.info.wantHouseInfo=wantHouseInfo;
  74. }).catch(err=>{
  75. console.log(err)
  76. this.$refs.uToast.error(err.msg);
  77. })
  78. },
  79. gotoPage(page) {
  80. console.log(page)
  81. switch (page) {
  82. case 0:
  83. uni.navigateTo({
  84. url: '../history/index?id='+this.id
  85. });
  86. break;
  87. case 1:
  88. uni.navigateTo({
  89. url: '../consultation/index?id='+this.id+'&wantDate='+this.info.wantDate
  90. });
  91. break;
  92. case 2:
  93. uni.navigateTo({
  94. url: '../manage/index?type=1&id='+this.id
  95. });
  96. break;
  97. case 3:
  98. uni.setStorage({
  99. key:'remindToOrder',
  100. data:this.info,
  101. success:()=>{
  102. uni.navigateTo({
  103. url: '../../book/manage/index?type=0&askId='+this.id
  104. });
  105. }
  106. })
  107. break;
  108. }
  109. }
  110. },
  111. }
  112. </script>
  113. <style lang="scss" scoped>
  114. .iconjuxing13{
  115. font-size: 38rpx;
  116. }
  117. .remark {
  118. font-size: 28rpx;
  119. color: #555555;
  120. }
  121. .common_handle_style_zw {
  122. height: 139rpx;
  123. }
  124. .common_handle_style {
  125. position: fixed;
  126. background: white;
  127. bottom: 0;
  128. left: 0;
  129. width: 100%;
  130. height: 119rpx;
  131. .common_handle_style_item{
  132. text-align: center;
  133. width: 200rpx;
  134. .common_handle_style_img{
  135. width:53rpx;
  136. height: 50rpx;
  137. font-size: 50rpx;
  138. color: #007AFF;
  139. margin: 0 auto;
  140. }
  141. .common_handle_style_text{
  142. color: #007AFF;
  143. font-size: 24rpx;
  144. line-height: 24rpx;
  145. margin-top: 10rpx;
  146. }
  147. }
  148. }
  149. </style>