my.vue 25 KB

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