broker.wxml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <wxs module="filters" src="../../../utils/filters.wxs"></wxs>
  2. <view wx:if="{{userflag&&permiss}}" class="block fixed top0 left0 width100 hidden zIndex99999 topbox" style="height:{{top*1+hgt*1}}px;">
  3. <image class="topImg" style="width: 100%;" src="../../img/b_index_bg.png"></image>
  4. <view class="relative colorfff fontfpm fontr34" style="padding-left:32rpx;top:{{top}}px;line-height: {{hgt}}px;">我的</view>
  5. </view>
  6. <view wx:if="{{userflag&&permiss}}" class="topbox relative" style="padding-top:{{top*1+hgt*1}}px;" bindtap="dothis">
  7. <image class="topImg" style="width: 100%;" src="../../img/b_index_bg.png"></image>
  8. <view class="indextopbox clearfix relative">
  9. <image class="headimg pull-left" src="{{personobj.headimgurl?personobj.headimgurl:'../../../img/default.png'}}"></image>
  10. <view class="mglr20 pull-left colorfff fontfpm">
  11. <view class="fontr36 lhr48 name">{{(personobj.binded && personobj.binded.name)?personobj.binded.name:personobj.nickname}}</view>
  12. <view class="fontr24 opacity50 lhr24 orgName ellipsis">{{agentName||'装修推荐官'}}</view>
  13. </view>
  14. <view class="pull-right colorfff fontr24 fontfpm mt18">
  15. <view bindtap="goidxtap" class="pull-left toprightbox relative {{companylist.length > 1?'':'mr30'}}">
  16. <text wx:if="{{clientTotal.acting > 0}}"></text>
  17. <image class="" mode="heightFix" src="../../img/activityIcon.png"></image>
  18. <view class="opacity50 tcenter">活动</view>
  19. </view>
  20. <view bindtap="switchCompany" class="pull-left toprightbox">
  21. <image class="" mode="heightFix" src="../../../img/companyIcon.png"></image>
  22. <view class="opacity50 tcenter">切换公司</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="myDataBox">
  27. <!-- <view class="l_title">
  28. <view class="l_title_label">我的数据</view>
  29. <view bindtap="jumpRankPage" class="l_title_arrow">查看排名<image mode="widthFix" src="../../../img/riarrow.png"></image>
  30. </view>
  31. </view> -->
  32. <view class="myDataShow">
  33. <view class="myDataItem">
  34. <view class="myDataNum">{{clientTotal.count}}</view>
  35. <view class="myDataMsg">客户总数</view>
  36. </view>
  37. <view class="myDataItem">
  38. <view class="myDataNum">{{clientTotal.ding}}</view>
  39. <view class="myDataMsg">签单数量</view>
  40. </view>
  41. <view class="myDataItem">
  42. <view class="myDataNum">{{clientTotal.sign}}</view>
  43. <view class="myDataMsg">转单数量</view>
  44. </view>
  45. <view class="myDataItem">
  46. <view class="myDataNum">{{clientTotal.clue_count}}</view>
  47. <view class="myDataMsg">线索量</view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="myPointBox">
  52. <view class="l_title">
  53. <view class="l_title_label">我的积分</view>
  54. <view class="l_title_arrow" bindtap="viewIntegral">积分明细<image mode="widthFix" src="../../../img/riarrow.png"></image>
  55. </view>
  56. </view>
  57. <view class="myPointData">
  58. <view class="myPointItem">
  59. <view class="myDataNum">{{intregralTotal.all_intregral}}</view>
  60. <view class="myDataMsg">共获得积分</view>
  61. </view>
  62. <view class="myPointItem">
  63. <view class="myDataNum">{{intregralTotal.all_already}}</view>
  64. <view class="myDataMsg">已核销积分</view>
  65. </view>
  66. <view class="myPointItem">
  67. <view class="integralBtn" bindtap="exchangeFunc">积分兑换</view>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="contentBox1">
  72. <view class="mainTab">
  73. <view class="{{rType == 1 ? 'activeTab' : ''}}" data-type="1" bindtap="switchTab">全部客户</view>
  74. <view class="flex-sub"></view>
  75. <view class="{{rType == 2 ? 'activeTab' : ''}}" data-type="2" bindtap="switchTab">获取线索</view>
  76. <view class="flex-sub"></view>
  77. <view class="{{rType == 3 ? 'activeTab' : ''}}" data-type="3" bindtap="switchTab">分享内容</view>
  78. </view>
  79. <view hidden="{{hiddenSearch}}" class="l_s_input_box">
  80. <input type="text" bindinput="onChange" placeholder="请输入关键字" />
  81. <view bindtap="onSearch">搜索</view>
  82. </view>
  83. <block wx:if="{{rType == 1}}">
  84. <view class="l_search_box">
  85. <view class="l_search_left">
  86. <view class="font28" bindtap="handleSearchAll">全部</view>
  87. <view class="s_state_box font28" bindtap="bingStateChange">
  88. {{clientState?clientState:'状态'}}
  89. <image class="s_down_icon" src="../../../img/blackrangle.png" mode="widthFix"></image>
  90. <view wx:if="{{stateShow}}" class="down-drop">
  91. <view wx:for="{{stateArr}}" data-id="{{item.id}}" data-text="{{item.text}}" wx:key="{{index}}" catchtap="getStateChange">{{item.text}}</view>
  92. </view>
  93. </view>
  94. <view>
  95. <picker mode="date" value="{{date}}" start="2020/01/01" end="{{maxDate}}" bindchange="bindDateChange">
  96. <view class="picker font28">
  97. {{date?date:'推荐/建档时间'}}
  98. <image class="s_down_icon" src="../../../img/blackrangle.png" mode="widthFix"></image>
  99. </view>
  100. </picker>
  101. </view>
  102. </view>
  103. <view class="l_search_right">
  104. <image bindtap="showSearchIpt" mode="widthFix" src="../../img/icon_ss.png"></image>
  105. </view>
  106. </view>
  107. <view wx:for="{{brokerClientlist}}" wx:key="{{index}}" class="dataBox">
  108. <view class="dataBox-left">
  109. <view class="dataBox-left-top">
  110. <image wx:if="{{item.sex == 1}}" src="../../../img/crmman.png" mode="widthFix" class="dataBox-sex"></image>
  111. <image wx:else="" src="../../../img/crmwomen.png" mode="widthFix" class="dataBox-sex"></image>
  112. <text class="ml5">{{item.name||'未知'}}</text>
  113. <text wx:if="{{item.level}}" class="d-level">{{item.level}}</text>
  114. <text wx:if="{{item.state == '待确认'}}" class="d-activity bgb6cade">待确认</text>
  115. <text wx:if="{{item.stateNum && item.stateNum.measure > 0}}" class="d-activity bgFF8383">量{{
  116. item.stateNum.measure > 1
  117. ? "("+item.stateNum.measure+")"
  118. : ""
  119. }}</text>
  120. <text wx:if="{{item.stateNum && item.stateNum.shop > 0}}" class="d-activity bgCDB8F6">店{{
  121. item.stateNum.shop > 1 ? "("+item.stateNum.shop+")" : ""
  122. }}</text>
  123. <text wx:if="{{item.stateNum && item.stateNum.activity > 0}}" class="d-activity bgFFD483">活{{
  124. item.stateNum.activity > 1
  125. ? "("+item.stateNum.activity+")"
  126. : ""
  127. }}</text>
  128. <text wx:if="{{item.stateNum && item.stateNum.deposit > 0}}" class="d-activity bgFFBC83">签</text>
  129. <text wx:if="{{item.stateNum && item.stateNum.signed > 0}}" class="d-activity bgff9800">转</text>
  130. </view>
  131. <view class="dataBox-left-bottom">
  132. <image src="../../../img/crmhouse.png" mode="widthFix" class="dataBox-house"></image>
  133. <text class="ml5 d-community">{{item.community_name||'未知小区'}}</text>
  134. <text class="d-community"> | {{item.square||'未知面积'}}</text>
  135. </view>
  136. <view class="dataTime">
  137. <text>推荐/建档时间:{{filters.timesplit(item.addtime)}}</text>
  138. </view>
  139. </view>
  140. <view class="dataBox-right">
  141. <view>跟进({{item.stateNum.count}})</view>
  142. </view>
  143. </view>
  144. <nonedata len="{{brokerClientlist.length}}" datashow="{{brokerClientlist.length==0&&datashow}}"></nonedata>
  145. </block>
  146. <block wx:if="{{rType == 2}}">
  147. <view class="l_search_box">
  148. <view class="l_search_left">
  149. <view class="font28" bindtap="handleSearchAll">全部</view>
  150. <view class="s_state_box">
  151. <picker mode="date" value="{{date}}" start="2020/01/01" end="{{maxDate}}" bindchange="bindClueDateChange">
  152. <view class="picker font28">
  153. {{getDate?getDate:'获取时间'}}
  154. <image class="s_down_icon" src="../../../img/blackrangle.png" mode="widthFix"></image>
  155. </view>
  156. </picker>
  157. </view>
  158. <view class="relative font28" bindtap="handleShowClueState">
  159. {{clueStateId?clueStateText:'状态'}}
  160. <image class="s_down_icon" src="../../../img/blackrangle.png" mode="widthFix"></image>
  161. <view wx:if="{{showClueState}}" class="down-drop">
  162. <view wx:for="{{statusArr}}" data-id="{{item.id}}" data-text="{{item.text}}" wx:key="{{index}}" catchtap="getStatusChange">{{item.text}}</view>
  163. </view>
  164. </view>
  165. <view class="relative font28" bindtap="handleShowClueMobile">
  166. {{clueMobileId?clueMobileText:"手机号"}}
  167. <image class="s_down_icon" src="../../../img/blackrangle.png" mode="widthFix"></image>
  168. <view wx:if="{{showClueMobile}}" class="down-drop">
  169. <view wx:for="{{mobilelist}}" data-id="{{item.id}}" data-text="{{item.text}}" wx:key="{{index}}" catchtap="getMobileChange">{{item.text}}</view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <view wx:for="{{shareCluelist}}" wx:key="{{index}}" class="clueItem">
  175. <view wx:if="{{ index == 0 || shareCluelist[index].updatetime[0] != shareCluelist[index - 1].updatetime[0]}}" class="viewTimeBox">
  176. <image src="../../../img/rili.png" mode="widthFix" />
  177. <text>{{item.updatetime[0]}}</text>
  178. </view>
  179. <view class="viewClueMsgBox">
  180. <view class="clueItemTop">
  181. <view class="clueItemTop_left">
  182. <view class="clueItemAvatar">
  183. <image src="{{item.headimgurl?item.headimgurl:'../../../img/default.png'}}" mode="" />
  184. </view>
  185. <view class="clueItemName ellipsis ml10 font28">{{item.phonestr?item.phonestr:item.nickname}}</view>
  186. <image bindtap="handleCopyText" data-text="{{item.phone?item.phone:item.nickname}}" src="../../../img/copy.png" mode="widthFix" class="copyIcon ml10" />
  187. <view class="ml10 font28">时间:{{!!item.updatetime[1]?item.updatetime[1]:filters.timesplit(item.addtime)}}</view>
  188. </view>
  189. <view class="operateBox">
  190. <image src="../../img/footimg.png" mode="widthFix" bindtap="viewFootRecord" data-id="{{item.id}}" />
  191. </view>
  192. </view>
  193. <view class="clueItemBottom">
  194. <view class="cbTime">首次访问时间:{{filters.timesplit(item.addtime)}}</view>
  195. </view>
  196. </view>
  197. </view>
  198. <nonedata len="{{shareCluelist.length}}" datashow="{{shareCluelist.length==0&&datashow}}"></nonedata>
  199. </block>
  200. <block wx:if="{{rType == 3}}">
  201. <view style="width: 100%;height: 20rpx;"></view>
  202. <view wx:for="{{shareArticledlist}}" class="brokerShareItem" data-contentid="{{item.content_id}}" data-type="{{item.type}}" data-id="{{item.id}}" bindtap="jumpShareInfo">
  203. <view data-id="{{item.id}}" class="bshareleft">
  204. <block wx:if="{{item.type == 'AgentArticle'}}">
  205. <block wx:if="{{item.file_type == 2}}">
  206. <image data-id="{{item.id}}" class="bshareCover" src="{{item.cover[0]}}"></image>
  207. </block>
  208. <block wx:else="">
  209. <image data-id="{{item.id}}" class="bshareCover" src="{{item.cover[0]}}?x-oss-process=video/snapshot,t_100,f_jpg,w_375,m_fast" />
  210. </block>
  211. </block>
  212. <block wx:else="">
  213. <block wx:if="{{item.type == 'MaterialEvidence'||item.type == 'CompanyStrength'}}">
  214. <block wx:if="{{item.difference == 1}}">
  215. <image class="bshareCover" src="{{item.cover}}" mode="" />
  216. </block>
  217. <block wx:if="{{item.difference == 2}}">
  218. <image class="bshareCover" src="{{item.cover}}" mode="" />
  219. </block>
  220. </block>
  221. <block wx:if="{{item.type == 'Video'}}">
  222. <image class="bshareCover" src="{{filters.isArrays(item.cover)?item.cover[0]+'?x-oss-process=video/snapshot,t_100,f_jpg,w_375,m_fast': item.cover + '?x-oss-process=video/snapshot,t_100,f_jpg,w_375,m_fast'}}" mode="" />
  223. </block>
  224. <block wx:if="{{item.type != 'MaterialEvidence'&&item.type != 'CompanyStrength'&&item.type != 'Video'}}">
  225. <image class="bshareCover" src="{{filters.isArrays(item.cover)?item.cover[0]: item.cover}}" mode="" />
  226. </block>
  227. </block>
  228. </view>
  229. <view data-id="{{item.id}}" class="bshareright">
  230. <view data-id="{{item.id}}" class="bshareTitle ellipsis">{{item.title}}</view>
  231. <view data-id="{{item.id}}" class="bshareTime">推荐分享时间:{{filters.timesplit(item.addtime)}}</view>
  232. <view data-id="{{item.id}}" class="bshareMsg">
  233. <view class="bsharenum">
  234. <image src="../../../img/ic_share.png" mode="widthFix"></image>
  235. <text>{{item.share_num}}次</text>
  236. </view>
  237. <view class="bsharep">
  238. <image src="../../../img/peopleicon.png" mode="widthFix"></image>
  239. <text>线索{{item.clue_num}}</text>
  240. </view>
  241. </view>
  242. </view>
  243. </view>
  244. <nonedata len="{{shareArticledlist.length}}" datashow="{{shareArticledlist.length==0&&datashow}}"></nonedata>
  245. </block>
  246. </view>
  247. </view>
  248. <view wx:if="{{stateShow||showClueState||showClueMobile}}" class="transparent" bindtap="closeDialog"></view>
  249. <view wx:if="{{showClueRecord}}" class="mask">
  250. <view class="visitBlock">
  251. <view class="visitTitle">
  252. 访问记录
  253. <image src="../../img/blueclose.jpg" mode="widthFix" bindtap="closeDialog" />
  254. </view>
  255. <view class="visitContent">
  256. <view wx:for="{{clueRecordlist}}" wx:key="{{index}}" class="visitItemBox">
  257. <view class="visitLine"></view>
  258. <block wx:if="{{index == 0 || clueRecordlist[index].nowdate != clueRecordlist[index - 1].nowdate}}">
  259. <view class="circleBox"></view>
  260. <view>{{filters.timesplit(item.addtime)}}</view>
  261. </block>
  262. <view class="visitMsgAll {{index == 0 || clueRecordlist[index].nowdate != clueRecordlist[index - 1].nowdate?'mtauto':''}}">
  263. <view class="circleMsgBox"></view>
  264. <view class="visitMsgBox">
  265. {{item.reg_info}}
  266. </view>
  267. <view class="visitTimeBox">
  268. <view>浏览时长:{{item.visit_due_time||0}} s</view>
  269. <view>{{filters.strarrlast(item.addtime)}}</view>
  270. </view>
  271. </view>
  272. </view>
  273. </view>
  274. </view>
  275. </view>
  276. <view wx:if="{{showCompany}}" class="mask" catchtap="dothis">
  277. <view class="m-block">
  278. <view class="m-b-title">
  279. <text>切换公司</text>
  280. <image catchtap="closeDialog" src="../../../img/delet.png" mode="widthFix"></image>
  281. </view>
  282. <view class="m-b-tips">请选择登录的公司</view>
  283. <view class="m-b-content">
  284. <view wx:for="{{companylist}}" wx:for-item="item" wx:for-index="idx" wx:key="idx" data-company="{{item.client_type}}" class="m-b-c-item" bindtap="switchCompanyType">
  285. <image src="{{item.brand.logo}}" mode="widthFix"></image>
  286. <view class="m-b-c-item-name">
  287. <view class="item-name-text">{{item.company_name}}</view>
  288. <view class="item-name-position">{{agentName||'装修推荐官'}}</view>
  289. </view>
  290. <view wx:if="{{item.client_type == clientType}}" class="m-b-c-item-current">
  291. <view class="circle"></view>
  292. <text>当前使用</text>
  293. </view>
  294. </view>
  295. </view>
  296. </view>
  297. </view>
  298. <view wx:if="{{!userflag&&permiss}}" class="unaysjoin">
  299. <image mode="widthFix" class="unpermissimg block" src="{{imgUrl}}xcx/unaysjoin.png"></image>
  300. <view class="unpermisstext tcenter" style="color: #D1DCE5;">暂未加入公司 无法访问该页面</view>
  301. </view>
  302. <view wx:if="{{unfutureflag}}" bindtap="closetap" class="unfuturelayer">
  303. <view class="unfuturebox">
  304. <image src="{{imgUrl}}xcx/aaa/111.png?x-oss-process=image/resize,w_200"></image>
  305. </view>
  306. </view>
  307. <view class="tabBar">
  308. <view class="tabItem" bindtap="jumpMinePage">
  309. <image mode="widthFix" src="../../img/b_index_1.png"></image>
  310. <view class="defaultStyle">推荐客户</view>
  311. </view>
  312. <view class="tabItem" bindtap="jumpSharePage">
  313. <image mode="widthFix" src="../../img/b_share.png"></image>
  314. <view class="defaultStyle">分享任务</view>
  315. </view>
  316. <view class="tabItem tabItem2" bindtap="jumpscreenshot">
  317. <image mode="widthFix" src="../../img/screenshotno.png"></image>
  318. <view class="defaultStyle">上传分享截图</view>
  319. </view>
  320. <view class="tabItem tabItem1">
  321. <image src="../../img/b_mine_2.png" mode="widthFix"></image>
  322. <view class="activePage">我的</view>
  323. </view>
  324. </view>