Browse Source

上传修改

master
前端-胡立永 2 months ago
parent
commit
71595335a8
11 changed files with 231 additions and 21 deletions
  1. +128
    -0
      components/base/navbar - 副本.vue
  2. +22
    -7
      components/base/navbar.vue
  3. +1
    -0
      components/list/bossList/bossItem.vue
  4. +5
    -0
      main.js
  5. +43
    -0
      mixins/configList.js
  6. +7
    -0
      pages/index/center.vue
  7. +3
    -2
      pages/index/index.vue
  8. +2
    -2
      pages_order/mine/setting.vue
  9. +3
    -1
      pages_order/work/userDetail.vue
  10. +3
    -1
      pages_order/work/workDetail.vue
  11. +14
    -8
      uni_modules/uv-drop-down/components/uv-drop-down-popup/uv-drop-down-popup.vue

+ 128
- 0
components/base/navbar - 副本.vue View File

@ -0,0 +1,128 @@
<template>
<!-- <view class="navbar"
:style="{backgroundColor : bgColor}"> -->
<view class="title"
:style="{backgroundColor : bgColor,color}">
<view class="left">
<uv-icon name="arrow-left"
v-if="leftClick"
@click="$emit('leftClick')"
:color="color" size="46rpx"></uv-icon>
</view>
<view>{{ title }}</view>
<view class="icon">
<uv-icon name="search"
v-if="isSearch"
:color="color" size="58rpx"></uv-icon>
<uv-icon name="plus-circle" :color="color"
v-if="isPlus"
@click="plusCircleShow = true"
size="46rpx" style="margin-left: 30rpx;"></uv-icon>
<view v-if="moreClick" style="margin-left: 30rpx;">
<uv-icon name="more-dot-fill" :color="color"
v-if="!moreText"
@click="moreClick()"
size="46rpx"></uv-icon>
<view v-else @click="moreClick"
style="font-weight: 400;font-size: 30rpx;">
{{ moreText }}
</view>
</view>
</view>
</view>
<!-- </view> -->
</template>
<script>
export default {
name:"navbar",
props : {
title : {
type : String,
default : ''
},
leftClick : {
type : Boolean,
},
moreClick : {
type : Function,
},
isSearch : {
type : Boolean,
default : false,
},
isPlus : {
type : Boolean,
default : false,
},
moreText : {
},
bgColor : {
default : '#F9FEFE'
},
color : {
default : '#333'
}
},
created() {
},
beforeDestroy() {
},
data() {
return {
};
},
methods : {
}
}
</script>
<style lang="scss" scoped>
// .navbar{
// width: 100%;
// height: 120rpx;
// padding-top: var(--status-bar-height);
// }
.title{
position: sticky;
top: 0;
left: 0;
padding-top: calc(var(--status-bar-height) + 20rpx);
width: 100%;
height: 100rpx;
background-color: #F9FEFE;
display: flex;
justify-content: center;
font-size: 32rpx;
align-items: center;
z-index: 99999;
.left{
position: absolute;
left: 40rpx;
display: flex;
justify-content: flex-start;
}
.icon{
position: absolute;
right: 40rpx;
display: flex;
justify-content: flex-end;
}
}
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>

+ 22
- 7
components/base/navbar.vue View File

@ -4,25 +4,31 @@
<view class="title"
:style="{backgroundColor : bgColor,color}">
<view class="left">
<uv-icon name="home"
v-if="leftClick && length == 1"
@click="toHome"
:color="color" size="46rpx"></uv-icon>
<uv-icon name="arrow-left"
v-if="leftClick"
v-else-if="leftClick"
@click="$emit('leftClick')"
:color="color" size="46rpx"></uv-icon>
:color="color" size="46rpx"></uv-icon>
</view>
<view>{{ title }}</view>
<view class="icon">
<uv-icon name="search"
v-if="isSearch"
:color="color" size="58rpx"></uv-icon>
:color="color" size="58rpx"></uv-icon>
<uv-icon name="plus-circle" :color="color"
<uv-icon name="plus-circle" :color="color"
v-if="isPlus"
@click="plusCircleShow = true"
size="46rpx" style="margin-left: 30rpx;"></uv-icon>
<view v-if="moreClick" style="margin-left: 30rpx;">
<uv-icon name="more-dot-fill" :color="color"
<uv-icon name="more-dot-fill" :color="color"
v-if="!moreText"
@click="moreClick()"
size="46rpx"></uv-icon>
@ -63,7 +69,7 @@
},
bgColor : {
default : '#F9FEFE'
default : '#fff'
},
color : {
default : '#333'
@ -75,9 +81,18 @@
},
data() {
return {
length : getCurrentPages().length
};
},
methods : {
toHome(){
if(this.length != 1){
return
}
uni.reLaunch({
url: '/pages/index/index'
})
}
}
}
</script>
@ -96,7 +111,7 @@
padding-top: calc(var(--status-bar-height) + 20rpx);
width: 100%;
height: 100rpx;
background-color: #F9FEFE;
background-color: #fff;
display: flex;
justify-content: center;
font-size: 32rpx;


+ 1
- 0
components/list/bossList/bossItem.vue View File

@ -20,6 +20,7 @@
</view>
</view>
<view class="item"
:key="index"
v-for="(t, index) in item.employJobList">
<view class="top">
<view class="title">


+ 5
- 0
main.js View File

@ -14,6 +14,11 @@ import store from '@/store/store'
import './config'
import './utils/index.js'
import mixinConfigList from '@/mixins/configList.js'
Vue.mixin(mixinConfigList)
//组件注册
import configPopup from '@/components/config/configPopup.vue'
import navbar from '@/components/base/navbar.vue'


+ 43
- 0
mixins/configList.js View File

@ -0,0 +1,43 @@
import { mapState } from 'vuex'
export default {
data() {
return {
// 默认的全局分享内容
Gshare: {
title: '特易招',
path: '/pages/index/index', // 全局分享的路径,比如 首页
// imageUrl: '/static/image/login/logo.png', // 全局分享的图片(可本地可网络)
}
}
},
computed: {
...mapState(['configList', 'userInfo', 'role']),
},
// 定义全局分享
// 1.发送给朋友
onShareAppMessage(res) {
let o = {
...this.Gshare,
// title : this.configList.logo_name,
}
if(this.userInfo.id){
o.path = this.Gshare.path + '?shareId=' + this.userInfo.id
}
return o
},
//2.分享到朋友圈
onShareTimeline(res) {
let o = {
...this.Gshare,
// title : this.configList.logo_name,
}
if(this.userInfo.id){
o.path = this.Gshare.path + '?shareId=' + this.userInfo.id
}
return o
},
methods: {
}
}

+ 7
- 0
pages/index/center.vue View File

@ -94,6 +94,13 @@
我的工作
</view>
<uv-grid :col="4" :border="false">
<uv-grid-item
v-if="!role"
@click="$utils.navigateTo('/pages_order/mine/releaseWork')">
<image class="image" src="/static/image/center/a1.png" mode=""></image>
<text class="grid-text">在线简历</text>
</uv-grid-item>
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/releaseWork')">
<image class="image" src="/static/image/center/a1.png" mode=""></image>
<text class="grid-text">{{ role ? '我的招工' : '我的找活'}}</text>


+ 3
- 2
pages/index/index.vue View File

@ -48,7 +48,8 @@
<workList ref="workList" v-else/>
<view class="box"
@click="toAdd">
@click="toAdd"
v-if="role">
<view class="left">
发布
</view>
@ -56,7 +57,7 @@
<image src="/static/image/home/c.png" mode=""></image>
</view>
<view class="right">
{{ role ? '招工' : '找活' }}
招工
</view>
</view>


+ 2
- 2
pages_order/mine/setting.vue View File

@ -7,7 +7,7 @@
<view class="content">
<view class="title">账号设置</view>
<uv-cell
<!-- <uv-cell
icon="coupon"
title="切换账号"
isLink
@ -18,7 +18,7 @@
<image src="../static/setting/1.png" mode=""
style="width: 30rpx;height: 30rpx;"></image>
</template>
</uv-cell>
</uv-cell> -->
<uv-cell
icon="coupon"


+ 3
- 1
pages_order/work/userDetail.vue View File

@ -99,7 +99,9 @@
<uv-parse :content="detail.brief"></uv-parse>
</view>
<view class="tag-list">
<view v-for="(t, i) in detail.tag && detail.tag.split('、')">
<view
:key="i"
v-for="(t, i) in detail.tag && detail.tag.split('、')">
{{ t }}
</view>
</view>


+ 3
- 1
pages_order/work/workDetail.vue View File

@ -74,7 +74,9 @@
</view>
<view class="tag-list">
<view v-for="(t, i) in detail.tab && detail.tab.split('、')">
<view
:key="i"
v-for="(t, i) in detail.tab && detail.tab.split('、')">
{{ t }}
</view>
</view>


+ 14
- 8
uni_modules/uv-drop-down/components/uv-drop-down-popup/uv-drop-down-popup.vue View File

@ -1,14 +1,19 @@
<template>
<view class="uv-drop-down-popup">
<view class="uv-drop-down-popup"
>
<uv-transition :show="show" mode="fade" :duration="300" :custom-style="overlayStyle" @click="clickOverlay">
<view class="uv-dp__container" ref="uvDPContainer" :style="{height: `${height}px`}" @click.stop="blockClick">
<view class="uv-dp__container__list" ref="uvDPList">
<slot>
<view class="uv-dp__container__list--item" v-for="(item,index) in list" :key="index" @click="clickHandler(item,index)" :style="[itemCustomStyle(index)]">
<uv-text :text="item[keyName]" :size="getTextSize(index)" :color="getTextColor(index)"></uv-text>
</view>
</slot>
</view>
<scroll-view
style="height: 100%;"
scroll-y="true">
<view class="uv-dp__container__list" ref="uvDPList">
<slot>
<view class="uv-dp__container__list--item" v-for="(item,index) in list" :key="index" @click="clickHandler(item,index)" :style="[itemCustomStyle(index)]">
<uv-text :text="item[keyName]" :size="getTextSize(index)" :color="getTextColor(index)"></uv-text>
</view>
</slot>
</view>
</scroll-view>
</view>
</uv-transition>
</view>
@ -233,6 +238,7 @@
transition: all .15s;
/* #endif */
background-color: #fff;
max-height: 40vh;
}
.uv-dp__container__list {
&--item {


Loading…
Cancel
Save