Commit 2b75b344 by sunerhu

1.修改了一些Bug

parent 154e0b2d
......@@ -78,7 +78,7 @@
dataForm:{
loginId: uni.getStorageSync('cffp_userId'),
targetType: "5",
targetId: uni.getStorageSync('cffp_userId'),
targetId: '',
targetNo: "4",
targetUseFor: "12",
targetSeq: "0"
......@@ -122,6 +122,7 @@
},
upLoadPhoto(event){
if(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2){
this.dataForm.targetId = this.applyParam.id
CommonUpload(this.dataForm).then(res => {
this.applyParam.lastGraduateCertificationOssPath = res.data.filePath;
});
......
......@@ -72,7 +72,8 @@
dataForm:{
loginId: uni.getStorageSync('cffp_userId'),
targetType: "5",
targetId: uni.getStorageSync('cffp_userId'),
targetId: '',
// uni.getStorageSync('cffp_userId')
targetNo: "",
targetUseFor: "12",
targetSeq: "0"
......@@ -106,6 +107,7 @@
if(type == 'back'){
this.dataForm.targetNo = 3;
}
this.dataForm.targetId = this.applyParam.id
CommonUpload(this.dataForm).then(res => {
if(type == 'front'){
this.applyParam.idFrontPageOssPath = res.data.filePath;
......
......@@ -166,6 +166,7 @@
this.getqueryOrgList()
let dataForm = uni.getStorageSync('userinfodataForm')
this.realName = dataForm.realName
console.log(dataForm, 1125)
},
methods: {
queryorgchange(e) {
......@@ -205,19 +206,21 @@
changeorgkey() {
let that = this
let orgKey = that.applyIdentity == 0 ? 'B1' : 'A1'
that.orgdataList = []
// that.orgdataList = []
console.log(that.orgList, 1115)
const list = that.orgList.map(item => {
const list = that.orgList.map((item) => {
if(item.partnerLevel == orgKey || item.partnerLevel == 'ALL'){
return item
}
});
for (var i = 0; i < list.length; i++) {
if (list[i] == undefined) {
list.splice(i,1)
}
}
}).filter(item2 => item2 != undefined)
// console.log(list, 41745)
// for (var i = 0; i < list.length; i++) {
// if (list[i] == undefined) {
// list.splice(i,1)
// }
// }
// console.log(list, 551)
that.orgdataList = list.map((x) => x.areaName)
},
// 发起邀请事件
......
......@@ -9,7 +9,7 @@
<view class="firstLineBox">
<view>
<strong>{{customerBasicInfo.realName}}</strong>
<text class="csTag">{{customerBasicInfo.partnerType || 'CFFP财富中心'}}</text>
<text class="csTag" v-if="customerBasicInfo.partnerType">{{customerBasicInfo.partnerType}}</text>
</view>
<view class="personalInfoBtn" @click="userinfo()">
<text>个人资料</text>
......@@ -112,7 +112,7 @@
{id:'04',categoryName:'团队管理',
children:[
{title:'我的团队',icon:'team',link:'/pages/personalCenter/myTeam',isOpen:true,isShow:true},
{title:'邀请加盟',icon:'shareJoin',link:'/pages/inviteJoin/inviteJoin',isOpen:true,isShow:true}
{title:'邀请加盟',icon:'shareJoin',link:'/pages/inviteJoin/inviteJoin',isOpen:true,isShow:true,identity: true}
],
}
],
......@@ -150,14 +150,28 @@
if(item.title==='我的邀请码'){
this.$refs.popup1.open('bottom');
}else{
uni.navigateTo({
url: item.link
});
this.ckidentity(item)
}
}else{
common.errorDialog(2,'该模块正在开发中,敬请期待!','提示');
}
},
ckidentity(item){
if(item.identity == true && this.customerBasicInfo.partnerType ==null){
console.log('运行到了这里')
uni.showToast({
title: "您本人尚未加盟,您加盟后可邀请加盟",
duration: 2000,
icon: 'none'
});
return false
}else{
uni.navigateTo({
url: item.link
});
}
},
userinfo(){
uni.navigateTo({
url:`/pages/personalCenter/user-information?customerBasicInfo=` + JSON.stringify(this.customerBasicInfo)
......
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