zsk 3 years ago
commit 8c4333c625

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

@ -3,8 +3,8 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve --compress",
"build": "vue-cli-service build --report", "build": "vue-cli-service build",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {

@ -3,6 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-type" content="application/javascript; charset=UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- <title><%= htmlWebpackPlugin.options.title %></title> --> <!-- <title><%= htmlWebpackPlugin.options.title %></title> -->

@ -106,7 +106,9 @@
<!-- 面包屑 --> <!-- 面包屑 -->
<a-breadcrumb class="w"> <a-breadcrumb class="w">
<a-breadcrumb-item href=""> <a-breadcrumb-item href="">
<router-link to="/main"><a-icon type="home" /></router-link> <router-link to="/main">
<a-icon type="home" />
</router-link>
</a-breadcrumb-item> </a-breadcrumb-item>
<a-breadcrumb-item href=""> <a-breadcrumb-item href="">
<a @click="toList"> <a @click="toList">
@ -123,12 +125,12 @@
<div class="subset"> <div class="subset">
<a-skeleton <a-skeleton
avatar avatar
:loading="skeletonshow" active
v-if="skeletonshow" class="skeleton1"
v-show="skeletonshow"
:paragraph="{ rows: 4 }" :paragraph="{ rows: 4 }"
/> />
<div class="subsetleft" v-show="!skeletonshow">
<div class="subsetleft" v-else>
<div class="imgbox"> <div class="imgbox">
<a-carousel <a-carousel
arrows arrows
@ -262,9 +264,14 @@
<a-button type="primary" class="jobDesp">职位详单</a-button> <a-button type="primary" class="jobDesp">职位详单</a-button>
</a-popover> --> </a-popover> -->
<button class="dropdown bottombox1" @click="torecord()"> <button
class="dropdown bottombox1"
@click="torecord()"
v-if="jobDetail.recruitment == '1'"
>
报名 报名
</button> </button>
<button class="norecruitment bottombox1" v-else></button>
</div> </div>
</div> </div>
</div> </div>
@ -698,6 +705,7 @@
<p>0371-6611 3723</p> <p>0371-6611 3723</p>
</div> </div>
</div> --> </div> -->
<div class="mask" v-if="!(jobDetail.recruitment == '1')"></div>
</div> </div>
</template> </template>
<script> <script>
@ -1305,6 +1313,17 @@ export default {
// background-color: #ff791a; // background-color: #ff791a;
// } // }
// } // }
.norecruitment {
border: 1px solid #ccc;
margin-left: 16px;
color: #ccc;
cursor: default;
&:hover {
border: 1px solid #ccc;
background-color: #fff;
color: #ccc;
}
}
} }
} }
} }
@ -1692,4 +1711,14 @@ export default {
} }
} }
} }
.mask {
position: fixed;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.06);
top: 0;
left: 0;
z-index: 999;
pointer-events: none;
}
</style> </style>

@ -40,8 +40,8 @@
v-model="cityValue" v-model="cityValue"
@keyup.enter="searchCity" @keyup.enter="searchCity"
@input="resetCityList" @input="resetCityList"
></a-input ></a-input>
><a-button @click="searchCity"></a-button> <a-button @click="searchCity"></a-button>
</div> </div>
<ul class="firstList"> <ul class="firstList">
<li @click="[(currentCityList = hotCityList), (activeInd = -1)]"> <li @click="[(currentCityList = hotCityList), (activeInd = -1)]">
@ -383,8 +383,8 @@
} }
" "
></a-input ></a-input
><span class="middle-line"> - </span ><span class="middle-line"> - </span>
><a-input <a-input
class="ageinput" class="ageinput"
v-model="maxMonthlyPay" v-model="maxMonthlyPay"
type="text" type="text"
@ -537,7 +537,14 @@
<!-- </div> --> <!-- </div> -->
<div v-if="!isspinning"> <div v-if="!isspinning">
<div class="subset" v-for="(item, index) in jobMainList" :key="index"> <div
class="subset"
v-for="(item, index) in jobMainList"
:key="index"
:style="{
background: item.recruitment == '1' ? '#fff' : '#f5f5f5',
}"
>
<router-link <router-link
target="_blank" target="_blank"
:to=" :to="
@ -642,12 +649,25 @@
" "
rel="opener" rel="opener"
> >
<button type="primary" class="jobDesp"> <button
type="primary"
class="jobDesp"
:style="{
background: item.recruitment == '1' ? '#fff' : '#f5f5f5',
}"
>
更多 更多
</button></router-link </button>
> </router-link>
<!-- </a-popover> --> <!-- </a-popover> -->
<button @click="torecord(item)"></button> <button
class="apply"
@click="torecord(item)"
v-if="item.recruitment == '1'"
>
报名
</button>
<button class="norecruitment" v-else></button>
<!-- <button @click="showmodal(item)" @click="">报名</button> --> <!-- <button @click="showmodal(item)" @click="">报名</button> -->
</div> </div>
@ -2787,7 +2807,7 @@ export default {
} }
} }
> button:last-child { .apply {
margin-left: 16px; margin-left: 16px;
border: 1px solid #ff4400; border: 1px solid #ff4400;
background-color: #fff; background-color: #fff;
@ -2801,6 +2821,13 @@ export default {
} }
} }
} }
.norecruitment {
background-color: #f5f5f5;
border: 1px solid #ccc;
margin-left: 16px;
color: #ccc;
}
} }
// .pagecontainer { // .pagecontainer {
// display: flex; // display: flex;

@ -177,9 +177,9 @@ export default {
return { return {
isshow: false, isshow: false,
imglist: [ imglist: [
"http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner1.png", "http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner1.webp",
"http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner2.png", "http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner2.webp",
"http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner3.png", "http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/newBanner/banner3.webp",
], ],
cooperativeImg: [], cooperativeImg: [],
isLogin: false, isLogin: false,
@ -399,7 +399,7 @@ export default {
padding-top: 100px; padding-top: 100px;
// padding-bottom: 96px; // padding-bottom: 96px;
height: 740px; height: 740px;
background: url("http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/cooperativeBrandBg.png") background: url("http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/cooperativeBrandBg.webp")
no-repeat 100%; no-repeat 100%;
.content { .content {
ul { ul {
@ -456,7 +456,7 @@ export default {
justify-content: center; justify-content: center;
padding: unset; padding: unset;
height: 445px; height: 445px;
background: url("http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/relationUsBg.png") background: url("http://matripe.oss-cn-beijing.aliyuncs.com/yishoudan/relationUsBg.webp")
no-repeat 100% 100%; no-repeat 100% 100%;
// padding-bottom: 126px; // padding-bottom: 126px;

@ -1326,6 +1326,8 @@ export function disposeJobListData(jobList) {
item.servetype = `${item.returnFee || "--"}元/公斤`; item.servetype = `${item.returnFee || "--"}元/公斤`;
} else if (item.returnFeeType === 5) { } else if (item.returnFeeType === 5) {
item.servetype = `工人收入${item.returnFee || "--"}%`; item.servetype = `工人收入${item.returnFee || "--"}%`;
} else if (item.returnFeeType === 6) {
item.servetype = `${item.returnFee || "--"}`;
} }
// console.log(item); // console.log(item);
// item["returnFee"] = item.returnFee / 100; // item["returnFee"] = item.returnFee / 100;
@ -1511,6 +1513,8 @@ export function disposeJobListData(jobList) {
jobList.servetype = `${jobList.returnFee || "--"}元/公斤`; jobList.servetype = `${jobList.returnFee || "--"}元/公斤`;
} else if (jobList.returnFeeType === 5) { } else if (jobList.returnFeeType === 5) {
jobList.servetype = `工人收入${jobList.returnFee || "--"}%`; jobList.servetype = `工人收入${jobList.returnFee || "--"}%`;
} else if (jobList.returnFeeType === 6) {
jobList.servetype = `${jobList.returnFee || "--"}`;
} }
} else { } else {
jobList.servetype = `${jobList.returnFee || "--"}元/小时`; jobList.servetype = `${jobList.returnFee || "--"}元/小时`;
@ -1786,7 +1790,7 @@ export function agencyPermissionArray() {
* 根据代理权限ID获取名称 * 根据代理权限ID获取名称
*/ */
export function getAgencyPermissionNameById(permissionStr) { export function getAgencyPermissionNameById(permissionStr) {
let str = ""; // let str = "";
let array = agencyPermissionArray(); let array = agencyPermissionArray();
let names = []; let names = [];
let permissions = permissionStr.split(","); let permissions = permissionStr.split(",");

@ -83,10 +83,11 @@
<div> <div>
<span <span
><i class="iconfont icon-gerenzhongxin"></i>个人中心</span ><i class="iconfont icon-gerenzhongxin"></i>个人中心</span
><i class="iconfont icon-youjiantou"></i></div ><i class="iconfont icon-youjiantou"></i>
></router-link> </div>
<router-link to="/memberInfo" </router-link>
><div> <router-link to="/memberInfo">
<div>
<span <span
><i class="iconfont icon-zhanghaoshezhi"></i ><i class="iconfont icon-zhanghaoshezhi"></i
>成员管理</span >成员管理</span
@ -109,8 +110,8 @@
<!-- <router-link to="/register">注册</router-link>/ --> <!-- <router-link to="/register">注册</router-link>/ -->
<router-link to="/login" <router-link to="/login"
><button style="cursor: pointer">登录</button></router-link ><button style="cursor: pointer">登录</button></router-link
></span >
> </span>
</span> </span>
<!-- <span class="navigationright"> <!-- <span class="navigationright">
<ul> <ul>

@ -1,8 +1,8 @@
"use strict"; "use strict";
const path = require("path"); const path = require("path");
const defaultSettings = require("./src/settings.js"); const defaultSettings = require("./src/settings.js");
// const webpack = require("webpack"); const webpack = require("webpack");
// const CompressionPlugin = require("compression-webpack-plugin"); const CompressionPlugin = require("compression-webpack-plugin");
// const zlib = require("zlib"); // const zlib = require("zlib");
function resolve(dir) { function resolve(dir) {
return path.join(__dirname, dir); return path.join(__dirname, dir);
@ -21,6 +21,7 @@ module.exports = {
productionSourceMap: false, productionSourceMap: false,
devServer: { devServer: {
// 配置反向代理 // 配置反向代理
compress: true, // 配置webpack的压缩,但是在package.json中需要配置 --compress
port: port, port: port,
open: true, open: true,
overlay: { overlay: {
@ -92,31 +93,32 @@ module.exports = {
"@ant-design/icons/lib/dist.$": resolve("src/icons.js"), "@ant-design/icons/lib/dist.$": resolve("src/icons.js"),
}, },
}, },
// plugins: [ plugins: [
// new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), // new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// // 下面两项配置才是 compression-webpack-plugin 压缩配置 // // 下面两项配置才是 compression-webpack-plugin 压缩配置
// // 压缩成 .gz 文件 // // 压缩成 .gz 文件
// new CompressionPlugin({ // new CompressionPlugin({
// filename: '[path][base].gz', // algorithm: "gzip",
// algorithm: 'gzip', // test: /\.js$|\.html$|\.css/, //匹配文件名
// test: /\.js$|\.css$|\.html$/, // threshold: 10240,
// threshold: 10240, // minRatio: 0.8,
// minRatio: 0.8 // deleteOriginalAssets: false, // 是否删除源文件
// }), // }),
// // 压缩成 .br 文件,如果 zlib 报错无法解决,可以注释这段使用代码,一般本地没问题,需要注意线上服务器会可能发生找不到 zlib 的情况。 // 压缩成 .br 文件,如果 zlib 报错无法解决,可以注释这段使用代码,一般本地没问题,需要注意线上服务器会可能发生找不到 zlib 的情况。
// new CompressionPlugin({ // new CompressionPlugin({
// filename: '[path][base].br', // filename: '[path].br',
// algorithm: 'brotliCompress', // algorithm: 'brotliCompress',
// test: /\.(js|css|html|svg)$/, // test: /\.(js|css|html|svg)$/,
// compressionOptions: { // compressionOptions: {
// params: { // params: {
// [zlib.constants.BROTLI_PARAM_QUALITY]: 11 // [zlib.constants.BROTLI_PARAM_QUALITY]: 11
// } // }
// }, // },
// threshold: 10240, // threshold: 10240,
// minRatio: 0.8 // minRatio: 0.8,
// }) // deleteOriginalAssets: true //是否删除原文件
// ], // })
],
// }, // },
optimization: { optimization: {
runtimeChunk: "single", runtimeChunk: "single",

Loading…
Cancel
Save