Browse Source

上传修改

master
前端-胡立永 6 months ago
parent
commit
b6742694ad
20 changed files with 571 additions and 95 deletions
  1. +2
    -2
      App.vue
  2. +12
    -33
      api/api.js
  3. +3
    -1
      common.scss
  4. +2
    -2
      components/config/PrivacyAgreementPoup.vue
  5. +116
    -0
      components/config/customerServicePopup.vue
  6. +13
    -2
      components/list/workList/workItem.vue
  7. +1
    -1
      manifest.json
  8. +3
    -0
      pages.json
  9. +2
    -2
      pages/index/center.vue
  10. +8
    -1
      pages/index/index.vue
  11. +75
    -14
      pages/index/keepAccounts.vue
  12. +184
    -2
      pages_order/auth/certification.vue
  13. +2
    -2
      pages_order/auth/wxLogin.vue
  14. +1
    -1
      pages_order/auth/wxUserInfo.vue
  15. +7
    -13
      pages_order/mine/IntegralRecord.vue
  16. +12
    -9
      pages_order/mine/contract.vue
  17. BIN
      pages_order/static/auth/cart.png
  18. +116
    -0
      pages_order/work/addResume.vue
  19. +1
    -10
      pages_order/work/jobPosting.vue
  20. +11
    -0
      uni.scss

+ 2
- 2
App.vue View File

@ -12,10 +12,10 @@
}
</script>
<style>
<style lang="scss">
@import url("common.scss");
/*每个页面公共css */
body{
body,page{
background-color: #f3f3f3;
font-size: 30rpx;
}


+ 12
- 33
api/api.js View File

@ -56,7 +56,7 @@ const config = {
url: '/api/common/aboutUs',
method: 'GET',
},
//个人记工-新建账本
//新建账本
commonAddBill: {
url: '/api/common/addBill',
method: 'POST',
@ -64,14 +64,6 @@ const config = {
limit : 500,
showLoading : true,
},
//班组记工-新建账本
commonAddBills: {
url: '/api/common/addBills',
method: 'POST',
auth: true,
limit : 500,
showLoading : true,
},
// 我的服务-兑换码
commonAddExchange: {
url: '/api/common/addExchange',
@ -80,7 +72,7 @@ const config = {
limit : 500,
showLoading : true,
},
// 个人记工-技工问题
// 技工问题
commonAddQuestion: {
url: '/api/common/addQuestion',
method: 'POST',
@ -88,14 +80,6 @@ const config = {
limit : 500,
showLoading : true,
},
// 班组记工-技工问题
commonAddQuestions: {
url: '/api/common/addQuestions',
method: 'POST',
auth: true,
limit : 500,
showLoading : true,
},
// 我的服务-会员充值(开通VIP)
commonAddRecharge: {
url: '/api/common/addRecharge',
@ -127,31 +111,26 @@ const config = {
url: '/api/common/queryAddressList',
method: 'GET',
},
//个人记工-全年收支
//全年收支
commonQueryBill: {
url: '/api/common/queryBill',
method: 'GET',
},
//班组记工-全年收支
commonQueryBills: {
url: '/api/common/queryBills',
method: 'GET',
},
//个人记工-在建项目
commonQueryStrartJobList: {
url: '/api/common/queryStrartJobList',
//项目列表
commonQueryNotebookList: {
url: '/api/common/queryNotebookList',
method: 'GET',
},
//个人记工-在建项目
commonQueryStrartJobLists: {
url: '/api/common/queryStrartJobLists',
method: 'GET',
},
//会员中心-正式积分||临时积分||积分记录
//会员中心-正式积分||临时积分
commonQueryScore: {
url: '/api/common/queryScore',
method: 'GET',
},
//积分记录
commonQueryScoreRecord: {
url: '/api/common/queryScoreRecord',
method: 'GET',
},
/**
* 求职者的接口


+ 3
- 1
common.scss View File

@ -54,4 +54,6 @@
.uv-tags__text{
font-size: 24rpx !important;
}
}

+ 2
- 2
components/config/PrivacyAgreementPoup.vue View File

@ -10,7 +10,7 @@
</view>
<view class="content_pri">
<view class="text">
欢迎来到酒店布草!我们根据最新的法律法规监管政策要求更新了用户协议隐私政策,请您认真阅读
欢迎来到特易招!我们根据最新的法律法规监管政策要求更新了用户协议隐私政策,请您认真阅读
</view>
</view>
<view class="config">
@ -18,7 +18,7 @@
<view class="content">
<view style="display: flex;">
<!-- <uv-checkbox size="30rpx" :name="1"></uv-checkbox> -->
同意<text @click="goToPrivacy">酒店布草隐私政策</text>
同意<text @click="goToPrivacy">特易招隐私政策</text>
</view>
<view class="">
以及<text @click="goToPrivacy">用户协议</text>


+ 116
- 0
components/config/customerServicePopup.vue View File

@ -0,0 +1,116 @@
<template>
<!-- 联系客服弹框 -->
<uv-overlay :show="show" @click="close">
<view class="warp">
<view class="rect" @tap.stop>
<view class="title">联系客服</view>
<view class="center">确定拨打客服电话?</view>
<view class="bottom">
<view class="btn1"
@click="close">
取消
</view>
<view class="btn2"
@click="confirm">
确定
</view>
</view>
</view>
</view>
</uv-overlay>
</template>
<script>
export default {
data() {
return {
show: false,
phone:'',
}
},
onLoad() {
this.getCustomPhone()
},
methods: {
getCustomPhone(){
this.$api('customUser', {}, res => {
this.phone = res.result.phone
})
},
open() {
this.show = true
},
close() {
this.show = false
},
//
confirm() {
this.show = false
uni.makePhoneCall({
phoneNumber: this.phone,
success() {
console.log('安卓拨打成功');
},
fail() {
console.log('安卓拨打失败');
}
})
},
}
}
</script>
<style scoped lang="scss">
.warp {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.rect {
width: 600rpx;
height: 300rpx;
background-color: #fff;
border-radius: 20rpx;
overflow: hidden;
.title {
padding: 10rpx 0 0 15rpx;
background-color: $uni-color;
color: #FFF;
text-align: left;
width: 100%;
height: 18%;
font-size: 36rpx;
}
.center {
height: 40%;
display: flex;
justify-content: center;
align-items: center;
font-size: 36rpx;
}
.bottom {
display: flex;
justify-content: center;
gap: 50rpx;
view{
height: 60rpx;
line-height: 60rpx;
padding: 0 50rpx;
border-radius: 30rpx;
}
.btn1{
background-color: #fff;
}
.btn2{
background-color: $uni-color;
color: #fff;
}
}
}
</style>

+ 13
- 2
components/list/workList/workItem.vue View File

@ -37,7 +37,8 @@
<!-- 09月23日 1620 -->
{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
</view>
<view class="phone">
<view class="phone"
@click.stop="callPhone">
<image src="/static/image/home/phone.png" mode=""></image>
联系老板
</view>
@ -58,7 +59,17 @@
}
},
methods: {
callPhone(){
uni.makePhoneCall({
phoneNumber: this.item.phone,
success() {
console.log('安卓拨打成功');
},
fail() {
console.log('安卓拨打失败');
}
})
},
}
}
</script>


+ 1
- 1
manifest.json View File

@ -52,7 +52,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wxad5b3d20a75974c0",
"appid" : "wxe631bce44d54667e",
"setting" : {
"urlCheck" : false
},


+ 3
- 0
pages.json View File

@ -107,6 +107,9 @@
},
{
"path": "mine/InvitationCredit"
},
{
"path": "work/addResume"
}
]
}],


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

@ -126,7 +126,7 @@
<text class="grid-text">积分记录</text>
</uv-grid-item>
<uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+1)">
<uv-grid-item @click="$utils.navigateTo('/pages_order/auth/certification')">
<image class="image" src="/static/image/center/6.png" mode=""></image>
<text class="grid-text">实名认证</text>
</uv-grid-item>
@ -145,7 +145,7 @@
<text class="grid-text">电子合同</text>
</uv-grid-item>
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/promotion?index='+1)">
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/promotion')">
<image class="image" src="/static/image/center/5.png" mode=""></image>
<text class="grid-text">面对面分享</text>
</uv-grid-item>


+ 8
- 1
pages/index/index.vue View File

@ -48,7 +48,7 @@
<workList ref="workList" v-else/>
<view class="box"
@click="$utils.navigateTo('/pages_order/work/jobPosting')">
@click="toAdd">
<view class="left">
发布
</view>
@ -115,6 +115,13 @@
clickItem(){
},
toAdd(){
if(this.role){
this.$utils.navigateTo('/pages_order/work/jobPosting')
}else{
this.$utils.navigateTo('/pages_order/work/addResume')
}
},
}
}
</script>


+ 75
- 14
pages/index/keepAccounts.vue View File

@ -3,7 +3,7 @@
<navbar title="记工记账" />
<view class="page-tag">
<uv-tabs :list="tabs"
@click="clickTabs"
@click="clickTabsType"
lineWidth="55"
lineHeight="8" :activeStyle="{
color: '#3796F8',
@ -38,7 +38,9 @@
</view>
</view>
<view style="font-weight: 500; margin-top: 20rpx;">
<uv-tabs :list="tabsSatus" lineWidth="0" lineHeight="0" :activeStyle="{
<uv-tabs :list="tabsSatus"
@click="clickTabsStatus"
lineWidth="0" lineHeight="0" :activeStyle="{
color: '#3796F8',
}"></uv-tabs>
</view>
@ -57,7 +59,8 @@
</view>
</view>
<view class="btn">
<view class="left">
<view class="left"
@click.stop="openUpdate(item)">
<uv-icon
name="setting"
size="40rpx"></uv-icon>
@ -88,7 +91,6 @@
<input class="rect-input"
v-model="form.title"
placeholder="请输入项目名称"/>
<view class="wire" style="margin-top: 20rpx;" />
<!-- <view class="option">
<select class="select">
<option value="option1">收入 </option>
@ -97,9 +99,25 @@
<!-- <view class="introduce">
项目金额1314
</view> -->
<view class="">
<uv-radio-group v-model="form.status">
<view style="display: flex;">
<uv-radio
:customStyle="{margin: '8px'}"
v-for="(item, index) in statusList"
:key="index"
iconSize="30rpx"
size="40rpx"
labelSize="26rpx"
:label="item.name"
:name="item.value">
</uv-radio>
</view>
</uv-radio-group>
</view>
<view class="button">
<view @click="isShohw">取消</view>
<view>确定</view>
<view @click="show = false">取消</view>
<view @click="submit">确定</view>
</view>
</view>
</view>
@ -138,29 +156,72 @@
name: '结束项目',
},
],
statusList : [
{
name : '在建',
value : 0,
},
{
name : '结束',
value : 1,
},
],
show: false,
mixinsListApi : 'commonQueryStrartJobLists',
apiType : '',
mixinsListApi : 'commonQueryNotebookList',
addOrUpdate : false,
form : {
title : '',
status : 0,
},
}
},
computed: {
},
onReady() {
onLoad() {
this.queryParams.status = 0
this.queryParams.type = 0
},
methods: {
isShohw(){
this.show = false
clickTabsType({index}){
this.queryParams.type = index
this.getData()
},
clickTabs({index}){
this.apiType = index ? 's' : ''
clickTabsStatus({index}){
this.queryParams.status = index
this.getData()
},
submit(){
if(this.$utils.verificationAll(this.form, {
title : '请输入项目名称',//
})){
return
}
this.form.type = this.queryParams.type
this.$api('commonAddBill', this.form, res => {
if(res.code == 200){
this.show = false
this.form = {
title : '',
status : 0,
}
this.getData()
}
})
},
openUpdate(item){
this.form = {
id : item.id,
title : item.title,
status : item.status,
status : item.status,
}
this.addOrUpdate = true
this.show = true
}
}
}
</script>


+ 184
- 2
pages_order/auth/certification.vue View File

@ -1,7 +1,105 @@
<template>
<!-- 实名认证 -->
<view class="page">
<navbar title="实名认证"
leftClick
@leftClick="$utils.navigateBack"/>
<view class="info-tips">
完成实名认证<text>您将获得实名认证平台特权</text>
</view>
<view class="form">
<view class="form-item">
<view class="label">
姓名
</view>
<input type="text" class="form-input"
placeholder="请输入姓名"
v-model="form.name"/>
</view>
<view class="form-item">
<view class="label">
身份证号码
</view>
<input type="text" class="form-input"
placeholder="请输入身份证号码"
v-model="form.name"/>
</view>
<view class="form-item">
<view class="label">
联系方式
</view>
<input type="text" class="form-input"
placeholder="请输入联系方式"
v-model="form.name"/>
</view>
<view class="form-item">
<view class="title">
请上传身份证人像面照片选填
</view>
<view class="tips">
信息仅用身份核实上传后可增加曝光机会
</view>
</view>
<view class="form-item">
<uv-upload
:fileList="fileList"
:maxCount="1"
width="690rpx"
height="280rpx"
multiple
@afterRead="afterRead"
@delete="deleteImage">
<view class="upload">
<image src="../static/auth/cart.png"
mode="aspectFit"
style="width: 390rpx;height: 280rpx;" />
<view class="btn-add">
点击上传
</view>
</view>
</uv-upload>
</view>
<view class="form-item">
<view class="tips"
style="text-align: center;padding: 20rpx 0;">
(确保文字清晰可辨避免遮挡不全反光)
</view>
</view>
</view>
<view class="uni-color-btn">
认证
</view>
<view class="config">
<uv-checkbox-group
v-model="checkboxValue"
shape="circle">
<view class="content">
<view
style="display: flex;">
<uv-checkbox
size="40rpx"
icon-size="30rpx"
activeColor="#3796F8"
:name="1"
></uv-checkbox>
阅读并同意我们的<text @click="$refs.configPopup.open('getPrivacyPolicy')">服务协议与隐私条款</text>
</view>
<view class="">
以及<text @click="$refs.configPopup.open('getUserAgreement')">个人信息保护指引</text>
</view>
</view>
</uv-checkbox-group>
</view>
<configPopup ref="configPopup"/>
</view>
</template>
@ -9,15 +107,99 @@
export default {
data() {
return {
checkboxValue : [],
form : {},
fileList: [],
}
},
methods: {
deleteImage(e){
this.fileList.splice(e.index, 1)
},
afterRead(e){
let self = this
e.file.forEach(file => {
self.$Oss.ossUpload(file.url).then(url => {
self.fileList.push({
url
})
})
})
},
}
}
</script>
<style scoped lang="scss">
.page{
background-color: #fff;
min-height: 100vh;
.info-tips{
width: 100%;
padding: 30rpx 0;
background-color: #f3f3f3;
text-align: center;
text{
color: $uni-color;
}
}
.form {
padding: 30rpx;
.form-item{
.label{
padding: 20rpx 0;
}
.form-input{
border: 1px solid $uni-color;
background: rgba($uni-color, 0.1);
padding: 10rpx 20rpx;
font-size: 28rpx;
}
.title{
font-weight: 900;
margin-top: 50rpx;
padding: 10rpx 0;
}
.tips{
font-size: 26rpx;
color: #777;
padding-bottom: 20rpx;
}
}
.upload{
display: flex;
justify-content: center;
align-items: center;
width: 690rpx;
background-color: #f3f3f3;
border-radius: 10rpx;
.btn-add{
margin: auto;
padding: 10rpx 20rpx;
background-color: $uni-color;
color: #fff;
border-radius: 10rpx;
}
}
}
.config{
font-size: 26rpx;
line-height: 40rpx;
width: 100%;
display: flex;
justify-content: center;
.content{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
text{
color: $uni-color;
}
}
}
</style>

+ 2
- 2
pages_order/auth/wxLogin.vue View File

@ -4,7 +4,7 @@
<!-- <image src="/static/image/login/logo.png" mode=""></image> -->
</view>
<view class="title">
欢迎使用酒店桌布租赁平台
欢迎使用特易招
</view>
<view class="btn mt"
@click="wxLogin">
@ -32,7 +32,7 @@
<uv-checkbox
size="40rpx"
icon-size="30rpx"
activeColor="#FD5100"
activeColor="#3796F8"
:name="1"
></uv-checkbox>
阅读并同意我们的<text @click="openConfigDetail('getPrivacyPolicy')">服务协议与隐私条款</text>


+ 1
- 1
pages_order/auth/wxUserInfo.vue View File

@ -1,7 +1,7 @@
<template>
<view class="login">
<view class="title">
酒店桌布租赁平台
特易招
</view>
<view class="title">
申请获取你的头像昵称


+ 7
- 13
pages_order/mine/IntegralRecord.vue View File

@ -29,10 +29,10 @@
</view>
<view class="tab-box">
<view class="tab-box1" v-if="agentFlow && agentFlow.total">
<view class="tab-box1" v-if="total">
<uv-cell center border :title="item.title"
v-for="(item, index) in agentFlow.records"
:value="x[item.type] + item.money" :label="item.createTime" />
v-for="(item, index) in list"
:value="x[item.type] + item.score" :label="item.createTime" />
</view>
<view
style="padding: 100rpx 0;"
@ -76,7 +76,7 @@
},
]
},
x : ['+', '-' , '-' , '+'],
x : ['+', '-'],
status : 0,
tabs: [
{
@ -87,26 +87,20 @@
},
],
type : 0,
mixinsListApi : 'commonQueryScore',
mixinsListApi : 'commonQueryScoreRecord',
}
},
onLoad(e) {
this.status = e.status
this.queryParams.type = this.type
},
methods: {
leftClick() { //
uni.navigateBack(-1)
},
getAgentFlow(){ //
let type = this.status;
this.$api('getAgentFlow', { type }, res => {
if(res.code == 200){
this.agentFlow = res.result
}
})
},
clickTabs({index}) {
this.type = index
this.queryParams.type = this.type
},
}
}


+ 12
- 9
pages_order/mine/contract.vue View File

@ -18,23 +18,25 @@
<view class="projectContent"
v-for="(item, index) in list"
:key="index">
<img src="../static/contract/contract.png" alt="" />
<image src="../static/contract/contract.png" alt="" />
<view class="itemList">
<view class="projectName">
xxxx电子合同
</view>
<view class="buyer">
甲方湖南瀚海科技有限公司
<!-- 甲方湖南瀚海科技有限公司 -->
{{ item.nameA }}
</view>
<view class="seller">
乙方四川特能博世科技有限公司
<!-- 乙方四川特能博世科技有限公司 -->
{{ item.nameB }}
</view>
</view>
<view class="run">
<uv-icon
name="arrow-right"
color="#2979ff"
size="50rpx"></uv-icon>
size="30rpx"></uv-icon>
</view>
</view>
</view>
@ -91,9 +93,10 @@
background-color: #fff;
display: flex;
margin: 30rpx;
img {
width: 160rpx;
height: 140rpx;
border-radius: 20rpx;
image {
width: 140rpx;
height: 120rpx;
margin: 20rpx;
}
.itemList {
@ -111,8 +114,8 @@
.run{
margin: auto;
margin-right: 30rpx;
height: 80rpx;
width: 80rpx;
height: 60rpx;
width: 60rpx;
border-radius: 50%;
border: 1px solid $uni-color;
display: flex;


BIN
pages_order/static/auth/cart.png View File

Before After
Width: 349  |  Height: 239  |  Size: 11 KiB

+ 116
- 0
pages_order/work/addResume.vue View File

@ -0,0 +1,116 @@
<template>
<view class="page">
<navbar title="发布找活"
leftClick
@leftClick="$utils.navigateBack"/>
<view class="box">
<view class="list">
<view class="item" v-for="(item, index) in list" :key="index">
<view class="title">
{{ item.title }}
</view>
<view class="tagList">
<view :class="{act : i == item.index}" @click="clickTag(item, i)" v-for="(t, i) in item.tag"
:key="t">
{{ t }}
</view>
</view>
</view>
</view>
<uv-textarea
v-model="form.content"
count
:maxlength="300"
autoHeight
placeholder="请输入详细介绍"></uv-textarea>
<view class="uni-color-btn">
发布
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [
{
title: '您希望从事的工种',
tag: ['电工', '焊工', '叉车', '其他'],
index: 0,
},
{
title: '您希望从事的工作区域',
tag: ['长沙'],
index: 0,
},
{
title: '您目前所属的年龄段',
tag: ['18岁~35岁', '35岁~45岁', '45岁~50岁', '50岁以上'],
index: 0,
},
{
title: '您希望从事的工作性质',
tag: ['全职', '临时工', ],
index: 0,
},
],
form : {}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
.page{
background-color: #fff;
min-height: 100vh;
.box{
padding: 30rpx;
.list {
.item {
margin-top: 20rpx;
.title {
font-weight: 900;
font-size: 30rpx;
}
.tagList {
display: flex;
flex-wrap: wrap;
padding: 10rpx 0;
view {
background: rgba($uni-color, 0.1);
padding: 10rpx 20rpx;
margin: 10rpx;
border-radius: 10rpx;
font-size: 26rpx;
}
.act {
color: #fff;
background: $uni-color;
}
}
}
}
/deep/ .uv-textarea{
background-color: rgba($uni-color, 0.1) !important;
min-height: 400rpx;
}
}
}
</style>

+ 1
- 10
pages_order/work/jobPosting.vue View File

@ -141,7 +141,7 @@
placeholder="请输入详细介绍"></uv-textarea>
</view>
<view class="btn">
<view class="uni-color-btn">
发布
</view>
</view>
@ -216,15 +216,6 @@
margin-left: auto;
}
}
.btn{
border-radius: 40rpx;
padding: 20rpx;
margin: 40rpx;
background: $uni-color;
color: #fff;
text-align: center;
font-size: 28rpx;
}
}
}
</style>

+ 11
- 0
uni.scss View File

@ -74,3 +74,14 @@ $uni-color-subtitle: #555555; // 二级标题颜色
$uni-font-size-subtitle:26px;
$uni-color-paragraph: #3F536E; // 文章段落颜色
$uni-font-size-paragraph:15px;
.uni-color-btn{
border-radius: 40rpx;
padding: 20rpx;
margin: 40rpx;
background: $uni-color;
color: #fff;
text-align: center;
font-size: 28rpx;
}

Loading…
Cancel
Save