dmDfMethod.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <dm-pop-view ref='popView' :isShowTitle="false" :isShowClose="false" :isShowConfirm="false" :maskTapHide='maskTapHide'>
  3. <view class="content" v-if="info">
  4. <view class="content-des">是否确定判定客户{{mobile}}归属为:{{info.isZrSf?'案场自然获客':info.reporterOrganizeName+info.reporterName+"-"+info.reporterHiddenMobile}}</view>
  5. <view class="time_content" v-if="!info.isZrSf && info.reportTimeDate">{{info.isRecommendRelation?"推荐时间":"报备时间"}}{{info.reportTimeDate|dateFormatFilter}}</view>
  6. <view class="content_desc">(确定后其他所有报备关系自动失效,客户归类为{{info.isZrSf?'案场自然获客':(info.isRecommendRelation?'当前推荐获客':'当前渠道获客')}})</view>
  7. <view class="goBtn" :style="`background-color: ${themeColor};`" @click="confirmAction">{{confirmStr}}</view>
  8. <view class="knowBtn" @click="knowAction">{{cancelStr}}</view>
  9. </view>
  10. </dm-pop-view>
  11. </template>
  12. <script>
  13. import dmPopView from './dmPopView.vue'
  14. let app = getApp();
  15. import {
  16. dateFormat,
  17. mobileFormat
  18. } from "../../static/format.js"
  19. export default {
  20. props: {
  21. maskTapHide: {
  22. type: Boolean,
  23. default: true
  24. },
  25. confirmStr: {
  26. type: String,
  27. default: '确认'
  28. },
  29. cancelStr: {
  30. type: String,
  31. default: '取消'
  32. },
  33. info:Object,
  34. mobile:String
  35. },
  36. data() {
  37. return {
  38. themeColor: null,
  39. fuzhuColor: null,
  40. themeColor50: null,
  41. themeColor25: null,
  42. fuzhuColor50: null,
  43. }
  44. },
  45. mounted() {
  46. this.themeColor = app.globalData.themeColor
  47. this.themeColor50 = app.globalData.themeColor50
  48. this.themeColor25 = app.globalData.themeColor25
  49. this.fuzhuColor = app.globalData.fuzhuColor
  50. this.fuzhuColor50 = app.globalData.fuzhuColor50
  51. },
  52. filters:{
  53. dateFormatFilter(val){
  54. return dateFormat(val)
  55. }
  56. },
  57. methods: {
  58. show() {
  59. this.$refs.popView.show()
  60. },
  61. knowAction(){
  62. this.$refs.popView.hide()
  63. },
  64. confirmAction() {
  65. this.$refs.popView.hide()
  66. this.$emit('confirmAction')
  67. }
  68. },
  69. components: {
  70. dmPopView
  71. }
  72. }
  73. </script>
  74. <style scoped lang="scss">
  75. .content {
  76. width: 100%;
  77. height: 600rpx;
  78. font-family: Verdana;
  79. .content-des {
  80. color: #333333;
  81. font-size: 32rpx;
  82. font-weight: bold;
  83. margin-top: 60rpx;
  84. text-align: center;
  85. margin-left: 20rpx;
  86. margin-right: 20rpx;
  87. }
  88. .time_content{
  89. font-size: 24rpx;
  90. font-family: Verdana, Verdana-Regular;
  91. font-weight: 400;
  92. text-align: left;
  93. color: #999999;
  94. margin-left: 20rpx;
  95. margin-top: 20rpx;
  96. }
  97. .content_desc{
  98. font-size: 32rpx;
  99. font-family: Verdana, Verdana-Regular;
  100. font-weight: 400;
  101. text-align: left;
  102. color: red;
  103. margin-left: 20rpx;
  104. margin-right: 20rpx;
  105. margin-top: 30rpx;
  106. }
  107. .goBtn {
  108. width: 260rpx;
  109. height: 84rpx;
  110. border-radius: 42rpx;
  111. margin-left: calc((100% - 260rpx) / 2);
  112. margin-top: 50rpx;
  113. font-size: 32rpx;
  114. color: #FFFFFF;
  115. line-height: 84rpx;
  116. text-align: center;
  117. }
  118. .knowBtn {
  119. width: 260rpx;
  120. height: 84rpx;
  121. border-radius: 42rpx;
  122. margin-left: calc((100% - 260rpx) / 2);
  123. margin-top: 20rpx;
  124. color: #666666;
  125. font-size: 32rpx;
  126. line-height: 84rpx;
  127. text-align: center;
  128. }
  129. }
  130. </style>