my.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  1. <template name="mypage">
  2. <view class="mypage">
  3. <u-sticky>
  4. <view class="topArea">
  5. <image class="topArea-Bg" :src="$getImageUrl('static/images/applet/my/myTopBg.png')"></image>
  6. <view class="topArea-top" :style="{height:navBarTop + 'px'}"></view>
  7. <view class="topArea-nav" :style="{height:navBarHeight + 'px',lineHeight:navBarHeight + 'px'}">
  8. <view class="nav-title">个人中心</view>
  9. </view>
  10. <view class="topArea-main">
  11. <view class="noLogin" @click="goLPage('/pages/my/myinfo')" v-if="userinfo==false">
  12. <image class="noLogin-icon" :src="$getImageUrl('static/images/applet/dfhead.jpg')"></image>
  13. <view class="noLogin-title">未登录</view>
  14. </view>
  15. <view class="haveLogin" v-else>
  16. <image class="login-avatar" :src="userinfo.avatar"></image>
  17. <view class="login-infor">
  18. <view class="infor-top">
  19. <text class="infor-top-name">{{userinfo.nickname}}</text>
  20. <view class="infor-top-verify" v-if="userinfo.authstatus != 1">
  21. <view class="verify-icon">
  22. <image class="verify-icon-image" :src="$getImageUrl('static/images/applet/my/verify.png')">
  23. </image>
  24. </view>
  25. <view class="verify-text">已实名</view>
  26. </view>
  27. <text class="infor-top-noVerify" v-if="userinfo.authstatus == 1">(未实名)</text>
  28. </view>
  29. <view class="infor-bottom">{{userinfo.mobile}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </u-sticky>
  35. <view class="topMenu">
  36. <view class="topMenu-item" @click="goLPage('/pages/my/myinfo')">
  37. <image class="item-image" :src="$getImageUrl('static/images/applet/my/infor.png')" mode="widthFix"></image>
  38. <view class="item-title">基本信息</view>
  39. </view>
  40. <view class="topMenu-item" @click="goLPage('/pages/my/mycode')">
  41. <image class="item-image" :src="$getImageUrl('static/images/applet/my/code.png')" mode="widthFix"></image>
  42. <view class="item-title">我的推广码</view>
  43. </view>
  44. <view class="topMenu-item" @click="goLPage('/pages/my/myteam')">
  45. <image class="item-image" :src="$getImageUrl('static/images/applet/my/invite.png')" mode="widthFix"></image>
  46. <view class="item-title">我的邀请</view>
  47. </view>
  48. </view>
  49. <view class="topApply">
  50. <view class="topApply-left">
  51. <image class="left-icon" :src="$getImageUrl('static/images/applet/index/topApplyIcon.png')"></image>
  52. </view>
  53. <view class="topApply-center">经纪人福利多多</view>
  54. <view class="topApply-right" @tap="goUrl(1,'/pages/broker/brokerform')">立即开通</view>
  55. </view>
  56. <view class="topMenu">
  57. <view class="topMenu-item" @click="goLPage('/pages/my/mybag')">
  58. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/wallet.png')"></image>
  59. <view class="item-titleSmall">我的钱包</view>
  60. </view>
  61. <view class="topMenu-item" @click="goLPage('/pages/my/myauth')">
  62. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/verifyName.png')"></image>
  63. <view class="item-titleSmall">实名认证</view>
  64. </view>
  65. <view class="topMenu-item" @click="goLPage('/pages/comjobs/star')">
  66. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/collect.png')"></image>
  67. <view class="item-titleSmall">我的收藏</view>
  68. </view>
  69. <view class="topMenu-item" @click="goLPage('/pages/my/task')">
  70. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/task.png')"></image>
  71. <view class="item-titleSmall">任务中心</view>
  72. </view>
  73. </view>
  74. <view class="topMenu">
  75. <view class="topMenu-item" @click="goPage('/pages/comjobs/log')">
  76. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/apply.png')"></image>
  77. <view class="item-titleSmall">我的报名</view>
  78. </view>
  79. <view class="topMenu-item" @click="goLPage('/pages/resume/log')">
  80. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/invitation.png')"></image>
  81. <view class="item-titleSmall">收到的邀请</view>
  82. </view>
  83. <view class="topMenu-item" @click="goHome">
  84. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/recruit.png')"></image>
  85. <view class="item-titleSmall">我要招聘</view>
  86. </view>
  87. <view class="topMenu-item" @click="goLPage('/pages/train/joinlist')">
  88. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/cultivate.png')"></image>
  89. <view class="item-titleSmall">培训意愿</view>
  90. </view>
  91. </view>
  92. <view class="topMenu">
  93. <view class="topMenu-item" @click="goLPage('/pages/notice/notice')">
  94. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/notice.png')"></image>
  95. <view class="item-titleSmall">通知公告</view>
  96. </view>
  97. <view class="topMenu-item" @click="goLPage('/pages/my/feedback')">
  98. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/feedback.png')"></image>
  99. <view class="item-titleSmall">意见反馈</view>
  100. </view>
  101. <view class="topMenu-item" @click="goPage('/pages/my/about')">
  102. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/about.png')"></image>
  103. <view class="item-titleSmall">关于我们</view>
  104. </view>
  105. <view class="topMenu-item" @tap="goHome">
  106. <image class="item-icon" :src="$getImageUrl('static/images/applet/my/exchange.png')"></image>
  107. <view class="item-titleSmall">切换身份</view>
  108. </view>
  109. </view>
  110. <view style="margin-top: 40rpx; text-align: center; font-size: 24rpx; color: #B4B5B5;">没有更多数据了</view>
  111. <view class="margin-bottom" style="position: relative;" v-if="false">
  112. <view class="padding-lr padding-top" style="z-index: 999; position: absolute; top: 0rpx; width: 100%;">
  113. <view class="bg-white radius flex justify-start padding-lr padding-tb-xl shadow shadow-lg"
  114. :style="{'background-image':'url('+$getImageUrl('static/images/applet/mytop.png')+')'}"
  115. @click="goLPage('/pages/my/myinfo')" v-if="userinfo==false">
  116. <view class="cu-avatar lg round"
  117. :style="{'background-image':'url('+$getImageUrl('static/images/applet/dfhead.jpg')+')'}"></view>
  118. <view class="padding-lr padding-top text-lg">未登录</view>
  119. </view>
  120. <view
  121. class="bg-white radius flex justify-between align-center padding-lr padding-tb-xl shadow shadow-lg"
  122. :style="{'background-image':'url('+$getImageUrl('static/images/applet/mytop.png')+')'}" v-else>
  123. <view class="flex justify-start">
  124. <view class="cu-avatar lg round margin-left"
  125. :style="'background-image:url('+userinfo.avatar+');'"></view>
  126. <view class="padding-lr padding-top-xs text-lg">
  127. <view class="padding-bottom-xs">
  128. {{userinfo.nickname}}
  129. <text class="text-sm text-red" v-if="userinfo.authstatus == 1">(未实名)</text>
  130. <text class="text-sm text-red" v-if="brokerall != null">(经纪人)</text>
  131. </view>
  132. <view class="text-sm text-gray">{{userinfo.mobile}}</view>
  133. </view>
  134. </view>
  135. <!-- <view @click="goBrokerMyentry('/pages/my/myentry')" style="font-weight:bold;color: red;">【经纪人中心】</view> -->
  136. </view>
  137. </view>
  138. <view style="height: 140rpx; width: 100%;" v-if="false"></view>
  139. <view class="cu-list grid col-3 no-border" style="padding-top: 120rpx;" v-if="appplatform=='ios'">
  140. <view class="cu-item text-center" @click="goLPage('/pages/my/myinfo')">
  141. <image class="myicon" :src="$getImageUrl('static/images/applet/myicon01.png')"></image>
  142. <text>基本信息</text>
  143. </view>
  144. <view class="cu-item text-center" @click="goLPage('/pages/my/myteam')">
  145. <image class="myicon" :src="$getImageUrl('static/images/applet/myicon03.png')"></image>
  146. <text>我的邀请</text>
  147. </view>
  148. <view class="cu-item text-center" @click="goLPage('/pages/mall/mall')">
  149. <image class="myicon" :src="$getImageUrl('static/images/applet/myicon04.png')"></image>
  150. <text>积分商城</text>
  151. </view>
  152. </view>
  153. <view class="cu-list grid col-3 no-border" style="padding-top: 120rpx;" v-else>
  154. <view class="cu-item text-center" @click="goLPage('/pages/my/myinfo')">
  155. <image class="myicon" :src="$getImageUrl('static/images/applet/myicon01.png')"></image>
  156. <text>基本信息</text>
  157. </view>
  158. <view class="cu-item text-center" @click="goLPage('/pages/my/mycode')">
  159. <image class="myicon" :src="$getImageUrl('static/images/applet/myicon02.png')"></image>
  160. <text>我的推广码</text>
  161. </view>
  162. <view class="cu-item text-center" @click="goLPage('/pages/my/myteam')">
  163. <image class="myicon" :src="$getImageUrl('static/images/applet/myicon03.png')"></image>
  164. <text>我的邀请</text>
  165. </view>
  166. <!-- <view class="cu-item text-center" @click="goLPage('/pages/mall/mall')">
  167. <image class="myicon" :src="$getImageUrl('static/images/applet/myicon04.png')"></image>
  168. <text>积分商城</text>
  169. </view> -->
  170. </view>
  171. </view>
  172. <view class="cu-list menu sm-border" v-if="false">
  173. <view class="cu-item arrow" @click="goLPage('/pages/broker/center')" v-if="brokerall != null">
  174. <view class="content">
  175. <text class="cuIcon-friend text-grey"></text>
  176. <text>经纪人中心</text>
  177. </view>
  178. </view>
  179. <view class="cu-item arrow" @click="goLPage('/pages/resident/resident')" v-if="resident != null">
  180. <view class="content">
  181. <text class="cuIcon-friend text-grey"></text>
  182. <text>驻场老师</text>
  183. </view>
  184. </view>
  185. <view class="cu-item arrow" @click="goPage('/pages/comjobs/log')">
  186. <view class="content">
  187. <text class="cuIcon-edit text-grey"></text>
  188. <text>我的报名</text>
  189. </view>
  190. <view class="action" v-if="tip_num.comjobs_num > 0">
  191. <view class="cu-tag round bg-red sm">{{tip_num.comjobs_num}}</view>
  192. </view>
  193. </view>
  194. <view class="cu-item arrow" @click="goLPage('/pages/comjobs/star')">
  195. <view class="content">
  196. <text class="cuIcon-like text-grey"></text>
  197. <text>我的收藏</text>
  198. </view>
  199. </view>
  200. <view class="cu-item arrow" @click="goLPage('/pages/resume/log')">
  201. <view class="content">
  202. <text class="cuIcon-profile text-grey"></text>
  203. <text>收到的邀请</text>
  204. </view>
  205. <view class="action" v-if="tip_num.invite_num > 0">
  206. <view class="cu-tag round bg-red sm">{{tip_num.invite_num}}</view>
  207. </view>
  208. </view>
  209. <view class="cu-item arrow" @click="goLPage('/pages/my/mybag')">
  210. <view class="content">
  211. <text class="cuIcon-moneybag text-grey"></text>
  212. <text>我的钱包</text>
  213. </view>
  214. </view>
  215. <view class="cu-item arrow" @click="goLPage('/pages/notice/notice')">
  216. <view class="content">
  217. <text class="cuIcon-punch text-grey"></text>
  218. <text>通知公告</text>
  219. </view>
  220. </view>
  221. <view class="cu-item arrow" @click="goLPage('/pages/train/joinlist')">
  222. <view class="content">
  223. <text class="cuIcon-calendar text-grey"></text>
  224. <text>培训意愿</text>
  225. </view>
  226. </view>
  227. <!-- <view class="cu-item arrow" @click="goLPage('/pages/my/myintegral')">
  228. <view class="content">
  229. <text class="cuIcon-sponsor text-grey"></text>
  230. <text>我的积分</text>
  231. </view>
  232. </view> -->
  233. <!-- <view class="cu-item arrow" @click="goPage('/pages/article/article')">
  234. <view class="content">
  235. <text class="cuIcon-news text-grey"></text>
  236. <text>政策资讯</text>
  237. </view>
  238. </view> -->
  239. <view class="cu-item arrow" @click="goLPage('/pages/my/myauth')">
  240. <view class="content">
  241. <text class="cuIcon-news text-grey"></text>
  242. <text>实名认证</text>
  243. </view>
  244. <view class="action">
  245. <text class="text-grey" v-if="userinfo.authstatus==1">待认证</text>
  246. <text class="text-grey" v-if="userinfo.authstatus==2">审核中</text>
  247. <text class="text-grey" v-if="userinfo.authstatus==3">已认证</text>
  248. </view>
  249. </view>
  250. <view class="cu-item arrow" @click="goLPage('/pages/my/task')">
  251. <view class="content">
  252. <text class="cuIcon-album text-grey"></text>
  253. <text>任务中心</text>
  254. </view>
  255. </view>
  256. <view class="cu-item arrow" @click="goHome">
  257. <view class="content">
  258. <text class="cuIcon-friend text-grey"></text>
  259. <text>我要招聘</text>
  260. </view>
  261. </view>
  262. </view>
  263. <view class="cu-list menu sm-border" v-if="false">
  264. <view class="cu-item arrow" @click="goLPage('/pages/my/feedback')">
  265. <view class="content">
  266. <text class="cuIcon-warn text-grey"></text>
  267. <text>意见反馈</text>
  268. </view>
  269. </view>
  270. <view class="cu-item arrow" @click="goPage('/pages/my/about')">
  271. <view class="content">
  272. <text class="cuIcon-info text-grey"></text>
  273. <text>关于我们</text>
  274. </view>
  275. </view>
  276. </view>
  277. <view class="cu-modal" :class="modalName=='workerModal'?'show':''">
  278. <view class="cu-dialog">
  279. <view class="cu-bar bg-white justify-end">
  280. <view class="content">身份切换</view>
  281. <view class="action" @tap="hideModal">
  282. <text class="cuIcon-close text-red"></text>
  283. </view>
  284. </view>
  285. <view class="padding-tb-sm">
  286. <view class="cu-list menu">
  287. <block v-if="workerall!=null">
  288. <view class="cu-item arrow" v-for="(item,index) in workerall" :key="index" @tap="goWorker"
  289. :data-index="index">
  290. <view class="content text-left">
  291. <text class="cuIcon-settings text-grey"></text>
  292. <text>{{item.title}}</text>
  293. </view>
  294. <view class="action">
  295. <text class="text-grey">
  296. <text class="margin-left text-red" v-if="item.status==1">待审核</text>
  297. <text class="margin-left text-red" v-if="item.status==4">升级审核</text>
  298. </text>
  299. </view>
  300. </view>
  301. </block>
  302. <view class="cu-item arrow" @click="goLogin(1)">
  303. <view class="content text-left">
  304. <text class="cuIcon-settings text-grey"></text>
  305. <text>个人雇主注册</text>
  306. </view>
  307. </view>
  308. <view class="cu-item arrow" @click="goLogin(2)">
  309. <view class="content text-left">
  310. <text class="cuIcon-settings text-grey"></text>
  311. <text>企业雇主注册</text>
  312. </view>
  313. </view>
  314. </view>
  315. </view>
  316. </view>
  317. </view>
  318. <view class="padding-sm"></view>
  319. <view class="padding-xl"></view>
  320. <view class="cu-bar tabbar bg-white foot">
  321. <view class="action text-gray" @tap="goNavPage('/pages/index/index')">
  322. <view class="cuIcon-cu-image">
  323. <image src="../../static/tabbar/index.png"></image>
  324. </view>
  325. 首页
  326. </view>
  327. <view class="action text-gray" @tap="goNavPage('/pages/comjobs/comjobs')">
  328. <view class="cuIcon-cu-image">
  329. <image src="../../static/tabbar/jobs.png"></image>
  330. </view>
  331. 招聘
  332. </view>
  333. <!-- #ifndef MP-WEIXIN -->
  334. <view class="action text-gray videoimg" @tap="goNavPage('/pages/video/videolist')">
  335. <view class="cuIcon-cu-image">
  336. <image src="../../static/tabbar/video.png"></image>
  337. </view>
  338. 微工作
  339. </view>
  340. <!-- #endif -->
  341. <view class="action text-gray" @tap="goNavPage('/pages/broker/brokerlist')">
  342. <view class="cuIcon-cu-image">
  343. <image src="../../static/tabbar/broker.png"></image>
  344. </view>
  345. 经纪人
  346. </view>
  347. <view class="action text-blue" @tap="goNavPage('/pages/my/my')">
  348. <view class="cuIcon-cu-image">
  349. <image src="../../static/tabbar/mySelected.png"></image>
  350. </view>
  351. 我的
  352. </view>
  353. </view>
  354. <button class="cu-btn bg-blue lg shadow echo-gohome" @tap="goHome"> 切换身份 </button>
  355. <wxContact></wxContact>
  356. </view>
  357. </template>
  358. <script>
  359. var _this;
  360. export default {
  361. data() {
  362. return {
  363. appplatform: "",
  364. param: {},
  365. userinfo: false,
  366. workerall: null,
  367. agentall: null,
  368. brokerall: null,
  369. modalName: null,
  370. resident: null,
  371. tip_num: {
  372. comjobs_num: 0,
  373. invite_num: 0,
  374. },
  375. navBarTop: 0,
  376. navBarHeight: 0,
  377. }
  378. },
  379. onLoad: function() {
  380. _this = this;
  381. //#ifdef APP-PLUS
  382. _this.appplatform = uni.getSystemInfoSync().platform;
  383. //#endif
  384. let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
  385. _this.navBarTop = menuButtonInfo.top;
  386. _this.navBarHeight = menuButtonInfo.height;
  387. },
  388. onShareAppMessage: function(res) {
  389. return {
  390. title: "个人中心",
  391. path: "/pages/my/my"
  392. }
  393. },
  394. onShow: function() {
  395. _this = this;
  396. _this.userinfo = uni.getStorageSync('userinfo') || false;
  397. _this.workerall = null;
  398. _this.agentall = null;
  399. _this.brokerall = null;
  400. if (_this.userinfo !== false) {
  401. _this.$req.ajax({
  402. path: "my/getuser",
  403. data: {
  404. userid: _this.userinfo.id
  405. }
  406. }).then((data) => {
  407. _this.param = data.param;
  408. _this.userinfo = data.user;
  409. uni.setStorageSync('userinfo', data.user);
  410. _this.workerall = data.workerall;
  411. _this.agentall = data.agentall;
  412. _this.brokerall = data.brokerall;
  413. _this.resident = data.resident;
  414. uni.setStorageSync('residentinfo', data.resident);
  415. uni.setStorageSync('brokerinfo', data.brokerall ? data.brokerall[0] : null);
  416. }).catch((err) => {
  417. uni.showModal({
  418. title: '信息提示',
  419. content: err,
  420. showCancel: false
  421. });
  422. _this.userinfo = false;
  423. uni.removeStorageSync('userinfo');
  424. });
  425. //获取提示数字
  426. _this.$req.ajax({
  427. path: "my/gettipnum",
  428. data: {
  429. userid: _this.userinfo.id
  430. }
  431. }).then((data) => {
  432. _this.tip_num = data;
  433. })
  434. }
  435. },
  436. methods: {
  437. goUrl: function(type, tilurl) {
  438. if (type == 1) {
  439. uni.navigateTo({
  440. url: tilurl,
  441. fail: function() {
  442. uni.switchTab({
  443. url: tilurl
  444. });
  445. }
  446. });
  447. } else {
  448. uni.navigateTo({
  449. url: '/pages/tool/webview?pagesrc=' + encodeURIComponent(tilurl)
  450. });
  451. }
  452. },
  453. goManage: function(e) {
  454. _this.userinfo = _this.checkLogin("/pages/my/my");
  455. if (_this.userinfo === false) {
  456. return false;
  457. }
  458. var mtype = e.currentTarget.dataset.mtype;
  459. var index = e.currentTarget.dataset.index;
  460. var pageurl = "/pages/index/index";
  461. if (mtype == 'worker') {
  462. // if (_this.workerall[index].status==1){
  463. // uni.showModal({
  464. // title: '信息提示',
  465. // content: "信息审核中,请耐心等待。",
  466. // showCancel: false
  467. // });
  468. // return;
  469. // }
  470. pageurl = "/pages/worker/worker";
  471. uni.setStorageSync('workerinfo', _this.workerall[index]);
  472. } else if (mtype == 'agent') {
  473. pageurl = "/pages/agent/agent";
  474. uni.setStorageSync('agentinfo', _this.agentall[index]);
  475. } else if (mtype == 'broker') {
  476. pageurl = "/pages/broker/broker";
  477. uni.setStorageSync('brokerinfo', _this.brokerall[index]);
  478. }
  479. uni.navigateTo({
  480. url: pageurl,
  481. fail: function() {
  482. uni.switchTab({
  483. url: pageurl
  484. });
  485. }
  486. });
  487. },
  488. hideModal: function(e) {
  489. _this.modalName = null;
  490. },
  491. goLogin: function(wtype) {
  492. uni.setStorageSync('identityinfo', true);
  493. uni.navigateTo({
  494. url: "/pages/login/worker?wtype=" + wtype
  495. });
  496. },
  497. goLPage: function(pageurl) {
  498. _this.userinfo = _this.checkLogin("/pages/my/my");
  499. if (_this.userinfo === false) {
  500. return false;
  501. }
  502. uni.navigateTo({
  503. url: pageurl,
  504. fail: function() {
  505. uni.switchTab({
  506. url: pageurl
  507. });
  508. }
  509. });
  510. },
  511. goPage: function(pageurl) {
  512. uni.navigateTo({
  513. url: pageurl,
  514. fail: function() {
  515. uni.switchTab({
  516. url: pageurl
  517. });
  518. }
  519. });
  520. },
  521. goBrokerMyentry: function(pageurl) {
  522. _this.userinfo = uni.getStorageSync('userinfo') || false;
  523. if (!_this.userinfo.brokerid) {
  524. uni.showModal({
  525. title: '暂无权限',
  526. content: '您现在还不是经纪人,请先申请',
  527. success: function(res) {
  528. if (res.confirm) {
  529. uni.navigateTo({
  530. url: "/pages/broker/brokerform"
  531. });
  532. } else if (res.cancel) {
  533. console.log('用户点击取消');
  534. }
  535. }
  536. });
  537. } else {
  538. uni.navigateTo({
  539. url: pageurl,
  540. fail: function() {
  541. uni.switchTab({
  542. url: pageurl
  543. });
  544. }
  545. });
  546. }
  547. },
  548. goNavPage: function(pageurl) {
  549. uni.redirectTo({
  550. url: pageurl
  551. });
  552. },
  553. // 咨询电话
  554. makeTelephone: function(e) {
  555. var telephone = e.currentTarget.dataset.telephone;
  556. uni.makePhoneCall({
  557. phoneNumber: telephone
  558. });
  559. },
  560. loginOut: function() {
  561. uni.clearStorageSync();
  562. uni.showModal({
  563. title: '温馨提示',
  564. content: '退出成功。',
  565. showCancel: false,
  566. success: function(res) {
  567. if (res.confirm) {
  568. uni.reLaunch({
  569. url: "/pages/index/home"
  570. });
  571. }
  572. }
  573. });
  574. },
  575. goWorker: function(e) {
  576. var index = e.currentTarget.dataset.index;
  577. if (_this.workerall[index].status == 1 || _this.workerall[index].status == 4) {
  578. uni.showModal({
  579. title: '信息提示',
  580. content: "信息审核中,请耐心等待。",
  581. showCancel: false
  582. });
  583. return;
  584. }
  585. if (_this.workerall[index].status == 2 || _this.workerall[index].status == 3) {
  586. uni.showModal({
  587. title: '信息提示',
  588. content: "账号存在风险,请联系平台。",
  589. showCancel: false
  590. });
  591. return;
  592. }
  593. uni.setStorageSync('identityinfo', true);
  594. uni.setStorageSync('workerinfo', _this.workerall[index]);
  595. uni.reLaunch({
  596. url: "/pages/worker/worker"
  597. });
  598. },
  599. goHome: function() {
  600. _this.modalName = "workerModal";
  601. // uni.setStorageSync('identityinfo', false);
  602. // uni.setStorageSync('workerinfo', null);
  603. // uni.reLaunch({
  604. // url: "/pages/index/home"
  605. // });
  606. },
  607. }
  608. }
  609. </script>
  610. <style lang="scss">
  611. /* .mytop{ padding: 30rpx 30rpx 50rpx 30rpx; background-repeat: no-repeat; background-size: 100% 100%; background-position: center; position: relative; } */
  612. .topArea {
  613. width: 750rpx;
  614. height: 300rpx;
  615. position: relative;
  616. .topArea-Bg {
  617. position: absolute;
  618. width: 100%;
  619. height: 300rpx;
  620. z-index: -100;
  621. }
  622. .topArea-nav {
  623. padding: 0 20rpx;
  624. display: flex;
  625. justify-content: space-between;
  626. .nav-title {
  627. width: 100%;
  628. font-size: 32rpx;
  629. font-family: PingFang SC, PingFang SC;
  630. font-weight: 500;
  631. color: #FFFFFF;
  632. text-align: center;
  633. }
  634. }
  635. .topArea-main {
  636. width: 100%;
  637. margin-top: 30rpx;
  638. padding: 0 24rpx;
  639. .noLogin {
  640. display: flex;
  641. align-items: center;
  642. .noLogin-icon {
  643. width: 120rpx;
  644. height: 120rpx;
  645. border-radius: 16rpx;
  646. }
  647. .noLogin-title {
  648. margin-left: 20rpx;
  649. font-size: 32rpx;
  650. color: #FFFFFF;
  651. }
  652. }
  653. .haveLogin {
  654. display: flex;
  655. align-items: center;
  656. .login-avatar {
  657. width: 120rpx;
  658. height: 120rpx;
  659. border-radius: 16rpx;
  660. }
  661. .login-infor {
  662. margin-left: 20rpx;
  663. .infor-top {
  664. margin-bottom: 20rpx;
  665. display: flex;
  666. align-items: center;
  667. .infor-top-name {
  668. font-size: 26rpx;
  669. color: #FFFFFF;
  670. }
  671. .infor-top-verify {
  672. margin-left: 30rpx;
  673. font-size: 24rpx;
  674. color: #FFFFFF;
  675. display: flex;
  676. align-items: center;
  677. .verify-icon {
  678. margin-right: 10rpx;
  679. width: 25rpx;
  680. height: 25rpx;
  681. border-radius: 50%;
  682. background-color: #F5DB03;
  683. .verify-icon-image {
  684. width: 25rpx;
  685. height: 25rpx;
  686. }
  687. }
  688. }
  689. .infor-top-noVerify {
  690. margin-left: 30rpx;
  691. font-size: 24rpx;
  692. color: #FFFFFF;
  693. }
  694. }
  695. .infor-bottom {
  696. font-size: 24rpx;
  697. color: #FFFFFF;
  698. }
  699. }
  700. }
  701. }
  702. }
  703. .topMenu {
  704. margin: 20rpx 20rpx;
  705. padding: 30rpx 0;
  706. background: #FFFFFF;
  707. box-shadow: 0rpx 4rpx 8rpx 2rpx rgba(0, 0, 0, 0.1);
  708. border-radius: 14rpx;
  709. opacity: 1;
  710. display: flex;
  711. align-items: flex-end;
  712. justify-content: space-between;
  713. .topMenu-item {
  714. flex: 1;
  715. width: 100%;
  716. display: flex;
  717. flex-direction: column;
  718. align-items: center;
  719. .item-image {
  720. width: 60rpx;
  721. height: 60rpx;
  722. margin-bottom: 10rpx;
  723. }
  724. .item-icon {
  725. width: 60rpx;
  726. height: 60rpx;
  727. margin-bottom: 10rpx;
  728. }
  729. .item-title {
  730. color: #747474;
  731. font-size: 30rpx;
  732. }
  733. .item-titleSmall {
  734. margin-top: 5rpx;
  735. color: #747474;
  736. font-size: 24rpx;
  737. }
  738. }
  739. }
  740. .topApply {
  741. margin: 30rpx 20rpx;
  742. padding: 10rpx 30rpx;
  743. // height: 141rpx;
  744. background: linear-gradient(270deg, #484353 0%, #6F6F6F 100%);
  745. border-radius: 15rpx;
  746. display: flex;
  747. align-items: center;
  748. justify-content: space-between;
  749. .topApply-left {
  750. width: 62rpx;
  751. height: 62rpx;
  752. border-radius: 50%;
  753. box-shadow: 0rpx 4rpx 8rpx 2rpx rgba(0, 0, 0, 0.3);
  754. opacity: 1;
  755. .left-icon {
  756. width: 62rpx;
  757. height: 62rpx;
  758. border-radius: 50%;
  759. }
  760. }
  761. .topApply-center {
  762. margin-left: -120rpx;
  763. height: 50rpx;
  764. padding: 0 20rpx;
  765. border-left: 2rpx solid rgba(255, 232, 171, 0.16);
  766. font-size: 26rpx;
  767. line-height: 50rpx;
  768. color: #E0E0E0;
  769. }
  770. .topApply-right {
  771. width: 164rpx;
  772. height: 54rpx;
  773. line-height: 54rpx;
  774. text-align: center;
  775. background: linear-gradient(180deg, #FAE7B5 0%, #F3CA7E 100%);
  776. border-radius: 27rpx;
  777. opacity: 1;
  778. font-size: 22rpx;
  779. color: #3F3852;
  780. }
  781. }
  782. </style>