Commit d7c19291 by kyle

Merge branch 'dev' into 20221123

parents a4f0015d f8e2afe3
...@@ -365,7 +365,52 @@ ...@@ -365,7 +365,52 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} },
,{
"path" : "pages/personalCenter/system/accontsetting",
"style" :
{
"navigationBarTitleText": "账号绑定设置",
"enablePullDownRefresh": false
}
},
,{
"path" : "pages/personalCenter/accountoperation/phonebinding",
"style" :
{
"navigationBarTitleText": "手机号绑定",
"enablePullDownRefresh": false
}
},
,{
"path" : "pages/personalCenter/accountoperation/resetpassword",
"style" :
{
"navigationBarTitleText": "重置密码",
"enablePullDownRefresh": false
}
},
,{
"path" : "pages/personalCenter/accountoperation/aboutcffp",
"style" :
{
"navigationBarTitleText": "关于我",
"enablePullDownRefresh": false
}
},
,{
"path" : "pages/certifyDetail/uploadinformation",
"style" :
{
"navigationBarTitleText": "上传信息",
"enablePullDownRefresh": false
}
},
], ],
// "tabBar": { // "tabBar": {
// "color": "#7A7E83", // tab 上的文字默认颜色 // "color": "#7A7E83", // tab 上的文字默认颜色
......
...@@ -70,7 +70,11 @@ ...@@ -70,7 +70,11 @@
<!-- 报名按钮区域 --> <!-- 报名按钮区域 -->
<view class="signBtnContent"> <view class="signBtnContent">
<view class="consultBtn">咨询客服</view> <view class="consultBtn">咨询客服</view>
<view class="signBtn" @click="registerNow()">立即报名</view> <view class="signBtn" @click="getDetail()">
<text v-if="status == '1'">上传个人信息</text>
<text v-else-if="status == '3'">查看</text>
<text v-else>立即报名</text>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -83,10 +87,12 @@ ...@@ -83,10 +87,12 @@
data() { data() {
return { return {
certificateInfo:{}, certificateInfo:{},
userId:'1' userId:'1',
status:""
}; };
}, },
onLoad(options) { onLoad(options) {
this.status = options.status
this.queryCertificateInfo(options.certificateId,options.userSignupId) this.queryCertificateInfo(options.certificateId,options.userSignupId)
}, },
methods:{ methods:{
...@@ -102,6 +108,20 @@ ...@@ -102,6 +108,20 @@
} }
}) })
}, },
getDetail(){
console.log(this.status, 788584)
if(this.status != 1 && this.status != 3 &&this.status !== null){
this.registerNow()
}else {
this.uploadinfo()
}
},
uploadinfo(){
uni.navigateTo({
url:`/pages/certifyDetail/uploadinformation`
})
},
// 去立即报名页面
registerNow(){ registerNow(){
const param = { const param = {
productType:'1', productType:'1',
......
<template>
<view class="content">
<view class="band">
<view class="contentItem">
<text>姓名:</text>
<input class="user-input" type="text" placeholder="请输入姓名"/>
</view>
<view class="contentItem">
<text>英文名:</text>
<input class="user-input" maxlength="10" type="text" placeholder="请输入英文名"/>
</view>
<view class="contentItem">
<text>手机号</text>
<input class="user-input" maxlength="10" type="text" placeholder="请输入手机号"/>
</view>
<view class="contentItem">
<text>证件类型</text>
<input class="user-input" maxlength="10" type="text" placeholder="请输入证件类型"/>
</view>
<view class="contentItem">
<text>证件号</text>
<input class="user-input" maxlength="10" type="text" placeholder="请输入证件号"/>
</view>
<!-- <view class="contentItem">
<text>个人简介</text>
<textarea class="user-textarea"></textarea>
</view> -->
<view class="" style="margin-top: 20rpx;" >
<text >上传计划书</text>
</view>
<view class="uploadpdf" @click="uploadFile()">
</view>
</view>
<view class="footer">
<button class="user-button">保存</button>
</view>
</view>
</template>
<script>
import {
uploadFilepdf
} from '@/util/uploaderFile'
export default {
data() {
return {
}
},
methods:{
uploadFile(event) {
// let that = this;
// uploadFilepdf()
// .then(res => {
// that.headUrl = res[0].url
// })
uni.uploadFile({
url: 'https://www.example.com/upload', //仅为示例,非真实的接口地址
files: 上边的filelist,
formData: {
//图片张数
'length': 上边的filelist.length
},
success: (res) => {
console.log(res.data);
}
});
},
}
}
</script>
<style scoped>
.content {
width: 100vw;
}
.user-input{
text-align: right;
}
.user-textarea{
border: 1px solid #C7C7C7;width: 540rpx;
height: 270rpx;
border-radius: 10rpx;
}
.band{
margin: 0 20rpx;
font-size: 26rpx;
}
.uploadpdf{
width: 274px;
height: 160px;
background: #F8F8F8;
border-radius: 2px 2px 2px 2px;
opacity: 1;
border: 1px solid #E3E3E3;
margin: 20px auto;
}
.headportrait {
width: 260rpx;
height: 260rpx;
border: 1rpx solid aqua;
border-radius: 50%;
}
.contentItem{
margin-top: 20rpx;
display: flex;
justify-content: space-between;
border-bottom: 2rpx solid #E4E4E4;
padding: 10rpx;
}
.footer{
width: 500rpx;
height: 80rpx;
opacity: 1;
margin: 80rpx auto;
}
.user-button{
color: #FFFFFF;
background: #20269B;
border-radius: 80px;
}
</style>
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
}, },
toDetail(item){ toDetail(item){
uni.navigateTo({ uni.navigateTo({
url:`/pages/certifyDetail/certifyDetail?userSignupId=${item.userSignupId}&certificateId=null` url:`/pages/certifyDetail/certifyDetail?userSignupId=${item.userSignupId}&certificateId=null&status=${item.status}`
}) })
}, },
dateFormat(val){ dateFormat(val){
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
}else if(val==2){ }else if(val==2){
statusInfo.statusTitle = '未通过'; statusInfo.statusTitle = '未通过';
statusInfo.statusClass = 'fail' statusInfo.statusClass = 'fail'
}else if(val===3){ }else if(val==3){
statusInfo.statusTitle = '通过'; statusInfo.statusTitle = '通过';
statusInfo.statusClass = 'success' statusInfo.statusClass = 'success'
}else{ }else{
......
...@@ -4,18 +4,27 @@ ...@@ -4,18 +4,27 @@
<view class="header-box"> <view class="header-box">
<view class="header-box-img"> <view class="header-box-img">
</view> </view>
<text>CFFP财富中心</text> <view class="" style="text-align: center;">
<text>V1.0.21</text> <p style="font-size: 22px;font-weight: 500;">CFFP财富中心</p>
<p style="margin-top: 20rpx;">V1.0.21</p>
</view> </view>
<view class=""> </view>
<view class="hand" >
</view> <text>版本更新</text>
<view class="iconBox">
<i class="iconfont icon-youjiantou"></i>
</view>
</view>
</view> </view>
<view class="footer"> <view class="footer">
<view class=""> <view class="" style="display: align-self: start;">
<text>《服务协议》| 《隐私政策》</text>
<p>客服电话:400:921-9029</p> </view>
<p>由银盾保险经纪有限公司提供</p> <view class="" style="display: align-self: end;">
<text style="color: #2D56A7;">《服务协议》| 《隐私政策》</text>
<p class="footer-text" style="margin: 10px 0;">客服电话:400:921-9029</p>
<p class="footer-text">由银盾保险经纪有限公司提供</p>
</view> </view>
</view> </view>
</view> </view>
...@@ -45,11 +54,22 @@ ...@@ -45,11 +54,22 @@
} }
.header{ .header{
flex: 1; flex: 1;
border: 1px solid aqua; }
.footer-text{
font-size: 12px;
color: #999999;
}
.hand{
display: flex;
justify-content: space-between;
padding: 30rpx 0;
margin: 46rpx 50rpx;
border-top: 2rpx solid #E6E6E6;
border-bottom: 2rpx solid #E6E6E6;
} }
.footer{ .footer{
flex: 1; text-align: center;
border: 1px solid #000; padding: 50rpx;
} }
// .header-box{ // .header-box{
// height: 300rpx; // height: 300rpx;
...@@ -61,7 +81,7 @@ ...@@ -61,7 +81,7 @@
.header-box-img{ .header-box-img{
width: 124rpx; width: 124rpx;
height: 124rpx; height: 124rpx;
margin: auto auto; margin: 90rpx auto 45rpx auto;
background: url('../../../static/myteam/Group1633.png'); background: url('../../../static/myteam/Group1633.png');
background-size: auto 100%; background-size: auto 100%;
} }
......
<template> <template>
<view> <view>
<menu-list :minorMenuLists="minorMenuLists"></menu-list> <menu-list :menuList="minorMenuLists"></menu-list>
</view> </view>
</template> </template>
......
<template>
<view>
<!-- <view class="personalInfo">
<view class="ulBox">
<view v-for="item in menuList.filter(v=>v.isShow)" :key="item.title" @click="goDetail(item)" class="liBox">
<view class="infoBox">
<image :src="'/static/moduleIcon/'+item.icon+'.png'" alt="" srcset="" mode="widthFix"></image>
<text>{{item.title}}</text>
</view>
<view class="iconBox">
<i class="iconfont icon-youjiantou"></i>
</view>
</view>
</view>
</view> -->
</view>
</template>
<script>
export default {
props: {
menuList: {
type: Array
}
},
data() {
return {
menuList:[]
}
},
mounted(){
console.log(this.menuList, 7412)
},
methods:{
// goDetail(item){
// if(item.isShow && item.isOpen){
// if(item.title==='我的邀请码'){
// this.$refs.popup1.open('bottom');
// }else{
// uni.navigateTo({
// url: item.link
// });
// }
// }else{
// common.errorDialog(2,'该模块正在开发中,敬请期待!','提示');
// }
// }
}
}
</script>
<style lang="scss">
.personalInfo{
}
</style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view> <view>
<view class="personalInfo"> <view class="personalInfo">
<view class="ulBox"> <view class="ulBox">
<view v-for="item in minorMenuLists.filter(v=>v.isShow)" :key="item.title" @click="goDetail(item)" class="liBox"> <view v-for="item in menuList.filter(v=>v.isShow)" :key="item.title" @click="goDetail(item)" class="liBox">
<view class="infoBox"> <view class="infoBox">
<!-- <image :src="'/static/moduleIcon/'+item.icon+'.png'" alt="" srcset="" mode="widthFix"></image> --> <!-- <image :src="'/static/moduleIcon/'+item.icon+'.png'" alt="" srcset="" mode="widthFix"></image> -->
<text>{{item.title}}</text> <text>{{item.title}}</text>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<script> <script>
export default { export default {
props: { props: {
minorMenuLists: { menuList: {
type: Array type: Array
} }
}, },
......
<template> <template>
<view> <view>
<menu v-if="menuList != 'undefined '" :menuList="minorMenuLists"></menu> <menu-list v-if="menuList != 'undefined '" :menuList="minorMenuLists"></menu-list>
</view> </view>
</template> </template>
<script> <script>
import Menu from "./menu.vue" import MenuList from "./menulist.vue"
export default { export default {
components:{ Menu }, components:{ MenuList },
data() { data() {
return { return {
minorMenuLists: [{ minorMenuLists: [{
title: '我的邀请码', title: '账号绑定设置',
icon: 'shareEcode', icon: 'shareEcode',
link: '', link: '/pages/personalCenter/system/accontsetting',
isOpen: true, isOpen: true,
isShow: true isShow: true,
isType: false,
}, },
{ {
title: '我的卡包', title: '清除缓存',
icon: 'card', icon: 'card',
link: '', link: '',
isOpen: true, isOpen: true,
isShow: false isShow: true,
isType: true,
}, },
{ {
title: '我的认证', title: '关于CFFP财富中心',
icon: 'myCertify', icon: 'myCertify',
link: '/pages/myCertify/myCertify', link: '/pages/personalCenter/accountoperation/aboutcffp',
isOpen: true,
isShow: true
},
{
title: '申请修改公司周边',
icon: 'setting',
link: '',
isOpen: true, isOpen: true,
isShow: true isShow: true,
isType: false,
}, },
{
title: '我的消息',
icon: 'message',
link: '/pages/systemMsg/system_msg',
isOpen: true,
isShow: true
},
{
title: '系统设置',
icon: 'setting',
link: '/pages/personalCenter/system/settings',
isOpen: true,
isShow: true
}
] ]
} }
} }
......
<template> <template>
<view class=""> <view class="content">
这里是个人信息 <view class="header">
<view class="headportrait" @click="uploadAvatar()">
<img src="" alt="">
</view>
</view>
<view class="band">
<view class="contentItem">
<text>真实名称</text>
<input class="user-input" type="text" placeholder="请输入姓名"/>
</view>
<view class="contentItem">
<text>昵称</text>
<input class="user-input" maxlength="10" type="text" placeholder="请输入3~10个字符"/>
</view>
<view class="contentItem">
<text>个人简介</text>
<textarea class="user-textarea"></textarea>
</view>
</view>
<view class="footer">
<button class="user-button">保存</button>
</view>
</view> </view>
</template> </template>
<script> <script>
import {
CommonUpload
} from '@/util/uploaderFile'
export default {
data() {
return {
}
},
methods:{
uploadAvatar(event) {
let that = this;
CommonUpload()
.then(res => {
// that.headUrl = res[0].url
})
},
}
}
</script> </script>
<style> <style scoped>
</style> .content {
\ No newline at end of file width: 100vw;
}
.user-input{
text-align: right;
}
.user-textarea{
border: 1px solid #C7C7C7;width: 540rpx;
height: 270rpx;
border-radius: 10rpx;
}
.band{
margin: 0 20rpx;
font-size: 26rpx;
}
.header {
display: flex;
justify-content: center;
}
.headportrait {
width: 260rpx;
height: 260rpx;
border: 1rpx solid aqua;
border-radius: 50%;
}
.contentItem{
margin-top: 40rpx;
display: flex;
justify-content: space-between;
border-bottom: 2rpx solid #E4E4E4;
padding: 20rpx;
}
.footer{
width: 500rpx;
height: 80rpx;
opacity: 1;
margin: 80rpx auto;
}
.user-button{
color: #FFFFFF;
background: #20269B;
border-radius: 80px;
}
</style>
...@@ -4,6 +4,7 @@ import request from "./request"; ...@@ -4,6 +4,7 @@ import request from "./request";
// 上传的事件 // 上传的事件
export function CommonUpload() { export function CommonUpload() {
// @ts-ignore
return new Promise((resolve, rej) => { return new Promise((resolve, rej) => {
uni.chooseImage({ uni.chooseImage({
count: 1, //默认9 count: 1, //默认9
...@@ -48,111 +49,37 @@ import request from "./request"; ...@@ -48,111 +49,37 @@ import request from "./request";
} }
export function CommonUploadFile(staffDeptId, type) { // 上传文件
// type ==1 可以多传照片 export function uploadFilepdf (){
var sourceType = [] return new Promise((resolve, reject) => {
if(type == 2){ uni.showLoading({
sourceType = ['camera'] title: '加载中',
}else { mask: true
sourceType = ['album', 'camera'] });
} uni.uploadFile({
return new Promise((resolve, rej) => { url: baseURL + '/common/upload', //仅为示例,非真实的接口地址
filePath: tempFilePaths,
uni.chooseImage({ name: 'file',
count: type== 1?9:1, //默认9 formData: {...data,token:uni.getStorageSync('token') || ''},
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 success: (res) => {
sourceType: sourceType, //从相册选择 uni.showLoading({
success: function(res) { title: '加载中',
mask: true
var urlList = [] });
// res.tempFiles 数组 console.log(res);
for (var i = 0; i < res.tempFilePaths.length; i++) { if(res.statusCode==200){
uni.showLoading({ resolve(JSON.parse(res.data).data)
title: '加载中',
mask: true
});
uni.uploadFile({
url: $http.baseUrl + '/route/fileupload/uploadForLogin', // 后端api接口
filePath: res.tempFilePaths[i], // uni.chooseImage函数调用后获取的本地文件路劲
name: 'file', //后端通过'file'获取上传的文件对象
// formData: this.sendDate,
formData: { //后台所需除图片外的参数可以写在这里面 ,单张多张都可
'isAddWaterMaker': true,
'staffDeptId': staffDeptId,
},
header: {
// "third-session": uni.getStorageSync('thirdSession')
'Authorization': 'Bearer' + uni.getStorageSync('access_token')
},
success: (res1) => {
console.log(res1, 'aaa')
let data = JSON.parse(res1.data)
setTimeout(() => {
uni.showToast({
title: '上传成功',
icon: "none",
duration: 3000
})
}, 30)
urlList.push({
url: data.data.link,
recordId: data.data.recordId
})
// 抛出
if (urlList.length == res.tempFilePaths.length) resolve(urlList)
// resolve(data,res.tempFilePaths.length)
uni.hideLoading();
}
});
}
}
});
})
}
// 外勤打开
export function CommonUploadPng(staffDeptId) {
return new Promise((resolve, rej) => {
uni.showLoading({
title: '加载中',
mask: true
});
uni.uploadFile({
url: $http.baseUrl + '/route/fileupload/upload', // 后端api接口
filePath: res.tempFilePaths[0], // uni.chooseImage函数调用后获取的本地文件路劲
name: 'file', //后端通过'file'获取上传的文件对象
// formData: this.sendDate,
formData: { //后台所需除图片外的参数可以写在这里面 ,单张多张都可
'isAddWaterMaker': true,
'staffDeptId': staffDeptId
},
// header:{"third-session": uni.getStorageSync('thirdSession')},
header: {
// "third-session": uni.getStorageSync('thirdSession')
'Authorization': 'Bearer' + uni.getStorageSync('access_token')
},
success: (res) => {
let data = JSON.parse(res.data)
if (data.code == 1) {
setTimeout(() => {
uni.showToast({
title: '上传失败',
icon: "none",
duration: 3000
})
}, 30)
} else {
urlList.push({
url: data.data.link,
recordId: data.data.recordId
})
// 抛出
resolve(urlList)
uni.hideLoading();
}
} }
}); },
fail:(err)=>{
uni.showLoading({
title: '加载中',
mask: true
});
console.log(err,'上传报错');
// return
reject(err)
}
}) })
} })
}
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