Browse Source

上传修改

master
前端-胡立永 4 months ago
parent
commit
65248b5cef
7 changed files with 180 additions and 4 deletions
  1. +3
    -0
      pages.json
  2. +4
    -1
      pages/index/consult.vue
  3. +59
    -3
      pages_order/auth/switchIdentity.vue
  4. BIN
      pages_order/static/auth/boss.png
  5. BIN
      pages_order/static/auth/gr.png
  6. +111
    -0
      pages_order/work/postConsult.vue
  7. +3
    -0
      store/store.js

+ 3
- 0
pages.json View File

@ -113,6 +113,9 @@
}, },
{ {
"path": "auth/switchIdentity" "path": "auth/switchIdentity"
},
{
"path": "work/postConsult"
} }
] ]
}], }],


+ 4
- 1
pages/index/consult.vue View File

@ -5,7 +5,10 @@
title="考证咨询" title="考证咨询"
/> />
<view class="uni-color-btn"
@click="$utils.navigateTo('/pages_order/work/postConsult')">
去提交报名材料
</view>
<tabber select="2"/> <tabber select="2"/>
</view> </view>


+ 59
- 3
pages_order/auth/switchIdentity.vue View File

@ -1,6 +1,20 @@
<template> <template>
<view class="page"> <view class="page">
<view class="title">
请选择您的身份
</view>
<view class="box1"
@click="toBoss">
我要找师傅
<image src="../static/auth/boss.png" mode=""></image>
</view>
<view class="box2"
@click="toEmployee">
我要找工作
<image src="../static/auth/gr.png" mode=""></image>
</view>
</view> </view>
</template> </template>
@ -12,11 +26,53 @@
} }
}, },
methods: { methods: {
toBoss(){
this.$store.commit('setRole', true)
uni.reLaunch({
url: '/pages/index/index'
})
},
toEmployee(){
this.$store.commit('setRole', false)
uni.reLaunch({
url: '/pages/index/index'
})
},
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.page{
background-color: #fff;
min-height: 100vh;
text-align: center;
.title{
font-size: 36rpx;
font-weight: 900;
padding-top: 300rpx;
}
image{
width: 140rpx;
height: 140rpx;
margin-left: 60rpx;
}
.box1, .box2{
padding: 40rpx 0;
margin: 60rpx;
color: #fff;
border-radius: 20rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 36rpx;
font-weight: 900;
}
.box1{
background-color: #F0A921;
}
.box2{
background-color: #FC8955;
}
}
</style> </style>

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

Before After
Width: 178  |  Height: 178  |  Size: 8.0 KiB

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

Before After
Width: 178  |  Height: 178  |  Size: 7.5 KiB

+ 111
- 0
pages_order/work/postConsult.vue View File

@ -0,0 +1,111 @@
<template>
<view class="page">
<navbar
title="需提交的材料"
leftClick
@leftClick="$utils.navigateBack"
/>
<view class="form">
<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>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
.page{
min-height: 100vh;
background-color: #fff;
.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;
}
}
}
}
</style>

+ 3
- 0
store/store.js View File

@ -128,6 +128,9 @@ const store = new Vuex.Store({
} }
}) })
}, },
setRole(state, role){
state.role = role
},
}, },
actions: {}, actions: {},
}) })


Loading…
Cancel
Save