master
wangxia 2 years ago
commit 7c06fffe53

@ -26,10 +26,6 @@ Page({
goMap () { goMap () {
console.log("123") console.log("123")
let that = this let that = this
wx.getLocation({
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
success (res) {
console.log(res);
wx.openLocation({ wx.openLocation({
latitude: Number(that.data.storeInfo.lat), latitude: Number(that.data.storeInfo.lat),
longitude: Number(that.data.storeInfo.lng), longitude: Number(that.data.storeInfo.lng),
@ -38,11 +34,6 @@ Page({
scale: 18 scale: 18
}) })
}, },
fail (res) {
console.log(res)
}
})
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */

@ -68,6 +68,24 @@ Page({
showfixToast:false, showfixToast:false,
current:0, current:0,
}, },
showVideo (e) {
console.log(e.target.dataset.id);
console.log(wx.getSystemInfo());
var that = this;
this.videoContext = wx.createVideoContext(`${e.target.dataset.id}`, this);
this.videoContext.requestFullScreen();
this.videoContext.hideStatusBar();
this.videoContext.play();
// setTimeout(() => {
// that.setData({
// isShareShow: true,
// });
// }, 500);
},
fullScreen(){
this.videoContext.stop();
},
doNothing(){}, doNothing(){},
closeFix(){ closeFix(){
this.setData({ this.setData({

@ -1,15 +1,18 @@
<view class="bt1"> <view class="bt1">
<scroll-view id="listBox" style="height: calc(100vh - constant(safe-area-inset-bottom) - 64px);height: calc(100vh - env(safe-area-inset-bottom) - 64px);padding-bottom: 30px;" scroll-y="{{true}}"> <scroll-view id="listBox" style="height: calc(100vh - constant(safe-area-inset-bottom) - 64px);height: calc(100vh - env(safe-area-inset-bottom) - 64px);padding-bottom: 30px;" scroll-y="{{true}}">
<view class="p20 pt12 pb10" id="tocanvas"> <view class="p20 pt12 pb10" id="tocanvas">
<view class="v-center"> <view class="v-center">
<view class="jobTitle">{{jobDetail.jobName}}</view> <view class="jobTitle">
{{jobDetail.jobName}}
</view>
</view> </view>
<view class="display-flex mt12"> <view class="display-flex mt12">
<view class="display-flex flex-1"> <view class="display-flex flex-1">
<!-- <view> <!-- <view>
<image class="tImage" wx:if="{{jobDetail.store.logo != null && jobDetail.store.logo != ''}}" mode="aspectFit" src="{{jobDetail.store.logo}}"></image> <image class="tImage" wx:if="{{jobDetail.store.logo != null && jobDetail.store.logo != ''}}" mode="aspectFit" src="{{jobDetail.store.logo}}"></image>
<image class="tImage" wx:else mode="aspectFit" src="https://matripe.oss-cn-beijing.aliyuncs.com/default.png"></image> <image class="tImage" wx:else mode="aspectFit" src="https://matripe.oss-cn-beijing.aliyuncs.com/default.png"></image>
</view>--> </view> -->
<view class="flex-1 vsb"> <view class="flex-1 vsb">
<view class="f14s c045 mb4"> <view class="f14s c045 mb4">
<!-- 深圳丨龙岗区丨16-35岁 --> <!-- 深圳丨龙岗区丨16-35岁 -->
@ -25,11 +28,12 @@
<view class="tr"> <view class="tr">
<view class="jobMoney color-f40"> <view class="jobMoney color-f40">
<!-- {{jobDetail.combiSalary}} --> <!-- {{jobDetail.combiSalary}} -->
{{jobDetail.hourlyPay || '--'}} <!-- {{jobDetail.hourlyPay || '--'}} -->
{{jobDetail.monthlyPay || '--'}}元/月
</view> </view>
<view class="f14s c633 mt10 color-f40"> <view class="f14s c633 mt10 color-f40">
<!-- 5200-8400 --> <!-- 5200-8400 -->
{{jobDetail.monthlyPay || '--'}} <!-- {{jobDetail.monthlyPay || '--'}} -->
</view> </view>
</view> </view>
</view> </view>
@ -45,8 +49,8 @@
<view class="tagsLi" tyle="color:{{labelColor[index % labelColor.length]}};background-color:{{bgColor[index % bgColor.length]}};" wx:for="{{jobDetail.jobRequestLabelNames}}" wx:for-item="item1" wx:key="index">{{item1}}</view> <view class="tagsLi" tyle="color:{{labelColor[index % labelColor.length]}};background-color:{{bgColor[index % bgColor.length]}};" wx:for="{{jobDetail.jobRequestLabelNames}}" wx:for-item="item1" wx:key="index">{{item1}}</view>
</view> </view>
</view> </view>
</view> </view>
<view class="mg020 pb10 bb1 v-center" bindtap="toMapChoice" data-address="{{jobDetail}}"> <view class="mg020 pb10 bb1 v-center" bindtap="toMapChoice" data-address="{{jobDetail}}">
<view> <view>
<i class="iconfont icon-dizhi11 f18 mr10 lh1" style="color:var(--color-ysd);"></i> <i class="iconfont icon-dizhi11 f18 mr10 lh1" style="color:var(--color-ysd);"></i>
</view> </view>
@ -54,24 +58,32 @@
<view> <view>
<i class="iconfont icon-gengduo11 f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i> <i class="iconfont icon-gengduo11 f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
</view> </view>
</view> </view>
<view class="p016 mt12" wx:if="{{images.length > 0}}"> <view class="p016 mt12" wx:if="{{images.length > 0}}">
<block wx:for="{{images}}" wx:for-item="item" wx:key="index"> <block wx:for="{{images}}" wx:for-item="item" wx:key="index">
<image src="{{item.url}}" bind:tap="showImage" data-src="{{item.url}}" class="img5" mode /> <image src="{{item.url}}" bind:tap="showImage" wx:if="{{item.isImg}}" data-src="{{item.url}}" class="img5" mode=""/>
</block> <view class="videoContainer" data-id="{{item.id}}" hover-class="none" catchtap="showVideo" hover-stop-propagation="false" wx:if="{{!item.isImg && item.url}}" style="display:inline-block">
<video class="img5" id="{{item.id}}" data-id="{{item.id}}" src="{{item.url}}" show-fullscreen-btn="{{true}}" show-play-btn="{{true}}" show-center-play-btn="{{true}}" enable-play-gesture="{{true}}" bindfullscreenchange="fullScreen">
</video>
</view> </view>
</block>
</view>
<view class="p020"> <view class="p020">
<view class="f14"> <view class="f14">
<block wx:if="{{currIndex == '1'}}"> <block wx:if="{{currIndex == '1'}}">
<view> <view>
<view class="detailH3"> <view class="detailH3">
<view class="fl mr12" style="width: 4px;height: 19px;background: #0dcc91;border-radius: 2px;"></view>职位描述 <view class="fl mr12" style="width: 4px;height: 19px;background: #0dcc91;border-radius: 2px;"></view>
</view>
职位描述</view>
<view class="pri f16" style="line-height:24px;padding:3px 0px;border-radius: 4px;color:#777;">{{jobDetail.jobInfo}}</view> <view class="pri f16" style="line-height:24px;padding:3px 0px;border-radius: 4px;color:#777;">{{jobDetail.jobInfo}}</view>
</view> </view>
<view style="height: 40px;"></view> <view style="height: 40px;"></view>
</block> </block>
<block wx:if="{{currIndex == '2'}}"> <block wx:if="{{currIndex == '2'}}">
<view class="detailH3">面试</view> <view class="detailH3">面试</view>
@ -226,25 +238,28 @@
<view style="white-space: pre-line;"> {{djxx}}</view> <view style="white-space: pre-line;"> {{djxx}}</view>
</view> </view>
</view>--> </view>-->
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view class="bottomBtn" style="height:calc(constant(safe-area-inset-bottom) + 64px);height:calc(env(safe-area-inset-bottom) + 64px);"> <view class="bottomBtn" style="height:calc(constant(safe-area-inset-bottom) + 64px);height:calc(env(safe-area-inset-bottom) + 64px);">
<view class="norecruit" wx:if="{{isMaskShow}}">该职位暂时停招</view> <view class="norecruit" wx:if="{{isMaskShow}}">该职位暂时停招</view>
<view class="fsa tc bottomBox"> <view class="fsa tc bottomBox">
<!-- <view style="width: 56px;padding-left: 8px;" bindtap="showphone"> <!-- <view style='width: 56px;padding-left: 8px;' bindtap='showphone'>
<view style="position:relative;top:2px;"> <view style="position:relative;top:2px;">
<icon class="iconfont icon-dianhua2 lh1" style="color:#787878;font-size:18px;position:relative;top:1px"></icon> <icon class="iconfont icon-dianhua2 lh1" style="color:#787878;font-size:18px;position:relative;top:1px"></icon>
<view class="btext" style="margin-top:2px;">电话</view> <view class="btext" style="margin-top:2px;">电话</view>
</view> </view>
</view> </view>
<view style="width: 56px;padding-right: 10px;" bindtap="textPaste"> <view style='width: 56px;padding-right: 10px;' bindtap="textPaste">
<view style="position:relative;top:2px;"> <view style="position:relative;top:2px;">
<icon class="iconfont icon-weixin lh1" style="color:#787878;font-size:18px;"></icon> <icon class="iconfont icon-weixin lh1" style="color:#787878;font-size:18px;">
</icon>
<view class="btext" style="margin-top:2px;">微信</view> <view class="btext" style="margin-top:2px;">微信</view>
</view> </view>
</view> --> </view> -->
<view class="flex-1 pr16 pl16" wx:if="{{!isMaskShow}}"> <view class="flex-1 pr16 pl16" wx:if="{{!isMaskShow}}">
<button type class="loginOut" bindtap="goNewEnroll" data-job="{{jobDetail}}">立即报名</button> <button type class="loginOut" bindtap="goNewEnroll" data-job="{{jobDetail}}">立即报名</button>
<!-- <button wx:else type="" class="detailBtn" hover-class="button-hover" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" catchtap="emptyMethod">立即报名</button> --> <!-- <button wx:else type="" class="detailBtn" hover-class="button-hover" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" catchtap="emptyMethod">立即报名</button> -->

@ -63,8 +63,17 @@ Page({
}) })
}, },
goDetail (e) { goDetail (e) {
console.log(e.currentTarget.dataset.id);
var that = this; var that = this;
console.log(e.currentTarget.dataset.id);
if(e.currentTarget.dataset.recruitment != 1){
wx.showToast({
icon: "none",
title: '该职位已停招',
duration: 2000,
});
return
}
wx.navigateTo({ wx.navigateTo({
url: "../../detail/index?storeJobId=" + e.currentTarget.dataset.id, url: "../../detail/index?storeJobId=" + e.currentTarget.dataset.id,
}); });

@ -11,8 +11,8 @@
</view> --> </view> -->
<view class="bt1"> <view class="bt1">
<view class="bgf display-flex p16 pb0" data-id="{{item.id}}" bindtap="goDetail" hover-class="g_bg_f_5" wx:for="{{recordList}}" wx:key="index" wx:item="item"> <view class="{{item.recruitment == 1 ?'bgf':''}} display-flex p16 pb0" data-id="{{item.id}}" data-recruitment="{{item.recruitment}}" bindtap="goDetail" hover-class="g_bg_f_5" wx:for="{{recordList}}" wx:key="index" wx:item="item">
<view class="display-flex flex-1 pb16 bb1"> <view class="display-flex flex-1 pb16 bb1 pr">
<view class="flex-1"> <view class="flex-1">
<view class="f16 fwb">{{item.jobName}}</view> <view class="f16 fwb">{{item.jobName}}</view>
<view class="f14 c6 mt8">{{(item.citys && item.citys != '-') ? item.citys + ' | ' : ''}} {{item.age}}</view> <view class="f14 c6 mt8">{{(item.citys && item.citys != '-') ? item.citys + ' | ' : ''}} {{item.age}}</view>
@ -20,6 +20,7 @@
<view class="tr"> <view class="tr">
<view class="f14 c9">{{item.createTime}}</view> <view class="f14 c9">{{item.createTime}}</view>
</view> </view>
<image style="width: 80px;height: 80px;position: absolute;left: 200px;top:-10px" src="//matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/tingzhao.svg" wx:if="{{item.recruitment != 1}}"></image>
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save