diff --git a/src/api/userinfo.js b/src/api/userinfo.js index 60ff2d5..bca0b13 100644 --- a/src/api/userinfo.js +++ b/src/api/userinfo.js @@ -218,4 +218,14 @@ export function dataStatisticsListApi(data) { data: setqs(data), // data, }); +} +// 数据统计工单详情获取 +export function dataStatisticsTeamDetailApi(data) { + return request({ + url: "/yishoudan/statistics/agency/teamDetail", + method: "post", + // headers: { "Content-Type": "multipart/form-data" }, + data: setqs(data), + // data, + }); } \ No newline at end of file diff --git a/src/assets/fontfile/demo_index.html b/src/assets/fontfile/demo_index.html deleted file mode 100644 index e567f47..0000000 --- a/src/assets/fontfile/demo_index.html +++ /dev/null @@ -1,1384 +0,0 @@ - - - - - iconfont Demo - - - - - - - - - - - - - -
-

- - -

- -
-
-
    - -
  • - -
    搜索下拉
    -
    
    -
  • - -
  • - -
    身份证
    -
    
    -
  • - -
  • - -
    向左旋转
    -
    
    -
  • - -
  • - -
    向右旋转
    -
    
    -
  • - -
  • - -
    rotate旋转2
    -
    
    -
  • - -
  • - -
    rotate旋转
    -
    
    -
  • - -
  • - -
    旋转
    -
    
    -
  • - -
  • - -
    证件
    -
    
    -
  • - -
  • - -
    上传
    -
    
    -
  • - -
  • - -
    关闭
    -
    
    -
  • - -
  • - -
    预览
    -
    
    -
  • - -
  • - -
    日历
    -
    
    -
  • - -
  • - -
    顶部logo
    -
    
    -
  • - -
  • - -
    微信
    -
    
    -
  • - -
  • - -
    个人中心-密码
    -
    
    -
  • - -
  • - -
    绑定银行卡
    -
    
    -
  • - -
  • - -
    个人中心
    -
    
    -
  • - -
  • - -
    账号设置
    -
    
    -
  • - -
  • - -
    个人中心-绑定手机
    -
    
    -
  • - -
  • - -
    实名认证
    -
    
    -
  • - -
  • - -
    工单
    -
    
    -
  • - -
  • - -
    余额
    -
    
    -
  • - -
  • - -
    老乡
    -
    
    -
  • - -
  • - -
    积分
    -
    
    -
  • - -
  • - -
    卡券
    -
    
    -
  • - -
  • - -
    右箭头
    -
    
    -
  • - -
  • - -
    暂无卡券
    -
    
    -
  • - -
  • - -
    睁眼
    -
    
    -
  • - -
  • - -
    闭眼
    -
    
    -
  • - -
  • - -
    中国银行
    -
    
    -
  • - -
  • - -
    中原银行
    -
    
    -
  • - -
  • - -
    农业银行
    -
    
    -
  • - -
  • - -
    关闭
    -
    
    -
  • - -
  • - -
    关闭实心
    -
    
    -
  • - -
  • - -
    默认头像
    -
    
    -
  • - -
  • - -
    头像
    -
    
    -
  • - -
  • - -
    选中
    -
    
    -
  • - -
  • - -
    未选中
    -
    
    -
  • - -
  • - -
    一个专门服务代理的平台2
    -
    
    -
  • - -
  • - -
    一个专门服务代理的平台
    -
    
    -
  • - -
  • - -
    下拉
    -
    
    -
  • - -
  • - -
    搜索
    -
    
    -
  • - -
  • - -
    短信验证
    -
    
    -
  • - -
  • - -
    手机
    -
    
    -
  • - -
  • - -
    密码
    -
    
    -
  • - -
  • - -
    用户名
    -
    
    -
  • - -
  • - -
    失败
    -
    
    -
  • - -
  • - -
    成功
    -
    
    -
  • - -
  • - -
    微信
    -
    
    -
  • - -
  • - -
    sologan
    -
    
    -
  • - -
  • - -
    定位
    -
    
    -
  • - -
  • - -
    用户
    -
    
    -
  • - -
-
-

Unicode 引用

-
- -

Unicode 是字体在网页端最原始的应用方式,特点是:

-
    -
  • 支持按字体的方式去动态调整图标大小,颜色等等。
  • -
  • 默认情况下不支持多色,直接添加多色图标会自动去色。
  • -
-
-

注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)

-
-

Unicode 使用步骤如下:

-

第一步:拷贝项目下面生成的 @font-face

-
@font-face {
-  font-family: 'iconfont';
-  src: url('iconfont.woff2?t=1647498206321') format('woff2'),
-       url('iconfont.woff?t=1647498206321') format('woff'),
-       url('iconfont.ttf?t=1647498206321') format('truetype');
-}
-
-

第二步:定义使用 iconfont 的样式

-
.iconfont {
-  font-family: "iconfont" !important;
-  font-size: 16px;
-  font-style: normal;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-

第三步:挑选相应图标并获取字体编码,应用于页面

-
-<span class="iconfont">&#x33;</span>
-
-
-

"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

-
-
-
-
-
    - -
  • - -
    - 搜索下拉 -
    -
    .icon-sousuoxiala -
    -
  • - -
  • - -
    - 身份证 -
    -
    .icon-shenfenzheng -
    -
  • - -
  • - -
    - 向左旋转 -
    -
    .icon-xiangzuoxuanzhuan -
    -
  • - -
  • - -
    - 向右旋转 -
    -
    .icon-xiangyouxuanzhuan -
    -
  • - -
  • - -
    - rotate旋转2 -
    -
    .icon-rotatexuanzhuan2 -
    -
  • - -
  • - -
    - rotate旋转 -
    -
    .icon-rotatexuanzhuan -
    -
  • - -
  • - -
    - 旋转 -
    -
    .icon-xuanzhuan -
    -
  • - -
  • - -
    - 证件 -
    -
    .icon-zhengjian -
    -
  • - -
  • - -
    - 上传 -
    -
    .icon-shangchuan -
    -
  • - -
  • - -
    - 关闭 -
    -
    .icon-guanbi1 -
    -
  • - -
  • - -
    - 预览 -
    -
    .icon-yulan -
    -
  • - -
  • - -
    - 日历 -
    -
    .icon-rili -
    -
  • - -
  • - -
    - 顶部logo -
    -
    .icon-dingbulogo -
    -
  • - -
  • - -
    - 微信 -
    -
    .icon-weixin1 -
    -
  • - -
  • - -
    - 个人中心-密码 -
    -
    .icon-gerenzhongxin-mima -
    -
  • - -
  • - -
    - 绑定银行卡 -
    -
    .icon-bangdingyinhangka -
    -
  • - -
  • - -
    - 个人中心 -
    -
    .icon-gerenzhongxin -
    -
  • - -
  • - -
    - 账号设置 -
    -
    .icon-zhanghaoshezhi -
    -
  • - -
  • - -
    - 个人中心-绑定手机 -
    -
    .icon-gerenzhongxin-bangdingshouji -
    -
  • - -
  • - -
    - 实名认证 -
    -
    .icon-shimingrenzheng -
    -
  • - -
  • - -
    - 工单 -
    -
    .icon-gongdan -
    -
  • - -
  • - -
    - 余额 -
    -
    .icon-yue -
    -
  • - -
  • - -
    - 老乡 -
    -
    .icon-laoxiang -
    -
  • - -
  • - -
    - 积分 -
    -
    .icon-jifen -
    -
  • - -
  • - -
    - 卡券 -
    -
    .icon-kaquan -
    -
  • - -
  • - -
    - 右箭头 -
    -
    .icon-youjiantou -
    -
  • - -
  • - -
    - 暂无卡券 -
    -
    .icon-zanwukaquan -
    -
  • - -
  • - -
    - 睁眼 -
    -
    .icon-zhengyan -
    -
  • - -
  • - -
    - 闭眼 -
    -
    .icon-biyan -
    -
  • - -
  • - -
    - 中国银行 -
    -
    .icon-zhongguoyinhang -
    -
  • - -
  • - -
    - 中原银行 -
    -
    .icon-zhongyuanyinhang -
    -
  • - -
  • - -
    - 农业银行 -
    -
    .icon-nongyeyinhang -
    -
  • - -
  • - -
    - 关闭 -
    -
    .icon-guanbi -
    -
  • - -
  • - -
    - 关闭实心 -
    -
    .icon-guanbishixin -
    -
  • - -
  • - -
    - 默认头像 -
    -
    .icon-morentouxiang -
    -
  • - -
  • - -
    - 头像 -
    -
    .icon-touxiang -
    -
  • - -
  • - -
    - 选中 -
    -
    .icon-xuanzhong -
    -
  • - -
  • - -
    - 未选中 -
    -
    .icon-weixuanzhong -
    -
  • - -
  • - -
    - 一个专门服务代理的平台2 -
    -
    .icon-yigezhuanmenfuwudailidepingtai2 -
    -
  • - -
  • - -
    - 一个专门服务代理的平台 -
    -
    .icon-yigezhuanmenfuwudailidepingtai -
    -
  • - -
  • - -
    - 下拉 -
    -
    .icon-xiala -
    -
  • - -
  • - -
    - 搜索 -
    -
    .icon-sousuo -
    -
  • - -
  • - -
    - 短信验证 -
    -
    .icon-duanxinyanzheng -
    -
  • - -
  • - -
    - 手机 -
    -
    .icon-shouji -
    -
  • - -
  • - -
    - 密码 -
    -
    .icon-mima -
    -
  • - -
  • - -
    - 用户名 -
    -
    .icon-yonghuming -
    -
  • - -
  • - -
    - 失败 -
    -
    .icon-shibai -
    -
  • - -
  • - -
    - 成功 -
    -
    .icon-chenggong -
    -
  • - -
  • - -
    - 微信 -
    -
    .icon-weixin -
    -
  • - -
  • - -
    - sologan -
    -
    .icon-sologan -
    -
  • - -
  • - -
    - 定位 -
    -
    .icon-dingwei -
    -
  • - -
  • - -
    - 用户 -
    -
    .icon-yonghu -
    -
  • - -
-
-

font-class 引用

-
- -

font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。

-

与 Unicode 使用方式相比,具有如下特点:

-
    -
  • 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
  • -
  • 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
  • -
-

使用步骤如下:

-

第一步:引入项目下面生成的 fontclass 代码:

-
<link rel="stylesheet" href="./iconfont.css">
-
-

第二步:挑选相应图标并获取类名,应用于页面:

-
<span class="iconfont icon-xxx"></span>
-
-
-

" - iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

-
-
-
-
-
    - -
  • - -
    搜索下拉
    -
    #icon-sousuoxiala
    -
  • - -
  • - -
    身份证
    -
    #icon-shenfenzheng
    -
  • - -
  • - -
    向左旋转
    -
    #icon-xiangzuoxuanzhuan
    -
  • - -
  • - -
    向右旋转
    -
    #icon-xiangyouxuanzhuan
    -
  • - -
  • - -
    rotate旋转2
    -
    #icon-rotatexuanzhuan2
    -
  • - -
  • - -
    rotate旋转
    -
    #icon-rotatexuanzhuan
    -
  • - -
  • - -
    旋转
    -
    #icon-xuanzhuan
    -
  • - -
  • - -
    证件
    -
    #icon-zhengjian
    -
  • - -
  • - -
    上传
    -
    #icon-shangchuan
    -
  • - -
  • - -
    关闭
    -
    #icon-guanbi1
    -
  • - -
  • - -
    预览
    -
    #icon-yulan
    -
  • - -
  • - -
    日历
    -
    #icon-rili
    -
  • - -
  • - -
    顶部logo
    -
    #icon-dingbulogo
    -
  • - -
  • - -
    微信
    -
    #icon-weixin1
    -
  • - -
  • - -
    个人中心-密码
    -
    #icon-gerenzhongxin-mima
    -
  • - -
  • - -
    绑定银行卡
    -
    #icon-bangdingyinhangka
    -
  • - -
  • - -
    个人中心
    -
    #icon-gerenzhongxin
    -
  • - -
  • - -
    账号设置
    -
    #icon-zhanghaoshezhi
    -
  • - -
  • - -
    个人中心-绑定手机
    -
    #icon-gerenzhongxin-bangdingshouji
    -
  • - -
  • - -
    实名认证
    -
    #icon-shimingrenzheng
    -
  • - -
  • - -
    工单
    -
    #icon-gongdan
    -
  • - -
  • - -
    余额
    -
    #icon-yue
    -
  • - -
  • - -
    老乡
    -
    #icon-laoxiang
    -
  • - -
  • - -
    积分
    -
    #icon-jifen
    -
  • - -
  • - -
    卡券
    -
    #icon-kaquan
    -
  • - -
  • - -
    右箭头
    -
    #icon-youjiantou
    -
  • - -
  • - -
    暂无卡券
    -
    #icon-zanwukaquan
    -
  • - -
  • - -
    睁眼
    -
    #icon-zhengyan
    -
  • - -
  • - -
    闭眼
    -
    #icon-biyan
    -
  • - -
  • - -
    中国银行
    -
    #icon-zhongguoyinhang
    -
  • - -
  • - -
    中原银行
    -
    #icon-zhongyuanyinhang
    -
  • - -
  • - -
    农业银行
    -
    #icon-nongyeyinhang
    -
  • - -
  • - -
    关闭
    -
    #icon-guanbi
    -
  • - -
  • - -
    关闭实心
    -
    #icon-guanbishixin
    -
  • - -
  • - -
    默认头像
    -
    #icon-morentouxiang
    -
  • - -
  • - -
    头像
    -
    #icon-touxiang
    -
  • - -
  • - -
    选中
    -
    #icon-xuanzhong
    -
  • - -
  • - -
    未选中
    -
    #icon-weixuanzhong
    -
  • - -
  • - -
    一个专门服务代理的平台2
    -
    #icon-yigezhuanmenfuwudailidepingtai2
    -
  • - -
  • - -
    一个专门服务代理的平台
    -
    #icon-yigezhuanmenfuwudailidepingtai
    -
  • - -
  • - -
    下拉
    -
    #icon-xiala
    -
  • - -
  • - -
    搜索
    -
    #icon-sousuo
    -
  • - -
  • - -
    短信验证
    -
    #icon-duanxinyanzheng
    -
  • - -
  • - -
    手机
    -
    #icon-shouji
    -
  • - -
  • - -
    密码
    -
    #icon-mima
    -
  • - -
  • - -
    用户名
    -
    #icon-yonghuming
    -
  • - -
  • - -
    失败
    -
    #icon-shibai
    -
  • - -
  • - -
    成功
    -
    #icon-chenggong
    -
  • - -
  • - -
    微信
    -
    #icon-weixin
    -
  • - -
  • - -
    sologan
    -
    #icon-sologan
    -
  • - -
  • - -
    定位
    -
    #icon-dingwei
    -
  • - -
  • - -
    用户
    -
    #icon-yonghu
    -
  • - -
-
-

Symbol 引用

-
- -

这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 - 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:

-
    -
  • 支持多色图标了,不再受单色限制。
  • -
  • 通过一些技巧,支持像字体那样,通过 font-size, color 来调整样式。
  • -
  • 兼容性较差,支持 IE9+,及现代浏览器。
  • -
  • 浏览器渲染 SVG 的性能一般,还不如 png。
  • -
-

使用步骤如下:

-

第一步:引入项目下面生成的 symbol 代码:

-
<script src="./iconfont.js"></script>
-
-

第二步:加入通用 CSS 代码(引入一次就行):

-
<style>
-.icon {
-  width: 1em;
-  height: 1em;
-  vertical-align: -0.15em;
-  fill: currentColor;
-  overflow: hidden;
-}
-</style>
-
-

第三步:挑选相应图标并获取类名,应用于页面:

-
<svg class="icon" aria-hidden="true">
-  <use xlink:href="#icon-xxx"></use>
-</svg>
-
-
-
- -
-
- - - diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue index 16b403f..87acb0b 100644 --- a/src/components/FirstJob/joblist.vue +++ b/src/components/FirstJob/joblist.vue @@ -261,12 +261,28 @@ ... - - {{ filterStatus == 0 ? "收起筛选" : "展开筛选" - }} - + {{ filterStatus == 0 ? "收起筛选" : "展开筛选" + }} + + + + {{sortStr}} + + +
工价优先
+
+ +
距离优先
+
+ +
服务费优先
+
+
+
@@ -392,7 +408,8 @@
{{ item.district }} {{ item.gender }} - {{ item.age }} + {{item.distanceKm}} + {{item.age}}
@@ -498,6 +515,8 @@ import { getHotStoreApi, // getCityApi, } from '../../api/job' +import $ from 'jquery' + import { moneyToFixed, getSalaryClassifyValue, isNotEmptyCheck } from '../../utils/commonUtil' import recommend from '@/components/FirstJob/components/recommend.vue' import { nationlist } from '../../utils/datalist' @@ -535,6 +554,8 @@ export default { data() { return { // jobMainList: [], // 职位列表 + sortNum: 1, // 排序的标识 + sortStr: '排序', specialList: [], // 获取的特色列表 searchValue: '', specialvalue: [], // 点中的特色标签 @@ -642,6 +663,8 @@ export default { ], }, relationList: [], + lng: '', + lat: '', } }, // 计算属性 @@ -772,6 +795,16 @@ export default { this.getCityWhichHasJob() this.getHotStore() this.hideFilterContent() + if (isNotEmptyCheck(localStorage.getItem('POSITION_INFO'))) { + let position = JSON.parse(localStorage.getItem('POSITION_INFO')) + let diffTime = new Date().getTime() - JSON.parse(localStorage.getItem('POSITION_INFO')).timestamp + if (diffTime / 3600000 > 24) { + this.getPosition() + } else { + this.lng = position.lng + this.lat = position.lat + } + } }, /** * el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。 @@ -892,8 +925,8 @@ export default { // var timestamp = new Date().getTime(); console.log(new Date().getTime() - JSON.parse(localStorage.getItem('SPECIALLIST'))) console.log(new Date(new Date().getTime() - JSON.parse(localStorage.getItem('SPECIALLIST')))) - let diffTime = new Date().getTime() - JSON.parse(localStorage.getItem('SPECIALLIST')) if (isNotEmptyCheck(localStorage.getItem('SPECIALLIST'))) { + let diffTime = new Date().getTime() - JSON.parse(localStorage.getItem('SPECIALLIST')).timestamp if (diffTime / 3600000 > 2) { console.log('======================', 'needRequest') this.getJobSpecialList().then((res) => { @@ -922,6 +955,7 @@ export default { }) } else { this.specialList = JSON.parse(localStorage.getItem('SPECIALLIST')).data + console.log(diffTime) this.specialList.forEach((item) => { if (item.typeClassify == '0') { this.tagArray0.push(item) @@ -990,7 +1024,7 @@ export default { if (data.status == 200) { let container = { data: data.data, - // timestamp: new Date().getTime(), + timestamp: new Date().getTime(), } // console.log(container.timestamp); localStorage.setItem('SPECIALLIST', JSON.stringify(container)) @@ -1400,6 +1434,63 @@ export default { } }, 0) }, + /** + * 获取当前位置信息 + * + * + */ + getPosition() { + let that = this + $.ajax({ + url: 'https://restapi.amap.com/v3/ip?key=44c6ad3624a5957505fec66f6bdd6110', + // type: "GET", + dataType: 'JSONP', + success: function (data) { + console.log(data) + let position = data.rectangle.split(';') + console.log(position) + var lng1 + var lng2 + position.forEach((item, index) => { + if (index == 0) { + lng1 = item.split(',') + } else if (index == 1) { + lng2 = item.split(',') + } + }) + + that.lng = (+lng1[0] + +lng2[0]) / 2 + that.lat = (+lng1[1] + +lng2[1]) / 2 + localStorage.setItem('POSITION_INFO', JSON.stringify({ lng: that.lng, lat: that.lat, timestamp: new Date().getTime() })) + // lng: '', + // lat: '', + // let code = cityList.find((item) => { + // return item.city == data.city + // }).code + }, + }) + }, + sortList(type) { + console.log(type) + this.formvalue.lng = '' + this.formvalue.lat = '' + if (type == 'juli') { + this.formvalue.sortTag = 2 + this.sortNum = 2 + this.sortStr = '距离' + this.formvalue.lng = this.lng + this.formvalue.lat = this.lat + } else if (type == 'fuwufei') { + this.sortNum = 3 + this.sortStr = '服务费' + this.formvalue.sortTag = 3 + } else if (type == 'price') { + this.sortNum = 1 + this.sortStr = '排序' + this.formvalue.sortTag = 1 + } + this.getJobList() + }, }, } @@ -2117,7 +2208,7 @@ export default { span i { font-size: 12px; } - > span:last-child { + .toggleFilter { height: 24px; padding: 0px 2px 0 4px; line-height: 22px; @@ -2137,6 +2228,22 @@ export default { margin-left: 2px; } } + .sort { + width: 86px; + height: 22px; + margin-left: 16px; + display: inline-block; + text-align: center; + padding: 0px 2px 0 4px; + line-height: 20px; + border: 1px solid #ededed; + background-color: #f5f5f5; + border-radius: 0px; + color: #666; + cursor: pointer; + user-select: none; + } + > span:first-child { display: flex; align-items: center; @@ -2182,6 +2289,7 @@ export default { } } } + .filter-content { overflow: hidden; // background-color: skyblue; @@ -2343,6 +2451,7 @@ export default { } } } + .nodata { overflow: hidden; height: 230px; @@ -2712,6 +2821,25 @@ export default { } } } +.sortClass { + .sortMenu { + text-align: center; + height: 46px; + line-height: 46px; + } + .ant-dropdown-menu-item { + width: 140px; + padding: 0 16px; + &:not(:last-child) { + .sortMenu { + border-bottom: 1px solid #eee; + } + } + } + .active.sortMenu { + color: #ff4400; + } +} .cityModal { .inputBox { display: flex; diff --git a/src/components/Login/login.vue b/src/components/Login/login.vue index b0ea4ab..23e608a 100644 --- a/src/components/Login/login.vue +++ b/src/components/Login/login.vue @@ -5,7 +5,7 @@ - +