push

parent aab3fdf3
......@@ -9,6 +9,7 @@
<view class="title">
<img src="@/static/image/icon/login.png" alt="" />
<text class="t2">安全、便捷的就业、创业服务平台</text>
<view class="title-label">用户端</view>
</view>
<view class="box">
<text class="box-text">观山湖区人力资源和社会保障局</text>
......@@ -90,6 +91,15 @@ const login = () => {
color: #1b2026;
margin-top: 28rpx;
}
.title-label{
font-size: 20rpx;
width: 124rpx;
padding: 12rpx 28rpx;
color: #FFFFFF;
background: rgba(0, 102, 223, 0.7);
border-radius: 40rpx;
margin: 28rpx auto;
}
}
.box {
position: fixed;
......
......@@ -15,13 +15,13 @@
<!-- <image mode="widthFix" wx:if="{{partTimeJobData.logoPath}}" src="{{videosrc}}{{partTimeJobData.logoPath}}"></image> -->
<image v-if="partTimeJobData.logoPath" src="@/static/image/temp/test.jpg"></image>
<image v-else src="@/static/image/temp/test.jpg"></image>
<image v-else src="@/static/image/temp/test.png"></image>
</view>
<view>
<view class="pos-name">{{ partTimeJobData.name }}</view>
<view class="cos-position">
<!-- <text>{{partTimeJobData.placeCityName}}</text> -->
<text>{{ partTimeJobData.location?.split('-')[1] }}</text>
<text>{{ partTimeJobData.location?.split("-")[1] }}</text>
<text class="margin-8">|</text>
<text>{{ partTimeJobData.jobVacancies }}个在招职位</text>
</view>
......@@ -52,7 +52,7 @@
<text class="text">公司介绍</text>
</view>
<view class="pos-duty activeClass">
<text>{{ partTimeJobData.introduction || '无'}}</text>
<text>{{ partTimeJobData.introduction || "无" }}</text>
</view>
</view>
<!-- 公司基本信息 -->
......@@ -91,13 +91,15 @@
class="pos-recommend"
:style="`top:${activeRecommend ? top : recommendTop}px`"
v-if="partTimeJobData.positionList?.length"
@touchstart="onTouchStart"
@touchmove="onTouchMove"
@touchend="onTouchEnd"
>
<view class="title">
<view>
</view>
<view class="title" @touchstart="onTouchStart" @touchmove="onTouchMove" @touchend="onTouchEnd">
<view style="width: 100rpx;height: 5rpx;background-color: rgb(26 138 250 / 100%);margin: 0 auto;position: relative;top: -20rpx;border-radius: 100%;"></view>
<text class="text"
>公司在招职位<text class="num">{{ partTimeJobData.positionList.length }}</text></text
>公司在招职位<text class="num"> {{ partTimeJobData.positionList.length }}</text></text
>
</view>
<!-- <scroll-view scroll-x="{{true}}" class="pos-select">
......@@ -113,7 +115,7 @@
</view>
</scroll-view> -->
<!-- 职位列表 -->
<scroll-view scroll-y="{{true}}" class="recommend-list-wrap">
<scroll-view scroll-y="{{true}}" catchtouchmove class="recommend-list-wrap">
<block v-for="(item, index) in partTimeJobData.positionList" :key="index">
<view class="card-wrap">
<PostionCard1 :data="item"></PostionCard1>
......@@ -148,6 +150,7 @@ const recommendTop = ref(0);
const top = ref(0);
const onTouchStart = e => {
swipeHandler.onTouchStart(e);
console.log('打印',e);
};
const onTouchMove = e => {
swipeHandler.onTouchMove(e);
......@@ -877,9 +880,10 @@ const navigationSelect = ({ item }) => {
font-weight: 600;
color: #1b2026;
.num {
font-size: 24rpx;
font-size: 32rpx;
font-weight: 500;
color: #4e5969;
margin-left: 10rpx;
}
}
}
......@@ -962,7 +966,7 @@ const navigationSelect = ({ item }) => {
}
.recommend-list-wrap {
// flex-grow: 1;
height: 780rpx;
height: calc(100% - 500rpx);
.card-wrap {
padding: 32rpx;
border-bottom: 1px solid #f3f4f8;
......
......@@ -108,7 +108,7 @@
v-for="(item, index) in identityData"
:key="item.code"
@tap="choiceDetails(3,item, index)"
>{{ item.text }}{{ item.text }}</view
>{{ item.text }}</view
>
</view>
<view class="title">职位类型</view>
......
......@@ -107,7 +107,7 @@
bindtap="bindNavCompany"
>
<view class="cosimage">
<img src="@/static/image/temp/test.jpg" />
<img src="@/static/image/temp/test.png" />
</view>
<view>
<view class="cos-title">
......
......@@ -7,7 +7,8 @@
<view class="avatar">
<!-- <img v-if="avatarPath" :src="evn.APP_IMAGE_BASE_API + avatarPath" />
<img v-else src="@/static/image/user/default-avatar.png" alt="" /> -->
<img src="@/static/image/user/default-avatar.png" alt="" />
<img v-if="sex === 2" src="@/static/image/user/default-avatar-nv.png" alt="" />
<img v-else src="@/static/image/user/default-avatar-nan.png" alt="" />
</view>
<view class="name">
<text >{{ realName || "姓名" }}</text>
......@@ -112,13 +113,16 @@ const navList = [
const realName = ref("");
const avatarPath = ref("");
const schoolName = ref("");
const sex = ref(null);
const educationLevelText = ref("");
/* 获取用户信息 */
const getUserInfo = () => {
getLoginUserApi().then(async res => {
const { avatarPath: _avatarPath, name: _realName, education } = res.data;
const { avatarPath: _avatarPath, name: _realName, education,sex:_sex } = res.data;
realName.value = _realName || null;
avatarPath.value = _avatarPath || null;
sex.value = _sex || null;
console.log('sex.value',sex.value);
/* this.setData({
avatarPath,
realName,
......
......@@ -25,7 +25,9 @@
</view>
<!-- <img class="avatar" v-if="userInfo.avatarPath" :src="evn.APP_IMAGE_BASE_API + userInfo.avatarPath" />
<img class="avatar" v-else src="@/static/image/user/default-avatar.png" /> -->
<img class="avatar" src="@/static/image/user/default-avatar.png" />
<!-- <img class="avatar" src="@/static/image/user/default-avatar.png" /> -->
<img class="avatar" v-if="userInfo.sex === 2" src="@/static/image/user/default-avatar-nv.png" />
<img class="avatar" v-else src="@/static/image/user/default-avatar-nan.png" />
</view>
<view class="my-info-list flex-column">
<view class="my-info-title label">
......
......@@ -14,7 +14,9 @@
</view>
<!-- <image v-if="resumeData.avatarPath" class="avatar" :src="evn.APP_IMAGE_BASE_API + resumeData.avatarPath" mode="" /> -->
<!-- <image v-else class="avatar" src="@/static/image/user/default-avatar.png" mode="" /> -->
<image class="avatar" src="@/static/image/user/default-avatar.png" mode="" />
<!-- <img class="avatar" src="@/static/image/user/default-avatar.png" mode="" /> -->
<img class="avatar" v-if="resumeData.sex === 2" src="@/static/image/user/default-avatar-nv.png" />
<img class="avatar" v-else src="@/static/image/user/default-avatar-nan.png" />
</view>
<!-- 个人信息 -->
<view class="basics" v-if="userInfoActive.workAge">
......
......@@ -19,7 +19,7 @@ class SwipeHandler {
this.endY = e.changedTouches[0].clientY;
this.endTime = Date.now();
const distanceThreshold = 50; // 设置滑动距离阈值,单位:像素
const distanceThreshold = 10; // 设置滑动距离阈值,单位:像素
const timeThreshold = 200; // 设置时间阈值,单位:毫秒
const distance = this.startY - this.endY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment