index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. <template>
  2. <view>
  3. <view class="bg-white echo-top">
  4. <image class="echo-topbg" mode="widthFix" :src="param.indextopbg"></image>
  5. <view style="position: relative;">
  6. <view class="cu-bar search" style="position: absolute; left: 0px; right: 0px; margin: 0px auto; top: 0rpx; z-index: 999; width: 90%;">
  7. <view class="search-form round text-center">
  8. <text class="cuIcon-search"></text>
  9. <input @input="bindInput" :adjust-position="false" type="text" placeholder="搜索职位或公司" confirm-type="search"></input>
  10. </view>
  11. <view class="action" v-if="searchval!==''">
  12. <button class="cu-btn bg-white shadow-blur round" @click="btnSearch()">搜索</button>
  13. </view>
  14. </view>
  15. <swiper class="screen-swiper round-dot" style="min-height: 280rpx !important;" :indicator-dots="true" :circular="true"
  16. :autoplay="true" interval="5000" duration="500">
  17. <block v-for="(item,index) in slide" :key="index">
  18. <swiper-item @tap="pageUrl(item.stype, item.tilurl)">
  19. <image :src="item.tilpic" mode="scaleToFill"></image>
  20. </swiper-item>
  21. </block>
  22. </swiper>
  23. </view>
  24. <!-- 招聘头条 -->
  25. <!-- <view class="uni-swiper-msg bg-white solid-top padding-lr-sm solid-bottom noticbox" v-if="article.length>0">
  26. <view class="uni-swiper-msg-icon text-xl">
  27. <image :src="$getImageUrl('static/images/applet/iconNotice.png')"></image>
  28. </view>
  29. <swiper :autoplay="true" :circular="true" :vertical="true" interval="5000">
  30. <swiper-item v-for="(item, index) in article" :key="index">
  31. <navigator :url="'/pages/article/detail?articleid='+item.id">{{item.title}}</navigator>
  32. </swiper-item>
  33. </swiper>
  34. </view> -->
  35. <!-- 加群 -->
  36. <view class="bg-white join-group" @tap="showConcatModel">
  37. <view class="join-left">
  38. <image class="myicon" mode="widthFix" :src="$getImageUrl('static/images/applet/wechat_group.png')"></image>
  39. </view>
  40. <view class="join-right">
  41. <view class="arrow">
  42. 添加企业微信拉你入群<text class="text-blue margin-left-sm">加入群聊</text>
  43. </view>
  44. <view class="arrow">
  45. 客服电话<text class="margin-left-sm">19959780161</text><text class="text-blue margin-left-sm">联系客服</text>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 导航 -->
  50. <!-- <view class="text-center">
  51. <view class="cu-list grid col-4 no-border echo-grid">
  52. <block v-for="(item,index) in navigation" :key="item.id">
  53. <view class="cu-item" @tap="pageUrl(item.ntype, item.tilurl)">
  54. <image :src="item.tilpic" mode="widthFix"></image>
  55. <text>{{item.title}}</text>
  56. </view>
  57. </block>
  58. </view>
  59. </view> -->
  60. <view class="lw-nav-broker">
  61. <image class="img" @tap="pageUrl(1,'/pages/broker/brokerform')" :src="$getImageUrl('static/images/applet/index_incon1.png')" mode="widthFix"></image>
  62. </view>
  63. <view class="lw-nav">
  64. <image class="img" @tap="goNavPage('/pages/comjobs/comjobs')" :src="$getImageUrl('static/images/applet/index_incon2.png')" mode="widthFix"></image>
  65. <image class="img" @tap="develop()" :src="$getImageUrl('static/images/applet/index_incon3.png')" mode="widthFix"></image>
  66. <image class="img" @tap="develop()" :src="$getImageUrl('static/images/applet/index_incon4.png')" mode="widthFix"></image>
  67. <image class="img" @tap="develop()" :src="$getImageUrl('static/images/applet/index_incon5.png')" mode="widthFix"></image>
  68. </view>
  69. </view>
  70. <!-- 企业招聘 -->
  71. <view class="text-bold padding-left-lg bg-white text-xl">推荐职位</view>
  72. <view class="cu-bar bg-white" style="text-align: center; height: 80rpx !important; min-height: 80rpx !important;">
  73. <!--<image :src="$getImageUrl('static/images/applet/indextil.png')" style="width: 150rpx; height: 35rpx; margin: 0 auto;"></image>-->
  74. <view class="flex text-center padding-lr-xs" style="width: 100%; height: 80rpx; font-size: 35rpx; font-weight: bold;line-height: 80rpx;">
  75. <view class="cu-item text-df margin-lr-sm" :class="status==0?'text-blue cur selectok':''" @tap="tabSelect" data-status="0">热门推荐</view>
  76. <view class="cu-item text-df margin-lr-sm" :class="status==1?'text-blue cur selectok':''" @tap="tabSelect" data-status="1">附近职位</view>
  77. <view class="cu-item text-df margin-lr-sm" :class="status==2?'text-blue cur selectok':''" @tap="tabSelect" data-status="2" v-if="userinfo">猜你喜欢</view>
  78. </view>
  79. </view>
  80. <view v-if="status==0">
  81. <block v-for="(item,index) in plist" :key="index">
  82. <view class="cu-card dynamic no-card solid-bottom echo-comjobs-item padding-top-sm padding-lr-sm radius">
  83. <view class="cu-item shadow padding-top-sm padding-bottom" @tap="goDetail(item.id)">
  84. <view class="padding-lr flex justify-between align-center">
  85. <view class="basis-lg text-bold text-df text-cut">
  86. {{item.title}}
  87. <text class="text-red text-sm" v-if="item.wtype==1">(按月)</text>
  88. <text class="text-red text-sm" v-if="item.wtype==2">(按时)</text>
  89. <text class="text-red text-sm" v-if="item.wtype==3">(按件)</text>
  90. <text class="text-red text-sm" v-if="item.wtype==4">(按项目)</text>
  91. <text class="text-sm">{{item.recruit_num}}名</text>
  92. </view>
  93. <view class="basis-sm text-cut text-right text-gray text-sm">
  94. <view><text class="text-red text-bold">{{item.zwagall}}</text></view>
  95. </view>
  96. </view>
  97. <view class="padding-lr padding-tb-xs text-cut">
  98. <view v-for="(titem,tindex) in item.tags" :key="tindex" class="cu-tag light bg-blue lg echo-tags-item">{{titem}}</view>
  99. </view>
  100. <view class="padding-lr text-cut text-sm flex justify-between align-center">
  101. <view class="basis-lg text-df text-cut">{{item.worker.title}}</view>
  102. <view class="basis-sm text-cut text-right text-sm">
  103. 浏览量:{{item.volume}}
  104. </view>
  105. </view>
  106. <!-- <view class="text-gray padding-lr flex align-center justify-between" @tap="goShop(item.workerid)">
  107. <view class="flex align-center">
  108. <image class="iconyrz" :src="$getImageUrl('static/images/applet/iconyrz.png')" mode="scaleToFill"></image>
  109. <image class="iconwyp" :src="$getImageUrl('static/images/applet/iconwyp.png')" mode="scaleToFill" v-if="item.recruitment_cate==2"></image>
  110. </view>
  111. <view class="text-gray text-right basis-xs text-sm">
  112. <text class="cuIcon-shop margin-right-xs text-lg"></text>
  113. 进店
  114. </view>
  115. </view> -->
  116. </view>
  117. </view>
  118. </block>
  119. <uni-load-more :status="pstatus"></uni-load-more>
  120. </view>
  121. <view v-if="status==1">
  122. <!-- <view class="cu-card dynamic no-card solid-bottom echo-comjobs-item">
  123. <view class="cu-item shadow padding-top-sm padding-bottom" style="padding-left: 35rpx;">
  124. 您当前的位置:经度 {{longitude}} 纬度 {{latitude}}<br>
  125. {{useraddress}}
  126. </view>
  127. </view> -->
  128. <block v-for="(item,indexn) in plistn" :key="indexn">
  129. <view class="cu-card dynamic no-card solid-bottom echo-comjobs-item padding-top-sm padding-lr-sm radius">
  130. <view class="cu-item shadow padding-top-sm padding-bottom" @tap="goDetail(item.id)">
  131. <view class="padding-lr flex justify-between align-center">
  132. <view class="basis-lg text-bold text-df text-cut">
  133. {{item.title}}
  134. <text class="text-red text-sm" v-if="item.wtype==1">(按月)</text>
  135. <text class="text-red text-sm" v-if="item.wtype==2">(按时)</text>
  136. <text class="text-red text-sm" v-if="item.wtype==3">(按件)</text>
  137. <text class="text-red text-sm" v-if="item.wtype==4">(按项目)</text>
  138. <text class="text-sm">{{item.recruit_num}}名</text>
  139. </view>
  140. <view class="basis-sm text-cut text-right text-gray text-sm">
  141. <view><text class="text-red text-bold">{{item.zwagall}}</text></view>
  142. </view>
  143. </view>
  144. <view class="padding-lr padding-tb-xs text-cut">
  145. <view v-for="(titem,tindex) in item.tags" :key="tindex" class="cu-tag light bg-blue lg echo-tags-item">{{titem}}</view>
  146. </view>
  147. <view class="padding-lr text-cut text-sm flex justify-between align-center">
  148. <view class="basis-lg text-df text-cut">{{item.worker.title}}</view>
  149. <view class="basis-sm text-cut text-right text-sm">
  150. 浏览量:{{item.volume}}
  151. </view>
  152. </view>
  153. <view class="padding-lr text-cut text-sm flex justify-between align-center">
  154. <view class="basis-lg text-df text-cut"></view>
  155. <view class="basis-sm text-cut text-right text-sm">
  156. {{item.distance}}
  157. </view>
  158. </view>
  159. </view>
  160. <!-- <view class="cu-item shadow padding-top-sm padding-bottom">
  161. <view class="padding-lr padding-bottom-xs flex justify-between align-center" @tap="goDetail(item.id)">
  162. <view class="basis-xl text-bold text-lg text-cut">{{item.title}}</view>
  163. <view class="basis-xs text-cut text-right text-gray text-sm">{{item.city}}</view>
  164. </view>
  165. <view class="padding-lr flex justify-between align-bottom" @tap="goDetail(item.id)">
  166. <view v-if="item.wtype==1"><text class="text-red text-bold">{{item.zwagall}}</text></view>
  167. <view v-if="item.wtype==5"><text class="text-red text-bold">其他</text></view>
  168. <view v-else><text class="text-red text-bold">{{item.bwagall}}</text></view>
  169. <view class="text-red">{{item.fwagall}}</view>
  170. </view>
  171. <view class="padding-lr text-cut" @tap="goDetail(item.id)">
  172. <view v-for="(titem,tindex) in item.tags" :key="tindex" class="cu-tag light bg-blue sm echo-tags-item">{{titem}}</view>
  173. </view>
  174. <view class="padding-lr flex justify-between align-bottom" @tap="goDetail(item.id)">
  175. <view>{{item.worker.title}}</view>
  176. <view class="text-red">{{item.distance}}</view>
  177. </view>
  178. <view class="text-gray padding-lr flex align-center justify-between" @tap="goShop(item.workerid)">
  179. <view class="flex align-center">
  180. <image class="iconyrz" src="../../static/images/iconyrz.png" mode="scaleToFill"></image>
  181. <image class="iconwyp" src="../../static/images/iconwyp.png" mode="scaleToFill" v-if="item.recruitment_cate==2"></image>
  182. </view>
  183. <view class="text-gray text-right basis-xs text-sm">
  184. <text class="cuIcon-shop margin-right-xs text-lg"></text>
  185. 进店
  186. </view>
  187. </view>
  188. </view> -->
  189. </view>
  190. </block>
  191. <uni-load-more :status="pstatusn"></uni-load-more>
  192. </view>
  193. <view v-if="status==2">
  194. <block v-for="(item,index) in plistl" :key="index">
  195. <view class="cu-card dynamic no-card solid-bottom echo-comjobs-item padding-top-sm padding-lr-sm radius">
  196. <view class="cu-item shadow padding-top-sm padding-bottom" @tap="goDetail(item.id)">
  197. <view class="padding-lr flex justify-between align-center">
  198. <view class="basis-lg text-bold text-df text-cut">
  199. {{item.title}}
  200. <text class="text-red text-sm" v-if="item.wtype==1">(按月)</text>
  201. <text class="text-red text-sm" v-if="item.wtype==2">(按时)</text>
  202. <text class="text-red text-sm" v-if="item.wtype==3">(按件)</text>
  203. <text class="text-red text-sm" v-if="item.wtype==4">(按项目)</text>
  204. <text class="text-sm">{{item.recruit_num}}名</text>
  205. </view>
  206. <view class="basis-sm text-cut text-right text-gray text-sm">
  207. <view><text class="text-red text-bold">{{item.zwagall}}</text></view>
  208. <view v-if="item.recruitment_cate == 2"><text class="text-red text-bold">悬赏{{item.retmoney}}{{item.is_pay == 1 ? '(已支付)' : ''}}</text></view>
  209. </view>
  210. </view>
  211. <view class="padding-lr padding-tb-xs text-cut">
  212. <view v-for="(titem,tindex) in item.tags" :key="tindex" class="cu-tag light bg-blue lg echo-tags-item">{{titem}}</view>
  213. </view>
  214. <view class="padding-lr text-cut text-sm flex justify-between align-center">
  215. <view class="basis-lg text-df text-cut">{{item.worker.title}}</view>
  216. <view class="basis-sm text-cut text-right text-sm">
  217. 浏览量:{{item.volume}}
  218. </view>
  219. </view>
  220. <!-- <view class="text-gray padding-lr flex align-center justify-between" @tap="goShop(item.workerid)">
  221. <view class="flex align-center">
  222. <image class="iconyrz" :src="$getImageUrl('static/images/applet/iconyrz.png')"></image>
  223. <image class="iconwyp" :src="$getImageUrl('static/images/applet/iconwyp.png')" mode="scaleToFill" v-if="item.recruitment_cate==2"></image>
  224. </view>
  225. <view class="text-gray text-right basis-xs text-sm">
  226. <text class="cuIcon-shop margin-right-xs text-lg"></text>
  227. 进店
  228. </view>
  229. </view> -->
  230. </view>
  231. </view>
  232. </block>
  233. <uni-load-more :status="pstatus"></uni-load-more>
  234. </view>
  235. <!-- <button class="cu-btn bg-blue lg shadow echo-gohome" @tap="goHome"> 切换身份 </button> -->
  236. <view class="padding-sm"></view>
  237. <view class="padding-xl"></view>
  238. <view class="cu-bar tabbar bg-white foot">
  239. <view class="action text-blue" @tap="goNavPage('/pages/index/index')">
  240. <view class="cuIcon-cu-image">
  241. <image src="../../static/tabbar/indexSelected.png"></image>
  242. </view>
  243. 首页
  244. </view>
  245. <view class="action text-gray" @tap="goNavPage('/pages/comjobs/comjobs')">
  246. <view class="cuIcon-cu-image">
  247. <image src="../../static/tabbar/jobs.png"></image>
  248. </view>
  249. 招聘
  250. </view>
  251. <!-- #ifndef MP-WEIXIN -->
  252. <view class="action text-gray videoimg" @tap="goNavPage('/pages/video/videolist')">
  253. <view class="cuIcon-cu-image">
  254. <image src="../../static/tabbar/video.png"></image>
  255. </view>
  256. 微工作
  257. </view>
  258. <!-- #endif -->
  259. <view class="action text-gray" @tap="goNavPage('/pages/broker/brokerlist')">
  260. <view class="cuIcon-cu-image">
  261. <image src="../../static/tabbar/broker.png"></image>
  262. </view>
  263. 经纪人
  264. </view>
  265. <view class="action text-gray" @tap="goNavPage('/pages/my/my')">
  266. <view class="cuIcon-cu-image">
  267. <image src="../../static/tabbar/my.png"></image>
  268. </view>
  269. 我的
  270. </view>
  271. </view>
  272. <wxContact ref="wxContact"></wxContact>
  273. </view>
  274. </template>
  275. <script>
  276. import uniLoadMore from "@/components/uni-load-more/uni-load-more.vue";
  277. import QQMapWX from '@/common/qqmap-wx-jssdk';
  278. var _this;
  279. export default {
  280. components: {
  281. uniLoadMore
  282. },
  283. data() {
  284. return {
  285. userinfo: null,
  286. workerinfo: null,
  287. param: [],
  288. slide: [],
  289. cardCur: 0,
  290. searchval: "",
  291. article: [],
  292. navigation: [],
  293. pstatus: 'more',
  294. pstatusn: 'more',
  295. ppage: 1,
  296. ppagen: 1,
  297. psize: 20,
  298. psizen: 20,
  299. plist: [],
  300. plistn: [],
  301. plistl: [],
  302. status: 0,
  303. latitude:0.000000,
  304. longitude:0.000000,
  305. useraddress:"",
  306. };
  307. },
  308. onLoad: function(option) {
  309. _this = this;
  310. _this.status = option.status || 0;
  311. _this.userinfo = uni.getStorageSync('userinfo') || false;
  312. _this.workerinfo = uni.getStorageSync('workerinfo') || false;
  313. if (_this.workerinfo !== false) {
  314. uni.reLaunch({
  315. url: "/pages/worker/worker"
  316. });
  317. return false;
  318. }
  319. uni.getLocation({
  320. success: function (res) {
  321. console.log(res);
  322. console.log('纬度:' + res.latitude);
  323. console.log('经度:' + res.longitude);
  324. _this.latitude = res.latitude;
  325. _this.longitude = res.longitude;
  326. // _this.qqmapsdk.reverseGeocoder({
  327. // location: {
  328. // latitude: res.latitude,
  329. // longitude: res.longitude
  330. // },
  331. // success: function (res) {
  332. // console.log(res.result.address_component);
  333. // //addressinfo=res.result.address_component;
  334. // _this.useraddress = res.result.address_component.province + " " + res.result.address_component.city + " " + res.result.address_component.district;
  335. // },
  336. // fail: function (res) {
  337. // console.log(res)
  338. // },
  339. // complete: function (res) {
  340. // // console.log(res)
  341. // }
  342. // })
  343. }
  344. });
  345. _this.$req.ajax({
  346. path: "index/getindexdata",
  347. }).then((data) => {
  348. _this.param = data.param;
  349. _this.slide = data.slide;
  350. _this.navigation = data.navigation;
  351. _this.article = data.article;
  352. _this.getMore();
  353. }).catch((err) => {
  354. uni.showModal({
  355. title: '信息提示',
  356. content: err,
  357. showCancel: false
  358. });
  359. });
  360. _this.qqmapsdk = new QQMapWX({
  361. // 在腾讯平台自己申请的秘钥
  362. key: 'L2PBZ-J53WR-FUXW6-WB3SD-NWCFO-WYBS6'
  363. });
  364. },
  365. onShareAppMessage: function(res) {
  366. return {
  367. title: "晋江人力",
  368. path: "/pages/index/index"
  369. }
  370. },
  371. onPullDownRefresh: function() {
  372. if(_this.status==0){
  373. _this.ppage = 1;
  374. _this.plist = [];
  375. _this.pstatus = 'more';
  376. }else if(_this.status==1){
  377. _this.ppagen = 1;
  378. _this.plistn = [];
  379. _this.pstatusn = 'more';
  380. }else if(_this.status==2){
  381. _this.ppagen = 1;
  382. _this.plistn = [];
  383. _this.plistl = 'more';
  384. }
  385. _this.getMore();
  386. },
  387. onReachBottom: function() {
  388. if(_this.status==0){
  389. if (_this.pstatus !== 'more') {
  390. return;
  391. }
  392. }else{
  393. if (_this.pstatusn !== 'more') {
  394. return;
  395. }
  396. }
  397. _this.getMore();
  398. },
  399. methods: {
  400. showConcatModel: function() {
  401. this.$refs.wxContact.showConcatModel();
  402. },
  403. goHome: function() {
  404. uni.setStorageSync('identityinfo', false);
  405. uni.setStorageSync('workerinfo', null);
  406. uni.reLaunch({
  407. url: "/pages/index/home"
  408. });
  409. },
  410. tabSelect: function(e) {
  411. _this.status = e.currentTarget.dataset.status;
  412. _this.pageRefresh();
  413. },
  414. // 搜索
  415. bindInput: function(e) {
  416. _this.searchval = e.detail.value;
  417. },
  418. btnSearch: function() {
  419. if (_this.searchval == "") {
  420. uni.showModal({
  421. title: '信息提示',
  422. content: "请输入要搜索的关键字...",
  423. showCancel: false
  424. });
  425. return false;
  426. }
  427. uni.navigateTo({
  428. url: '/pages/comjobs/comjobs?searchval=' + _this.searchval
  429. });
  430. },
  431. pageRefresh: function() {
  432. if(_this.status==0){
  433. _this.pstatus = 'more';
  434. _this.ppage = 1;
  435. _this.plist = [];
  436. }else if(_this.status==1){
  437. _this.pstatusn = 'more';
  438. _this.ppagen = 1;
  439. _this.plistn = [];
  440. } else if(_this.status==2){
  441. _this.pstatusn = 'more';
  442. _this.ppagen = 1;
  443. _this.plistl = [];
  444. }
  445. _this.getMore();
  446. },
  447. getMore: function() {
  448. // 热门职位
  449. if(_this.status==0){
  450. _this.$req.ajax({
  451. path: "index/listcomjobs",
  452. data: {
  453. ppage: _this.ppage,
  454. psize: _this.psize
  455. }
  456. }).then((data) => {
  457. _this.pstatus = data.pstatus;
  458. _this.plist = _this.plist.concat(data.plist);
  459. _this.ppage += 1;
  460. uni.stopPullDownRefresh();
  461. }).catch((err) => {
  462. uni.showModal({
  463. title: '信息提示',
  464. content: err,
  465. showCancel: false
  466. });
  467. });
  468. }else if(_this.status==1){
  469. // 附近职位
  470. _this.$req.ajax({
  471. path: "index/listComjobsofnear",
  472. data: {
  473. ppage: _this.ppagen,
  474. psize: _this.psizen,
  475. lat: _this.latitude,
  476. lng: _this.longitude
  477. }
  478. }).then((data) => {
  479. _this.pstatusn = data.pstatus;
  480. _this.plistn = _this.plistn.concat(data.plist);
  481. _this.ppagen += 1;
  482. uni.stopPullDownRefresh();
  483. }).catch((err) => {
  484. uni.showModal({
  485. title: '信息提示',
  486. content: err,
  487. showCancel: false
  488. });
  489. });
  490. }else if(_this.status==2){
  491. // 猜你喜欢
  492. _this.$req.ajax({
  493. path: "index/listComjobsLike",
  494. data: {
  495. ppage: _this.ppagen,
  496. psize: _this.psizen,
  497. userid: _this.userinfo.id,
  498. }
  499. }).then((data) => {
  500. _this.pstatusn = data.pstatus;
  501. _this.plistl = _this.plistl.concat(data.plist);
  502. _this.ppagen += 1;
  503. uni.stopPullDownRefresh();
  504. }).catch((err) => {
  505. uni.showModal({
  506. title: '信息提示',
  507. content: err,
  508. showCancel: false
  509. });
  510. });
  511. }
  512. },
  513. goDetail: function(comjobsid) {
  514. uni.navigateTo({
  515. url: '/pages/comjobs/detail?comjobsid=' + comjobsid
  516. });
  517. },
  518. goShop: function(workerid) {
  519. uni.navigateTo({
  520. url: '/pages/worker/shop?workerid=' + workerid
  521. });
  522. },
  523. onClick: function(index) {
  524. var nav = that.navigation[index.index];
  525. if (nav.type == 1) {
  526. uni.navigateTo({
  527. url: nav.link
  528. });
  529. } else {
  530. // #ifdef H5
  531. location.href = nav.link;
  532. // #endif
  533. // #ifndef H5
  534. uni.navigateTo({
  535. url: '/pages/tool/webview?pagesrc=' + encodeURIComponent(nav.link)
  536. });
  537. // #endif
  538. }
  539. },
  540. develop() {
  541. uni.showModal({
  542. title: '信息提示',
  543. content: '正在开发中,敬请期待',
  544. showCancel: false
  545. });
  546. },
  547. goNavPage: function(pageurl) {
  548. uni.redirectTo({
  549. url: pageurl
  550. });
  551. },
  552. // 轮播图
  553. cardSwiper: function(e) {
  554. _this.cardCur = e.detail.current
  555. },
  556. pageUrl: function(type, tilurl) {
  557. if (type == 1) {
  558. uni.navigateTo({
  559. url: tilurl,
  560. fail: function() {
  561. uni.switchTab({
  562. url: tilurl
  563. });
  564. }
  565. });
  566. } else {
  567. uni.navigateTo({
  568. url: '/pages/tool/webview?pagesrc=' + encodeURIComponent(tilurl)
  569. });
  570. }
  571. },
  572. }
  573. };
  574. </script>
  575. <style lang="scss">
  576. .selectok{ border-bottom: #007AFF solid 2px;}
  577. .echo-top {
  578. position: relative;
  579. }
  580. .echo-topbg {
  581. width: 750rpx;
  582. position: absolute;
  583. top: 0rpx;
  584. z-index: 0;
  585. }
  586. .cu-list.grid {
  587. background-color: transparent !important;
  588. }
  589. .card-swiper {
  590. height: 300rpx !important;
  591. }
  592. /* 通知 */
  593. .noticbox {
  594. display: flex;
  595. align-items: center;
  596. image {
  597. display: block;
  598. margin: 0rpx;
  599. padding: 0rpx;
  600. width: 150rpx;
  601. height: 35rpx;
  602. }
  603. .uni-swiper-msg-icon {
  604. width: 150rpx;
  605. }
  606. swiper-item {
  607. line-height: 80rpx !important;
  608. }
  609. swiper {
  610. height: 80rpx;
  611. }
  612. navigator {
  613. display: block;
  614. line-height: 80rpx;
  615. height: 80rpx;
  616. font-size: 32rpx;
  617. }
  618. }
  619. /* 热门岗位 */
  620. .echo-page-title {
  621. width: 660rpx;
  622. border-radius: 8rpx 8rpx 0rpx 0rpx;
  623. }
  624. .echo-comjobs-list-item {
  625. padding: 30rpx 15rpx;
  626. margin: 0rpx 17rpx 20rpx 17rpx;
  627. border-radius: 8rpx;
  628. }
  629. .echo-comjobs-list-item:first-child {
  630. border-radius: 0rpx 0rpx 8rpx 8rpx;
  631. }
  632. .join-group {
  633. display: flex;
  634. margin-top: 20px;
  635. box-sizing: border-box;
  636. width:100%;
  637. padding:0 60rpx;
  638. }
  639. .join-group .join-right {
  640. margin-left: 40rpx;
  641. width: 450rpx;
  642. }
  643. .join-group .arrow{position: relative;}
  644. .join-group .arrow:before {
  645. position: absolute;
  646. top: 0;
  647. right: -20rpx;
  648. bottom: 0;
  649. display: block;
  650. margin: auto;
  651. width: 30rpx;
  652. height: 30rpx;
  653. color: var(--grey);
  654. content: "\e6a3";
  655. text-align: center;
  656. font-size: 34rpx;
  657. font-family: "cuIcon";
  658. line-height: 30rpx;
  659. margin-top: auto;
  660. margin-right: auto;
  661. margin-bottom: auto;
  662. margin-left: auto;
  663. }
  664. .lw-nav-broker {
  665. width:710rpx;
  666. padding:20rpx 0 10rpx 0;
  667. margin:0 auto;
  668. display: flex;
  669. justify-content: space-around;
  670. }
  671. .lw-nav-broker .img{
  672. width: 710rpx;
  673. height: 160rpx;
  674. }
  675. .lw-nav {
  676. width:710rpx;
  677. padding:10rpx 0 20rpx 0;
  678. margin:0 auto;
  679. display: flex;
  680. justify-content: space-around;
  681. }
  682. .lw-nav .img {
  683. width: 160rpx;
  684. height: 160rpx;
  685. }
  686. </style>