Commit e38b32df authored by 姜立平's avatar 姜立平

小程序提交

parent d29f7afe
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
"text": "投简历" "text": "投简历"
}, },
{ {
"pagePath": "page/API/index/index", "pagePath": "page/job/job",
"iconPath": "image/tap_bar_02.png", "iconPath": "image/tap_bar_02.png",
"selectedIconPath": "image/tap_bar_02_active.png", "selectedIconPath": "image/tap_bar_02_active.png",
"text": "招聘岗位" "text": "招聘岗位"
......
// page/job/job.js
Page({
data: {
menuList: [{
name: 'CNC招聘',
APIList: [{
zhName: 'CNC 顾问',
enName: '资源管理部--青岛--全职',
url: ''
}],
opened: true
}, {
name: 'JAVA',
opened: true,
APIList: [{
zhName: 'java开发工程师',
enName: '产品与研发事业部-上海--全职',
url: ''
}, {
zhName: 'Java开发工程师',
enName: '产品与研发事业部-郑州--全职',
url: ''
}, {
zhName: 'Java开发工程师(Telework)',
enName: 'TeleWork事业部-上海--全职',
url: ''
}]
}, {
name: '前端',
opened: true,
APIList: [{
zhName: '前端开发工程师(高级)',
enName: '产品与研发事业部--上海--全职',
url: ''
}, {
zhName: '前端开发工程师(中级)',
enName: '产品与研发事业部--上海--全职',
url: ''
}, {
zhName: '前端开发工程师(郑州)',
enName: '产品与研发事业部--郑州--全职',
url: ''
}]
}, {
name: 'SAP',
opened: false,
APIList: [{
zhName: 'SAP实施顾问(PP模块',
enName: '资源管理部--上海市,深圳市--全职',
url: '../request/request'
}, {
zhName: 'SAP CRM 技术顾问',
enName: '资源管理部--上海市,昆明市--全职',
url: ''
}]
}, {
name: '软件开发高级经理',
opened: false,
APIList: [{
zhName: '软件开发高级经理',
enName: 'TeleWork事业部--上海市--全职',
url: '../image/image'
}]
}, {
name: '高级BA需求设计师',
opened: false,
APIList: [{
zhName: '高级BA需求设计师',
enName: 'TeleWork事业部--上海市--全职',
url: ''
}]
}
]
},
tapMenuItem: function (e) {
var menuItem = this.data.menuList[parseInt(e.currentTarget.id)]
if (menuItem.url) {
wx.navigateTo({ url: menuItem.url })
} else {
var changeData = {}
var opened = menuItem.opened
changeData['menuList[' + e.currentTarget.id + '].opened'] = !opened
this.setData(changeData)
}
}
})
<view class="container">
<view class="header">
<view class="title">招聘岗位</view>
<view class="desc">为了便于快速投递,可以再这里快速投递。</view>
</view>
<view class="menu-list">
<block wx:key = 'menu' wx:for-items="{{menuList}}" wx:for-item="menuItem">
<view class="menu-item">
<view class="menu-item-main" id="{{index}}" bindtap="tapMenuItem">
<text class="menu-item-name">{{menuItem.name}}</text>
<image
class="menu-item-arrow {{menuItem.opened ? 'open' : 'close'}} {{menuItem.url ? 'url' : ''}}"
src="/image/arrowright.png">
</image>
</view>
<view class="menu-item-api-list {{menuItem.opened ? 'open' : 'close'}}">
<block wx:key = 'menuItem' wx:for-items="{{menuItem.APIList}}" wx:for-item="APIItem">
<view class="menu-item-api-item" style="{{index === 0 ? 'border-top:none;' : ''}}">
<navigator url="{{APIItem.url}}">
<view class="menu-item-api-item-text">
<text class="menu-item-api-item-text-zhname">{{APIItem.zhName}}</text>
<text class="menu-item-api-item-text-enname">{{APIItem.enName}}</text>
</view>
</navigator>
<button class="buttonCSS">快投</button>
<!-- <image class="menu-item-api-item-arrow" src="/image/arrowright.png"></image> -->
</view>
</block>
</view>
</view>
</block>
</view>
</view>
/* page/job/job.wxss */
.header {
padding: 40px;
}
.title {
font-size: 30px;
}
.desc {
margin-top: 5px;
color: #888888;
font-size: 14px;
line-height: 1.4;
}
.menu-list {
display: flex;
flex-direction: column;
background-color: #fbf9fe;
}
.menu-item {
color: #000000;
display: flex;
background-color: #fff;
margin: 10rpx 40rpx;
flex-direction: column;
}
.menu-item-main {
display: flex;
height: 100rpx;
padding: 20rpx;
border-radius: 10rpx;
align-items: center;
font-size: 32rpx;
justify-content: space-between;
}
.menu-item-arrow {
width: 32rpx;
height: 32rpx;
transition: 400ms;
}
.menu-item-arrow.open {
transform: rotate(-90deg);
}
.menu-item-arrow.close {
transform: rotate(90deg);
}
.menu-item-arrow.url {
transform: rotate(0deg);
}
.menu-item-api-list {
transition: 200ms;
height: auto;
border-top: 1px solid #d8d8d8;
}
.menu-item-api-list.close {
display: none;
height: 0;
}
.menu-item-api-item {
display: flex;
justify-content: space-between;
height: 80rpx;
padding: 20rpx 20rpx 20rpx 0;
margin-left: 20rpx;
align-items: center;
border-top: 1px solid #f0f0f0;
}
.menu-item-api-item-text {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}
.menu-item-api-item-text-zhname {
font-size: 30rpx;
}
.menu-item-api-item-text-enname {
font-size: 26rpx;
color: #6b6b6b;
}
.menu-item-api-item-arrow {
width: 32rpx;
height: 32rpx;
}
.buttonCSS {
font-size: 30rpx;
width:150rpx;
height:80rpx;
margin:0rpx;
padding: 0rpx;
}
<!-- 项目履历-公司 -->
<template name="item">
<view class="widgets">
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">项目名称</text>
<input class="input" id="itemName" value="{{itemData.itemName}}" bindinput="itemBindKeyInput"/>
</view>
</view>
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">相关产品</text>
<input class="input" id="productName" value="{{itemData.productName}}" bindinput="itemBindKeyInput"/>
</view>
</view>
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">相关行业</text>
<input class="input" id="industry" value="{{itemData.industry}}" bindinput="itemBindKeyInput"/>
</view>
</view>
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">项目角色</text>
<input class="input" id="itemRoles" value="{{itemData.itemRoles}}" bindinput="itemBindKeyInput"/>
</view>
</view>
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">所在公司</text>
<input class="input" id="companyName" value="{{itemData.companyName}}" bindinput="itemBindKeyInput"/>
</view>
</view>
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">项目描述</text>
<input class="input" id="itemDesc" value="{{itemData.itemDesc}}" bindinput="itemBindKeyInput"/>
</view>
</view>
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">职责&业绩</text>
<input class="input" id="itemRP" value="{{itemData.itemRP}}" bindinput="itemBindKeyInput"/>
</view>
</view>
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">开始时间</text>
<picker mode="date" start="2015-09-01" end="2050-09-01" bindchange="itemStartDateChange">
<view class="picker">
当前选择: {{itemData.startDate}}
</view>
</picker>
</view>
</view>
<view class="widgets__item">
<view class="widgets__info">
<text class="widgets__info-name">结束时间</text>
<picker mode="date" start="2015-09-01" end="2050-09-01" bindchange="itemEndDateChange">
<view class="picker">
当前选择: {{itemData.endDate}}
</view>
</picker>
</view>
</view>
</view>
<view class="btn-area">
<view class="button-wrapper">
<button type="default" size="default" bindtap="saveItem"> 保 存 </button>
</view>
</view>
</template>
\ No newline at end of file
// pages/my/my.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
<!--pages/my/my.wxml-->
<text>pages/my/my.wxml</text>
/* pages/my/my.wxss */
\ No newline at end of file
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