Commit 20ca0278 by sunchao

申请加盟

parent 2022df85
...@@ -272,5 +272,13 @@ export default { ...@@ -272,5 +272,13 @@ export default {
//查询申请加盟信息 //查询申请加盟信息
queryById(params){ queryById(params){
return request(`${cffpURL}/partner/queryById/${params}`, "GET") return request(`${cffpURL}/partner/queryById/${params}`, "GET")
},
//支付宝去提现
aliWithdrawal(params){
return request(`${apiURL}/aliPay/aliWithdrawal`, "POST", params)
},
//微信去提现
wxWithdrawal(params){
return request(`${apiURL}/pay/wxWithdrawal`, "POST", params)
} }
} }
...@@ -10,25 +10,28 @@ ...@@ -10,25 +10,28 @@
<div class="contentDetail employ"> <div class="contentDetail employ">
<div class="contentItem"> <div class="contentItem">
<text>开户行</text> <text>开户行</text>
<input class="form-control" name="" id="" placeholder="请输入" /> <input class="form-control" name="" placeholder="请输入" v-model="applyParam.bankAccountOpening"/>
</div> </div>
<div class="contentItem"> <div class="contentItem">
<text>银行卡号</text> <text>银行卡号</text>
<input class="form-control" placeholder="请输入" type="number" maxlength="19" v-model="bankAccountId"/> <input class="form-control" placeholder="请输入" type="number" maxlength="19" v-model="applyParam.bankAccountId"
auto-blur=true @blur="checkInput(applyParam.bankAccountId)"/>
</div> </div>
<div class="contentItem"> <div class="contentItem">
<text>再次输入银行卡号以确认</text> <text>再次输入银行卡号以确认</text>
<input class="form-control" placeholder="请输入" type="number" v-model="sureBankAccountId" maxlength="19"/> <input class="form-control" placeholder="请输入" type="number" v-model="sureBankAccountId" maxlength="19"
auto-blur=true @blur="checkInput(sureBankAccountId)" />
</div> </div>
</div> </div>
</div> </div>
<navigator class="fixed" url="personal-statement" @click="saveInfo()"> <view class="fixed" @click="saveInfo()">
保存并下一步 保存并下一步
</navigator> </view>
</view> </view>
</template> </template>
<script> <script>
import api from '@/api/api';
export default{ export default{
data(){ data(){
return { return {
...@@ -41,11 +44,57 @@ ...@@ -41,11 +44,57 @@
}, },
components:{}, components:{},
onLoad(){ onLoad(){
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'))
}
}, },
methods:{ methods:{
queryById(id){
api.queryById(id).then((res)=>{
console.log(res)
if(res['success']){
this.applyParam = res['data']['data'];
}
})
},
//去除输入空格
checkInput(str){
str = str.replace(/\s*/g,"");
},
saveInfo(){ saveInfo(){
uni.setStorageSync('applyParam',JSON.stringify(this.applyParam)) if(this.applyParam.bankAccountId || this.sureBankAccountId){
if(this.applyParam.bankAccountId != this.sureBankAccountId){
uni.showToast({
title: '两次银行卡号不一致,请重新输入',
duration: 2000,
icon: 'none'
})
return;
}
}
this.applyParam = {
...this.applyParam,
applyType:2,
operatStep:5,
// userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17
}
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
uni.navigateTo({
// url:`personal-statement?id=${res['data']['id']}`
url:`personal-statement`
});
}else{
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
return;
}
})
} }
} }
} }
......
...@@ -108,6 +108,11 @@ ...@@ -108,6 +108,11 @@
onLoad(){ onLoad(){
this.erpInitialize(); this.erpInitialize();
this.queryOrgList(); this.queryOrgList();
if(uni.getStorageSync('applyId')){
setTimeout(()=>{
this.queryById(uni.getStorageSync('applyId'))
},500)
}
}, },
methods:{ methods:{
erpInitialize(){ erpInitialize(){
...@@ -196,6 +201,24 @@ ...@@ -196,6 +201,24 @@
} }
}, },
queryById(id){
api.queryById(id).then((res)=>{
console.log(res)
if(res['success']){
this.applyParam = res['data']['data'];
for(let i=0;i<this.idTypesList.length;i++){
if(this.applyParam.idType == this.idTypesList[i].name){
this.idTypeIdx = i;
}
}
for(let j=0;j<this.cffpAreaQuerys.length;j++){
if(this.applyParam.areaId == this.cffpAreaQuerys[j].areaId){
this.areaIdIdx = j;
}
}
}
})
},
saveInfo(){ saveInfo(){
if(!this.applyParam.name){ if(!this.applyParam.name){
uni.showToast({ uni.showToast({
......
...@@ -43,11 +43,20 @@ ...@@ -43,11 +43,20 @@
curContract: '', curContract: '',
curContractId: null, curContractId: null,
isAllAgree: false, isAllAgree: false,
applyParam:{
contractTerms:''
},
contractTermsConfirmsListParm:[]
} }
}, },
components:{}, components:{},
onLoad(){ onLoad(){
this.getContractList(); this.getContractList();
if(uni.getStorageSync('applyId')){
setTimeout(()=>{
this.queryById(uni.getStorageSync('applyId'))
},500)
}
}, },
methods:{ methods:{
getContractList(){ getContractList(){
...@@ -57,17 +66,34 @@ ...@@ -57,17 +66,34 @@
}) })
}, },
saveInfo(){ saveInfo(){
console.log(this.isAllAgree) if (!this.isAllAgree) {
// if (!this.isAllAgree) { uni.showToast({
// uni.showToast({ title: '请详细阅读全部条款!',
// title: '请详细阅读全部条款!', duration: 2000,
// duration: 2000, icon: 'none'
// icon: 'none' });
// }); return;
// return; }
// } this.contractTermsConfirmsListParm = [];
uni.navigateTo({ for (let i = 0; i < this.contractTermsList.length; i++) {
url:'signature' this.contractTermsConfirmsListParm.push(this.contractTermsList[i]["termName"]);
}
this.applyParam.operatStep = 7;
this.applyParam.contractTerms = this.contractTermsConfirmsListParm .join(',');
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
uni.navigateTo({
// url:`signature?id=${res['data']['id']}`
url:`signature`
});
}else{
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
return;
}
}) })
}, },
readContract(contractItem) { readContract(contractItem) {
...@@ -82,20 +108,38 @@ ...@@ -82,20 +108,38 @@
this.isAllAgree = this.contractTermsList.every((item) => { this.isAllAgree = this.contractTermsList.every((item) => {
return item.confirmStatus == 1; return item.confirmStatus == 1;
}); });
}, },
//同意合同条款 //同意合同条款
agree() { agree() {
this.isShow = false; this.isShow = false;
for (let i = 0; i < this.contractTermsList.length; i++) { for (let i = 0; i < this.contractTermsList.length; i++) {
if (this.curContractId == this.contractTermsList[i]["id"]) { if (this.curContractId == this.contractTermsList[i]["id"]) {
this.contractTermsList[i]["confirmStatus"] = 1; this.contractTermsList[i]["confirmStatus"] = 1;
} }
}
this.isAllAgree = this.contractTermsList.every((item) => {
return item.confirmStatus == 1;
});
} }
this.isAllAgree = this.contractTermsList.every((item) => {
return item.confirmStatus == 1;
});
},
queryById(id){
api.queryById(id).then((res)=>{
if(res['success']){
this.applyParam = res['data']['data'];
if(this.applyParam.contractTerms){
this.contractTermsConfirmsListParm = this.applyParam.contractTerms.split(',');
console.log(this.contractTermsConfirmsListParm)
for(let i=0;i<this.contractTermsList.length;i++){
for(let j=0;j<this.contractTermsConfirmsListParm.length;j++){
if(this.contractTermsList[i]['termName'] == this.contractTermsConfirmsListParm[j]){
this.contractTermsList[i].confirmStatus = 1;
}
}
}
this.isAllAgree = true;
}
}
})
},
} }
} }
</script> </script>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<view class="contentDetail employ"> <view class="contentDetail employ">
<view class="contentItem"> <view class="contentItem">
<text>最高学历:如本科、专科、硕士</text> <text>最高学历:如本科、专科、硕士</text>
<picker @change="changeEducation" :value="name" :range="educationLevelList" <picker @change="changeEducation" :value="educationIdx" :range="educationLevelList"
range-key="name"> range-key="name">
<view class="uni-input">{{educationLevelList[educationIdx]['name']}} <view class="uni-input">{{educationLevelList[educationIdx]['name']}}
<text class="iconfont icon-youjiantou"></text> <text class="iconfont icon-youjiantou"></text>
...@@ -19,30 +19,32 @@ ...@@ -19,30 +19,32 @@
</view> </view>
<view class="contentItem"> <view class="contentItem">
<text>毕业学校</text> <text>毕业学校</text>
<input class="form-control" /> <input class="form-control" v-model="applyParam.lastGraduateSchool"/>
</view> </view>
<view class="contentItem" style="border:none;"> <view class="contentItem" style="border:none;">
<text>毕业证</text> <text>毕业证</text>
<view></view> <view></view>
</view> </view>
</view> </view>
<view class="photo_wrapper"> <view class="photo_wrapper" v-if="!applyParam.lastGraduateCertificationOssPath" @click="upLoadPhoto()">
<text class="iconfont icon-weibiaoti553"></text> <text class="iconfont icon-weibiaoti553"></text>
<view style="margin-top: 10px;" >点击添加毕业证照片</view> <view style="margin-top: 10px;" >点击添加毕业证照片</view>
</view> </view>
<!-- <image alt="毕业证照片"></image> --> <image :src="applyParam.lastGraduateCertificationOssPath" v-if="applyParam.lastGraduateCertificationOssPath"
@click="upLoadPhoto()" mode="widthFix"></image>
<view class="tips"> <view class="tips">
<view>(jpg,png 文件大小不大于1mb)</view> <view>(jpg,png 文件大小不大于1mb)</view>
</view> </view>
</view> </view>
<navigator class="fixed" url="bank-card" @click="saveInfo()"> <view class="fixed" @click="saveInfo()">
保存并下一步 保存并下一步
</navigator> </view>
</view> </view>
</template> </template>
<script> <script>
import api from '../../api/api'; import api from '../../api/api';
import { CommonUpload } from '@/util/uploaderFile';
export default{ export default{
data(){ data(){
return { return {
...@@ -52,12 +54,23 @@ ...@@ -52,12 +54,23 @@
lastGraduateGrade:'', lastGraduateGrade:'',
lastGraduateSchool:'', lastGraduateSchool:'',
lastGraduateCertificationOssPath:'', lastGraduateCertificationOssPath:'',
},
dataForm:{
loginId: uni.getStorageSync('cffp_userId'),
targetType: "5",
targetId: uni.getStorageSync('cffp_userId'),
targetNo: "4",
targetUseFor: "12",
targetSeq: "0"
} }
} }
}, },
components:{}, components:{},
onLoad(){ onLoad(){
this.educationLevelQuery() this.educationLevelQuery();
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'))
}
}, },
methods:{ methods:{
educationLevelQuery(){ educationLevelQuery(){
...@@ -68,12 +81,76 @@ ...@@ -68,12 +81,76 @@
} }
}) })
}, },
queryById(id){
api.queryById(id).then((res)=>{
console.log(res)
if(res['success']){
this.applyParam = res['data']['data'];
for(let i=0;i<this.educationLevelList.length;i++){
if(this.applyParam.lastGraduateGrade == this.educationLevelList[i].name){
this.educationIdx = i;
}
}
}
})
},
upLoadPhoto(event){
CommonUpload(this.dataForm).then(res => {
this.applyParam.lastGraduateCertificationOssPath = res.data.filePath;
});
},
changeEducation:function(e){ changeEducation:function(e){
this.educationIdx = e.detail.value; this.educationIdx = e.detail.value;
this.applyParam.lastGraduateGrade = this.educationLevelList[this.educationIdx]['name']; this.applyParam.lastGraduateGrade = this.educationLevelList[this.educationIdx]['name'];
}, },
saveInfo(){ saveInfo(){
uni.setStorageSync('applyParam',JSON.stringify(this.applyParam)) if(!this.applyParam.lastGraduateGrade){
uni.showToast({
title: '请选择最高学历',
duration: 2000,
icon: 'none'
})
return;
}
if(!this.applyParam.lastGraduateSchool){
uni.showToast({
title: '请输入毕业学校',
duration: 2000,
icon: 'none'
})
return;
}
if(!this.applyParam.lastGraduateCertificationOssPath){
uni.showToast({
title: '请上传毕业证书',
duration: 2000,
icon: 'none'
})
return;
}
this.applyParam = {
...this.applyParam,
applyType:2,
operatStep:4,
// userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
}
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
uni.navigateTo({
// url:`bank-card?id=${res['data']['id']}`
url:`bank-card`
});
}else{
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
return;
}
})
} }
} }
} }
......
...@@ -8,28 +8,26 @@ ...@@ -8,28 +8,26 @@
</view> </view>
<view class="content"> <view class="content">
<view class="content_wrapper"> <view class="content_wrapper">
<view class="photo" v-if="!applyParam.idFrontPageOssPath" @click="upLoadPhoto('front')"> <view class="photo" v-if="!applyParam.idFrontPageOssPath" @click="upLoadPhoto('front')">
<image src="../../static/front.png" alt="身份证正面" mode="widthFix"></image> <image src="../../static/front.png" alt="身份证正面" mode="widthFix"></image>
<text class="iconfont icon-weibiaoti553" ></text> <text class="iconfont icon-weibiaoti553" ></text>
<view class="choseBtn" >点击添加身份证正面</view> <view class="choseBtn" >点击添加身份证正面</view>
</view> </view>
<view class="showimage" v-if="applyParam.idFrontPageOssPath"> <image :src="applyParam.idFrontPageOssPath" mode="widthFix" v-if="applyParam.idFrontPageOssPath"
<image :src="applyParam.idFrontPageOssPath" mode="widthFix"></image> @click="upLoadPhoto('front')"></image>
</view>
<view class="tips"> <view class="tips">
<view>(正确示例:身份证正面,字体清晰)</view> <view>(正确示例:身份证正面,字体清晰)</view>
<view>(jpg,png 文件大小不大于1mb)</view> <view>(jpg,png 文件大小不大于1mb)</view>
</view> </view>
</view> </view>
<view class="content_wrapper" style="margin-top: 25px;"> <view class="content_wrapper" style="margin-top: 25px;">
<view class="photo" v-if="!applyParam.idBackPageOssPath" @click="upLoadPhoto('back')"> <view class="photo" v-if="!applyParam.idBackPageOssPath" @click="upLoadPhoto('back')">
<image src="../../static/back.png" alt="身份证反面面" mode="widthFix"></image> <image src="../../static/back.png" alt="身份证反面面" mode="widthFix"></image>
<text class="iconfont icon-weibiaoti553" ></text> <text class="iconfont icon-weibiaoti553" ></text>
<view class="choseBtn" >点击添加身份证反面</view> <view class="choseBtn" >点击添加身份证反面</view>
</view> </view>
<view class="showimage" v-if="applyParam.idBackPageOssPath"> <image :src="applyParam.idBackPageOssPath" mode="widthFix" v-if="applyParam.idBackPageOssPath"
<image :src="applyParam.idBackPageOssPath" mode="widthFix"></image> @click="upLoadPhoto('front')"></image>
</view>
<view class="tips"> <view class="tips">
<view>(正确示例:身份证反面,字体清晰)</view> <view>(正确示例:身份证反面,字体清晰)</view>
<view>(jpg,png 文件大小不大于1mb)</view> <view>(jpg,png 文件大小不大于1mb)</view>
...@@ -64,9 +62,19 @@ ...@@ -64,9 +62,19 @@
}, },
components:{}, components:{},
onLoad(){ onLoad(){
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'))
}
}, },
methods:{ methods:{
queryById(id){
api.queryById(id).then((res)=>{
console.log(res)
if(res['success']){
this.applyParam = res['data']['data'];
}
})
},
upLoadPhoto(type){ upLoadPhoto(type){
if(type == 'front'){ if(type == 'front'){
this.dataForm.targetNo = 2; this.dataForm.targetNo = 2;
...@@ -74,7 +82,7 @@ ...@@ -74,7 +82,7 @@
if(type == 'back'){ if(type == 'back'){
this.dataForm.targetNo = 3; this.dataForm.targetNo = 3;
} }
CommonUpload(that.dataForm).then(res => { CommonUpload(this.dataForm).then(res => {
if(type == 'front'){ if(type == 'front'){
this.applyParam.idFrontPageOssPath = res.data.filePath; this.applyParam.idFrontPageOssPath = res.data.filePath;
} }
...@@ -108,7 +116,7 @@ ...@@ -108,7 +116,7 @@
userId:42, userId:42,
id:17, id:17,
} }
api.saveApplyInfo(this.applyParam).then(()=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
uni.navigateTo({ uni.navigateTo({
// url:`id-card?id=${res['data']['id']}` // url:`id-card?id=${res['data']['id']}`
...@@ -159,10 +167,6 @@ ...@@ -159,10 +167,6 @@
bottom: 19%; bottom: 19%;
} }
} }
.showImg{
max-width: 429px;
max-height: 276px;
}
} }
</style> </style>
\ No newline at end of file
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</template> </template>
<script> <script>
import api from '../../api/api' import api from '../../api/api';
export default{ export default{
data(){ data(){
return { return {
...@@ -38,6 +38,11 @@ ...@@ -38,6 +38,11 @@
components:{}, components:{},
onLoad(){ onLoad(){
this.dropOptionsQuery(); this.dropOptionsQuery();
if(uni.getStorageSync('applyId')){
setTimeout(()=>{
this.queryById(uni.getStorageSync('applyId'))
},500)
}
}, },
methods:{ methods:{
dropOptionsQuery(){ dropOptionsQuery(){
...@@ -53,6 +58,23 @@ ...@@ -53,6 +58,23 @@
} }
console.log(this.dropOptionsInfoList) console.log(this.dropOptionsInfoList)
}, },
queryById(id){
api.queryById(id).then((res)=>{
if(res['success']){
this.applyParam = res['data']['data'];
if(this.applyParam.personalStatement){
this.personalStatementList = this.applyParam.personalStatement.split(',');
for(let i=0;i<this.dropOptionsInfoList.length;i++){
for(let j=0;j<this.personalStatementList.length;j++){
if(this.dropOptionsInfoList[i]['dropOptionName'] == this.personalStatementList[j]){
this.dropOptionsInfoList[i].status = 1;
}
}
}
}
}
})
},
saveInfo(){ saveInfo(){
const selectedPersonalStatement = this.dropOptionsInfoList.filter((item) => { const selectedPersonalStatement = this.dropOptionsInfoList.filter((item) => {
return item.status == 1; return item.status == 1;
...@@ -70,11 +92,22 @@ ...@@ -70,11 +92,22 @@
this.personalStatementList.push(selectedPersonalStatement[i]['dropOptionName']); this.personalStatementList.push(selectedPersonalStatement[i]['dropOptionName']);
} }
this.applyParam.personalStatement = this.personalStatementList .join(','); this.applyParam.personalStatement = this.personalStatementList .join(',');
uni.setStorageSync('applyParam',JSON.stringify(this.applyParam)) this.applyParam.operatStep = 6;
uni.navigateTo({ api.saveApplyInfo(this.applyParam).then((res)=>{
url:'contract' if(res['success']){
uni.navigateTo({
// url:`contract?id=${res['data']['id']}`
url:`contract`
});
}else{
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
return;
}
}) })
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="container"> <view class="container">
<view class="title"> <view class="title">
<view> <view>
<text class="line" style="background: #5F83FF;"></text>电子签名<text style="font-size: 20rpx;font-weight: normal;">(请书写工整,字迹清晰)</text> <text class="line"></text>电子签名<text style="font-size: 20rpx;font-weight: normal;">(请书写工整,字迹清晰)</text>
</view> </view>
<text class="page_mark">8/8</text> <text class="page_mark">8/8</text>
</view> </view>
...@@ -10,13 +10,15 @@ ...@@ -10,13 +10,15 @@
<e-signature :showCanvas="showCanvas" ref="signatureComponent" @sendImage="getImage"></e-signature> <e-signature :showCanvas="showCanvas" ref="signatureComponent" @sendImage="getImage"></e-signature>
</view> </view>
<view class="fixed" url="bank-card" @click="save()"> <view class="fixed" url="bank-card" @click="save()">
保存并下一步 我自愿签订推广人合同书
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import eSignature from '@/components/eSignature/eSignature.vue'; import eSignature from '@/components/eSignature/eSignature.vue';
import api from '../../api/api';
import { nextTick } from "vue";
export default { export default {
data() { data() {
return { return {
...@@ -24,19 +26,47 @@ ...@@ -24,19 +26,47 @@
showCanvas: true, showCanvas: true,
//是否展示操作菜单 //是否展示操作菜单
completionSignPath: '' ,//签名 completionSignPath: '' ,//签名
applyParam:{
personalSignOssPath:''
}
} }
}, },
components:{eSignature}, components:{eSignature},
onLoad() { onLoad() {
if(uni.getStorageSync('applyId')){
setTimeout(()=>{
this.queryById(uni.getStorageSync('applyId'))
},500)
}
}, },
methods: { methods: {
save(){ save(){
this.$refs.signatureComponent.finish() this.$refs.signatureComponent.finish()
}, },
queryById(id){
api.queryById(id).then((res)=>{
if(res['success']){
this.applyParam = res['data']['data'];
}
})
},
getImage(e){ getImage(e){
console.log(e) this.applyParam.personalSignOssPath = e;
} api.saveApplyInfo(this.applyParam).then((res)=>{
console.log(res)
if(res['success']){
}else{
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
return;
}
})
},
} }
} }
</script> </script>
......
...@@ -101,7 +101,11 @@ ...@@ -101,7 +101,11 @@
// if(options.id){ // if(options.id){
// this.queryById(options.id) // this.queryById(options.id)
// } // }
if(uni.getStorageSync('applyId')){
setTimeout(()=>{
this.queryById(uni.getStorageSync('applyId'))
},500)
}
}, },
methods:{ methods:{
changeIndustry: function(e){ changeIndustry: function(e){
...@@ -118,7 +122,6 @@ ...@@ -118,7 +122,6 @@
occupationQry(){ occupationQry(){
api.occupationQry({insurerId:2}).then((res)=>{ api.occupationQry({insurerId:2}).then((res)=>{
if(res['success']){ if(res['success']){
console.log(res['data']['industry'])
this.industry = this.industry.concat(res['data']['industry']); this.industry = this.industry.concat(res['data']['industry']);
}else{ }else{
this.industry = [{industryName:'请选择',industryId:null}]; this.industry = [{industryName:'请选择',industryId:null}];
...@@ -126,8 +129,7 @@ ...@@ -126,8 +129,7 @@
}) })
}, },
upLoadPhoto(event){ upLoadPhoto(event){
let that = this; CommonUpload(this.dataForm).then(res => {
CommonUpload(that.dataForm).then(res => {
this.applyParam.certificate = res.data.filePath; this.applyParam.certificate = res.data.filePath;
this.picList.push(this.applyParam.certificate); this.picList.push(this.applyParam.certificate);
}); });
...@@ -174,17 +176,18 @@ ...@@ -174,17 +176,18 @@
this.applyParam = res['data']['data']; this.applyParam = res['data']['data'];
if(this.applyParam.certificate){ if(this.applyParam.certificate){
this.picList = this.applyParam.certificate.split(','); this.picList = this.applyParam.certificate.split(',');
console.log(this.picList)
} }
console.log(this.picList) for(let i=0;i<this.industry.length;i++){
if(this.applyParam.workingCategoryId == this.industry[i].industryId){
this.industryIdx = i;
}
}
} }
}) })
} }
}, },
mounted() { mounted() {
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'))
}
} }
} }
</script> </script>
......
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
<text>累计积分</text> <text>累计积分</text>
</view> </view>
<view class=""> <view class="">
<text style="color: #F15A1F;">{{nowSumCommissionAmount}}</text> <text style="color: #F15A1F;">{{(Number(nowSumCommissionAmount)).toFixed(2)}}</text>
<text>{{getName(timeFlag)}}获得积分</text> <text>{{getName(timeFlag)}}获得积分</text>
</view> </view>
<view class=""> <view class="">
<text style="color: #0A2F99;">{{prePercent}}%</text> <text style="color: #0A2F99;">{{(Number(prePercent)).toFixed(2)}}%</text>
<text>{{getInfo(timeFlag)}}得分</text> <text>{{getInfo(timeFlag)}}得分</text>
</view> </view>
</view> </view>
...@@ -86,24 +86,32 @@ ...@@ -86,24 +86,32 @@
methods:{ methods:{
selectNav(navItem){ selectNav(navItem){
this.timeFlag = navItem.timeFlag; this.timeFlag = navItem.timeFlag;
if(this.timeFlag == 'M'){
this.fortuneDate = `${new Date().getFullYear()}-${new Date().getMonth() + 1}`
}
if(this.timeFlag == 'Y'){
this.fortuneDate=`${new Date().getFullYear()}`
}
this.findByUserIdForFortuneStatistic();
}, },
bindDateChange: function(e) { bindDateChange: function(e) {
this.fortuneDate = e.detail.value; this.fortuneDate = e.detail.value;
this.findByUserIdForFortuneStatistic(); this.findByUserIdForFortuneStatistic();
}, },
findByUserIdForFortuneStatistic(){ findByUserIdForFortuneStatistic(){
// const param = {
// isDtl:2,
// userId:uni.getStorageSync('cffp_userId'),
// fortuneDate:this.fortuneDate,
// timeFlag:this.timeFlag
// }
const param = { const param = {
"isDtl": 2, isDtl:2,
"userId": 1, // userId:uni.getStorageSync('cffp_userId'),
"fortuneDate": "2022-11-01", userId: 1,
"timeFlag": "D" fortuneDate:this.fortuneDate,
} timeFlag:this.timeFlag
}
// const param = {
// "isDtl": 2,
// "userId": 1,
// "fortuneDate": "2022-11-01",
// "timeFlag": "D"
// }
api.findByUserIdForFortuneStatistic(param).then((res)=>{ api.findByUserIdForFortuneStatistic(param).then((res)=>{
console.log(res) console.log(res)
if(res['success']){ if(res['success']){
...@@ -198,7 +206,9 @@ ...@@ -198,7 +206,9 @@
width: 33%; width: 33%;
overflow: hidden; overflow: hidden;
text{ text{
width: 100%;
margin-bottom: 10rpx; margin-bottom: 10rpx;
text-align: center;
} }
} }
} }
......
...@@ -24,12 +24,24 @@ ...@@ -24,12 +24,24 @@
</view> </view>
<view class="content_wrapper"> <view class="content_wrapper">
<h4>提现到</h4> <h4>提现到</h4>
<view class="withdrawal_content"> <view class="paymentItem" @click="selectPaymentMethod(2)">
<view style="display: flex;align-items: center;"> <view>
<text class="iconfont icon-py_weixinzhifu"></text> <i class="iconfont icon-zhifubao"></i>
<h4>微信钱包</h4> <text>支付宝钱包</text>
</view>
<view class="selectRadio" :class="{'actived':paymentMethod===2}">
<i class="iconfont icon-duihao"></i>
</view>
</view>
<view class="paymentItem" @click="selectPaymentMethod(1)">
<view>
<i class="iconfont icon-py_weixinzhifu"></i>
<text>微信钱包</text>
</view>
<view class="selectRadio" :class="{'actived':paymentMethod===1}">
<i class="iconfont icon-duihao"></i>
</view> </view>
<text class="iconfont icon-gou"></text>
</view> </view>
<view class="tips_wrapper"> <view class="tips_wrapper">
<view class=""> <view class="">
...@@ -48,7 +60,7 @@ ...@@ -48,7 +60,7 @@
3、如需帮助,请联系CFFP财富中心客服电话:12345678; 3、如需帮助,请联系CFFP财富中心客服电话:12345678;
</view> </view>
</view> </view>
<view class="btn"> <view class="btn" @click="confirmWithdrawal()">
确认提现 确认提现
</view> </view>
</view> </view>
...@@ -63,8 +75,9 @@ ...@@ -63,8 +75,9 @@
exchangeAmount:null, exchangeAmount:null,
partnerTradeNo:null, partnerTradeNo:null,
taxAmount:null, taxAmount:null,
noTaxAmount:null noTaxAmount:null,
paymentMethod:2,//初始化支付宝提现
withdrawalParam:null,
} }
}, },
components:{}, components:{},
...@@ -76,7 +89,8 @@ ...@@ -76,7 +89,8 @@
methods:{ methods:{
goFortuneWithdrawal(){ goFortuneWithdrawal(){
const param = { const param = {
userId:uni.getStorageSync('cffp_userId'), // userId:uni.getStorageSync('cffp_userId'),
userId:1,
exchangeAmount:this.exchangeAmount, exchangeAmount:this.exchangeAmount,
partnerTradeNo:this.partnerTradeNo?this.partnerTradeNo:null partnerTradeNo:this.partnerTradeNo?this.partnerTradeNo:null
} }
...@@ -88,6 +102,8 @@ ...@@ -88,6 +102,8 @@
this.partnerTradeNo = data.partnerTradeNo; this.partnerTradeNo = data.partnerTradeNo;
this.taxAmount = data.taxAmount; this.taxAmount = data.taxAmount;
this.noTaxAmount = data.noTaxAmount; this.noTaxAmount = data.noTaxAmount;
this.withdrawalParam = res['data'];
this.withdrawalParam.cffpFortuneExchangeVO = undefined;
}else{ }else{
this.exchangeAmount = 0; this.exchangeAmount = 0;
this.partnerTradeNo = null; this.partnerTradeNo = null;
...@@ -95,6 +111,68 @@ ...@@ -95,6 +111,68 @@
this.noTaxAmount = 0; this.noTaxAmount = 0;
} }
}) })
},
selectPaymentMethod(value){
this.paymentMethod = value;
},
//支付宝去提现
aliWithdrawal(){
this.withdrawalParam = {
...this.withdrawalParam,
orderNo:'CFFPTX221129164200020081'
}
api.aliWithdrawal(this.withdrawalParam).then((res)=>{
console.log(res)
})
},
//微信去提现
wxWithdrawal(){
},
confirmWithdrawal(){
if(this.paymentMethod == 1){
this.wxWithdrawal();
}
if(this.paymentMethod == 2){
let urls= this.withdrawalParam.aliAuthUrl;
urls=encodeURIComponent(urls);
// 判断平台
if (plus.os.name == 'Android') {
plus.runtime.openURL(
'alipays://platformapi/startapp?appId=2021003161624312&url=' + urls,
res => {
//这里写打开URL地址失败后的处理
console.log(res);
uni.showModal({
content: '本机未检测到对应客户端,是否打开浏览器访问页面?',
success: function (res) {
if (res.confirm) {
//plus.runtime.openURL();
}
}
});
},
'com.eg.android.AlipayGphone'
);
} else if (plus.os.name == 'iOS') {
plus.runtime.openURL(
'alipay://platformapi/startapp?appId=20000067&url=' + urls,
res => {
console.log(res);
uni.showModal({
content: '本机未检测到对应客户端,是否打开浏览器访问页面?',
success: function (res) {
if (res.confirm) {
//plus.runtime.openURL(url);
}
}
});
},
'com.eg.android.AlipayGphone'
);
}
// this.aliWithdrawal();
}
} }
} }
} }
...@@ -125,6 +203,44 @@ ...@@ -125,6 +203,44 @@
border-bottom: 2rpx solid #F2F2F2; border-bottom: 2rpx solid #F2F2F2;
justify-content: space-between; justify-content: space-between;
} }
h4{
font-size: 32rpx;
margin-bottom: 20rpx;
}
.paymentItem{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10rpx;
view{
display: flex;
align-items: center;
}
.icon-zhifubao{
color: #5A9EF7;
font-size: 60rpx;
margin-right: 20rpx;
}
.icon-py_weixinzhifu{
color: #09BB07;
font-size: 60rpx;
margin-right: 20rpx;
}
.selectRadio{
width: 40rpx;
height: 40rpx;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
border: 1px solid #D8D8D8;
color: transparent;
&.actived{
background-color: #0A2F99;
color: #fff;
}
}
}
.withdrawal_content{ .withdrawal_content{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
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